Embeddable languages

Is there even any interesting development on this front?
Everyone is building their "better C" or "better C++" or yet another dynamic, slow, easy to use bloatlang on top of a million dependencies that is impossible to port.
But it seems like there are no projects than aim for the sweet spot something like Lua or Guile inhabits currently.

Unattended Children Pitbull Club Shirt $21.68

Yakub: World's Greatest Dad Shirt $21.68

Unattended Children Pitbull Club Shirt $21.68

  1. 2 months ago
    Anonymous

    my lang is embeddable in Go projects

  2. 2 months ago
    Anonymous

    what onion on MicroPython vs just cross-compiling C code for a Raspberry Pi Pico?

    • 2 months ago
      Anonymous

      I guess it is unfortunate that "embeddable" has multiple meanings.
      What I mean is language that can easily embed in others for easier scripting and such.

      my lang is embeddable in Go projects

      Based

      • 2 months ago
        Anonymous

        >I guess it is unfortunate that "embeddable" has multiple meanings.
        very much is. since this is such an uncharted territory anyways does anyone know a better term?
        > compost languages
        what about that?

  3. 2 months ago
    Anonymous

    i've been making a forward-chaining logic language that uses prolog syntax instead of (lisp (expressions))
    >But it seems like there are no projects than aim for the sweet spot something like Lua or Guile inhabits currently.
    there are thousands of codebases that fit the bill. making this shit isn't hard or even all that time consuming.

    • 2 months ago
      Anonymous

      Building an interpreted toy lang is not hard.
      Making something that is able to compete with e.g. LuaJit in terms of size, performance and easiness to embed? Name one

      • 2 months ago
        Anonymous

        high performance means writing assembly. end of story. if you're squeezing performance critical segments of a codebase into your embedded configuration language, i want nothing to do with you.
        >muh toy lang
        they're used all over the place in embedded, and across many other industries. every single shop i've worked in had their own language cooked up over the years. you don't need luajit which is an ostensibly terrible codebase to begin with. buggy, unreadable, disorganized. all for what? better performance on meme benchmarks? your memory usage is still astronomical which is what actually matters 99.9% of the time, and the platform support is virtually non-existent.

        in spaces where you actually have to give a shit about performance, you're counting instructions which means a reliance on simplicity. that's why these shops use lisps, forths, prologs, etc. because they're all so drop dead simple that you can actually understand how what you're writing translates to instructions without having to jump through a million hoops with disassembly dumps. the idea of a 40k line implementation is fricking absurd. use a real language for real tasks, moron. if you like luajit that's great. but this autistic qualifier you pulled out of your ass is stupid as shit, and the moment you stop being a nocode dipshit and actually touch grass you'll understand everything.

        • 2 months ago
          Anonymous

          >in spaces where you actually have to give a shit about performance, you're counting instructions
          see

          I guess it is unfortunate that "embeddable" has multiple meanings.
          What I mean is language that can easily embed in others for easier scripting and such.
          [...]
          Based

          >I guess it is unfortunate that "embeddable" has multiple meanings.
          >What I mean is language that can easily embed in others for easier scripting and such.

        • 2 months ago
          Anonymous

          OP says EMBEDDABLE languages you brain dead moron. who cares about your spiel on embedded bullshit? and I wouldn't use garbage collected trash like lisp for embedded shit either you fricking mong. if you're using anything other than C (or C++ if you're a poser) on that platform you need to have a nice day right now.

        • 2 months ago
          Anonymous

          >in spaces where you actually have to give a shit about performance, you're counting instructions
          see [...]
          >I guess it is unfortunate that "embeddable" has multiple meanings.
          >What I mean is language that can easily embed in others for easier scripting and such.

          No such thing as an area where performance is irrelevant.

  4. 2 months ago
    Anonymous

    the only embedded language that isn't shit is javascript or python.
    if you don't offer those, it's not worth using IMO.
    Sick of DSL fricks and your garbage boomer-era PLT. js and python aren't good either, but their semantics and use are near universal and understood by most.

    • 2 months ago
      Anonymous

      Python is an awful embedded language. Lua shits all over it.

      • 2 months ago
        Anonymous

        lua shits all over it how? python at least has a type system, ironically. Lua is a medoicre garbage language for idiots and is only used because it's that one interpreter everyone figured out how to shove into their shitware. It's better than some bespoke shit for every usecase, but it's still a middling garbage lang that belongs in the trash.

        • 2 months ago
          Anonymous

          You literally described python

    • 2 months ago
      Anonymous

      >isn't shit
      >javascript
      choose one

    • 2 months ago
      Anonymous

      >isn't shit
      >javascript

  5. 2 months ago
    Anonymous

    There was a cool lisp-like one that I saw on GitHub but is unfortunately likely abandoned. Link: https://github.com/rxi/fe . The main reason they never take off is because the use case for embedded languages is not as big as general purpose languages. They are mostly limited to scripting.

    • 2 months ago
      Anonymous

      >Link: https://github.com/rxi/fe .
      I wonder what happened guy/org had cool repos and a nice name+logo

  6. 2 months ago
    Anonymous

    all of these are ancient and some are not technically embedable, but rather sit on top of the core language generating code, but this is what i know:
    > tcl
    > flex
    > bison
    > embeded SQL (postgresql supports it)

  7. 2 months ago
    Anonymous

    i want to embed Lua-tan!

    • 2 months ago
      Anonymous

      the only good thing about lua is lua-tan

      • 2 months ago
        Anonymous

        nkds indeed

        [...]
        based, frick lua what a dogshit language

        hey buddy, that's my langwife you're talking about. she wouldn't be so cute and funny and perfect if she was designed differently.

        • 2 months ago
          Anonymous

          >hey buddy, that's my langwife you're talking about
          too late

        • 2 months ago
          Anonymous

          >that's my langwife you're talking about.
          but i had a great time watching her! yeah! ding-dong baby!

        • 2 months ago
          Anonymous

          your langwife has STDs and that why your like about her

    • 2 months ago
      Anonymous

      nkds indeed

      the only good thing about lua is lua-tan

      based, frick lua what a dogshit language

  8. 2 months ago
    Anonymous

    >like Lua or Guile
    /g/Lua
    https://gitlab.com/NalaGinrut/guile-lua-rebirth

  9. 2 months ago
    Anonymous

    There's Janet that is relatively new
    There are lots. Its just that lua does a great job already. What more could you want?

    • 2 months ago
      Anonymous

      would prefer if lua didnt have pretend oo garbage but at least you can ignore it

      • 2 months ago
        Anonymous

        I think most people do ignore it.
        It just shows up in examples a lot to show proof that "look, lua can do OOP too!" because for a long time in software, if you couldn't do OOP even in a jank way, you got ignored.
        99% of lua code in the wild doesn't have that stuff.

      • 2 months ago
        Anonymous

        I think most people do ignore it.
        It just shows up in examples a lot to show proof that "look, lua can do OOP too!" because for a long time in software, if you couldn't do OOP even in a jank way, you got ignored.
        99% of lua code in the wild doesn't have that stuff.

        The point is that you can make Lua as OO as you want it to be.

      • 2 months ago
        Anonymous

        it's not "pretend oo", it's prototypal inheritance, an academic excercise in generalization of oo. javascript has it too. oo is pretend prototypes.

  10. 2 months ago
    Anonymous

    Cyber looks pretty interesting
    https://cyberscript.dev/index.html

    • 2 months ago
      Anonymous

      >Cross platform.
      ?
      Aren't all scripting languages inherently cross-platform? The whole idea is that they don't need to be compiled, isn't it?

      • 2 months ago
        Anonymous

        It depend on its features. To print to the console you need to use different libraries, one for each operation system, for example.

    • 2 months ago
      Anonymous

      Looks nice and promising.
      Shit name though wtf

  11. 2 months ago
    Anonymous

    Its no panacea, we've tried different approaches. People still write shit code on average.

  12. 2 months ago
    Anonymous

    Just compile C to WebAssembly if you want an embeddable language.

    • 2 months ago
      Anonymous

      >wasm
      bloat
      https://00f.net/2023/12/11/webassembly-compilation-to-c/

  13. 2 months ago
    Anonymous

    godot has their godot script.
    if you can count qml, there is that.
    angelscript has good interoperability with c++.

  14. 2 months ago
    Anonymous

    There's Luau now, which was developed by Roblox.
    >https://luau-lang.org
    Better performance than normal Lua (not quite LuaJIT though), and adds a gradual type system.

    • 2 months ago
      Anonymous

      unironically looks good

  15. 2 months ago
    Anonymous

    Bash.

    • 2 months ago
      Anonymous

      ZSH

  16. 2 months ago
    Anonymous

    Did you miss the 90s/early 2000? we are where we see now because we realized that scripting languages are a meme

  17. 2 months ago
    Anonymous

    Beyond the strict ability of a language to be embeddable (interpreter that can be statically or dynamically linked to the main executable), what characteristics make an interpreter/VM a *good* embeddable language?
    low overhead fast compile time? thread safe? ability to use data structures of the main program? ability for the main program to use data structures of the interpteter? ability for the interpreter to use the memory allocator or GC of the main program? something else?

  18. 2 months ago
    Anonymous

    I mean, I've heard about Wren but is anyone really using it? Lua has near monopoly in games scripting, though I've seen some software use Python for plugins?? Wonder how that works. Some kid made a new one called Cyber and it looks good if just a memelang. Fast and inspired

    Honestly, I have come to love a lot from Lua, even the 1 based indexing, but I guess I miss separating the list and struct types instead of having "tables".

    • 2 months ago
      Anonymous

      >Lua has near monopoly in games scripting, though
      It doesn’t, at all. C# and Python are the most common.

Your email address will not be published. Required fields are marked *