logoalt Hacker News

Roc version 0.1.0, eight years in the making

106 points • by DrDeadCrash • today at 12:15 PM • 11 comments • view on HN

Comments

oDot • today at 1:02 PM

I'm the developer behind the screenwriting software mentioned in the post.

Roc has been so pleasant to use considered it's still so early.

I've read elsewhere a comment by Richard where he said that naive programming in Roc should result in fast code. That is very true. I basically enforce software design and architecture that allow for speed, and I don't have to worry about finagling the language into running fast.

It's very well thought out.

As a result Bliss Writer is correct and stable software, even in beta. I have a large suite of E2E tests that spin up a real TUI and they almost never fail.

Who knew you could have the correctness of FP and speed.

hobo_mark • today at 2:13 PM

Briefly hoped this was https://roc-streaming.org/

sondr3 • today at 2:09 PM

Maybe I should check this out for Advent of Code this year, would be fun to compare against Haskell which I usually use.

gdotdesign • today at 1:15 PM

Roc seems to have a pretty good version of error handling I've seen so far: https://roc-lang.org/docs/main/langref/errors/

Basically you can handle the errors you want to handle and propagate everything else upstream because the error value is a union of all propagated errors. In other (typed) languages you either need to handle all errors or map the different types into a single one.

roblh • today at 1:59 PM

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.

➕ show 1 reply
mcc1ane • today at 1:43 PM

Unrelated to Rocq (https://rocq-prover.org/), formerly named Coq.

➕ show 1 reply
dtdeb2 • today at 1:04 PM

Congratulations. Lots in there for a 0.1! I hope Roc gathers serious momentum.

cptmurphy • today at 2:10 PM

Why there are no managed typed effects? Only naming functions by convention

➕ show 1 reply
brainzap • today at 2:10 PM

create a new language but keeping the pipe characters, is a mystery to me