Re:Berry Script: lightweight embedded scripting language for...
by 90s_dev on Tuesday July 08, 2025 @09:16AM
(#44499676)
This seems to have almost the exact same feature set and use-case as Lua. How does it compare in performance? I doubt it can be faster than Lua 5.5
[ Parent
| on HN ]
Re:Berry Script: lightweight embedded scripting language for...
by sampullman on Tuesday July 08, 2025 @09:22AM
(#44499728)
It advertises interpreter size and RAM requirements front and center on the homepage, so I assume that's the main draw.
I'm not super familiar with embedded Lua but I believe it to require at least an order of magnitude more RAM and codespace than this, even without float support.
For my money, Berry is still a bit heavy. On a cheap M0 I'd rather have something with about half the required memory.
Re:Berry Script: lightweight embedded scripting language for...
by 90s_dev on Tuesday July 08, 2025 @11:07AM
(#44500719)
> The Berry interpreter-core's code size is less than 40KiB and can run on less than 4KiB heap
I did not see that on the front page. Thanks for pointing it out.
My mind shut down about 49 days ago.
Re:Berry Script: lightweight embedded scripting language for...
by 90s_dev on Tuesday July 08, 2025 @09:19AM
(#44499707)
Oh, they say it was inspired by Lua. So it's more like Wren I guess, but probably less performant than Wren too[1]. And less powerful than Lua since Lua metatables are half magic half genius. Still, I'd like to see a benchmark like this.