tl
fengari
tl | fengari | |
---|---|---|
54 | 24 | |
1,944 | 1,765 | |
1.9% | 0.8% | |
7.7 | 0.0 | |
3 months ago | about 1 year ago | |
Lua | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tl
-
Ravi is a dialect of Lua, with JIT and AOT compilers
it's based off MIR, does it have something to do with https://mlir.llvm.org/ ?
for typed lua, there is another effort https://github.com/teal-language/tl in addition to the mentioned typescript approach: https://github.com/andremm/typedlua
-
Lua Criticism Is Unwarranted
I had the pleasure of working with Lua 5.1 back in the late noughties. For me it's replaced Tcl whenever I want something I can configure above a C library. At the time I used it I found it quite nice but I'll also not forget the hours I wasted tracking down nil table corruptions which could have easily been caught by a type checker.
I had some hope that Luau https://luau-lang.org or Teal https://github.com/teal-language/tl would make things better but with the following example
function foo(x: number): string
- Why Fennel?
-
Algebraic data types in Lua (Almost) post
I wonder why the author doesn't use Teal [0] - a typed dialect of lua.
[O] https://github.com/teal-language/tl
-
Lua: The Little Language That Could
Check out Teal
-
What's the deal with Fennel in Neovim?
There is already https://github.com/teal-language/tl, which is typed Lua. I think fennel exists to serve a different niche-- personally I use it not for any type features; I just like the syntax better, and others may find certain features like the macro system useful.
- Using Lua with C++
- Teal – Type Hints for Lua
-
Using other languages
There's also some languages made to compile straight to Lua: - MoonScript is the most popular Lua wrapper - it's built to be more Python-like, featuring indentation-based scopes, function calls without parentheses, lambda syntax, list comprehension, and much more. - Yuescript is a modern update to MoonScript that adds more features (I haven't used it myself, so I'm not entirely sure exactly how it differs from MS). - Teal is a version of Lua that adds static typing for better code standards.
-
Bog – small, strongly typed, embeddable language
Terra and Nelua are both very different in goals than Teal. Teal is literally gradual types integrated into Lua keeping as many of Lua's idioms as possible (to a fault[1]). Terra and Nelua are both very metaprogrammable systems programming languages. Nelua's goals are primarily to soften C's rough edges, comparable to something like Nim.
There's another one you missed in Pallene[2]. But again, it's goal was to optimize the stack sharing involved in using the C API. It also adds types though and maintains Lua idioms as much as possible.
[1]: https://github.com/teal-language/tl/discussions/339
[2]: https://github.com/pallene-lang/pallene
fengari
-
Lua: The Little Language That Could
it should be possible, the article mentions https://fengari.io/ (a Lua VM written in JavaScript)
-
OmG jAVaScRiPt InSeCuRe. LuA bETtEr.
Check out Fengari or Lapis. Fun fact: itch.io is written primarily in Lua, and started by the same person who made Lapis and MoonScript.
-
Lua is the fourth-fastest growing language on GitHub
I was real excited to see these recently... have you tried any? https://fengari.io/ is the one I was most intrigued by.
-
How to embed lua in a JS webapp?
Hello, there is also fengari: https://fengari.io/
-
PyScript
Other languages have done that :)
Lua in the browser: https://fengari.io/
And then you can use that to run Fennel, a Lisp that compiles to Lua https://fennel-lang.org/
I think TypeScript also has a script you can include that lets you put your TS code in a special script tag, and it gets compiled in-browser.
-
Intro to PyScript: Run Python in your web browser
just use lua, it’s what should have been used for web scripting anyways
-
Upcoming interview with Roberto Ierusalimschy
Please stop this stuck in the mud nonsense. Anyone stumbling upon lua.org might think the project is dead already. The material is great, close to the best, but its presentation is pure shite. Not mobile friendly (what kinds of device do you think the majority of people in the Global South use?). We live in a world of code highlighting, none of that in PiL. We live in a world where Fengari allows Lua to run in the browser, does that make an appearance on lua.org, allowing users to immediately play with the language? Of course not! It's almost as if the Lua team is trying to push away potential users.
-
A First Look at PyScript: Python in the Web Browser – Real Python
why not use lua
-
I really like to think of PyScript as the “Minecraft of software development”
Just use lua https://fengari.io/
-
What can I create with Lua?
Definitely the most surprising use-case for Lua that I've seen is http://lua.space/webdev/why-we-rewrote-lua-in-js which discusses https://fengari.io/.
What are some alternatives?
luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua
pypyjs - PyPy compiled to JavaScript
OpenBBTerminal - Investment Research for Everyone, Everywhere.
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
packer.nvim - A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
emscripten - Emscripten: An LLVM-to-WebAssembly Compiler
rpi-open-firmware - Open source VPU side bootloader for Raspberry Pi.
lunatic - Lunatic is an Erlang-inspired runtime for WebAssembly
luaforwindows - Lua for Windows is a 'batteries included environment' for the Lua scripting language on Windows. NOTICE: Looking for maintainer.
wasm-libxml2 - A quick experiment to build and run libxml2 as a WebAssembly module.
pallene - Pallene Compiler
lua-cmake - Embed lua with CMake