To smooth/flatten the Roc learning curve, what do you you think about supplementary documentation containing a comparison table for how various simple Roc expressions would be written in other programming languages? (I'm afk right now, so I can't effectively type up examples)
Absolutely :100:
Somebody did a comparison for Elm/Roc/Haskell a long time ago, perhaps someone remembers who made that.
It would be nice to expand that with python etc.
I guess a big decision would be which languages we want to compare against...
How about:
C Clojure Elm Haskell Lua Python Rust TypeScript?
(2 FPs, 2 scripts, 2 systems, 2 webs)
That would get really noisy
Probably want direct 1v1 comparison docs for a few languages of interest. Kinda like what we have with Elm already?
Though expanded with a table of statements for reference.
Or in some languages maybe just the table of statements if we don't want to write up a full tutorial
I feel like it would be instructive to see (in one place) a broader view of where Roc draw inspiration from, with some syntax being more systems-y and some being more FP-y.
However, I agree that a 9-column table is noisy.
Maybe if that list of 8 above can be gracefully culled to 3ish, maybe such a broad view is more viable.
However, I agree that it would be nice to have a standalone doc for each of the above 8, with at least just a table like this one: https://github.com/rtfeldman/roc/blob/trunk/TUTORIAL.md#operator-desugaring-table (except where the two columns are Roc and LangX.
Perhaps something like
language_comparisons/Roc_vs_C.md
language_comparisons/Roc_vs_Clojure.md
...
language_comparisons/Roc_vs_TypeScript.md
(...and then perhaps all documentation-y .md files should be moved into a docs/-like top-level directory? That can be a later discussion.)
Anton said:
Absolutely :100:
Somebody did a comparison for Elm/Roc/Haskell a long time ago, perhaps someone remembers who made that.
It would be nice to expand that with python etc.
I believe that would be @Mario
Here it is https://fptransforms.netlify.app/transformations.html (source https://github.com/supermario/fptransforms)
Thanks @Martin Stewart :)
Last updated: Jun 16 2026 at 16:19 UTC