News for hackers. Stuff that matters.
Re:Toit v2.0.0 by thomascountz on Tuesday November 03, 2026 @02:49AM (#50349241)

   Toit is a language for writing scripts on your computer and applications on your ESP32. A readable syntax, an efficient runtime, and tools that work together.

   Free and open source. Maintained by volunteers.
Re:Toit v2.0.0 by skrebbel on Tuesday November 03, 2026 @02:53AM (#50349258)
Even after reading that (and more of the homepage) I have no idea what this is.
Re:Toit v2.0.0 by harshreality on Tuesday November 03, 2026 @03:04AM (#50349318)
The docs -> "get started" page explains it.
Re:Toit v2.0.0 by self on Tuesday November 03, 2026 @04:38AM (#50349904)
Think of it as a runtime + scheduler that you deploy programs to ESP32 devices. It gives you the ability to run multiple programs simultaneously (with isolation) and remote updates. The language compiles to bytecode; the developers have lots of experience writing VMs for constrained devices; see https://www.theregister.com/software/2004/07/27/forgotten-la... for something that predates V8 and Dart.
Re:Toit v2.0.0 by Rohansi on Tuesday November 03, 2026 @06:02AM (#50350447)
You get almost all of that with the more common language options too (MicroPython, NodeMCU/Lua, Espruino/JS). What makes this custom language better?
Re:Toit v2.0.0 by floitsch on Tuesday November 03, 2026 @06:14AM (#50350542)
We looked at these when we started. The problem with them is that they weren't designed with constrained resources in mind and it shows. For example, objects are hash tables and method calls are thus expensive. An obligatory top level execution makes startup slow, ...

If you have a bigger machine you can optimize some of this (V8), but these optimizations typically need memory and/or a JIT. (And Python struggles to optimize even on stronger machines).

By starting from scratch (with what we learned from V8 and Dart) you can design something that feels similar but is much cleaner and faster to run.

Re:Toit v2.0.0 by vanderZwan on Tuesday November 03, 2026 @06:20AM (#50350598)
Tangent: what an appropriate username :)