Fennel
lua-languages
Our great sponsors
Fennel | lua-languages | |
---|---|---|
90 | 13 | |
2,281 | 555 | |
- | - | |
9.1 | 3.9 | |
6 days ago | 14 days ago | |
Fennel | ||
MIT License | Mozilla Public License 2.0 |
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.
Fennel
-
Pluto, a Modern Lua Dialect
Eh it's not just luajit and luajit didn't create that problem either. It's a symptom of lua actually succeeding at its design goal of being easily embedded as an extension language. A significant number of incompatible runtimes are more popular than the most recent puc lua, including I believe the older official lua 5.2 released in 2011.
I've done a fair bit of professional lua development and I don't think I've ever written standalone up-to-date puc lua except maybe for some tooling & scripts. It's such a small language and used in such a way that the runtime, distribution method, and available APIs have much more impact on your use (and compatibility) than the version.
Virtually everyone shipping a lua environment is also shipping changes to it that make it a unique target, if only extensions to the standard library. This is why I think syntax layer-only approach like fennel's is the correct choice for improving on lua. It mirrors lua's runtime semantics exactly, and allows you to access the implementation peculiars on their own terms and so can just be run on time of any lua system.
https://fennel-lang.org
-
LÖVE: a framework to make 2D games in Lua
Just learned about https://fennel-lang.org/ , could have probably used that as well to avoid Lua.
-
The Bipolar Lisp Programmer
> I’m positive that there is a Lispy language out there (actually in existence, or the aether) that is appropriate for embedded work, but the constraints of the target make it difficult to envision.
Perhaps Fennel* fits the bill?
* https://fennel-lang.org/
-
The Future of the Vim Project
I've also seen neovim plugins written in fennel [0], so if you want something lispy, that's possible now.
[0]: a Lisp that compiles to Lua, https://github.com/bakpakin/Fennel
- Qual a linguagem que vocês mais gostam de programar?
- Can I use elixir as the scripting language of my game engine?
-
TimL: Clojure-like Lisp dialect that runs on and compiles down to Vimscript
Something similar: Fennel (https://fennel-lang.org/) is a lisp that compiles into Lua, which nvim can use as plugins, so you can write nvim plugins in a lisp. Aniseed (https://github.com/Olical/aniseed) makes this really easy.
-
Announcing automation-service: write and schedule home automation scripts in Lua
If you want a more FP language on the Lua runtime, you might be interested in Fennel. I wrote a post about adding Fennel compiler to a hslua interpreter a while back, which might be useful for you.
- 916 Days of Emacs
-
What's your opinion on Lua programming language?
There's fennel if you're a fan of LISP syntax. I like embedding lua because it's light and easy and doesn't re-engineer itself every six months like python; but I agree, the lua syntax certainly is fugly.
lua-languages
-
Why Fennel?
This post inspired me to look for an ML-like language that compiles to lua and I found this useful list: https://github.com/hengestone/lua-languages
-
Using other languages
There's a complete list of languages that compile to Lua available here: https://github.com/hengestone/lua-languages
-
How should i make a lua-based programming language?
There are a ton of different ways to do this but you haven't given enough information to give useful advice. What kind of language do you want to make? "as a module of smth else" doesn't really mean anything. https://github.com/hengestone/lua-languages
-
Researching Lispy Neovim
There's also gpanders/nvim-moonwalker, which advertises Fennel in it's readme but works for any x->lua language you return the lua code for, ie: teal, moonscript, uh... others?
-
Lang Lua
I went on a several-weeks-long fact finding mission (the longest of its kind I've ever done in my 10 years as a professional software developer).
The option that won was to write all business logic (a few thousand lines of code) in Lua, then write the GUI in each platform's native language+ui-library combination and re-use the same business logic by embedding Lua.
Another option that made the shortlist was using Haxe instead of Lua, but after several weeks, it became clear that that was a bad idea, and with Lua, the developer experience is now so much better.
I definitely plan on continuing to use Lua as my main programming language.
This comes after 20 years of having python as my main programming language because I'm displeased with feature creep and bloat on python. With lua, I find that I barely miss any features/abilities from the vastly more complex python while the simplicity of lua means my code gets to "go places" where python can't go.
With lua, you find casual implementers making fully compatible alternative implementations (e.g. NeoLua for C#, Luna for Java, fengari for JavaScript, ...) With Python, alternative implementations seemingly just can't keep up with the pace at which CPython is introducing unnecessary new features and CPython-compatbility is de-facto the only meaningful python standard there is. Jython and IronPython would make the platform so much more appealing, but they appear dead in the water. Python implementations for the browser pop up every couple of years only to quietly disappear again.
What's more: Once you've settled on Lua as am embedding language, developers of Lua logic are free to use not just Lua, but they can pick from a host of cool transpile-to-Lua languages [1].
[1] https://github.com/hengestone/lua-languages
-
Hello i am new. Is there a way to use another language than lua for modding?
However, there are many languages to which this doesn’t apply (before Fennel I’ve tried to write Minetest mods in Haxe without success).
-
What do you think about MoonScript?
Maybe most of them are also small projects, but there are a lot of projects that compile other languages to Lua: https://github.com/hengestone/lua-languages .
-
Luau Goes Open-Source
Doubtful, but there is TypescriptToLua: https://typescripttolua.github.io/
Here's a whole list of languages that compile to Lua (many of them statically typed): https://github.com/hengestone/lua-languages
- Python and Lua (2019)
-
Has anybody written Neovim config in Typescript, and transpiled it to Lua?
That's just because there are lots of lua transpilers. https://github.com/hengestone/lua-languages
What are some alternatives?
janet - A dynamic language and bytecode vm
luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua
urn - Yet another Lisp variant which compiles to Lua
LuaJIT - Mirror of the LuaJIT git repository
nvim-lspconfig - Quickstart configs for Nvim LSP
TypeScriptToLua - Typescript to lua transpiler. https://typescripttolua.github.io/
Lua-RTOS-ESP32 - Lua RTOS for ESP32
benchmarks - Some benchmarks of different languages
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
vim9jit - a vim9script -> lua transpiler (written in Rust)
webassembly-lua - Write and compile WebAssembly code with Lua
ts-to-lua-test - A little experiment using the Typescript to Lua transpiler on a function