Toit v2.0.0
82 points by floitsch 3 days ago | 25 comments
draven 3 hours ago
The wikipedia page https://en.wikipedia.org/wiki/Toit is short but still gives a lot of context.
replyilvez 3 hours ago
Just a joking side note: switch n to t in the URL and you get article for food in Estonian: https://et.wikipedia.org/wiki/Toit
replyno_time 2 hours ago
>In February 2019, the company raised DKK 23 million (approximately US$3.5 million) in seed funding from Swedish venture capital firm Creandum.[4] Early versions required cloud registration to deploy code to devices.[5]
replyDNS blackhole the domain and run.
unsnap_biceps 2 hours ago
> The commercial cloud offering was later discontinued. Development of fleet-management tooling continued through an open-source project called Artemis, built on Supabase and PostgreSQL, which users self-host.[8]
reply> According to Denmark's Central Business Register, Toitware ApS ceased operating in 2024.[9] Development of the language continues as a community project on GitHub.
Seems unlikely to be a bait and switch at this point
thomascountz 3 hours ago
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.skrebbel 3 hours ago
Even after reading that (and more of the homepage) I have no idea what this is.
replyself 54 minutes ago
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.
replyjacobgorm 3 hours ago
The people behind Toit are the original people behind the V8 VM in Chrome. They know their stuff.
replyvanderZwan 3 hours ago
Those were it's creators, are they still involved after the company folded?
replyBecause if not, that might explain the lack of marketing around it.
Imustaskforhelp 3 hours ago
Also co-founding Dart. They definitely know their stuff.
replyjimbob45 2 hours ago
Dart should have enjoyed the popularity that TypeScript received. Tough to compete with Hejlsberg though.
replylatexr 17 minutes ago
I may be misremembering, but my recollection is that Dart was written off in large part because of Google. Distrust with them was already high as they were abusing their dominance with things like AMP, and people felt it was a bad idea to give them even more control over the web.
replyMrBuddyCasino 3 hours ago
They should write this prominently on their website. It doesn’t radiate trustworthiness/substance/reputation. Also performance and resource requirements should be prominent when targets are MCUs.
replymaxloh 3 hours ago
Here's a beginner tutorial for the language: https://docs.toit.io/language/toitversus
replyNice syntax. It looks like how we'd design programming if C had never existed.
add a/int b/int -> int:
return a + b
main:
print (add 2 3) // Prints 5.benrutter 2 hours ago
Looks interesting! I can't tell really from the docs the untended use case though. It says "scripts", but also " applications".
replyMost importantly though (/s), is this toit as in "roof" in French, toit as in "to it", or otherwise?
There's already another syntax example in the thread, but I want to point out the weirdest syntax I've seen yet: positional arguments look like posix command arguments:
https://docs.toit.io/language/beginner/lists-and-functions/#...
The name argument is positional here.