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

Programmer Humor

23127 readers
1332 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
[–] hellfire103@lemmy.ca 34 points 4 days ago

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

[–] fxomt@lemmy.dbzer0.com 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.

[–] codexarcanum@lemmy.dbzer0.com 5 points 3 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.

[–] ZILtoid1991@lemmy.world 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.

[–] codexarcanum@lemmy.dbzer0.com 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).

[–] ZILtoid1991@lemmy.world 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).

[–] verstra@programming.dev 3 points 3 days ago (2 children)
[–] isVeryLoud@lemmy.ca 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.

[–] Lv_InSaNe_vL@lemmy.world 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

[–] isVeryLoud@lemmy.ca 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.

[–] isVeryLoud@lemmy.ca 3 points 3 days ago

remove child from parent using fork