New ask Hacker News story: Ask HN: Creating a language/runtime for fun, is this idea dumb or not

Ask HN: Creating a language/runtime for fun, is this idea dumb or not
2 by hot_gril | 1 comments on Hacker News.
I was thinking of writing a language/runtime on top of Golang for fun and self-education. It'd be interpreted and use an event loop, sorta like JS except with opposite defaults: every function is async unless otherwise marked sync. A lot of built-in stuff like math would be sync, and it'd warn you if the event loop is spinning very fast (meaning you should probably paint more stuff as sync). No strong reason for using Golang other than it's the one sorta popular language I've never used, so I'd get to learn it. But I don't want to do a project that's pointless even in theory. For applications with lots of blocking I/O, I feel like an event loop can be more efficient than Golang greenthreading. Does anyone want to talk me into or out of this?

Comments