this post was submitted on 05 May 2025
71 points (93.8% liked)

Programmer Humor

23119 readers
745 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/29156476

Aborted VM rule

top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 33 points 4 days ago

In the computer. Straight up 'virtualising it'. And by it, let's just say. My pingus.

[–] [email protected] 9 points 4 days ago

Ah, VMs, compilers and language development my loves..

I remember trying to write a Lua BC VM in rust. That went as well as you can imagine lol. Turns out, the documentation was very scarce and i had to use some PDF that was pretty much the best possible documentation you can get. Fun times.

[–] [email protected] 5 points 4 days ago (1 children)

Literally have a dozen other tabs open about how to embed a WASM engine into my Rust game. At least I'm not (currently, at this time, right now) writing my own language or trying to embed a prolog engine.

[–] [email protected] 3 points 3 days ago (1 children)

I think wasmtime should work. It works for me in D using the C API and a high-level wrapper.

[–] [email protected] 2 points 3 days ago

Ooh, I'd been looking at wasmer but wasmtime looks easier and more appropriate. Thanks for the suggestion!

Also wow, a D programmer in the wild! I used to really like that language before I got into Rust (my beloved).

[–] [email protected] 5 points 4 days ago

In the middle of developing my own high-level binding for wasmtime in D, I had the thought of repurposing all that XML lexer thing into JIT compiling Lua (which was my first candidate for a scripting engine, until it became apparent how much the community views integers as a "red haired stepchild"), but instead I wrote yet another SDLang implementation, this time with a simple but proper DOM (not as overcomplicated as the standard XML DOM, but supports comments).

[–] [email protected] 3 points 3 days ago (2 children)
[–] [email protected] 3 points 3 days ago* (last edited 3 days ago) (1 children)

real answer: dead project, too ambitious yet redundant with existing solutions.

In this context, a VM is like NodeJS or JVM.

[–] [email protected] 1 points 3 days ago (1 children)

I'm still confused about the context. I'm assuming "VM" doesn't mean "virtual machine" in this case? Or maybe it does with a different meaning?

Idk im just an IT guy, not a web developer

[–] [email protected] 6 points 3 days ago

Yes, it means "virtual machine", but not the kind you're thinking of.

This isn't like VMware Workstation, this is more like the Java VM or the Dalvik VM, it's a virtual execution environment for a specific purpose.

[–] [email protected] 3 points 3 days ago

remove child from parent using fork