Lute: A Standalone Runtime for Luau

(lute.luau.org)

53 points | by vrn-sn 3 days ago

5 comments

  • vrn-sn 3 days ago
    Lute is a general-purpose, Node.js-style runtime for Luau (https://luau.org/) that just hit 1.0.0. It supports filesystem operations, networking, process management, cryptography, and a proper module system, backed by libraries like libuv, curl, and libsodium.

    The part we're most excited about: we've exposed APIs for manipulating Luau's syntax tree, so you can write code transformations directly against the language using Lute. This is especially useful if you're working with a large Luau codebase and want powerful tooling.

    The team's happy to answer questions about the implementation or design decisions!

  • hmokiguess 3 hours ago
    How does it compare to Lune[1]? I use Lune for scripts today

    [1] https://github.com/lune-org/lune

  • Heliodex 3 hours ago
    Congrats on the 1.0.0 release! Being able to write custom tooling in Luau using the Luau parsing APIs will be awesome. Hopefully it makes updating tools to use new Luau features easier – at the moment I have a workflow with a custom-built parser which I'd have to modify to support, for example, the new `const` declarations; having easy access (from scripts) to regularly-updated parser APIs is a big deal for a language that's moving as quickly as Luau is.
  • dhuan_ 2 hours ago
    well done! wouldn't it nice if something like this existed in Lua as well (or maybe it does and I haven't seen it yet)?

    I've built a data transforming tool powered by Lua[1] and would definitely like to benefit from an general purpose api/library like Lute.

    1: https://github.com/dhuan/dop

  • jjmarr 3 hours ago
    Why would I go with Lute over something like Python if I was starting a new project?
    • pphysch 3 hours ago
      Seems like mainly a way to write Roblox compatible applications that aren't locked in to the Roblox platform?
      • giancarlostoro 2 hours ago
        Not sure it even has to be Roblox compatible, but someone who writes Roblox code can take advantage of a familiar Lua variant.