• Hellfire103@lemmy.ca
    link
    fedilink
    English
    arrow-up
    33
    ·
    2 days ago

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

  • fxomt@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    9
    ·
    2 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.

    • setVeryLoud(true);@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 day ago

      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
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        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

        • setVeryLoud(true);@lemmy.ca
          link
          fedilink
          arrow-up
          5
          ·
          1 day 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.

  • CodexArcanum@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 day ago

    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.

      • CodexArcanum@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day 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.worldOP
    link
    fedilink
    arrow-up
    4
    ·
    2 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).