Roc version 0.1.0, eight years in the making

DrDeadCrash 459 points 123 comments November 30, 2026
rtfeldman.com · View on Hacker News

Discussion Highlights (20 comments)

oDot

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.

dtdeb2

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

gdotdesign

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.

mcc1ane

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

roblh

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.

sondr3

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

brainzap

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

cptmurphy

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

hobo_mark

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

stingraycharles

Reminds me a lot of Elixir actually, which I really enjoyed but was, in the end, not fast enough. The syntax looks friendly. Does it have multiple dispatch for functions based on arguments? I always loved how easy that was to do in Haskell and Erlang/Elixir, and missed it in languages like Clojure.

tarr11

The timing of this is interesting to me. I have always been a fan of Elm. I have been building an app platform on top of Rust for a few months, and have run into a series of problems and I sometimes wish I could use something more purely functional such as this. It offers a lot of guarantees that I want such as memory safety and side-effect-free code, and have had to try and build myself (probably poorly) in my own thing. I am also glad to see to see that this language has addressed native code in a more robust way than Elm https://www.roc-lang.org/docs/main/langref/platforms/ Looking forward to trying this out and congrats to Evan and team on the release

ahf8Aithaex7Nai

I'm still pretty upset about Elm, and I'm not sure if that means I should avoid Roc or give Roc a try.

dzonga

rich is a nice guy. language makers called rich are nice people. elm is where I learnt functional programming - concepts were easier to grasp for someone like me compared to oop. sadly now with llms the art of programming languages might be forgotten since llms now write all the code n review it :(

Imustaskforhelp

Kind of love the fact that Roc is fast,memory safe and compiles really fast. This sort of combination is probably gonna take some developers. I have definitely heard of rust's compile time speed being a bottleneck in many aspects. I want to know how to build cross-platform (preferably android,iOS as well with the normal linux,macOS and windows)applications with roc. I just want something where I can easily and fastly iterate upon creating cross-platform applications. Waiting for rust to finish was a real issue that I sort of observed during one of my tinkering experiments. Another thing that I am thinking right now is one Hackernews comment[0] that I had seen sometime ago which talked about having an android application (I think written in python), and they can basically change the code live and it will automatically reflect. I imagine that if roc is fast-enough, some sort of live development system could also be created. Overall, I think that if AI can rewrite code or start writing code from scratch in almost any language good enough, then there are lots of experiments which can be conducted at scale which previously were not so feasible. Though one might ask what's the point as to the rewrite, I think that some of the features roc provides could be interesting to many sort of projects. Also the language just looks elegant to me and more approachable than rust and C/C++ (from my first glance), so kudos for making a fast (functional) language which looks like something that I want to use myself! [0]: https://news.ycombinator.com/item?id=50678306

agumonkey

morphic teams papers https://morphic-lang.org/publications.html in case people are curious about roc influences

esafak

1. Do LLMs write it well? 2. What are the suggested substitutes for OOP idioms like interfaces?

crowdhailer

I've been following Roc quite closely while I build (EYG lang) another functional language for my own use. I'm super impressed with the performance results they share. I thought that would be a distraction while developing. And maybe it was as it took 8 years. I don't love the result of purity tracking rather than a full effect system. I was quite enamored with proper effect tracking and have labeled effects in EYG. I think my holiday hacking might have to be try something real in Roc and see if I learn to love this approach to effects

ylisav

There is a special place in my heart for people who work on hard software tech such as programming languages. Especially in times of AI and slopification.

frizlab

Sad this is probably one of the last projects we’ll see that are handcrafted and made with love instead of machines…

Fervicus

I have been keeping an eye on this language. Maybe it's time to dive into it and give it a proper try. Any recommendations for good learning resources?

Semantic search powered by Rivestack pgvector
4,908 stories · 45,036 chunks indexed