Open rajsite opened 3 months ago
Yep this is a bug of it including much more built-ins than needed and not doing the best type tracking, should be fixed in next few weeks.
Couple related observations:
Well, there's not much optimization currently since that's not really the focus right now. In the future such code should compile again to reasonable sizes.
Still not amazing but the same code now compiles to 74307 bytes instead of the huge size of before.
Maybe a custom font with built-in syntax highlighting will help with rendering large output a bit. 🤯 Need more porffor wasm in my fonts. 🔥
The current fibonacci example on
https://porffor.dev/
with content:Compiles out to 323265 bytes.
If I break out some asm.js ideas buried in the back of my head and tweak it like:
Compiles out to 341 bytes.
Seems like compiled output size would be interesting to track as 262 compliance goes up.