logoalt Hacker News

roblh • today at 1:59 PM • 1 reply • view on HN

Looks neat, it checks basically every box for desirable features from modern languages all in one. What about the age old question of function colouring? Whats the async story here, and between that and effectful functions, are you not setting yourself up for potentially 4 different colours? It seems like the effect functions would be likely to infect everything all the way up in a lot of different types of programs. But maybe there’s a more structural solution to that that I’m not aware of after just a glance.


Replies

rtfeldman • today at 2:14 PM

The short answer is that it's like Go - Roc's effectful functions can be "silently nonblocking," so they can have the runtime characteristics of async without having to label functions as async (or call them with await).

That's why both Go and Roc are able to be competitive with languages that have async/await on webserver throughput benchmarks!