I have some exciting news for the future of Makko! Though, I wanted to know the ...
Nelson @nelson@shrimp.starlightnet.work
I have some exciting news for the future of Makko! Though, I wanted to know the community's reception to these new ideas, this is going to be the last big feature we will add to Makko, all other things may be implemented as separate software that plugs into Makko, or be simple bug fixes to our existing features.
Here's the pitch: Whenever you write something like
It would use Luau, which is Roblox's hard rewrite of Lua (I know, I know, sounds bad, but it's actually got tons of love by the open source community!) which allows each script to be extremely sandboxed and also be quite a lot faster than regular Lua while being much safer and more portable than LuaJIT.
We also wanted to bundle Fennel, a Lisp-like dialect for Lua, as well as considering to make Makko automatically offload the precompilation of scripts to other programs, using a system very similar to the callbacks, essentially giving us Typescript, Fennel, and Moonscript support for essentially free.
What has concerned me, though is actually something different that has been going on, Luau makes the Makko binary twice as big (which... is just 800kb, but you know, gross.) and might slow down the process considerably (still by minuscule margins, but still gross) when the post-processing is enabled for every file unless we re-engineered things a lot.
I want to know your opinions! I seriously do not want this feature to be a deal breaker for anyone. :)
Here's the pitch: Whenever you write something like
<mk-clock timestamp="1786649954"></mk-clock>, it would go check for something like widgets/clock.lua, which implements a DSL that lets you programmatically describe what to replace that custom tag with, like this:return function(attributes, content)
return div {
class = "my-clock",
p(os.date("%Y-%m-%d %H:%M:%S", attributes.timestamp)),
table.unpack(content),
}
endIt would use Luau, which is Roblox's hard rewrite of Lua (I know, I know, sounds bad, but it's actually got tons of love by the open source community!) which allows each script to be extremely sandboxed and also be quite a lot faster than regular Lua while being much safer and more portable than LuaJIT.
We also wanted to bundle Fennel, a Lisp-like dialect for Lua, as well as considering to make Makko automatically offload the precompilation of scripts to other programs, using a system very similar to the callbacks, essentially giving us Typescript, Fennel, and Moonscript support for essentially free.
What has concerned me, though is actually something different that has been going on, Luau makes the Makko binary twice as big (which... is just 800kb, but you know, gross.) and might slow down the process considerably (still by minuscule margins, but still gross) when the post-processing is enabled for every file unless we re-engineered things a lot.
I want to know your opinions! I seriously do not want this feature to be a deal breaker for anyone. :)