| ▲ | Roc version 0.1.0, eight years in the making(rtfeldman.com) | |||||||||||||||||||||||||||||||
| 212 points by DrDeadCrash 4 hours ago | 35 comments | ||||||||||||||||||||||||||||||||
| ▲ | oDot 3 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||
| ▲ | crowdhailer 13 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||
| ▲ | gdotdesign 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | tarr11 an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | stingraycharles 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | dtdeb2 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Congratulations. Lots in there for a 0.1! I hope Roc gathers serious momentum. | ||||||||||||||||||||||||||||||||
| ▲ | roblh 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
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 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Maybe I should check this out for Advent of Code this year, would be fun to compare against Haskell which I usually use. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | agumonkey 41 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
morphic teams papers https://morphic-lang.org/publications.html in case people are curious about roc influences | ||||||||||||||||||||||||||||||||
| ▲ | mcc1ane 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Unrelated to Rocq (https://rocq-prover.org/), formerly named Coq. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | dzonga an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
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 :( | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | ahf8Aithaex7Nai an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
I'm still pretty upset about Elm, and I'm not sure if that means I should avoid Roc or give Roc a try. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | hobo_mark 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Briefly hoped this was https://roc-streaming.org/ | ||||||||||||||||||||||||||||||||
| ▲ | esafak 22 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
1. Do LLMs write it well? 2. What are the suggested substitutes for OOP idioms like interfaces? | ||||||||||||||||||||||||||||||||
| ▲ | Imustaskforhelp an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
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! | ||||||||||||||||||||||||||||||||
| ▲ | cptmurphy 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Why there are no managed typed effects? Only naming functions by convention | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | brainzap 2 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||
create a new language but keeping the pipe characters, is a mystery to me | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||