News for hackers. Stuff that matters.
Re:Toit v2.0.0 by Hamuko on Tuesday November 03, 2026 @04:07AM (#50349711)
Is there some kind of an advertising blurb for why you’d want to use Toit, especially for scripting? I think the only thing I saw was “a readable language”, but I’d probably consider Python more readable than it judging from the examples.
Re:Toit v2.0.0 by ricardobeat on Tuesday November 03, 2026 @04:58AM (#50350038)
Good luck running (micro)python on an ESP32.
Re:Toit v2.0.0 by qweqwe14 on Tuesday November 03, 2026 @05:43AM (#50350316)
Lua exists :)
Re:Toit v2.0.0 by floitsch on Tuesday November 03, 2026 @07:47AM (#50351363)
A few more bullet points to encourage readers to have a look at Toit:

- Faster than Python. Depending on the benchmark up to x10.

- Can be compiled to executables. Currently `-o` just takes an interpreter and attaches the bytecodes, but Kasper also started experimenting with native output.

- Cleaner base. Objects aren't just hashtables. This can be seen as a downside as well (making the language less flexible), but in my book it's a win.

- The `--named=value` syntax is just a winner :)

Re:Toit v2.0.0 by mkl on Tuesday November 03, 2026 @08:08AM (#50351531)
> The `--named=value` syntax is just a winner

The "--" seems so unnecessary though. Wouldn't "name=" be sufficient to signal a named parameter? Or maybe Toit has expressions that use "=".

Re:Toit v2.0.0 by floitsch on Tuesday November 03, 2026 @08:18AM (#50351623)
We probably could have made it work without the `--`. Coming from Posix, the `--` feels natural, and it also allows for code completion.