Rosettea / Hilbish

🌓 The Moon-powered shell! A comfy and extensible shell for Lua fans! 🌺 ✨
https://rosettea.github.io/Hilbish/
MIT License
505 stars 22 forks source link

feat: midnight edition #314

Open TorchedSammy opened 3 months ago

TorchedSammy commented 3 months ago

Hilbish: Midnight Edition is a build of Hilbish which uses C Lua via a binding library instead of the natively Go written golua library. This means Hilbish might be able to use C Lua libraries and can be compiled with LuaJIT, which speeds up Lua code.

When this is implemented, Midnight Edition will just be a build tag to swap to it. It will have the Midnight Edition moniker everywhere the Hilbish name shows (so the version flag). There will also be an added hilbish.midnightEdition boolean to indicate if the build is Midnight Edition for plugins.

The standard edition, which is all native Go, will always be more supported than Midnight Edition.

Compiling

Midnight Edition can be compiled by running: go-task midnight

If you want to switch to LuaJIT, you can set the LUA environment variable, example: LUA=luajit go-task midnight

It is not recommended to change the version to anything that isn't either Lua 5.4 or LuaJIT, since Hilbish depends on Lua 5.4 support.

Basics

Functionality

Finishing Touches