The OFFICIAL programming thread
-
This stuff is getting so meta:
WebAssembly started as a “JavaScript alternative for browsers”. The idea is to safely run high-performance applications compiled from languages like C/C++ or Rust in browsers. In the browser, WebAssembly runs side by side with JavaScript.
As WebAssembly is increasingly used in the cloud, it is now a universal runtime for cloud-native applications. Compared with Linux containers, WebAssembly runtimes achieve higher performance with lower resource consumption.
In cloud-native use cases, developers often want to use JavaScript to write business applications. That means we must now support JavaScript in WebAssembly. Furthermore, we should support calling C/C++ or Rust functions from JavaScript in a WebAssembly runtime to maximize WebAssembly’s computational efficiency. The WasmEdge WebAssembly runtime allows you to do exactly that.
JavaScript as the only browser language was too slow for some usecases and not as flexible as supporting multiple languages. They created webassembly to address the speed issue and open the door for having just about any language compile down to WASM and run in the browser. Now WASM has become the language (or target) of choice for cloud computing but JavaScript has a bunch of mind share and it great for scripting and certain use cases. So they created a JavaScript interpreter in WASM.
-
I’ve recently been kicking tires on the current best way to do something for a personal app and I was evaluating JavaScript runtimes. It’s been a couple of years since I’ve looked at this topic and, damn, the world moves on quickly.

Edit: the above is a meme so it’s necessarily limited. Zig is still beta and has some issues I don’t know if they can solve nicely around async. A more accurate statement would be “a more attractive language than Rust to me”.
-
I just went looking for info on using Unix Domain Sockets (UDS) in Rust and this was about half way down the first page of search results:
For a brief moment I felt an extra kinship with Tazz.
-
@Hog Haha. That’s good. Ever since I cleaned all that crap out of my smoker the results are 1000% better without any bitter taste. Never has rust but I keep it dry and out of the rain.
-
@Hog said in The OFFICIAL programming thread:
Shaders are a pain the arse to debug. Can’t set breakpoints; can’t print debugging values. You have to set a pixel to a color representing a value and and hope you can find it in the output.
It’s now 2023 anno Domini and I can’t believe the above is still a thing. I’m getting better at it but, oh boy. Little bugs that would take you seconds to find in any modern debugger sometimes take hours to resolve.
I mean, I get why it’s hard to build a debugger for code that runs massively parallel on a GPU up to millions of times per frame but, still, there must be smarter people than me who can work out how to make one.
-
I need to stop habitually answering questions on Reddit and wasting time. I read one this morning where the dude is like “I don’t understand X” about data warehouse architecture. It was a very basic question and should have been answered sufficiently by the source book he said he read. So I type out some examples of why it is the way it is and I am about to hit reply when I notice I am replying to a guy named TheCumCopter. Yeah, he is never going to get it and I just wasted 4 minutes.
-
@Gators1 said in The OFFICIAL programming thread:
I need to stop habitually answering questions on Reddit and wasting time. I read one this morning where the dude is like “I don’t understand X” about data warehouse architecture. It was a very basic question and should have been answered sufficiently by the source book he said he read. So I type out some examples of why it is the way it is and I am about to hit reply when I notice I am replying to a guy named TheCumCopter. Yeah, he is never going to get it and I just wasted 4 minutes.
And then you came back here where never a moment is wasted!
-
@Gators1 said in The OFFICIAL programming thread:
I need to stop habitually answering questions on Reddit and wasting time. I read one this morning where the dude is like “I don’t understand X” about data warehouse architecture. It was a very basic question and should have been answered sufficiently by the source book he said he read. So I type out some examples of why it is the way it is and I am about to hit reply when I notice I am replying to a guy named TheCumCopter. Yeah, he is never going to get it and I just wasted 4 minutes.
So you’re talking to Zep in another forum? That seems duplicate effort.
-
@Kilemall said in The OFFICIAL programming thread:
@Gators1 said in The OFFICIAL programming thread:
I need to stop habitually answering questions on Reddit and wasting time. I read one this morning where the dude is like “I don’t understand X” about data warehouse architecture. It was a very basic question and should have been answered sufficiently by the source book he said he read. So I type out some examples of why it is the way it is and I am about to hit reply when I notice I am replying to a guy named TheCumCopter. Yeah, he is never going to get it and I just wasted 4 minutes.
So you’re talking to Zep in another forum? That seems duplicate effort.
Nah, this was on Reddit, not Tiktok.
-
Can someone do this and train it with LOT posts? I am too lazy to watch a 5 hour video let alone do the programming.
-
@Gators1 said in The OFFICIAL programming thread:
Can someone do this and train it with LOT posts? I am too lazy to watch a 5 hour video let alone do the programming.
There are treaties against LOT derived AI.
-
@Kilemall said in The OFFICIAL programming thread:
@Gators1 said in The OFFICIAL programming thread:
Can someone do this and train it with LOT posts? I am too lazy to watch a 5 hour video let alone do the programming.
There are treaties against LOT derived AI.
Fuck the treaties! We will make billions!
-
@Gators1 said in The OFFICIAL programming thread:
@Kilemall said in The OFFICIAL programming thread:
@Gators1 said in The OFFICIAL programming thread:
Can someone do this and train it with LOT posts? I am too lazy to watch a 5 hour video let alone do the programming.
There are treaties against LOT derived AI.
Fuck the treaties! We will make billions!
Maybe as Bond villains.
-
@Gators1 said in The OFFICIAL programming thread:
Can someone do this and train it with LOT posts? I am too lazy to watch a 5 hour video let alone do the programming.
My favorite video creator does game dev tutorials that run between 30 seconds and 5 minutes. I love that guy. Five hours is a no from me.
-
Great line from Larry Wall, creator of Perl (which I’ve barely used) on Java:
“If 100 lines of Java code accomplishes a task then it looks like you’ve written 100 lines even though in a different language it might only take 5 lines. You can eat a one pound steak or you can eat 100 pounds of shoe leather and you feel a greater sense of accomplishment after the shoe leather but, you know, maybe there’s some downsides.”
-

I so want to reply, “You made all those names up, didn’t you?” But, sadly, Stack Overflow has no sense of humor
-
Learning new programming languages is somewhat like having been in a accident and having to learn to walk again (without the physical pain of course). Some languages are more familiar than others and you can get basic movement going again relatively quickly although it can take a long time to regain the finesse you had. Some languages are kind of familiar but have some alien ideas and just learning to move in them takes time and practice. They’re more frustrating but eventually you get there.
Learning Common Lisp is like having had an accident that involved a time machine and going back to the 1970’s. Except in another dimension. For some reason, in this dimension, learning to walk requires you to operate an 8 track tape deck, a rotary phone and a vintage wheel balancer - none of which you’ve used before. Oh, and everyone speaks some weird dialect of Esperanto. You kind of recognize bits and pieces but it’s largely alien.
-
It’s pronounced “lithp”.
-

-
This is why Indian videos are my favorite for coding advice… I thought this was a parody at the start.
