Remix.run Logo
vrighter 4 hours ago

It's a runtime, not a lua interpreter/jit.

The first sentence in its readme is the following: "Astra is a web server runtime for Lua (5.1-5.4), Luau and LuaJIT written in Rust with native support for Teal."

debugnik 3 hours ago | parent | next [-]

The interpreter/jit has traditionally been considered part of a dynamic language runtime, arguably the major part, before JS-brained companies started to call their every repackaging of V8/JSC a runtime (which is technically correct but only considering part of them is off-the-shelf).

andsoitis 4 hours ago | parent | prev | next [-]

> It's a runtime, not a lua interpreter/jit.

Would you say the Lua interpreter is also a Lua runtime?

vrighter 4 hours ago | parent [-]

the lua interpreter by itself is similar in scope to freestanding c. You can do anything, but you have to do everything. Lua doesn't come with much. Just some very basic file io (not even including listing files). Stuff that embeds lua is supposed to provide a runtime for lua programs to actually interact with.

andsoitis an hour ago | parent [-]

> Lua doesn't come with much. Just some very basic file io (not even including listing files)

Don’t most people simply use the LuaFileSystem library for that? https://github.com/lunarmodules/luafilesystem

I think you (and the project) are using “runtime” when what you really mean environment.

4 hours ago | parent | prev [-]
[deleted]