Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
beariish
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
beariish
1y ago
I appreciate the followup here. The brainfuck interpreter isn't meant to be a benchmark notably, it's a naive implementation for the sake of the example. I did spot some poor code in the Bolt version of nbody that can be changed (
2.
▲
by
beariish
1y ago
It depends on your exact usecase, I'm not 100% sure what you're asking. There is some overhead for invoking the compiler on a per-script basis. If you're parsing once but running a script many times, Bolt provides some tools
3.
▲
by
beariish
1y ago
There's nothing like that right now, but it's absolutely something I want to explore in the future.
4.
▲
by
beariish
1y ago
Bolt's memory usage in most cases hovers right around Lua 5.4/Luau in my own testing, but maybe I should include a few memory benchmarks to highlight that more. It does notably have a higher memory overhead during compilation than
5.
▲
by
beariish
1y ago
Do you think approaching the way typescript does it for Bolt is a reasonable compromise here? Bolt already supports full-module renames like import math as not_math So supporting something along the lines of import abs as abs
6.
▲
by
beariish
1y ago
I did experiment with a few different dispatch methods before settling on the one in Bolt now, though not with tailcalls specifically. The approach I landed on was largely chosen cause it in my testing competes with computed goto solutions
7.
▲
by
beariish
1y ago
Bolt is not compiled ahead of time, it's bytecode interpreted just like Lua
8.
▲
by
beariish
1y ago
There's nothing stopping a library author from explicitly annotating return types wherever a stable interface is important, the idea is more for smaller functions or callbacks to make use of this. Perhaps I'll make the examples cl
9.
▲
by
beariish
1y ago
That's a good point, thank you. I've made a small edit to clarify.
10.
▲
by
beariish
1y ago
As of right now no - my primary target when developing this was realtime and games in particular since that's what I know best, but if there's a real target in embedded that's certainly something that could be explored.
11.
▲
Show HN: Bolt – A super-fast, statically-typed scripting language written in C
(github.com)
261 points
by
beariish
1y ago
|
95 comments
12.
▲
Show HN: Picomatch – A tiny C library for evaluating regular expressions
(github.com)
4 points
by
beariish
1y ago
|
0 comments