Vervette Fluid Sandbox...


Here we mingle, introduce ourselves, our thoughts and ideas and have caring discussions.

User avatar

Site Admin

Posts: 7436

Joined: Sun Nov 10, 2013 1:38 pm

Post Tue Feb 09, 2021 1:11 pm

Re: Vervette Fluid Sandbox...

Thanks, Lemi! It's wonderful not to feel alone on this stuff. Well, at the end it all is really the same- more or less- with stuff thrown in between. I completely loathe using libraries and try to keep it to an absolute minimum. With every library you have to adapt to some other people's train of thought, at the end trying to think like 1000 minds, losing your own along the way.
I have successfully managed to save and load my own raw binary, which is fantastic and javascript did not at all fight me on this, which is also part of why I love it so much and want to know more and more. I would debate that it wasn't made for this sort of thing, because it does scream to be used for it, actually. It's just that people don't often use it in that way, which is why I end up having to discover much of it on my own. But I also used to love exactly that. So...what am I saying? Hmmm...I need somebody to hold my hand every now and then, HAHAHA! :lol: :oops: :? :D :hug:

Oh, Ed, you snug in there while I was writing, hehe. :hihi:
OH, dear God, I... oh no, I don't quite work like that, I'm afraid. Thing is, I'm often rather surgical, dealing with a specific kind of problem, trying to learn all I need to learn about all elements that require understanding for solving it. I could not really detach myself from it or hold on to failed attempts, so to say. All my "backups" are always only working versions. If I were to pile up my failed attempts, hahahahaha... :o ...nah. :uhuhuh:
THANK YOU, though, it's always great to hear of different methodologies. Very cool! 8-)
Here to help! :D
System Info: Mac mini, Apple M1, 8 Gb, Sonoma 14.5 - secondary: AMD Radeon RX Vega 10, AMD Ryzen 7 (2.3 Ghz), Windows 11
Taron.de | Twitter | Pinterest | YouTube
User avatar

Posts: 4830

Joined: Mon Mar 24, 2014 9:58 am

Post Tue Feb 09, 2021 2:44 pm

Re: Vervette Fluid Sandbox...

A funny guy seems has some knowledge of many languages and aespecially JavaScript connected with cornecopius others! :)
Daniel Shiffman a video is existing about any subject! :shock:
A monster! :mrgreen:
Is beautiful that please without concept!
http://moiscript.weebly.com/ https://schmoll8.wixsite.com/magicavox
Latop: Geforce GTX 950M, Intel Quad Core i7, Windows 10, 8 Gigas, 2.4ghz
User avatar

Site Admin

Posts: 7436

Joined: Sun Nov 10, 2013 1:38 pm

Post Tue Feb 09, 2021 2:48 pm

Re: Vervette Fluid Sandbox...

Oh dear, I'm always a little suspicious of "funny guys"... :hihi: ...but Thanks, Pilou, I'll have a look, see what he's got! :ugeek:
Here to help! :D
System Info: Mac mini, Apple M1, 8 Gb, Sonoma 14.5 - secondary: AMD Radeon RX Vega 10, AMD Ryzen 7 (2.3 Ghz), Windows 11
Taron.de | Twitter | Pinterest | YouTube
User avatar

Site Admin

Posts: 7436

Joined: Sun Nov 10, 2013 1:38 pm

Post Tue Feb 09, 2021 3:58 pm

Re: Vervette Fluid Sandbox...

Holy Shit, I KNEW IT! I knew it WAS trivial! :PP :hyper:
compress process goes...
var precompArray = new Uint8Array(imagePixels.buffer);
imageCompressed = pako.deflate(precompArray);

decompress goes...
var out = pako.inflate(reader.result);
imagePixels = new Float32Array(out.buffer);

TADAH! :lol: ...I mean, just how many things I had to roll through in order to realize that I could just do it like that and it's all good. :lol: :shrug:
Sometimes, really... I have no emoji that sighs...
ME HAPPY! :bounce:
Here to help! :D
System Info: Mac mini, Apple M1, 8 Gb, Sonoma 14.5 - secondary: AMD Radeon RX Vega 10, AMD Ryzen 7 (2.3 Ghz), Windows 11
Taron.de | Twitter | Pinterest | YouTube
User avatar

Posts: 4830

Joined: Mon Mar 24, 2014 9:58 am

Post Tue Feb 09, 2021 5:06 pm

Re: Vervette Fluid Sandbox...

Syntax, semantic, ponctuation...the nightmare! :mrgreen:

else little bird :) c:!

Image

Image
Is beautiful that please without concept!
http://moiscript.weebly.com/ https://schmoll8.wixsite.com/magicavox
Latop: Geforce GTX 950M, Intel Quad Core i7, Windows 10, 8 Gigas, 2.4ghz
User avatar

Site Admin

Posts: 7436

Joined: Sun Nov 10, 2013 1:38 pm

Post Tue Feb 09, 2021 5:47 pm

Re: Vervette Fluid Sandbox...

Ah, in this case it's more like the "hidden" genius of javascript. Magical TypeArrays to have fields and methods that allow for wicked things such as automatically type conversion, or rather considering a buffer as this or that, depending on where it should go into. It's just insane. In fact, if anyone wanted to learn programming, they should stay miles and miles away from javascript, because it will ruin their expectations of what a language can do.
ON TOP OF THAT is the irony of it begin called "java"-script. Because Java is like the polar opposite of javascript. Java knows nothing, understands nothing, cannot think, cannot interpret, it's possibly the dumbest language ever, which can be a great thing, because as programmer you better smarten up hard before going into the stalinistic regime of Java. No type understands another type. You must tell it exactly what to do in exactly the way it could understand it. Java is my most hated language of them all, hands down. I love C++, because it's so wide open in comparison, but still you must have a good command, yet, your imagination can take you somewhere. Javascript has like this amazing puppy-dog attitude, being seemingly ready to do what you want it to do. Give just enough hints for it to get it and voila! And the strange layers of additional genius to which you can dig... it just doesn't cease to amaze me. Love it!
Here to help! :D
System Info: Mac mini, Apple M1, 8 Gb, Sonoma 14.5 - secondary: AMD Radeon RX Vega 10, AMD Ryzen 7 (2.3 Ghz), Windows 11
Taron.de | Twitter | Pinterest | YouTube
User avatar

Posts: 4830

Joined: Mon Mar 24, 2014 9:58 am

Post Tue Feb 09, 2021 6:24 pm

Re: Vervette Fluid Sandbox...

I put a little foot inside some times ago for the fun :) Javascript against Processing (java) is 5 times less speed ! So not for critical speed project... :geek:
I suppose that always works :beer: (just drag and drop an png image with a transparent background) :ugeek:
https://editor.p5js.org/Pilou/sketches/y1GHaBqyT
Is beautiful that please without concept!
http://moiscript.weebly.com/ https://schmoll8.wixsite.com/magicavox
Latop: Geforce GTX 950M, Intel Quad Core i7, Windows 10, 8 Gigas, 2.4ghz
User avatar

Site Admin

Posts: 7436

Joined: Sun Nov 10, 2013 1:38 pm

Post Tue Feb 09, 2021 6:49 pm

Re: Vervette Fluid Sandbox...

I am a little uncertain about what you're trying to say, Pilou, sorry. First of all, Javascript heavily depends on context, when it comes to speed. I have no doubt one can make a Node.js app fly a lot faster than javascript running in some browser. But the point is not so much speed, when it comes to the elegance or comfort of a language. At the end you can deploy something written in javascript to anything from browsers to even server side and you won't have t worry about distributing your own runtime environment. Java used to be like that many years ago, but today this advantage has gone away and it's a major pain in the ass to distribute java apps. Even the crossplatform aspect is all but gone. And while a javascript code may run on ever evolving environments, java itself is tied to its dreadful set of libraries, written by people, who likely don't know of each others existence- or so it seems- and there's little you can do about a better runtime environment. Too many layers one feels stuck in.

Amazing thing about javascript: Although it must be considered a rather high-level language, it feels like it lets you go fairly low and you quickly find a sense of freedom in there that is precious. It inspires creativity!
Processing is just a javascript library. I knew of it, but never bothered looking any deeper into it. I may have said this already, but I really dislike libraries. Thing is, those things evolve, because they have to, but then you have to catch up to their state of evolution and so you battle two strains of evolution: Theirs and Yours. If they screw up, you are screwed. What they have done wrong, you will do wrong. I'm sure this could become a funny list, but you get my point?
I love as much independence as I can get, and that can't ever be a whole lot, if you're hoping to stay cross-platform and compatible to various browsers and so on... but the maximum independence attainable is where I feel the most free.
I love being mad at my own stupidity and totally hate to be mad at that of others, haha. I tend to be more forgiving to others, which then would get me stuck.
Sooooo...
This is what I like: :PP :hyper:
This is what I hate: :tantrum: :shrug:
Here to help! :D
System Info: Mac mini, Apple M1, 8 Gb, Sonoma 14.5 - secondary: AMD Radeon RX Vega 10, AMD Ryzen 7 (2.3 Ghz), Windows 11
Taron.de | Twitter | Pinterest | YouTube
User avatar

Posts: 1098

Joined: Fri Jul 25, 2014 11:12 am

Post Tue Feb 09, 2021 8:57 pm

Re: Vervette Fluid Sandbox...

Taron wrote:Holy Shit, I KNEW IT! I knew it WAS trivial! :PP :hyper:
compress process goes...
var precompArray = new Uint8Array(imagePixels.buffer);
imageCompressed = pako.deflate(precompArray);

decompress goes...
var out = pako.inflate(reader.result);
imagePixels = new Float32Array(out.buffer);

TADAH! :lol: ...I mean, just how many things I had to roll through in order to realize that I could just do it like that and it's all good. :lol: :shrug:
Sometimes, really... I have no emoji that sighs...
ME HAPPY! :bounce:


That is what I hate about programming, some task takes hours/days to solve out and the result can be just few lines of code.. :) I think nobody who don't understand coding can understand.
My top programming language is C#. It took the best from C++ and if needed C++ can be used together.
JS is nice and powerful. Some task can be done very easily with ease but something is mad. These things still drives me crazy:
1 .undefined == null but undefined !== null
2. React handler: onClick={() => {function}}
User avatar

Site Admin

Posts: 7436

Joined: Sun Nov 10, 2013 1:38 pm

Post Tue Feb 09, 2021 9:13 pm

Re: Vervette Fluid Sandbox...

That's the thing about JS: you can choose your own style of coding!
Some things appear so outlandish, but the syntax and system allow it. What puzzled me was stuff like calling a function with arguments, which only get used in the return?! That's so bizarre, but also cool!
C# is Microsoft's translation of Java, actually. Initially Microsoft was using Java, but Oracle didn't approve and so they just went ahead and called it "C#". Since it heavily depends on libraries (both), it's mostly a matter of who writes those and for some reason Microsoft may have a leg up there, I don't know, but I don't know how C# is cross-platform? :shrug:

BUT: YES! Isn't that wonderful, when you wreck your brains for days, learn things you never cared about, search through half the web on an ever diversifying quest only to end up finding this ONE snippet you've been missing. Really, it too often is like pulling teeth. And StackOverflow so often has some insane "answers" that people actually approve of, because they may technically be correct, but they're completely over the top and redundant. Don't get me wrong, it's a "godsend", but you have to know that it's basically like a mine, such as a goldmine, and you find veins or traces of gold, but never the gold itself. That gold is in your head!
Here to help! :D
System Info: Mac mini, Apple M1, 8 Gb, Sonoma 14.5 - secondary: AMD Radeon RX Vega 10, AMD Ryzen 7 (2.3 Ghz), Windows 11
Taron.de | Twitter | Pinterest | YouTube
PreviousNext

Return to Community [feedback, bug reports, discussions, etc...]

Who is online

Users browsing this forum: No registered users and 5 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software