Quickly scanned the programming guide - but wasn't able to find it. Did i miss a section?
Show HN: Bolt – A super-fast, statically-typed scripting language written in C
51–60 of 98 posts
Re: Show HN: Bolt – A super-fast, statically-typed scripting language written in C
#52I was quite excited by the description and then I noted that Bolt heavily relies on double floating point numbers. I am quite disappointed because this doesn't allow me to use Bolt in my context: embedded systems where floating point numbers are rarely supported... So I realized that I misinterpreted `embedded`.
Re: Show HN: Bolt – A super-fast, statically-typed scripting language written in C
#53Re: Show HN: Bolt – A super-fast, statically-typed scripting language written in C
#54FYI "the embedded scene" is likely to be interpreted as "embedded systems" rather than "embedded interpreters" even by people who know about embedded interpreters, especially since all the languages you give as an example have been attempted for use on those targets (micropython, lua, and even typescript)
Re: Show HN: Bolt – A super-fast, statically-typed scripting language written in C
#55Congrats! I think this could be quite useful for me. I noticed that `let`-declared variables seem to be mutable. I'd strongly recommend against that. Add a `var` keyword.
https://github.com/Beariish/bolt/blob/0.1.0/doc/Bolt%20Progr...
Re: Show HN: Bolt – A super-fast, statically-typed scripting language written in C
#56Function return type inference is funny but I don't think it's that great of a feature. It makes it harder for a library's consumer to know how to properly use a function, and it also makes it harder for the maintainer to not break backwards compatibility inadvertently. Anyway, I'm all for experimenting.
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 clearer to reflect the intention.
Re: Show HN: Bolt – A super-fast, statically-typed scripting language written in C
#57I like 99% of this, and the thing I don't like is in the very first line of the example: > import abs, epsilon from math IMHO it's wrong to put the imported symbols first, because the same symbol could come from two different libraries and mean different things. So the library name is pretty important, and putting it last (and burying it after a potentially long list of imported symbols) just feels wrong. I get that…
Re: Show HN: Bolt – A super-fast, statically-typed scripting language written in C
#58Re: Show HN: Bolt – A super-fast, statically-typed scripting language written in C
#59Re: Show HN: Bolt – A super-fast, statically-typed scripting language written in C
#60 ~ 10 times slower than luajit
~ 3 times slower than lua 5.4