- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
cross-posted from: https://lemmy.world/post/29156476
Aborted VM rule
In the computer. Straight up ‘virtualising it’. And by it, let’s just say. My pingus.
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.
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.
I think wasmtime should work. It works for me in D using the C API and a high-level wrapper.
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).
ELI5?
real answer: dead project, too ambitious yet redundant with existing solutions.
In this context, a VM is like NodeJS or JVM.
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
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.
remove child from parent using fork
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).