{
  "url": "https://rtfeldman.com/roc-0.1.0",
  "title": "Roc version 0.1.0, eight years in the making",
  "leadImage": "https://rtfeldman.com/assets/showcase/joy-youtube.jpg",
  "wordCount": 6968,
  "readingTimeMinutes": 31,
  "cacheStatus": "HIT",
  "markdown": "# Roc version 0.1.0, eight years in the making\n\nNovember 30, 2026\n\nAfter eight years of development, the [Roc programming language](https://roc-lang.org/) has its first numbered release: [version 0.1.0](https://www.roc-lang.org/install/)!\n\nThere are too many contributors to thank for all their incredible work on the road to this milestone, but I at least want to mention (in alphabetical order) [Agus Zubiaga](https://github.com/agu-z), [Anthony Bullard](https://github.com/gamebox), [Anton-4](https://github.com/Anton-4), [Aurélien Geron](https://github.com/ageron), [Ayaz Hafiz](https://github.com/ayazhafiz/), [Brendan Hansknecht](https://github.com/bhansconnect), [Brian Carroll](https://github.com/brian-carroll), [Folkert de Vries](https://github.com/folkertdev), [Hannes](https://github.com/hasnep), [Jack Scully](https://github.com/GW-Jack), [Jared Ramirez](https://github.com/jaredramirez), [Jasper Woudenberg](https://github.com/jwoudenberg), [Jelle Teeuwissen](https://github.com/JTeeuwissen), [Josh Warner](https://github.com/joshuawarner32), [JRI98](https://github.com/JRI98), [Luke Boswell](https://github.com/lukewilliamboswell/), [MagicMan](https://github.com/InvisOn), [Niclas Åhdén](https://github.com/niclas-ahden), [Sam Mohr](https://github.com/smores56), [Stephan](https://github.com/stephdin), and [Steve Howell](https://github.com/showell).\n\nThank you all so much!\n\n## What is Roc?\n\nRoc is a programming language with the tagline _fast, friendly, functional_.\n\nIt's designed to build faster than Go and output programs that [run nearly as fast as Rust](https://rtfeldman.com/fp-vs-c), with [user-friendly tooling](https://www.roc-lang.org/friendly) and a [friendly community](https://www.roc-lang.org/community), plus [security and reliability guarantees](https://rtfeldman.com/fp-vs-c#what-the-performance-gap-buys) you can't find in any mainstream language today. Roc hasn't achieved all of its goals yet (version 0.1 is not 1.0!) but as you'll see, 0.1.0 has a lot.\n\nRoc 0.1.0 compiles to standalone binaries (with hot reloading out-the-box) or to WebAssembly, it combines [Hindley-Milner type inference](https://en.wikipedia.org/wiki/Hindley%E2%80%93Milner_type_system) with purity inference and [static dispatch](https://www.roc-lang.org/docs/main/langref/static-dispatch/), and uses a novel system of [platforms and applications](https://www.roc-lang.org/docs/main/langref/platforms/) to let you build on lower-level languages without a [FFI](https://en.wikipedia.org/wiki/Foreign_function_interface) compromising guarantees.\n\nI started designing the language in 2018 with a goal of making an [Elm](https://elm-lang.org/)\\-inspired experience for \"the long tail of use cases.\" Back then, Elm was focused only on user interfaces, although now with [Acadia](https://acadia.engineering/) its scope has expanded—[check it out](https://elm-lang.org/) if you haven't already! Roc has evolved its own character over time, so although the languages still have much in common, there are some obvious differences too.\n\nI made the first compiler commit in 2019, and [talked about the project publicly in 2020](https://www.youtube.com/watch?v=ZnYa99QoznE&t=4793s). More contributors got involved then, leading to promising early results that I spoke about [at Strange Loop 2021](https://youtu.be/vzfy4EKwG_Y?si=viZ7ANe14Q93ub6r). We incorporated research from the [Koka](https://koka-lang.github.io/koka/doc/index.html) and [Morphic](https://morphic-lang.org/) languages, but hit a major architectural problem along the way, [which I talked about in detail with Ayaz Hafiz in 2024](https://shows.acast.com/software-unscripted/episodes/664fde448c77cc0013b3338a). This led to a 2025 scratch-rewrite of the compiler, which [we completed earlier in 2026](https://rtfeldman.com/rust-to-zig).\n\nMany details in the language's design changed over those years, yet the types in the [standard library](https://www.roc-lang.org/docs/main/) still look about how they did in my 2018 sketches. (One of the reasons for holding off on making a numbered release was to set a clear expectation not to expect stability. Things are much more stable these days!)\n\nThere's more detail about language specifics below, as well as a showcase of projects community members have built. But first, some numbers!\n\n## Fast Programs\n\nOne of Roc's goals is to approach the performance of speed-focused languages like Rust and C++, without quite matching it (since Roc does automatic memory management and is stricter about memory safety than Rust, and both of those design choices have runtime performance costs). So how close can Roc get?\n\nHere are some performance benchmarks across four community projects. Each includes a comparison to Rust or C, and all were built with the highest levels of optimization in their respective compilers.\n\n### roc-deflate\n\nIn [How close can pure FP get to C?](https://rtfeldman.com/fp-vs-c), I compared [Niclas Åhdén](https://roc.zulipchat.com/#user/524503)'s [roc-deflate](https://github.com/niclas-ahden/roc-deflate) with C's libdeflate across 144 compression benchmarks. You can read more about these measurements in that article, but the quick summary is that roc-deflate had a median slowdown (compared to libdeflate) of 2.6% on an M1 MacBook Pro and 8.9% on a Ryzen 3900X. Here's the main chart from that article:\n\n_#### Compression on Silesia corpus_\n\nM1 MacBook Pro Ryzen 3900X Ubuntu\n\nMB/s\n\nL1\n\nL2\n\nL3\n\nL4\n\nL5\n\nL6\n\nL7\n\nL8\n\nL9\n\nL10\n\nL11\n\nL12\n\n-   `libdeflate`\n-   `roc-deflate`\n\nCompression Level\n\nMB/s\n\nL1\n\nL2\n\nL3\n\nL4\n\nL5\n\nL6\n\nL7\n\nL8\n\nL9\n\nL10\n\nL11\n\nL12\n\n-   `libdeflate`\n-   `roc-deflate`\n\nCompression Level\n\n### roc-redis\n\n[Jared Ramirez](https://roc.zulipchat.com/#user/341568) included benchmarks [in the README of his roc-redis package](https://github.com/jaredramirez/roc-redis/tree/cdaa573e0aef5da703bcbb298426e1df35b7bfb6#benchmarks). I plotted them here with Rust's [redis-rs](https://github.com/redis-rs/redis-rs) as the dashed red baseline, and the other libraries' numbers converted to percentages of redis-rs. (Higher is better.)\n\n_#### Redis client throughput_\n\n-   `roc-redis`\n-   `go-redis`\n-   `redis-py`\n-   `redis-rs`\n\nThroughput vs. redis-rs\n\n0%\n\n10%\n\n20%\n\n30%\n\n40%\n\n50%\n\n60%\n\n70%\n\n80%\n\n90%\n\n100%\n\n`ping_sequential`\n\n`set_get_sequential`\n\n`incr_sequential`\n\n`ping_pipeline`\n\n`mset_mget_sequential`\n\n`hash_roundtrip_sequential`\n\n`set_get_pipeline`\n\nroc-redis on ping\\_sequential\n\n91.8% of redis-rs throughput\n\ngo-redis on ping\\_sequential\n\n76.0% of redis-rs throughput\n\nredis-py on ping\\_sequential\n\n29.7% of redis-rs throughput\n\nroc-redis on set\\_get\\_sequential\n\n93.5% of redis-rs throughput\n\ngo-redis on set\\_get\\_sequential\n\n79.2% of redis-rs throughput\n\nredis-py on set\\_get\\_sequential\n\n29.8% of redis-rs throughput\n\nroc-redis on incr\\_sequential\n\n92.6% of redis-rs throughput\n\ngo-redis on incr\\_sequential\n\n78.7% of redis-rs throughput\n\nredis-py on incr\\_sequential\n\n32.1% of redis-rs throughput\n\nroc-redis on ping\\_pipeline\n\n96.3% of redis-rs throughput\n\ngo-redis on ping\\_pipeline\n\n91.8% of redis-rs throughput\n\nredis-py on ping\\_pipeline\n\n10.0% of redis-rs throughput\n\nroc-redis on mset\\_mget\\_sequential\n\n92.7% of redis-rs throughput\n\ngo-redis on mset\\_mget\\_sequential\n\n81.4% of redis-rs throughput\n\nredis-py on mset\\_mget\\_sequential\n\n29.8% of redis-rs throughput\n\nroc-redis on hash\\_roundtrip\\_sequential\n\n94.4% of redis-rs throughput\n\ngo-redis on hash\\_roundtrip\\_sequential\n\n80.5% of redis-rs throughput\n\nredis-py on hash\\_roundtrip\\_sequential\n\n29.7% of redis-rs throughput\n\nroc-redis on set\\_get\\_pipeline\n\n91.2% of redis-rs throughput\n\ngo-redis on set\\_get\\_pipeline\n\n95.8% of redis-rs throughput\n\nredis-py on set\\_get\\_pipeline\n\n11.3% of redis-rs throughput\n\n### roc-regex\n\n[Karl](https://roc.zulipchat.com/#user/705503)'s [roc-regex](https://github.com/grayrest/roc-regex) technically benchmarks faster than the popular [`regex` Rust crate](https://crates.io/crates/regex), but it's not an apples-to-apples comparison. Karl used a matching algorithm based on [RE#](https://github.com/ieviev/resharp-dotnet), which differs from how `regex` is implemented in ways that favor the RE# algorithm on these particular inputs. Still, both packages get identical answers across all inputs in [this benchmark](https://github.com/grayrest/roc-regex/blob/53f50e13a6abd23ee0dd34cf335047e060f7862e/PERFORMANCE.md). (Lower is better.)\n\n_#### Regular expression matching_\n\n-   `roc-regex`\n-   `regex` crate\n\nMatching time vs. `regex` crate\n\n0%\n\n20%\n\n40%\n\n60%\n\n80%\n\n100%\n\n120%\n\n`Holmes`\n\n`Moriarty`\n\n8-name alternation\n\n`[A-Za-z]+`\n\n`[0-9]{2,4}`\n\n`\\bthe\\b`\n\n`\\w+\\s+\\w+`\n\n`(\\w+)@(\\w+)`\n\n`\\p{L}+`\n\n`.*Holmes`\n\nroc-regex matching Holmes\n\n26.54 μs (96% of regex)\n\n(minimum across five runs)\n\nroc-regex matching Moriarty\n\n9.69 μs (98% of regex)\n\n(minimum across five runs)\n\nroc-regex matching 8-name alternation\n\n411.99 μs (97% of regex)\n\n(minimum across five runs)\n\nroc-regex matching \\[A-Za-z\\]+\n\n1,041.30 μs (47% of regex)\n\n(minimum across five runs)\n\nroc-regex matching \\[0-9\\]{2,4}\n\n58.83 μs (55% of regex)\n\n(minimum across five runs)\n\nroc-regex matching \\\\bthe\\\\b\n\n175.63 μs (93% of regex)\n\n(minimum across five runs)\n\nroc-regex matching \\\\w+\\\\s+\\\\w+\n\n1,093.57 μs (71% of regex)\n\n(minimum across five runs)\n\nroc-regex matching (\\\\w+)@(\\\\w+)\n\n62.63 μs (91% of regex)\n\n(minimum across five runs)\n\nroc-regex matching \\\\p{L}+\n\n1,260.14 μs (61% of regex)\n\n(minimum across five runs)\n\nroc-regex matching .\\*Holmes\n\n238.12 μs (37% of regex)\n\n(minimum across five runs)\n\n### roux webserver\n\n[Zak Kohler](https://roc.zulipchat.com/#user/1190255) built [roux](https://github.com/Eldhus/roux) on top of his Zig webserver, [fourneau](https://github.com/Eldhus/fourneau). He benchmarked it against Rust's popular [`axum` crate](https://docs.rs/axum/latest/axum/) as well as a vanilla Go webserver. This chart uses his [November 28 benchmarks](https://fourneau.y2kbugger.com/data/classes/2026-11-28T100029Z-cloud/premium-4.json), and his [Drag Race Page](https://fourneau.y2kbugger.com/?class=premium-4&protocol=tls) updates nightly with fresh measurements using the latest roux and fourneau. (Higher is better.)\n\n_#### HTTP server throughput_\n\n-   `roux`\n-   `fourneau-zig`\n-   `go`\n-   `axum`\n\nThroughput vs. `axum`\n\n0%\n\n25%\n\n50%\n\n75%\n\n100%\n\n125%\n\n150%\n\n175%\n\nEcho 4 KiBConnection churnSSE ([Datastar](https://data-star.dev/))PlaintextPlaintext (h2c)Templates\n\naxum · Echo 4 KiB\n\n77,950 req/s (100%)\n\n(best of three runs)\n\nfourneau-zig · Echo 4 KiB\n\n74,510 req/s (96% of axum)\n\n(best of three runs)\n\ngo · Echo 4 KiB\n\n45,396 req/s (58% of axum)\n\n(best of three runs)\n\nroux · Echo 4 KiB\n\n77,576 req/s (100% of axum)\n\n(best of three runs)\n\naxum · Connection churn\n\n14,730 req/s (100%)\n\n(best of three runs)\n\nfourneau-zig · Connection churn\n\n14,550 req/s (99% of axum)\n\n(best of three runs)\n\ngo · Connection churn\n\n7,458 req/s (51% of axum)\n\n(best of three runs)\n\nroux · Connection churn\n\n14,621 req/s (99% of axum)\n\n(best of three runs)\n\naxum · SSE (Datastar)\n\n99,010 req/s (100%)\n\n(best of three runs)\n\nfourneau-zig · SSE (Datastar)\n\n136,931 req/s (138% of axum)\n\n(best of three runs)\n\ngo · SSE (Datastar)\n\n19,736 req/s (20% of axum)\n\n(best of three runs)\n\nroux · SSE (Datastar)\n\n139,933 req/s (141% of axum)\n\n(best of three runs)\n\naxum · Plaintext\n\n236,522 req/s (100%)\n\n(best of three runs)\n\nfourneau-zig · Plaintext\n\n354,305 req/s (150% of axum)\n\n(best of three runs)\n\ngo · Plaintext\n\n69,886 req/s (30% of axum)\n\n(best of three runs)\n\nroux · Plaintext\n\n361,682 req/s (153% of axum)\n\n(best of three runs)\n\naxum · Plaintext (h2c)\n\n244,087 req/s (100%)\n\n(best of three runs)\n\nfourneau-zig · Plaintext (h2c)\n\n383,439 req/s (157% of axum)\n\n(best of three runs)\n\ngo · Plaintext (h2c)\n\n74,426 req/s (30% of axum)\n\n(best of three runs)\n\nroux · Plaintext (h2c)\n\n391,028 req/s (160% of axum)\n\n(best of three runs)\n\naxum · Templates\n\n38,710 req/s (100%)\n\n(best of three runs)\n\nfourneau-zig · Templates\n\n63,443 req/s (164% of axum)\n\n(best of three runs)\n\ngo · Templates\n\n1,875 req/s (5% of axum)\n\n(best of three runs)\n\nroux · Templates\n\n49,569 req/s (128% of axum)\n\n(best of three runs)\n\n## Fast Feedback Loops\n\nRoc is designed not only to run fast, but also to provide fast feedback loops.\n\nInstead of sharing laboratory benchmarks on build times, I decided to [ask the community](https://roc.zulipchat.com/#narrow/channel/304902-show-and-tell/topic/community.20showcase.20in.200.2E1.2E0.20blog.20post/with/642730743) what projects of theirs I could share in this post. Some posted their own build times, and others I measured on my own machine. (A few of the projects were commercial and proprietary, so I don't have access to the code.)\n\n> **Terminology note:** a \"cold\" build has no on-disk cache yet, a \"warm\" build has been built once before (and so benefits from the cache), \"root changed\" means a rebuild after only the root module changed (meaning every other module can be loaded from cache; this is almost the best-case scenario for caching), and \"import changed\" means a rebuild after a heavily-imported module changed, which would invalidate a bunch of cached modules and bring the overall build time closer to the cold build time.\n\n`roc check` does type-checking and [compile-time evaluation](https://www.roc-lang.org/docs/main/langref/compile-time/) and reports errors, `roc build --opt=dev` does everything `roc check` does, and then also outputs a binary (a development build without optimizations, because of `--opt=dev`), and `roc test` runs tests as well.\n\nHere are the results:\n\n_### `roc check` on real-world code bases_\n\n-   Cold\n-   Warm\n-   Root changed\n-   Import changed\n\n`roc check` wall time\n\n0\n\n200 ms\n\n400 ms\n\n600 ms\n\n800 ms\n\n1 s\n\n0\n\n10k\n\n20k\n\n30k\n\n40k\n\n50k\n\n60k\n\n70k\n\nLines of code including dependencies\n\nlukewilliamboswell/roc-graph-layout · cold\n\n874 ms · 66,168 lines\n\n(median across five runs)\n\nroxum/ddd · cold\n\n560 ms · 11,896 lines\n\n(median across three runs)\n\nroxum/middleware · cold\n\n530 ms · 10,501 lines\n\n(median across three runs)\n\ngrayrest/roc-regex · cold\n\n509 ms · 17,408 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-font · cold\n\n489 ms · 29,118 lines\n\n(median across five runs)\n\nroxum/hello · cold\n\n470 ms · 10,159 lines\n\n(median across three runs)\n\nlukewilliamboswell/weaver · cold\n\n399 ms · 15,470 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-ray · cold\n\n398 ms · 18,856 lines\n\n(median across five runs)\n\nshowell/roc-apps · cold\n\n344 ms · 4,371 lines\n\n(median across five runs)\n\nshowell/roc-markdown · cold\n\n329 ms · 6,241 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · cold\n\n319 ms · 12,951 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-automation · cold\n\n294 ms · 9,239 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · cold\n\n249 ms · 13,822 lines\n\n(median across five runs)\n\ngrayrest/roc-regex · import changed\n\n218 ms · 17,408 lines\n\n(median across five runs)\n\ngrayrest/roc-regex · root changed\n\n201 ms · 17,408 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-font · import changed\n\n185 ms · 29,118 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · import changed\n\n88.1 ms · 13,822 lines\n\n(median across five runs)\n\nshowell/roc-markdown · import changed\n\n83.7 ms · 6,241 lines\n\n(median across five runs)\n\nshowell/roc-apps · import changed\n\n81.6 ms · 4,371 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-graph-layout · import changed\n\n79.3 ms · 66,168 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-graph-layout · root changed\n\n62.3 ms · 66,168 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · import changed\n\n61 ms · 12,951 lines\n\n(median across five runs)\n\nlukewilliamboswell/weaver · import changed\n\n59.7 ms · 15,470 lines\n\n(median across five runs)\n\nshowell/roc-apps · root changed\n\n52.5 ms · 4,371 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-font · root changed\n\n48.5 ms · 29,118 lines\n\n(median across five runs)\n\nrocco/widgets · cold\n\n46 ms · 3,740 lines\n\n(median across three runs)\n\nrocco/pong · cold\n\n41 ms · 3,583 lines\n\n(median across three runs)\n\nlukewilliamboswell/weaver · root changed\n\n30.6 ms · 15,470 lines\n\n(median across five runs)\n\nrocco/primitives · cold\n\n30 ms · 2,134 lines\n\n(median across three runs)\n\nlukewilliamboswell/roc-ray · root changed\n\n28.6 ms · 18,856 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-automation · root changed\n\n26.9 ms · 9,239 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · root changed\n\n23.8 ms · 13,822 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-graph-layout · warm\n\n20.8 ms · 66,168 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · root changed\n\n18.9 ms · 12,951 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-font · warm\n\n12.2 ms · 29,118 lines\n\n(median across five runs)\n\nageron/roclet · cold\n\n10.8 ms · 29 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · warm\n\n10.2 ms · 12,951 lines\n\n(median across five runs)\n\nlukewilliamboswell/weaver · warm\n\n9.9 ms · 15,470 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-ray · warm\n\n9.9 ms · 18,856 lines\n\n(median across five runs)\n\nageron/roclet · root changed\n\n9.7 ms · 29 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · warm\n\n9.7 ms · 13,822 lines\n\n(median across five runs)\n\ngrayrest/roc-regex · warm\n\n9.5 ms · 17,408 lines\n\n(median across five runs)\n\nshowell/roc-markdown · root changed\n\n8.6 ms · 6,241 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-automation · warm\n\n8.3 ms · 9,239 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-platform-template-zig · cold\n\n7.6 ms · 106 lines\n\n(median across five runs)\n\nshowell/roc-markdown · warm\n\n6.5 ms · 6,241 lines\n\n(median across five runs)\n\nshowell/roc-apps · warm\n\n6.3 ms · 4,371 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-platform-template-zig · root changed\n\n5.7 ms · 106 lines\n\n(median across five runs)\n\nageron/roclet · warm\n\n4.4 ms · 29 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-platform-template-zig · warm\n\n4.4 ms · 106 lines\n\n(median across five runs)\n\n_### `roc build --opt=dev` on real-world code bases_\n\n-   Cold\n-   Warm\n-   Root changed\n-   Import changed\n\n`roc build --opt=dev` wall time\n\n0\n\n200 ms\n\n400 ms\n\n600 ms\n\n800 ms\n\n1 s\n\n0\n\n10k\n\n20k\n\n30k\n\n40k\n\n50k\n\n60k\n\n70k\n\nLines of code including dependencies\n\nlukewilliamboswell/roc-graph-layout · cold\n\n985 ms · 66,168 lines\n\n(median across five runs)\n\nroxum/ddd · cold\n\n640 ms · 11,896 lines\n\n(median across three runs)\n\nroxum/middleware · cold\n\n590 ms · 10,501 lines\n\n(median across three runs)\n\nlukewilliamboswell/roc-font · cold\n\n559 ms · 29,118 lines\n\n(median across five runs)\n\nroxum/hello · cold\n\n530 ms · 10,159 lines\n\n(median across three runs)\n\ngrayrest/roc-regex · cold\n\n527 ms · 17,408 lines\n\n(median across five runs)\n\nlukewilliamboswell/weaver · cold\n\n441 ms · 15,470 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-automation · cold\n\n334 ms · 9,239 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · cold\n\n332 ms · 12,951 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · cold\n\n271 ms · 13,822 lines\n\n(median across five runs)\n\ngrayrest/roc-regex · import changed\n\n226 ms · 17,408 lines\n\n(median across five runs)\n\ngrayrest/roc-regex · root changed\n\n207 ms · 17,408 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-font · import changed\n\n204 ms · 29,118 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-graph-layout · import changed\n\n115 ms · 66,168 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-graph-layout · root changed\n\n98.6 ms · 66,168 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · import changed\n\n94.8 ms · 13,822 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-automation · root changed\n\n86.2 ms · 9,239 lines\n\n(median across five runs)\n\nrocco/widgets · cold\n\n86 ms · 3,740 lines\n\n(median across three runs)\n\nlukewilliamboswell/weaver · import changed\n\n84.6 ms · 15,470 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-font · root changed\n\n81.4 ms · 29,118 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-graph-layout · warm\n\n80.1 ms · 66,168 lines\n\n(median across five runs)\n\nrocco/pong · cold\n\n73 ms · 3,583 lines\n\n(median across three runs)\n\nlukewilliamboswell/weaver · root changed\n\n63.4 ms · 15,470 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · import changed\n\n58.1 ms · 12,951 lines\n\n(median across five runs)\n\nrocco/primitives · cold\n\n56 ms · 2,134 lines\n\n(median across three runs)\n\nlukewilliamboswell/roc-font · warm\n\n55.7 ms · 29,118 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · root changed\n\n38.3 ms · 12,951 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · root changed\n\n26.9 ms · 13,822 lines\n\n(median across five runs)\n\nlukewilliamboswell/weaver · warm\n\n21.5 ms · 15,470 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · warm\n\n18 ms · 13,822 lines\n\n(median across five runs)\n\ngrayrest/roc-regex · warm\n\n17.8 ms · 17,408 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · warm\n\n16.9 ms · 12,951 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-automation · warm\n\n16.3 ms · 9,239 lines\n\n(median across five runs)\n\nageron/roclet · cold\n\n14.2 ms · 29 lines\n\n(median across five runs)\n\nageron/roclet · root changed\n\n13.4 ms · 29 lines\n\n(median across five runs)\n\nageron/roclet · warm\n\n8.5 ms · 29 lines\n\n(median across five runs)\n\n_### `roc test` on real-world code bases_\n\n-   Cold\n-   Warm\n-   Root changed\n-   Import changed\n\n`roc test` wall time\n\n0\n\n500 ms\n\n1 s\n\n1.5 s\n\n2 s\n\n2.5 s\n\n0\n\n10k\n\n20k\n\n30k\n\n40k\n\n50k\n\n60k\n\nLines of code including dependencies\n\nlukewilliamboswell/roc-blueprint · cold\n\n2.242 s · 14,460 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-graph-layout · cold\n\n1.8 s · 57,088 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-blueprint · import changed\n\n1.744 s · 14,460 lines\n\n(median across five runs)\n\ngrayrest/roc-markdown · cold\n\n1.621 s · 8,649 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-font · cold\n\n1.621 s · 19,995 lines\n\n(median across five runs)\n\ngrayrest/roc-markdown · import changed\n\n1.608 s · 8,649 lines\n\n(median across five runs)\n\ngrayrest/roc-markdown · root changed\n\n1.567 s · 8,649 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-graph-layout · import changed\n\n700 ms · 57,088 lines\n\n(median across five runs)\n\nroxum/ddd · cold\n\n700 ms · 11,896 lines\n\n(median across three runs)\n\nroxum/middleware · cold\n\n650 ms · 10,501 lines\n\n(median across three runs)\n\nroxum/hello · cold\n\n620 ms · 10,159 lines\n\n(median across three runs)\n\nlukewilliamboswell/roc-time · cold\n\n580 ms · 19,374 lines\n\n(median across five runs)\n\nlukewilliamboswell/weaver · cold\n\n457 ms · 7,190 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-ray · cold\n\n432 ms · 18,856 lines\n\n(median across five runs)\n\nshowell/roc-markdown · cold\n\n366 ms · 6,241 lines\n\n(median across five runs)\n\ngrayrest/roc-regex · cold\n\n261 ms · 9,076 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-font · import changed\n\n198 ms · 19,995 lines\n\n(median across five runs)\n\ngrayrest/roc-regex · import changed\n\n147 ms · 9,076 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · cold\n\n132 ms · 3,838 lines\n\n(median across five runs)\n\nshowell/roc-apps · cold\n\n115 ms · 2,869 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · import changed\n\n110 ms · 19,374 lines\n\n(median across five runs)\n\nshowell/roc-markdown · import changed\n\n83.7 ms · 6,241 lines\n\n(median across five runs)\n\nlukewilliamboswell/weaver · import changed\n\n65.6 ms · 7,190 lines\n\n(median across five runs)\n\nrocco/widgets · cold\n\n65 ms · 3,740 lines\n\n(median across three runs)\n\nlukewilliamboswell/plume · import changed\n\n56 ms · 3,838 lines\n\n(median across five runs)\n\nrocco/pong · cold\n\n56 ms · 3,583 lines\n\n(median across three runs)\n\nshowell/roc-apps · import changed\n\n51.7 ms · 2,869 lines\n\n(median across five runs)\n\nrocco/primitives · cold\n\n42 ms · 2,134 lines\n\n(median across three runs)\n\nlukewilliamboswell/roc-ray · root changed\n\n41.2 ms · 18,856 lines\n\n(median across five runs)\n\nlyceum-quest/study · cold\n\n27.6 ms · 348 lines\n\n(median across five runs)\n\nshowell/roc-apps · root changed\n\n26 ms · 2,869 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-graph-layout · root changed\n\n22.6 ms · 57,088 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-graph-layout · warm\n\n19.3 ms · 57,088 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-platform-template-zig · cold\n\n14.9 ms · 139 lines\n\n(median across five runs)\n\nageron/roclet-display · import changed\n\n14.4 ms · 101 lines\n\n(median across five runs)\n\nageron/roclet-display · cold\n\n14.3 ms · 101 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · root changed\n\n13.7 ms · 19,374 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-time · warm\n\n13 ms · 19,374 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-font · root changed\n\n12.9 ms · 19,995 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-platform-template-zig · root changed\n\n12.2 ms · 139 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-font · warm\n\n11.1 ms · 19,995 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-ray · warm\n\n10.9 ms · 18,856 lines\n\n(median across five runs)\n\nageron/roclet · root changed\n\n10 ms · 29 lines\n\n(median across five runs)\n\nageron/roclet · cold\n\n9.3 ms · 29 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-blueprint · root changed\n\n9.1 ms · 14,460 lines\n\n(median across five runs)\n\nshowell/roc-markdown · root changed\n\n8 ms · 6,241 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-blueprint · warm\n\n7.8 ms · 14,460 lines\n\n(median across five runs)\n\nshowell/roc-markdown · warm\n\n7 ms · 6,241 lines\n\n(median across five runs)\n\nlukewilliamboswell/weaver · root changed\n\n7 ms · 7,190 lines\n\n(median across five runs)\n\ngrayrest/roc-regex · root changed\n\n6.9 ms · 9,076 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · root changed\n\n6.8 ms · 3,838 lines\n\n(median across five runs)\n\nshowell/roc-apps · warm\n\n6.5 ms · 2,869 lines\n\n(median across five runs)\n\nlukewilliamboswell/weaver · warm\n\n6.2 ms · 7,190 lines\n\n(median across five runs)\n\ngrayrest/roc-regex · warm\n\n6.2 ms · 9,076 lines\n\n(median across five runs)\n\ngrayrest/roc-markdown · warm\n\n6 ms · 8,649 lines\n\n(median across five runs)\n\nlukewilliamboswell/plume · warm\n\n5.7 ms · 3,838 lines\n\n(median across five runs)\n\nageron/roclet-display · root changed\n\n4.8 ms · 101 lines\n\n(median across five runs)\n\nlyceum-quest/study · root changed\n\n4.8 ms · 348 lines\n\n(median across five runs)\n\nlukewilliamboswell/roc-platform-template-zig · warm\n\n4.4 ms · 139 lines\n\n(median across five runs)\n\nageron/roclet-display · warm\n\n4.1 ms · 101 lines\n\n(median across five runs)\n\nageron/roclet · warm\n\n3.9 ms · 29 lines\n\n(median across five runs)\n\nlyceum-quest/study · warm\n\n3.9 ms · 348 lines\n\n(median across five runs)\n\nI left one outlier out of these charts because it made the y-axes hard to read: [Rocco's village example](https://github.com/Pixelsprout/rocco-engine/tree/88ac6c234b2577778dc93d87027da43afdc58255/examples/village). Its cold-run median build times on an M5 MacBook Pro were 1s for `roc check`, 3.5s for `roc build --opt=dev`, and 7.5s for `roc test`. The example wasn't significantly bigger than the other code bases, but it contained a huge literal which revealed a pathological edge case in the compiler. A fix for that edge case should be in the next release after 0.1.0.\n\nRoc is designed to have user-friendly syntax, APIs, and compiler error messages.\n\n### Syntax Example\n\nHere's what Roc code looks like, adapted from a [sparkline rendering example](https://github.com/grayrest/kite/blob/05bd02ec625708a1323a2c4a32ae8076a16c7bd1/examples/grid-finance/main.roc#L435-L446) in [Kite](https://github.com/grayrest/kite), a Roc GUI platform whose author runs it on an e-ink tablet. (You can read more about Kite in its community showcase entry below.)\n\n```\nspark_cell = |ctx| {\n\tprices = ctx.row.timeline\n\t\n\tup = match (prices.first(), prices.last()) {\n\t\t(Ok(first), Ok(last)) => first < last\n\t\t(_, _) => True\n\t}\n\t\n\tcolor = if up { Colors.good } else { Colors.bad }\n\t\n\tSparkline.bars(prices, 100.0, 28.0, color)\n\t\t|> View.style(St.width(Grow).height(Fixed(28)))\n}\n```\n\n### Error Messages\n\nHere's the error message you get if you change `True` to `1` in this example:\n\n_✗ type mismatchmain.roc:11:13_\n\n```\nThis number is being used where a non-number type is needed.\n\n(_, _) => 1\n          ^\n\nOther code expects this to have the type:\n\n    Bool\n```\n\nRoc is directly descended from [Elm](https://elm-lang.org/), whose compiler is legendary for [its friendly error messages](https://elm-lang.org/news/another-step-towards-elm-v1), and Roc's goal is to follow in its footsteps.\n\n### Purity Inference\n\nA concise example of Roc's user-friendliness is this snippet:\n\n```\nif File.exists!(path)\n```\n\nJust by looking at this code, I can tell you that `File.exists!` is not a pure function; it performs side effects. That's because Roc's type system gives different types to [pure functions](https://www.roc-lang.org/docs/main/langref/functions/#pure-functions) and [effectful functions](https://www.roc-lang.org/docs/main/langref/functions/#effectful-functions), and the compiler enforces the naming convention that effectful functions' names must end in `!`.\n\nI can also tell that this conditional is inside an effectful function. That's because effectful functions may only be called from other effectful functions (pure functions can be called anywhere), which the compiler infers and enforces. This simple system reliably tells you which parts of your code base are pure (usually most, in real-world Roc code bases), and exactly where the effects are, while keeping function calls as straightforward as they are in mainstream languages.\n\n### Compile-Time Evaluation\n\nPure functions are also evaluated at compile time when possible (that is, when they depend on no runtime inputs), and this happens before exhaustiveness checking. That means this [roc-regex](https://github.com/grayrest/roc-regex) snippet will execute `Regex.compile` when you are compiling your Roc program:\n\n```\nOk(my_regex) = Regex.compile(\".*Holmes.*&.*Watson.*\")\n```\n\nIf your regex string contains a syntax error, `Regex.compile` will return an `Err` during compile-time evaluation, making the `Ok` pattern-match fail before your program even runs. Even `roc check` will report an error for this! These functions are safe to evaluate at compile time because the compiler knows they're pure.\n\n### Friendly People\n\nThe Roc community is also full of friendly people who hang out in [Roc Zulip](https://roc.zulipchat.com/). Come [say hi in the #introductions channel](https://roc.zulipchat.com/#narrow/stream/387892-1-Introductions/topic/introductions)!\n\nWhen I asked for community projects to share in the 0.1.0 announcement post, [I got way too many responses to put here](https://roc.zulipchat.com/#narrow/channel/304902-show-and-tell/topic/community.20showcase.20in.200.2E1.2E0.20blog.20post/with/642730743), so I left some out and limited these to one project per author. Below each featured project, you can find links to other projects that community member has made.\n\nRoc is designed to be useful in a variety of use cases, and these projects demonstrate a wide range of them: a full-stack Web framework, native macOS and Windows app frameworks based on reactive signals, a 3D game engine, a reactive notebook, a neural-network library, a native GUI platform running apps on an e-ink tablet, a chat client, a Game Boy Advance emulator, commercial screenwriting software, an immediate-mode UI library, a Web framework for hypermedia apps, a bindings generator for Godot and related game engines, a CLI for reproducible development environments and machines, a Redis client, an HTTP API and backend server platform, and a serialization format.\n\nAn open-source framework for building full-stack web applications in Roc, with an Elm-style architecture and a WebAssembly frontend. Niclas has been [using Joy in paid production work for 2 years](https://youtu.be/FN2VwXFcM1s?si=F3gTKECxu94Zybzg&t=162).\n\n[![Niclas Åhdén talking about the Joy Web Framework](https://rtfeldman.com/assets/showcase/joy-youtube.jpg)](https://www.youtube.com/watch?v=0XlhqdcMnaw)\n\nNiclas has also published numerous other open-source Roc packages, most of which he uses in production.\n\nPlatforms for building native macOS and Windows applications in Roc, using pure functions for rendering and reactive signals for state updates without side effects.\n\n[![Build native macOS apps using Roc — Luke Boswell](https://rtfeldman.com/assets/showcase/macos-youtube.jpg)](https://www.youtube.com/watch?v=vGdAUxwQwMo)\n\nLuke uses Roc for internal tooling at work, and has open-sourced many different packages and platforms.\n\nAn experimental 3D game engine for native desktop or WebAssembly games, with game logic written in Roc and engine internals written in [Odin](https://odin-lang.org/). It has [a stylish interactive tour](https://pixelsprout.dev/projects/rocco/tour/01-window/) that you can try in your browser.\n\n [Download the Rocco demo video.](https://rtfeldman.com/assets/showcase/rocco-demo.mp4)\n\nReactive Roc notebooks that run in a browser (including offline!) with support for exporting notebooks and running the server locally.\n\n [Download the Roclet introduction.](https://rtfeldman.com/assets/showcase/roclet-introduction.mp4)\n\n_Aurélien's introduction to Roclet. [Shared on Zulip](https://roc.zulipchat.com/#narrow/channel/304902-show-and-tell/near/636792191)._\n\nAurélien has also written lots of [Roc's official documentation](https://www.roc-lang.org/docs/main/) and [tutorial](https://www.roc-lang.org/tutorial/), and also created the [Roc Exercism Track](https://exercism.org/tracks/roc). He's also published a variety of other Roc packages.\n\nA small neural network package for exploring machine learning, inspired by [micrograd](https://github.com/karpathy/micrograd) and [tinygrad](https://github.com/tinygrad/tinygrad). You can [try it in your browser](https://asteroidb612.github.io/rocrograd/) via Roclet.\n\nA native GUI platform using [The Elm Architecture](https://guide.elm-lang.org/architecture/), [Tailwind](https://tailwindcss.com/)\\-inspired styles, animation, and rich text. Karl runs it on an e-ink tablet:\n\nKarl has open-sourced other Roc packages as well.\n\nA privately-deployed chat application featuring topics, direct messages, and Markdown for styling. roc-chat uses Roc for its application logic and a custom [platform](https://www.roc-lang.org/docs/main/langref/platforms/) under the hood written in [Zig](https://ziglang.org/).\n\nSteve has also built games, learning materials, and packages in Roc.\n\nA work-in-progress Game Boy Advance emulator written in Roc. It uses Luke Boswell's [roc-ray](https://github.com/lukewilliamboswell/roc-ray) for graphics, and has not implemented sound yet.\n\nCommercial screenwriting software that uses Roc for screenplay layout, pagination, and other application logic, with a custom Rust [platform](https://www.roc-lang.org/docs/main/langref/platforms/) under the hood for managing I/O and collaborative document state.\n\nAn immediate-mode GUI library for Roc native applications and games, with a [Clay](https://github.com/nicbarker/clay)\\-inspired layout system, a Model-View-Update architecture, and [roc-ray](https://github.com/lukewilliamboswell/roc-ray) rendering. You can see its [interactive tutorial](https://github.com/obust/terrocotta/blob/main/examples/tutorial/README.md) in action here:\n\n [Download the Terrocotta demo.](https://rtfeldman.com/assets/showcase/terrocotta-tutorial.mp4)\n\nA web platform with typed HTML templates, [SQLite](https://www.sqlite.org/) queries that are verified at compile time, [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events), and live reload. [Its tutorial](https://github.com/Eldhus/roux-tutor) is a Roux app, and there are [nightly benchmarks](https://fourneau.y2kbugger.com/?class=premium-4&protocol=tls) vs. Go, axum, and others.\n\nGenerates Roc bindings for [Godot](https://godotengine.org/), [Redot](https://www.redotengine.org/), and other game engines using [GDExtension](https://docs.godotengine.org/en/4.4/tutorials/scripting/gdextension/index.html), so you can write game logic in Roc for any of these engines.\n\nScott has also built other platforms and developer tools in Roc.\n\nAs [the README](https://github.com/thebrandonlucas/kai) explains: \"Kai wraps Nix in a friendly frontend\"—with an optional [guix plugin](https://github.com/thebrandonlucas/kai#guix) as well.\n\nBrandon has also built Ancient Greek learning tools in Roc.\n\nA binary-safe Redis client that can be used from different Roc platforms. Jared isn't aware of anyone using it in the wild yet.\n\n_#### Redis client throughput (higher is better)_\n\n-   `roc-redis`\n-   `go-redis`\n-   `redis-py`\n-   `redis-rs`\n\nThroughput vs. redis-rs\n\n0%\n\n10%\n\n20%\n\n30%\n\n40%\n\n50%\n\n60%\n\n70%\n\n80%\n\n90%\n\n100%\n\n`ping_sequential`\n\n`set_get_sequential`\n\n`incr_sequential`\n\n`ping_pipeline`\n\n`mset_mget_sequential`\n\n`hash_roundtrip_sequential`\n\n`set_get_pipeline`\n\nroc-redis on ping\\_sequential\n\n91.8% of redis-rs throughput\n\ngo-redis on ping\\_sequential\n\n76.0% of redis-rs throughput\n\nredis-py on ping\\_sequential\n\n29.7% of redis-rs throughput\n\nroc-redis on set\\_get\\_sequential\n\n93.5% of redis-rs throughput\n\ngo-redis on set\\_get\\_sequential\n\n79.2% of redis-rs throughput\n\nredis-py on set\\_get\\_sequential\n\n29.8% of redis-rs throughput\n\nroc-redis on incr\\_sequential\n\n92.6% of redis-rs throughput\n\ngo-redis on incr\\_sequential\n\n78.7% of redis-rs throughput\n\nredis-py on incr\\_sequential\n\n32.1% of redis-rs throughput\n\nroc-redis on ping\\_pipeline\n\n96.3% of redis-rs throughput\n\ngo-redis on ping\\_pipeline\n\n91.8% of redis-rs throughput\n\nredis-py on ping\\_pipeline\n\n10.0% of redis-rs throughput\n\nroc-redis on mset\\_mget\\_sequential\n\n92.7% of redis-rs throughput\n\ngo-redis on mset\\_mget\\_sequential\n\n81.4% of redis-rs throughput\n\nredis-py on mset\\_mget\\_sequential\n\n29.8% of redis-rs throughput\n\nroc-redis on hash\\_roundtrip\\_sequential\n\n94.4% of redis-rs throughput\n\ngo-redis on hash\\_roundtrip\\_sequential\n\n80.5% of redis-rs throughput\n\nredis-py on hash\\_roundtrip\\_sequential\n\n29.7% of redis-rs throughput\n\nroc-redis on set\\_get\\_pipeline\n\n91.2% of redis-rs throughput\n\ngo-redis on set\\_get\\_pipeline\n\n95.8% of redis-rs throughput\n\nredis-py on set\\_get\\_pipeline\n\n11.3% of redis-rs throughput\n\nA webserver platform with typed handlers, tags, and staged middleware. Here's how [Roxum benchmarks](https://github.com/KouYuume/roxum/blob/bc4b5059d68b0e72798be0a7d7838543425fca82/docs/performance.md) against Rust's `axum` crate:\n\n_#### HTTP throughput with Roxum_\n\n-   `roxum`\n-   `axum`\n\nThroughput vs. axum\n\n0%\n\n20%\n\n40%\n\n60%\n\n80%\n\n100%\n\n120%\n\nPlaintext\n\nPre-encoded JSON\n\nRouting (100 routes)\n\nKeep-alive-heavy\n\n1,000 connections\n\nRoxum on plaintext\n\n216,198 req/s (82% of axum)\n\n(median across four runs)\n\nRoxum on pre-encoded json\n\n218,086 req/s (83% of axum)\n\n(median across four runs)\n\nRoxum on routing (100 routes)\n\n187,479 req/s (73% of axum)\n\n(median across four runs)\n\nRoxum on keep-alive-heavy\n\n172,320 req/s (96% of axum)\n\n(median across four runs)\n\nRoxum on 1,000 connections\n\n200,752 req/s (76% of axum)\n\n(median across four runs)\n\nPronounced \"raven,\" short for Roc Value Notation. As [the README](https://git.sr.ht/~jwoudenberg/roc/tree/main/item/rvn/README.md) says:\n\n> Raven is to Roc as JSON is to JavaScript. Any Roc value that does not contain functions is valid Raven.\n\n```\n{\n\tlanguage: \"Roc\",\n\ttags: [Fast, Friendly, Functional],\n\tcolor: 0x7c38f5, # Hex numbers and comments, too!\n}\n```\n\nJasper also created [Gregorian](https://git.sr.ht/~jwoudenberg/roc/tree/main/item/gregorian/README.md), \"a small and safe date/time package.\"\n\n### Other Packages\n\nYou can find many more Roc projects at [roc-awesome](https://github.com/lukewilliamboswell/roc-awesome), or right here in this list:\n\nMore packages from community members\n\n#### Niclas Åhdén\n\n-   [**joy-html**](https://github.com/niclas-ahden/joy-html) provides HTML building blocks for Joy applications.\n-   [**roc-pg**](https://github.com/niclas-ahden/roc-pg) is a PostgreSQL client with compile-time checking of SQL queries.\n-   [**roc-deflate**](https://github.com/niclas-ahden/roc-deflate) implements DEFLATE compression in pure Roc.\n-   [**roc-xlsx**](https://github.com/niclas-ahden/roc-xlsx) generates Excel spreadsheets.\n-   [**roc-zip**](https://github.com/niclas-ahden/roc-zip) creates and extracts ZIP archives.\n-   [**roc-playwright**](https://github.com/niclas-ahden/roc-playwright) lets Roc programs automate browsers using Playwright.\n-   [**roc-spec**](https://github.com/niclas-ahden/roc-spec) runs tests in parallel with isolated test environments.\n-   [**roc-vcr**](https://github.com/niclas-ahden/roc-vcr) records and replays HTTP interactions for tests.\n-   [**roc-openapi**](https://github.com/niclas-ahden/roc-openapi) validates HTTP request bodies against OpenAPI specifications.\n-   [**roc-sendgrid**](https://github.com/niclas-ahden/roc-sendgrid) sends email through SendGrid.\n-   [**roc-url**](https://github.com/niclas-ahden/roc-url) parses and constructs URLs.\n-   [**roc-database-url**](https://github.com/niclas-ahden/roc-database-url) parses database connection URLs.\n-   [**roc-base64**](https://github.com/niclas-ahden/roc-base64) encodes and decodes Base64.\n-   [**roc-crc32**](https://github.com/niclas-ahden/roc-crc32) calculates CRC32 checksums.\n-   [**roc-hmac**](https://github.com/niclas-ahden/roc-hmac) implements HMAC authentication codes in pure Roc.\n-   [**roc-md5**](https://github.com/niclas-ahden/roc-md5) implements MD5 hashing in pure Roc.\n-   [**roc-scram**](https://github.com/niclas-ahden/roc-scram) implements SCRAM authentication in pure Roc.\n-   [**roc-prng**](https://github.com/niclas-ahden/roc-prng) provides pseudorandom number generation.\n-   [**roc-xml**](https://github.com/niclas-ahden/roc-xml) generates XML.\n-   [**roc-human-readable-file-size**](https://github.com/niclas-ahden/roc-human-readable-file-size) formats file sizes for people to read.\n-   [**roc-maybe**](https://github.com/niclas-ahden/roc-maybe) provides a type for optional values.\n-   [**roc-non-zero**](https://github.com/niclas-ahden/roc-non-zero) provides a number type that excludes zero.\n\n#### Luke Boswell\n\n-   [**roc-ray**](https://lukewilliamboswell.github.io/roc-ray/) is a platform for games and graphics built on raylib, with support for tasks, networking, files, and databases.\n-   [**roc-gui**](https://github.com/lukewilliamboswell/roc-gui) is an experimental platform for native GUI applications using GPUI.\n-   [**roc-signals**](https://github.com/lukewilliamboswell/roc-signals) is a signals-based framework for web user interfaces.\n-   [**plume**](https://github.com/lukewilliamboswell/plume) provides a typed Roc API for interactive Plotly.js charts.\n-   [**roc-docx**](https://github.com/lukewilliamboswell/roc-docx) reads and writes Word documents compatible with Word, LibreOffice, and Google Docs.\n-   [**roc-font**](https://github.com/lukewilliamboswell/roc-font) reads OpenType and TrueType fonts and shapes text into positioned glyphs.\n-   [**roc-graph-layout**](https://github.com/lukewilliamboswell/roc-graph-layout) provides graph layout algorithms and parses and renders Mermaid diagrams.\n-   [**roc-parser**](https://github.com/lukewilliamboswell/roc-parser) combines parser combinators with ready-made parsers for formats including JSON, YAML, XML, Markdown, AsciiDoc, HTTP, and Roc source.\n-   [**roc-pdf**](https://github.com/lukewilliamboswell/roc-pdf) generates PDF 2.0 and PDF/A-4 documents in Roc.\n-   [**roc-time**](https://github.com/lukewilliamboswell/roc-time) handles dates, times, and durations.\n-   [**weaver**](https://github.com/lukewilliamboswell/weaver) parses command-line arguments with an API inspired by Rust's clap.\n-   [**basic-ssg**](https://lukewilliamboswell.github.io/basic-ssg/) generates static sites from Markdown and AsciiDoc.\n-   [**roc-fuzz**](https://github.com/lukewilliamboswell/roc-fuzz) provides fuzzing and property-based testing using libFuzzer, along with tools for observing performance.\n-   [**Zig platform template**](https://github.com/lukewilliamboswell/roc-platform-template-zig) is a starting point for hosting Roc applications in Zig.\n-   [**Rust platform template**](https://github.com/lukewilliamboswell/roc-platform-template-rust) is a starting point for hosting Roc applications in Rust.\n-   [**Go platform template**](https://github.com/lukewilliamboswell/roc-platform-template-go) is a starting point for hosting Roc applications in Go.\n-   [**embed-roc-in-dotnet**](https://github.com/lukewilliamboswell/embed-roc-in-dotnet) demonstrates embedding Roc in a .NET application.\n-   [**roc-blueprint**](https://github.com/lukewilliamboswell/roc-blueprint) describes development environments, builds, tasks, and workflows in Roc, with Nix integration.\n-   [**roc-automation**](https://lukewilliamboswell.github.io/roc-automation/) supplies shared automation and a manual for maintaining Roc packages and platforms.\n-   [**roc-awesome**](https://github.com/lukewilliamboswell/roc-awesome) collects maintained Roc packages, platforms, tools, and applications from across the community.\n\n#### Karl\n\n-   [**Trantor**](https://github.com/grayrest/trantor) assembles Roc platforms from reusable Rust components.\n-   [**roc-regex**](https://github.com/grayrest/roc-regex) is a regular expression engine written in Roc.\n-   [**roc-markdown**](https://github.com/grayrest/roc-markdown) is Karl's CommonMark and GitHub Flavored Markdown parser, a separate project from Steve's library of the same name.\n\n#### Steve Howell\n\n-   [**Safari Walk**](https://roc.lynrummy.com/safari-walk/) is a 3D journey through a savanna at sunset, built with Roc and Rocco and running in browsers with WebGPU support.\n-   [**A little Roc book**](https://roc.lynrummy.com/tutorial/introduction.html) teaches Roc by walking through the code behind the original 2D Safari Ride.\n-   [**roc-markdown**](https://github.com/showell/roc-markdown) is Steve's Markdown library, used in his book-building tools and chat application.\n-   [**BASIC interpreter**](https://roc.lynrummy.com/basic/basic.html) is a browser playground for running BASIC programs with an interpreter written in Roc.\n-   [**Fast Track**](https://roc.lynrummy.com/fasttrack/) is a browser implementation of the marble-racing board game, with card-driven moves and computer opponents.\n-   [**Welcome to Roc**](https://roc.lynrummy.com/welcome-to-roc/) is an animated welcome made for the Roc release.\n\n#### blu\n\n-   [**Lyceum Study**](https://study.lyceum.quest/) is a spaced-repetition tool for learning Ancient Greek, being ported to Roc.\n-   [**Apo**](https://github.com/lyceum-quest/apo) uses language models to generate glosses and prose translations as part of the Lyceum Ancient Greek toolkit.\n\n#### Aurélien Geron\n\n-   [**roclet-display**](https://github.com/ageron/roclet-display) adds rich notebook output such as tables, images, charts, and interactive controls.\n-   [**Exercism's Roc track**](https://exercism.org/tracks/roc) provides coding exercises, tests, and example solutions for learning and practicing Roc.\n\n#### Jasper Woudenberg\n\n-   [**Gregorian**](https://git.sr.ht/~jwoudenberg/roc/tree/main/item/gregorian/README.md) provides tools for working with dates and times.\n\n#### Scott Campbell\n\n-   [**goose-roc**](https://github.com/scottc/goose-roc) experiments with hosting Roc applications in Goose, including a console example and a work-in-progress mini-Doom port.\n-   [**roc-build**](https://github.com/scottc/roc-build) runs build tasks in parallel according to their dependency graph, using a Zig host.\n-   [**roc-platform-patcher**](https://github.com/scottc/roc-platform-patcher) injects middleware into already-distributed platforms, enabling instrumentation, effect interception, and testing even when a platform's source is unavailable.\n\n## More about the language\n\nBeyond the basics discussed earlier, here are some more details about Roc as a language. This won't be as comprehensive as [the language reference](https://www.roc-lang.org/docs/main/langref/) or as helpful an introduction to the language as [the tutorial](https://www.roc-lang.org/tutorial/) or [Exercism learning track](https://exercism.org/tracks/roc), but it will give you an overview of what you can find in it.\n\n### Common Features\n\nThese are some features Roc has that can be found in several other languages.\n\n-   Cross-compiling to static binaries out-the-box just like Go, including to Linux with no libc dependency (e.g. for Alpine Linux).\n-   [Sum types](https://www.roc-lang.org/docs/main/langref/tag-unions/) with [pattern matching](https://www.roc-lang.org/docs/main/langref/pattern-matching/) and [exhaustiveness checks](https://www.roc-lang.org/docs/main/langref/pattern-matching/#exhaustiveness).\n    -   You don't have to declare them up front; they can be [anonymous and structural](https://www.roc-lang.org/docs/main/langref/tag-unions/#structural-tag-unions). Same with [records](https://www.roc-lang.org/docs/main/langref/records/#structural-records).\n-   Simple, [sound](https://en.wikipedia.org/wiki/Type_safety#Definitions) type system.\n    -   No `null` or `any` (or equivalent of either).\n    -   Type annotations are optional. Roc's type inference is principal and decidable, meaning it always correctly infers the most flexible correct type.\n-   All expressions that can be evaluated at compile time are evaluated then.\n    -   This is true even if heap allocations are involved.\n-   Testing, building, package management, and formatting, are all out-the-box.\n-   Tests are automatically cached to avoid re-running tests whose outcomes couldn't possibly have changed given that the relevant source code didn't.\n\n### Uncommon Features\n\nThese are features that are much less common.\n\n-   All values are semantically immutable, but Roc's optimizer does [opportunistic mutation](https://www.roc-lang.org/docs/main/langref/expressions/#opportunistic-mutation) behind the scenes to speed up common situations where mutating would not be observable.\n-   Zero-allocation lambdas (heap allocation, that is)\n-   Binary algebraic effects ([pure functions](https://www.roc-lang.org/docs/main/langref/functions/#pure-functions) vs. [effectful functions](https://www.roc-lang.org/docs/main/langref/functions/#effectful-functions))\n    -   Related: [Supply-chain attack resilience for packages](https://www.roc-lang.org/docs/main/langref/packages/#url-packages)\n-   [Platforms and applications](https://www.roc-lang.org/docs/main/langref/platforms/)\n-   Shared build and test cache out-the-box\n-   Inferred [parsers and encoders](https://www.roc-lang.org/docs/main/langref/parsers/)\n\n## Getting Started\n\nIf Roc sounds interesting to you, the [official tutorial](https://www.roc-lang.org/tutorial/) is an easy place to start, and the [language reference](https://www.roc-lang.org/docs/main/langref/) can answer questions you encounter in more detail.\n\nIn addition to writing much of the official documentation, Aurélien Geron created [Exercism's Roc track](https://exercism.org/tracks/roc) and has built out 139 different exercises in conjunction with other maintainers.\n\nFinally, [Roc Zulip](https://roc.zulipchat.com/) has always been a welcoming place for beginners, and there are plenty of friendly people there who are happy to help you get into the language. Come [say hi in the #introductions channel](https://roc.zulipchat.com/#narrow/stream/387892-1-Introductions/topic/introductions)!\n\n## Shout-Outs\n\nBefore wrapping up, I want to give some final shout-outs to all the people and projects who got Roc to this milestone, including:\n\n-   The amazing Roc community! This post would have practically no content without the people who created the wonderful projects above.\n-   All the contributors, past and present, who helped bring the language to this milestone. Thank you, thank you, thank you!\n-   The [Elm Programming Language](https://elm-lang.org/), which directly inspired Roc (fun fact: the logo is origami [as an homage to Elm's tangram logo](https://www.roc-lang.org/faq#name-origin)).\n-   The [Koka](https://koka-lang.github.io/koka/doc/index.html) and [Morphic](https://morphic-lang.org/) research languages, without which Roc would not be competitive with fast imperative languages on performance.\n-   The [Rust Programming Language](https://rust-lang.org/), which is the language Roc's original compiler was written in. It served us well for years, and I'm still happy to use it daily [at work](https://delta.dev/).\n-   The [Zig Programming Language](https://ziglang.org/), which is the language [Roc's compiler is now written in](https://rtfeldman.com/rust-to-zig). It has continued to be great for us since the rewrite, and I'm still a happy recurring donor to the nonprofit [Zig Software Foundation](https://ziglang.org/zsf).\n-   [Zed](https://zed.dev/), the editor I used for the entirety of the current code base, at least until I switched to...\n-   [Delta](https://delta.dev/), which has become my main tool for building software. It's what I use daily to collaborate with [my coworkers](https://zed.dev/team), as well as some Roc contributors.\n-   And finally, all the people and companies who have [donated](https://roc-lang.org/donate) to the [nonprofit Roc Programming Language Foundation](https://roc-lang.org/foundation). Your donations, whether through [every.org](https://www.every.org/roc-programming-language-foundation?donateTo=roc-programming-language-foundation), [Liberapay](https://liberapay.com/roc_lang), [GitHub Sponsors](https://github.com/sponsors/roc-lang), or [Benevity](https://benevity.com/), have let us pay contributors to improve the language, and we'd love to do more of that! Corporate sponsors are also welcome; [DM me on Zulip](https://roc.zulipchat.com/#narrow/pm-with/281383-user281383) if you'd like to chat about corporate sponsorship.\n\n## What's Next?\n\nThe next release after 0.1.0 will most likely be 0.1.1, with bugfixes and performance improvements based on issues people have already reported on 0.1.0. (It will not take eight years to ship. Most likely sometime in December 2026.) In the meantime, there are automatically-published [nightly releases](https://github.com/roc-lang/nightlies/releases) if you want to try the latest compiler built from the previous day's `main`.\n\nAfter that, here are some things we're exploring for 2027 and beyond:\n\n-   Concurrency primitives in the standard library\n-   Improved test output, as well as support for simulating effects (and testing real effects) and property-based testing out-the-box\n-   A built-in debugger (in addition to the DWARF debug info we already emit for third-party debuggers to use)\n-   Features inspired by theorem provers for additional ways to verify Roc programs\n-   Improving build times for cold builds and optimized builds. (Minimizing development rebuild times was the priority for 0.1.0, since that's the most common feedback loop.)\n\nIt's taken a long time to get this foundation in place, but 0.1.0 is just the beginning for Roc!",
  "html": "<h1>Roc version 0.1.0, eight years in the making</h1>\n<p>November 30, 2026</p>\n<p>After eight years of development, the <a href=\"https://roc-lang.org/\">Roc programming language</a> has its first numbered release: <a href=\"https://www.roc-lang.org/install/\">version 0.1.0</a>!</p>\n<p>There are too many contributors to thank for all their incredible work on the road to this milestone, but I at least want to mention (in alphabetical order) <a href=\"https://github.com/agu-z\">Agus Zubiaga</a>, <a href=\"https://github.com/gamebox\">Anthony Bullard</a>, <a href=\"https://github.com/Anton-4\">Anton-4</a>, <a href=\"https://github.com/ageron\">Aurélien Geron</a>, <a href=\"https://github.com/ayazhafiz/\">Ayaz Hafiz</a>, <a href=\"https://github.com/bhansconnect\">Brendan Hansknecht</a>, <a href=\"https://github.com/brian-carroll\">Brian Carroll</a>, <a href=\"https://github.com/folkertdev\">Folkert de Vries</a>, <a href=\"https://github.com/hasnep\">Hannes</a>, <a href=\"https://github.com/GW-Jack\">Jack Scully</a>, <a href=\"https://github.com/jaredramirez\">Jared Ramirez</a>, <a href=\"https://github.com/jwoudenberg\">Jasper Woudenberg</a>, <a href=\"https://github.com/JTeeuwissen\">Jelle Teeuwissen</a>, <a href=\"https://github.com/joshuawarner32\">Josh Warner</a>, <a href=\"https://github.com/JRI98\">JRI98</a>, <a href=\"https://github.com/lukewilliamboswell/\">Luke Boswell</a>, <a href=\"https://github.com/InvisOn\">MagicMan</a>, <a href=\"https://github.com/niclas-ahden\">Niclas Åhdén</a>, <a href=\"https://github.com/smores56\">Sam Mohr</a>, <a href=\"https://github.com/stephdin\">Stephan</a>, and <a href=\"https://github.com/showell\">Steve Howell</a>.</p>\n<p>Thank you all so much!</p>\n<h2>What is Roc?</h2>\n<p>Roc is a programming language with the tagline <em>fast, friendly, functional</em>.</p>\n<p>It's designed to build faster than Go and output programs that <a href=\"https://rtfeldman.com/fp-vs-c\">run nearly as fast as Rust</a>, with <a href=\"https://www.roc-lang.org/friendly\">user-friendly tooling</a> and a <a href=\"https://www.roc-lang.org/community\">friendly community</a>, plus <a href=\"https://rtfeldman.com/fp-vs-c#what-the-performance-gap-buys\">security and reliability guarantees</a> you can't find in any mainstream language today. Roc hasn't achieved all of its goals yet (version 0.1 is not 1.0!) but as you'll see, 0.1.0 has a lot.</p>\n<p>Roc 0.1.0 compiles to standalone binaries (with hot reloading out-the-box) or to WebAssembly, it combines <a href=\"https://en.wikipedia.org/wiki/Hindley%E2%80%93Milner_type_system\">Hindley-Milner type inference</a> with purity inference and <a href=\"https://www.roc-lang.org/docs/main/langref/static-dispatch/\">static dispatch</a>, and uses a novel system of <a href=\"https://www.roc-lang.org/docs/main/langref/platforms/\">platforms and applications</a> to let you build on lower-level languages without a <a href=\"https://en.wikipedia.org/wiki/Foreign_function_interface\">FFI</a> compromising guarantees.</p>\n<p>I started designing the language in 2018 with a goal of making an <a href=\"https://elm-lang.org/\">Elm</a>-inspired experience for \"the long tail of use cases.\" Back then, Elm was focused only on user interfaces, although now with <a href=\"https://acadia.engineering/\">Acadia</a> its scope has expanded—<a href=\"https://elm-lang.org/\">check it out</a> if you haven't already! Roc has evolved its own character over time, so although the languages still have much in common, there are some obvious differences too.</p>\n<p>I made the first compiler commit in 2019, and <a href=\"https://www.youtube.com/watch?v=ZnYa99QoznE&amp;t=4793s\">talked about the project publicly in 2020</a>. More contributors got involved then, leading to promising early results that I spoke about <a href=\"https://youtu.be/vzfy4EKwG_Y?si=viZ7ANe14Q93ub6r\">at Strange Loop 2021</a>. We incorporated research from the <a href=\"https://koka-lang.github.io/koka/doc/index.html\">Koka</a> and <a href=\"https://morphic-lang.org/\">Morphic</a> languages, but hit a major architectural problem along the way, <a href=\"https://shows.acast.com/software-unscripted/episodes/664fde448c77cc0013b3338a\">which I talked about in detail with Ayaz Hafiz in 2024</a>. This led to a 2025 scratch-rewrite of the compiler, which <a href=\"https://rtfeldman.com/rust-to-zig\">we completed earlier in 2026</a>.</p>\n<p>Many details in the language's design changed over those years, yet the types in the <a href=\"https://www.roc-lang.org/docs/main/\">standard library</a> still look about how they did in my 2018 sketches. (One of the reasons for holding off on making a numbered release was to set a clear expectation not to expect stability. Things are much more stable these days!)</p>\n<p>There's more detail about language specifics below, as well as a showcase of projects community members have built. But first, some numbers!</p>\n<h2>Fast Programs</h2>\n<p>One of Roc's goals is to approach the performance of speed-focused languages like Rust and C++, without quite matching it (since Roc does automatic memory management and is stricter about memory safety than Rust, and both of those design choices have runtime performance costs). So how close can Roc get?</p>\n<p>Here are some performance benchmarks across four community projects. Each includes a comparison to Rust or C, and all were built with the highest levels of optimization in their respective compilers.</p>\n<h3>roc-deflate</h3>\n<p>In <a href=\"https://rtfeldman.com/fp-vs-c\">How close can pure FP get to C?</a>, I compared <a href=\"https://roc.zulipchat.com/#user/524503\">Niclas Åhdén</a>'s <a href=\"https://github.com/niclas-ahden/roc-deflate\">roc-deflate</a> with C's libdeflate across 144 compression benchmarks. You can read more about these measurements in that article, but the quick summary is that roc-deflate had a median slowdown (compared to libdeflate) of 2.6% on an M1 MacBook Pro and 8.9% on a Ryzen 3900X. Here's the main chart from that article:</p>\n<p><em>#### Compression on Silesia corpus</em></p>\n<p>M1 MacBook Pro Ryzen 3900X Ubuntu</p>\n<p>MB/s</p>\n<p>L1</p>\n<p>L2</p>\n<p>L3</p>\n<p>L4</p>\n<p>L5</p>\n<p>L6</p>\n<p>L7</p>\n<p>L8</p>\n<p>L9</p>\n<p>L10</p>\n<p>L11</p>\n<p>L12</p>\n<ul>\n<li><code>libdeflate</code></li>\n<li><code>roc-deflate</code></li>\n</ul>\n<p>Compression Level</p>\n<p>MB/s</p>\n<p>L1</p>\n<p>L2</p>\n<p>L3</p>\n<p>L4</p>\n<p>L5</p>\n<p>L6</p>\n<p>L7</p>\n<p>L8</p>\n<p>L9</p>\n<p>L10</p>\n<p>L11</p>\n<p>L12</p>\n<ul>\n<li><code>libdeflate</code></li>\n<li><code>roc-deflate</code></li>\n</ul>\n<p>Compression Level</p>\n<h3>roc-redis</h3>\n<p><a href=\"https://roc.zulipchat.com/#user/341568\">Jared Ramirez</a> included benchmarks <a href=\"https://github.com/jaredramirez/roc-redis/tree/cdaa573e0aef5da703bcbb298426e1df35b7bfb6#benchmarks\">in the README of his roc-redis package</a>. I plotted them here with Rust's <a href=\"https://github.com/redis-rs/redis-rs\">redis-rs</a> as the dashed red baseline, and the other libraries' numbers converted to percentages of redis-rs. (Higher is better.)</p>\n<p><em>#### Redis client throughput</em></p>\n<ul>\n<li><code>roc-redis</code></li>\n<li><code>go-redis</code></li>\n<li><code>redis-py</code></li>\n<li><code>redis-rs</code></li>\n</ul>\n<p>Throughput vs. redis-rs</p>\n<p>0%</p>\n<p>10%</p>\n<p>20%</p>\n<p>30%</p>\n<p>40%</p>\n<p>50%</p>\n<p>60%</p>\n<p>70%</p>\n<p>80%</p>\n<p>90%</p>\n<p>100%</p>\n<p><code>ping_sequential</code></p>\n<p><code>set_get_sequential</code></p>\n<p><code>incr_sequential</code></p>\n<p><code>ping_pipeline</code></p>\n<p><code>mset_mget_sequential</code></p>\n<p><code>hash_roundtrip_sequential</code></p>\n<p><code>set_get_pipeline</code></p>\n<p>roc-redis on ping_sequential</p>\n<p>91.8% of redis-rs throughput</p>\n<p>go-redis on ping_sequential</p>\n<p>76.0% of redis-rs throughput</p>\n<p>redis-py on ping_sequential</p>\n<p>29.7% of redis-rs throughput</p>\n<p>roc-redis on set_get_sequential</p>\n<p>93.5% of redis-rs throughput</p>\n<p>go-redis on set_get_sequential</p>\n<p>79.2% of redis-rs throughput</p>\n<p>redis-py on set_get_sequential</p>\n<p>29.8% of redis-rs throughput</p>\n<p>roc-redis on incr_sequential</p>\n<p>92.6% of redis-rs throughput</p>\n<p>go-redis on incr_sequential</p>\n<p>78.7% of redis-rs throughput</p>\n<p>redis-py on incr_sequential</p>\n<p>32.1% of redis-rs throughput</p>\n<p>roc-redis on ping_pipeline</p>\n<p>96.3% of redis-rs throughput</p>\n<p>go-redis on ping_pipeline</p>\n<p>91.8% of redis-rs throughput</p>\n<p>redis-py on ping_pipeline</p>\n<p>10.0% of redis-rs throughput</p>\n<p>roc-redis on mset_mget_sequential</p>\n<p>92.7% of redis-rs throughput</p>\n<p>go-redis on mset_mget_sequential</p>\n<p>81.4% of redis-rs throughput</p>\n<p>redis-py on mset_mget_sequential</p>\n<p>29.8% of redis-rs throughput</p>\n<p>roc-redis on hash_roundtrip_sequential</p>\n<p>94.4% of redis-rs throughput</p>\n<p>go-redis on hash_roundtrip_sequential</p>\n<p>80.5% of redis-rs throughput</p>\n<p>redis-py on hash_roundtrip_sequential</p>\n<p>29.7% of redis-rs throughput</p>\n<p>roc-redis on set_get_pipeline</p>\n<p>91.2% of redis-rs throughput</p>\n<p>go-redis on set_get_pipeline</p>\n<p>95.8% of redis-rs throughput</p>\n<p>redis-py on set_get_pipeline</p>\n<p>11.3% of redis-rs throughput</p>\n<h3>roc-regex</h3>\n<p><a href=\"https://roc.zulipchat.com/#user/705503\">Karl</a>'s <a href=\"https://github.com/grayrest/roc-regex\">roc-regex</a> technically benchmarks faster than the popular <a href=\"https://crates.io/crates/regex\"><code>regex</code> Rust crate</a>, but it's not an apples-to-apples comparison. Karl used a matching algorithm based on <a href=\"https://github.com/ieviev/resharp-dotnet\">RE#</a>, which differs from how <code>regex</code> is implemented in ways that favor the RE# algorithm on these particular inputs. Still, both packages get identical answers across all inputs in <a href=\"https://github.com/grayrest/roc-regex/blob/53f50e13a6abd23ee0dd34cf335047e060f7862e/PERFORMANCE.md\">this benchmark</a>. (Lower is better.)</p>\n<p><em>#### Regular expression matching</em></p>\n<ul>\n<li><code>roc-regex</code></li>\n<li><code>regex</code> crate</li>\n</ul>\n<p>Matching time vs. <code>regex</code> crate</p>\n<p>0%</p>\n<p>20%</p>\n<p>40%</p>\n<p>60%</p>\n<p>80%</p>\n<p>100%</p>\n<p>120%</p>\n<p><code>Holmes</code></p>\n<p><code>Moriarty</code></p>\n<p>8-name alternation</p>\n<p><code>[A-Za-z]+</code></p>\n<p><code>[0-9]{2,4}</code></p>\n<p><code>\\bthe\\b</code></p>\n<p><code>\\w+\\s+\\w+</code></p>\n<p><code>(\\w+)@(\\w+)</code></p>\n<p><code>\\p{L}+</code></p>\n<p><code>.*Holmes</code></p>\n<p>roc-regex matching Holmes</p>\n<p>26.54 μs (96% of regex)</p>\n<p>(minimum across five runs)</p>\n<p>roc-regex matching Moriarty</p>\n<p>9.69 μs (98% of regex)</p>\n<p>(minimum across five runs)</p>\n<p>roc-regex matching 8-name alternation</p>\n<p>411.99 μs (97% of regex)</p>\n<p>(minimum across five runs)</p>\n<p>roc-regex matching [A-Za-z]+</p>\n<p>1,041.30 μs (47% of regex)</p>\n<p>(minimum across five runs)</p>\n<p>roc-regex matching [0-9]{2,4}</p>\n<p>58.83 μs (55% of regex)</p>\n<p>(minimum across five runs)</p>\n<p>roc-regex matching \\bthe\\b</p>\n<p>175.63 μs (93% of regex)</p>\n<p>(minimum across five runs)</p>\n<p>roc-regex matching \\w+\\s+\\w+</p>\n<p>1,093.57 μs (71% of regex)</p>\n<p>(minimum across five runs)</p>\n<p>roc-regex matching (\\w+)@(\\w+)</p>\n<p>62.63 μs (91% of regex)</p>\n<p>(minimum across five runs)</p>\n<p>roc-regex matching \\p{L}+</p>\n<p>1,260.14 μs (61% of regex)</p>\n<p>(minimum across five runs)</p>\n<p>roc-regex matching .*Holmes</p>\n<p>238.12 μs (37% of regex)</p>\n<p>(minimum across five runs)</p>\n<h3>roux webserver</h3>\n<p><a href=\"https://roc.zulipchat.com/#user/1190255\">Zak Kohler</a> built <a href=\"https://github.com/Eldhus/roux\">roux</a> on top of his Zig webserver, <a href=\"https://github.com/Eldhus/fourneau\">fourneau</a>. He benchmarked it against Rust's popular <a href=\"https://docs.rs/axum/latest/axum/\"><code>axum</code> crate</a> as well as a vanilla Go webserver. This chart uses his <a href=\"https://fourneau.y2kbugger.com/data/classes/2026-11-28T100029Z-cloud/premium-4.json\">November 28 benchmarks</a>, and his <a href=\"https://fourneau.y2kbugger.com/?class=premium-4&amp;protocol=tls\">Drag Race Page</a> updates nightly with fresh measurements using the latest roux and fourneau. (Higher is better.)</p>\n<p><em>#### HTTP server throughput</em></p>\n<ul>\n<li><code>roux</code></li>\n<li><code>fourneau-zig</code></li>\n<li><code>go</code></li>\n<li><code>axum</code></li>\n</ul>\n<p>Throughput vs. <code>axum</code></p>\n<p>0%</p>\n<p>25%</p>\n<p>50%</p>\n<p>75%</p>\n<p>100%</p>\n<p>125%</p>\n<p>150%</p>\n<p>175%</p>\n<p>Echo 4 KiBConnection churnSSE (<a href=\"https://data-star.dev/\">Datastar</a>)PlaintextPlaintext (h2c)Templates</p>\n<p>axum · Echo 4 KiB</p>\n<p>77,950 req/s (100%)</p>\n<p>(best of three runs)</p>\n<p>fourneau-zig · Echo 4 KiB</p>\n<p>74,510 req/s (96% of axum)</p>\n<p>(best of three runs)</p>\n<p>go · Echo 4 KiB</p>\n<p>45,396 req/s (58% of axum)</p>\n<p>(best of three runs)</p>\n<p>roux · Echo 4 KiB</p>\n<p>77,576 req/s (100% of axum)</p>\n<p>(best of three runs)</p>\n<p>axum · Connection churn</p>\n<p>14,730 req/s (100%)</p>\n<p>(best of three runs)</p>\n<p>fourneau-zig · Connection churn</p>\n<p>14,550 req/s (99% of axum)</p>\n<p>(best of three runs)</p>\n<p>go · Connection churn</p>\n<p>7,458 req/s (51% of axum)</p>\n<p>(best of three runs)</p>\n<p>roux · Connection churn</p>\n<p>14,621 req/s (99% of axum)</p>\n<p>(best of three runs)</p>\n<p>axum · SSE (Datastar)</p>\n<p>99,010 req/s (100%)</p>\n<p>(best of three runs)</p>\n<p>fourneau-zig · SSE (Datastar)</p>\n<p>136,931 req/s (138% of axum)</p>\n<p>(best of three runs)</p>\n<p>go · SSE (Datastar)</p>\n<p>19,736 req/s (20% of axum)</p>\n<p>(best of three runs)</p>\n<p>roux · SSE (Datastar)</p>\n<p>139,933 req/s (141% of axum)</p>\n<p>(best of three runs)</p>\n<p>axum · Plaintext</p>\n<p>236,522 req/s (100%)</p>\n<p>(best of three runs)</p>\n<p>fourneau-zig · Plaintext</p>\n<p>354,305 req/s (150% of axum)</p>\n<p>(best of three runs)</p>\n<p>go · Plaintext</p>\n<p>69,886 req/s (30% of axum)</p>\n<p>(best of three runs)</p>\n<p>roux · Plaintext</p>\n<p>361,682 req/s (153% of axum)</p>\n<p>(best of three runs)</p>\n<p>axum · Plaintext (h2c)</p>\n<p>244,087 req/s (100%)</p>\n<p>(best of three runs)</p>\n<p>fourneau-zig · Plaintext (h2c)</p>\n<p>383,439 req/s (157% of axum)</p>\n<p>(best of three runs)</p>\n<p>go · Plaintext (h2c)</p>\n<p>74,426 req/s (30% of axum)</p>\n<p>(best of three runs)</p>\n<p>roux · Plaintext (h2c)</p>\n<p>391,028 req/s (160% of axum)</p>\n<p>(best of three runs)</p>\n<p>axum · Templates</p>\n<p>38,710 req/s (100%)</p>\n<p>(best of three runs)</p>\n<p>fourneau-zig · Templates</p>\n<p>63,443 req/s (164% of axum)</p>\n<p>(best of three runs)</p>\n<p>go · Templates</p>\n<p>1,875 req/s (5% of axum)</p>\n<p>(best of three runs)</p>\n<p>roux · Templates</p>\n<p>49,569 req/s (128% of axum)</p>\n<p>(best of three runs)</p>\n<h2>Fast Feedback Loops</h2>\n<p>Roc is designed not only to run fast, but also to provide fast feedback loops.</p>\n<p>Instead of sharing laboratory benchmarks on build times, I decided to <a href=\"https://roc.zulipchat.com/#narrow/channel/304902-show-and-tell/topic/community.20showcase.20in.200.2E1.2E0.20blog.20post/with/642730743\">ask the community</a> what projects of theirs I could share in this post. Some posted their own build times, and others I measured on my own machine. (A few of the projects were commercial and proprietary, so I don't have access to the code.)</p>\n<blockquote>\n<p><strong>Terminology note:</strong> a \"cold\" build has no on-disk cache yet, a \"warm\" build has been built once before (and so benefits from the cache), \"root changed\" means a rebuild after only the root module changed (meaning every other module can be loaded from cache; this is almost the best-case scenario for caching), and \"import changed\" means a rebuild after a heavily-imported module changed, which would invalidate a bunch of cached modules and bring the overall build time closer to the cold build time.</p>\n</blockquote>\n<p><code>roc check</code> does type-checking and <a href=\"https://www.roc-lang.org/docs/main/langref/compile-time/\">compile-time evaluation</a> and reports errors, <code>roc build --opt=dev</code> does everything <code>roc check</code> does, and then also outputs a binary (a development build without optimizations, because of <code>--opt=dev</code>), and <code>roc test</code> runs tests as well.</p>\n<p>Here are the results:</p>\n<p><em>### <code>roc check</code> on real-world code bases</em></p>\n<ul>\n<li>Cold</li>\n<li>Warm</li>\n<li>Root changed</li>\n<li>Import changed</li>\n</ul>\n<p><code>roc check</code> wall time</p>\n<p>0</p>\n<p>200 ms</p>\n<p>400 ms</p>\n<p>600 ms</p>\n<p>800 ms</p>\n<p>1 s</p>\n<p>0</p>\n<p>10k</p>\n<p>20k</p>\n<p>30k</p>\n<p>40k</p>\n<p>50k</p>\n<p>60k</p>\n<p>70k</p>\n<p>Lines of code including dependencies</p>\n<p>lukewilliamboswell/roc-graph-layout · cold</p>\n<p>874 ms · 66,168 lines</p>\n<p>(median across five runs)</p>\n<p>roxum/ddd · cold</p>\n<p>560 ms · 11,896 lines</p>\n<p>(median across three runs)</p>\n<p>roxum/middleware · cold</p>\n<p>530 ms · 10,501 lines</p>\n<p>(median across three runs)</p>\n<p>grayrest/roc-regex · cold</p>\n<p>509 ms · 17,408 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-font · cold</p>\n<p>489 ms · 29,118 lines</p>\n<p>(median across five runs)</p>\n<p>roxum/hello · cold</p>\n<p>470 ms · 10,159 lines</p>\n<p>(median across three runs)</p>\n<p>lukewilliamboswell/weaver · cold</p>\n<p>399 ms · 15,470 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-ray · cold</p>\n<p>398 ms · 18,856 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-apps · cold</p>\n<p>344 ms · 4,371 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-markdown · cold</p>\n<p>329 ms · 6,241 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · cold</p>\n<p>319 ms · 12,951 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-automation · cold</p>\n<p>294 ms · 9,239 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · cold</p>\n<p>249 ms · 13,822 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-regex · import changed</p>\n<p>218 ms · 17,408 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-regex · root changed</p>\n<p>201 ms · 17,408 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-font · import changed</p>\n<p>185 ms · 29,118 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · import changed</p>\n<p>88.1 ms · 13,822 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-markdown · import changed</p>\n<p>83.7 ms · 6,241 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-apps · import changed</p>\n<p>81.6 ms · 4,371 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-graph-layout · import changed</p>\n<p>79.3 ms · 66,168 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-graph-layout · root changed</p>\n<p>62.3 ms · 66,168 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · import changed</p>\n<p>61 ms · 12,951 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/weaver · import changed</p>\n<p>59.7 ms · 15,470 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-apps · root changed</p>\n<p>52.5 ms · 4,371 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-font · root changed</p>\n<p>48.5 ms · 29,118 lines</p>\n<p>(median across five runs)</p>\n<p>rocco/widgets · cold</p>\n<p>46 ms · 3,740 lines</p>\n<p>(median across three runs)</p>\n<p>rocco/pong · cold</p>\n<p>41 ms · 3,583 lines</p>\n<p>(median across three runs)</p>\n<p>lukewilliamboswell/weaver · root changed</p>\n<p>30.6 ms · 15,470 lines</p>\n<p>(median across five runs)</p>\n<p>rocco/primitives · cold</p>\n<p>30 ms · 2,134 lines</p>\n<p>(median across three runs)</p>\n<p>lukewilliamboswell/roc-ray · root changed</p>\n<p>28.6 ms · 18,856 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-automation · root changed</p>\n<p>26.9 ms · 9,239 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · root changed</p>\n<p>23.8 ms · 13,822 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-graph-layout · warm</p>\n<p>20.8 ms · 66,168 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · root changed</p>\n<p>18.9 ms · 12,951 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-font · warm</p>\n<p>12.2 ms · 29,118 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet · cold</p>\n<p>10.8 ms · 29 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · warm</p>\n<p>10.2 ms · 12,951 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/weaver · warm</p>\n<p>9.9 ms · 15,470 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-ray · warm</p>\n<p>9.9 ms · 18,856 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet · root changed</p>\n<p>9.7 ms · 29 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · warm</p>\n<p>9.7 ms · 13,822 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-regex · warm</p>\n<p>9.5 ms · 17,408 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-markdown · root changed</p>\n<p>8.6 ms · 6,241 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-automation · warm</p>\n<p>8.3 ms · 9,239 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-platform-template-zig · cold</p>\n<p>7.6 ms · 106 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-markdown · warm</p>\n<p>6.5 ms · 6,241 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-apps · warm</p>\n<p>6.3 ms · 4,371 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-platform-template-zig · root changed</p>\n<p>5.7 ms · 106 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet · warm</p>\n<p>4.4 ms · 29 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-platform-template-zig · warm</p>\n<p>4.4 ms · 106 lines</p>\n<p>(median across five runs)</p>\n<p><em>### <code>roc build --opt=dev</code> on real-world code bases</em></p>\n<ul>\n<li>Cold</li>\n<li>Warm</li>\n<li>Root changed</li>\n<li>Import changed</li>\n</ul>\n<p><code>roc build --opt=dev</code> wall time</p>\n<p>0</p>\n<p>200 ms</p>\n<p>400 ms</p>\n<p>600 ms</p>\n<p>800 ms</p>\n<p>1 s</p>\n<p>0</p>\n<p>10k</p>\n<p>20k</p>\n<p>30k</p>\n<p>40k</p>\n<p>50k</p>\n<p>60k</p>\n<p>70k</p>\n<p>Lines of code including dependencies</p>\n<p>lukewilliamboswell/roc-graph-layout · cold</p>\n<p>985 ms · 66,168 lines</p>\n<p>(median across five runs)</p>\n<p>roxum/ddd · cold</p>\n<p>640 ms · 11,896 lines</p>\n<p>(median across three runs)</p>\n<p>roxum/middleware · cold</p>\n<p>590 ms · 10,501 lines</p>\n<p>(median across three runs)</p>\n<p>lukewilliamboswell/roc-font · cold</p>\n<p>559 ms · 29,118 lines</p>\n<p>(median across five runs)</p>\n<p>roxum/hello · cold</p>\n<p>530 ms · 10,159 lines</p>\n<p>(median across three runs)</p>\n<p>grayrest/roc-regex · cold</p>\n<p>527 ms · 17,408 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/weaver · cold</p>\n<p>441 ms · 15,470 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-automation · cold</p>\n<p>334 ms · 9,239 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · cold</p>\n<p>332 ms · 12,951 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · cold</p>\n<p>271 ms · 13,822 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-regex · import changed</p>\n<p>226 ms · 17,408 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-regex · root changed</p>\n<p>207 ms · 17,408 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-font · import changed</p>\n<p>204 ms · 29,118 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-graph-layout · import changed</p>\n<p>115 ms · 66,168 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-graph-layout · root changed</p>\n<p>98.6 ms · 66,168 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · import changed</p>\n<p>94.8 ms · 13,822 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-automation · root changed</p>\n<p>86.2 ms · 9,239 lines</p>\n<p>(median across five runs)</p>\n<p>rocco/widgets · cold</p>\n<p>86 ms · 3,740 lines</p>\n<p>(median across three runs)</p>\n<p>lukewilliamboswell/weaver · import changed</p>\n<p>84.6 ms · 15,470 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-font · root changed</p>\n<p>81.4 ms · 29,118 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-graph-layout · warm</p>\n<p>80.1 ms · 66,168 lines</p>\n<p>(median across five runs)</p>\n<p>rocco/pong · cold</p>\n<p>73 ms · 3,583 lines</p>\n<p>(median across three runs)</p>\n<p>lukewilliamboswell/weaver · root changed</p>\n<p>63.4 ms · 15,470 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · import changed</p>\n<p>58.1 ms · 12,951 lines</p>\n<p>(median across five runs)</p>\n<p>rocco/primitives · cold</p>\n<p>56 ms · 2,134 lines</p>\n<p>(median across three runs)</p>\n<p>lukewilliamboswell/roc-font · warm</p>\n<p>55.7 ms · 29,118 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · root changed</p>\n<p>38.3 ms · 12,951 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · root changed</p>\n<p>26.9 ms · 13,822 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/weaver · warm</p>\n<p>21.5 ms · 15,470 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · warm</p>\n<p>18 ms · 13,822 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-regex · warm</p>\n<p>17.8 ms · 17,408 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · warm</p>\n<p>16.9 ms · 12,951 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-automation · warm</p>\n<p>16.3 ms · 9,239 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet · cold</p>\n<p>14.2 ms · 29 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet · root changed</p>\n<p>13.4 ms · 29 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet · warm</p>\n<p>8.5 ms · 29 lines</p>\n<p>(median across five runs)</p>\n<p><em>### <code>roc test</code> on real-world code bases</em></p>\n<ul>\n<li>Cold</li>\n<li>Warm</li>\n<li>Root changed</li>\n<li>Import changed</li>\n</ul>\n<p><code>roc test</code> wall time</p>\n<p>0</p>\n<p>500 ms</p>\n<p>1 s</p>\n<p>1.5 s</p>\n<p>2 s</p>\n<p>2.5 s</p>\n<p>0</p>\n<p>10k</p>\n<p>20k</p>\n<p>30k</p>\n<p>40k</p>\n<p>50k</p>\n<p>60k</p>\n<p>Lines of code including dependencies</p>\n<p>lukewilliamboswell/roc-blueprint · cold</p>\n<p>2.242 s · 14,460 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-graph-layout · cold</p>\n<p>1.8 s · 57,088 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-blueprint · import changed</p>\n<p>1.744 s · 14,460 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-markdown · cold</p>\n<p>1.621 s · 8,649 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-font · cold</p>\n<p>1.621 s · 19,995 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-markdown · import changed</p>\n<p>1.608 s · 8,649 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-markdown · root changed</p>\n<p>1.567 s · 8,649 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-graph-layout · import changed</p>\n<p>700 ms · 57,088 lines</p>\n<p>(median across five runs)</p>\n<p>roxum/ddd · cold</p>\n<p>700 ms · 11,896 lines</p>\n<p>(median across three runs)</p>\n<p>roxum/middleware · cold</p>\n<p>650 ms · 10,501 lines</p>\n<p>(median across three runs)</p>\n<p>roxum/hello · cold</p>\n<p>620 ms · 10,159 lines</p>\n<p>(median across three runs)</p>\n<p>lukewilliamboswell/roc-time · cold</p>\n<p>580 ms · 19,374 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/weaver · cold</p>\n<p>457 ms · 7,190 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-ray · cold</p>\n<p>432 ms · 18,856 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-markdown · cold</p>\n<p>366 ms · 6,241 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-regex · cold</p>\n<p>261 ms · 9,076 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-font · import changed</p>\n<p>198 ms · 19,995 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-regex · import changed</p>\n<p>147 ms · 9,076 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · cold</p>\n<p>132 ms · 3,838 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-apps · cold</p>\n<p>115 ms · 2,869 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · import changed</p>\n<p>110 ms · 19,374 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-markdown · import changed</p>\n<p>83.7 ms · 6,241 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/weaver · import changed</p>\n<p>65.6 ms · 7,190 lines</p>\n<p>(median across five runs)</p>\n<p>rocco/widgets · cold</p>\n<p>65 ms · 3,740 lines</p>\n<p>(median across three runs)</p>\n<p>lukewilliamboswell/plume · import changed</p>\n<p>56 ms · 3,838 lines</p>\n<p>(median across five runs)</p>\n<p>rocco/pong · cold</p>\n<p>56 ms · 3,583 lines</p>\n<p>(median across three runs)</p>\n<p>showell/roc-apps · import changed</p>\n<p>51.7 ms · 2,869 lines</p>\n<p>(median across five runs)</p>\n<p>rocco/primitives · cold</p>\n<p>42 ms · 2,134 lines</p>\n<p>(median across three runs)</p>\n<p>lukewilliamboswell/roc-ray · root changed</p>\n<p>41.2 ms · 18,856 lines</p>\n<p>(median across five runs)</p>\n<p>lyceum-quest/study · cold</p>\n<p>27.6 ms · 348 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-apps · root changed</p>\n<p>26 ms · 2,869 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-graph-layout · root changed</p>\n<p>22.6 ms · 57,088 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-graph-layout · warm</p>\n<p>19.3 ms · 57,088 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-platform-template-zig · cold</p>\n<p>14.9 ms · 139 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet-display · import changed</p>\n<p>14.4 ms · 101 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet-display · cold</p>\n<p>14.3 ms · 101 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · root changed</p>\n<p>13.7 ms · 19,374 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-time · warm</p>\n<p>13 ms · 19,374 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-font · root changed</p>\n<p>12.9 ms · 19,995 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-platform-template-zig · root changed</p>\n<p>12.2 ms · 139 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-font · warm</p>\n<p>11.1 ms · 19,995 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-ray · warm</p>\n<p>10.9 ms · 18,856 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet · root changed</p>\n<p>10 ms · 29 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet · cold</p>\n<p>9.3 ms · 29 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-blueprint · root changed</p>\n<p>9.1 ms · 14,460 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-markdown · root changed</p>\n<p>8 ms · 6,241 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-blueprint · warm</p>\n<p>7.8 ms · 14,460 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-markdown · warm</p>\n<p>7 ms · 6,241 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/weaver · root changed</p>\n<p>7 ms · 7,190 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-regex · root changed</p>\n<p>6.9 ms · 9,076 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · root changed</p>\n<p>6.8 ms · 3,838 lines</p>\n<p>(median across five runs)</p>\n<p>showell/roc-apps · warm</p>\n<p>6.5 ms · 2,869 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/weaver · warm</p>\n<p>6.2 ms · 7,190 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-regex · warm</p>\n<p>6.2 ms · 9,076 lines</p>\n<p>(median across five runs)</p>\n<p>grayrest/roc-markdown · warm</p>\n<p>6 ms · 8,649 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/plume · warm</p>\n<p>5.7 ms · 3,838 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet-display · root changed</p>\n<p>4.8 ms · 101 lines</p>\n<p>(median across five runs)</p>\n<p>lyceum-quest/study · root changed</p>\n<p>4.8 ms · 348 lines</p>\n<p>(median across five runs)</p>\n<p>lukewilliamboswell/roc-platform-template-zig · warm</p>\n<p>4.4 ms · 139 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet-display · warm</p>\n<p>4.1 ms · 101 lines</p>\n<p>(median across five runs)</p>\n<p>ageron/roclet · warm</p>\n<p>3.9 ms · 29 lines</p>\n<p>(median across five runs)</p>\n<p>lyceum-quest/study · warm</p>\n<p>3.9 ms · 348 lines</p>\n<p>(median across five runs)</p>\n<p>I left one outlier out of these charts because it made the y-axes hard to read: <a href=\"https://github.com/Pixelsprout/rocco-engine/tree/88ac6c234b2577778dc93d87027da43afdc58255/examples/village\">Rocco's village example</a>. Its cold-run median build times on an M5 MacBook Pro were 1s for <code>roc check</code>, 3.5s for <code>roc build --opt=dev</code>, and 7.5s for <code>roc test</code>. The example wasn't significantly bigger than the other code bases, but it contained a huge literal which revealed a pathological edge case in the compiler. A fix for that edge case should be in the next release after 0.1.0.</p>\n<p>Roc is designed to have user-friendly syntax, APIs, and compiler error messages.</p>\n<h3>Syntax Example</h3>\n<p>Here's what Roc code looks like, adapted from a <a href=\"https://github.com/grayrest/kite/blob/05bd02ec625708a1323a2c4a32ae8076a16c7bd1/examples/grid-finance/main.roc#L435-L446\">sparkline rendering example</a> in <a href=\"https://github.com/grayrest/kite\">Kite</a>, a Roc GUI platform whose author runs it on an e-ink tablet. (You can read more about Kite in its community showcase entry below.)</p>\n<pre><code>spark_cell = |ctx| {\n\tprices = ctx.row.timeline\n\t\n\tup = match (prices.first(), prices.last()) {\n\t\t(Ok(first), Ok(last)) =&gt; first &lt; last\n\t\t(_, _) =&gt; True\n\t}\n\t\n\tcolor = if up { Colors.good } else { Colors.bad }\n\t\n\tSparkline.bars(prices, 100.0, 28.0, color)\n\t\t|&gt; View.style(St.width(Grow).height(Fixed(28)))\n}\n</code></pre>\n<h3>Error Messages</h3>\n<p>Here's the error message you get if you change <code>True</code> to <code>1</code> in this example:</p>\n<p><em>✗ type mismatchmain.roc:11:13</em></p>\n<pre><code>This number is being used where a non-number type is needed.\n\n(_, _) =&gt; 1\n          ^\n\nOther code expects this to have the type:\n\n    Bool\n</code></pre>\n<p>Roc is directly descended from <a href=\"https://elm-lang.org/\">Elm</a>, whose compiler is legendary for <a href=\"https://elm-lang.org/news/another-step-towards-elm-v1\">its friendly error messages</a>, and Roc's goal is to follow in its footsteps.</p>\n<h3>Purity Inference</h3>\n<p>A concise example of Roc's user-friendliness is this snippet:</p>\n<pre><code>if File.exists!(path)\n</code></pre>\n<p>Just by looking at this code, I can tell you that <code>File.exists!</code> is not a pure function; it performs side effects. That's because Roc's type system gives different types to <a href=\"https://www.roc-lang.org/docs/main/langref/functions/#pure-functions\">pure functions</a> and <a href=\"https://www.roc-lang.org/docs/main/langref/functions/#effectful-functions\">effectful functions</a>, and the compiler enforces the naming convention that effectful functions' names must end in <code>!</code>.</p>\n<p>I can also tell that this conditional is inside an effectful function. That's because effectful functions may only be called from other effectful functions (pure functions can be called anywhere), which the compiler infers and enforces. This simple system reliably tells you which parts of your code base are pure (usually most, in real-world Roc code bases), and exactly where the effects are, while keeping function calls as straightforward as they are in mainstream languages.</p>\n<h3>Compile-Time Evaluation</h3>\n<p>Pure functions are also evaluated at compile time when possible (that is, when they depend on no runtime inputs), and this happens before exhaustiveness checking. That means this <a href=\"https://github.com/grayrest/roc-regex\">roc-regex</a> snippet will execute <code>Regex.compile</code> when you are compiling your Roc program:</p>\n<pre><code>Ok(my_regex) = Regex.compile(\".*Holmes.*&amp;.*Watson.*\")\n</code></pre>\n<p>If your regex string contains a syntax error, <code>Regex.compile</code> will return an <code>Err</code> during compile-time evaluation, making the <code>Ok</code> pattern-match fail before your program even runs. Even <code>roc check</code> will report an error for this! These functions are safe to evaluate at compile time because the compiler knows they're pure.</p>\n<h3>Friendly People</h3>\n<p>The Roc community is also full of friendly people who hang out in <a href=\"https://roc.zulipchat.com/\">Roc Zulip</a>. Come <a href=\"https://roc.zulipchat.com/#narrow/stream/387892-1-Introductions/topic/introductions\">say hi in the #introductions channel</a>!</p>\n<p>When I asked for community projects to share in the 0.1.0 announcement post, <a href=\"https://roc.zulipchat.com/#narrow/channel/304902-show-and-tell/topic/community.20showcase.20in.200.2E1.2E0.20blog.20post/with/642730743\">I got way too many responses to put here</a>, so I left some out and limited these to one project per author. Below each featured project, you can find links to other projects that community member has made.</p>\n<p>Roc is designed to be useful in a variety of use cases, and these projects demonstrate a wide range of them: a full-stack Web framework, native macOS and Windows app frameworks based on reactive signals, a 3D game engine, a reactive notebook, a neural-network library, a native GUI platform running apps on an e-ink tablet, a chat client, a Game Boy Advance emulator, commercial screenwriting software, an immediate-mode UI library, a Web framework for hypermedia apps, a bindings generator for Godot and related game engines, a CLI for reproducible development environments and machines, a Redis client, an HTTP API and backend server platform, and a serialization format.</p>\n<p>An open-source framework for building full-stack web applications in Roc, with an Elm-style architecture and a WebAssembly frontend. Niclas has been <a href=\"https://youtu.be/FN2VwXFcM1s?si=F3gTKECxu94Zybzg&amp;t=162\">using Joy in paid production work for 2 years</a>.</p>\n<p><a href=\"https://www.youtube.com/watch?v=0XlhqdcMnaw\"><img src=\"https://rtfeldman.com/assets/showcase/joy-youtube.jpg\" alt=\"Niclas Åhdén talking about the Joy Web Framework\" /></a></p>\n<p>Niclas has also published numerous other open-source Roc packages, most of which he uses in production.</p>\n<p>Platforms for building native macOS and Windows applications in Roc, using pure functions for rendering and reactive signals for state updates without side effects.</p>\n<p><a href=\"https://www.youtube.com/watch?v=vGdAUxwQwMo\"><img src=\"https://rtfeldman.com/assets/showcase/macos-youtube.jpg\" alt=\"Build native macOS apps using Roc — Luke Boswell\" /></a></p>\n<p>Luke uses Roc for internal tooling at work, and has open-sourced many different packages and platforms.</p>\n<p>An experimental 3D game engine for native desktop or WebAssembly games, with game logic written in Roc and engine internals written in <a href=\"https://odin-lang.org/\">Odin</a>. It has <a href=\"https://pixelsprout.dev/projects/rocco/tour/01-window/\">a stylish interactive tour</a> that you can try in your browser.</p>\n<p> <a href=\"https://rtfeldman.com/assets/showcase/rocco-demo.mp4\">Download the Rocco demo video.</a></p>\n<p>Reactive Roc notebooks that run in a browser (including offline!) with support for exporting notebooks and running the server locally.</p>\n<p> <a href=\"https://rtfeldman.com/assets/showcase/roclet-introduction.mp4\">Download the Roclet introduction.</a></p>\n<p><em>Aurélien's introduction to Roclet. <a href=\"https://roc.zulipchat.com/#narrow/channel/304902-show-and-tell/near/636792191\">Shared on Zulip</a>.</em></p>\n<p>Aurélien has also written lots of <a href=\"https://www.roc-lang.org/docs/main/\">Roc's official documentation</a> and <a href=\"https://www.roc-lang.org/tutorial/\">tutorial</a>, and also created the <a href=\"https://exercism.org/tracks/roc\">Roc Exercism Track</a>. He's also published a variety of other Roc packages.</p>\n<p>A small neural network package for exploring machine learning, inspired by <a href=\"https://github.com/karpathy/micrograd\">micrograd</a> and <a href=\"https://github.com/tinygrad/tinygrad\">tinygrad</a>. You can <a href=\"https://asteroidb612.github.io/rocrograd/\">try it in your browser</a> via Roclet.</p>\n<p>A native GUI platform using <a href=\"https://guide.elm-lang.org/architecture/\">The Elm Architecture</a>, <a href=\"https://tailwindcss.com/\">Tailwind</a>-inspired styles, animation, and rich text. Karl runs it on an e-ink tablet:</p>\n<p>Karl has open-sourced other Roc packages as well.</p>\n<p>A privately-deployed chat application featuring topics, direct messages, and Markdown for styling. roc-chat uses Roc for its application logic and a custom <a href=\"https://www.roc-lang.org/docs/main/langref/platforms/\">platform</a> under the hood written in <a href=\"https://ziglang.org/\">Zig</a>.</p>\n<p>Steve has also built games, learning materials, and packages in Roc.</p>\n<p>A work-in-progress Game Boy Advance emulator written in Roc. It uses Luke Boswell's <a href=\"https://github.com/lukewilliamboswell/roc-ray\">roc-ray</a> for graphics, and has not implemented sound yet.</p>\n<p>Commercial screenwriting software that uses Roc for screenplay layout, pagination, and other application logic, with a custom Rust <a href=\"https://www.roc-lang.org/docs/main/langref/platforms/\">platform</a> under the hood for managing I/O and collaborative document state.</p>\n<p>An immediate-mode GUI library for Roc native applications and games, with a <a href=\"https://github.com/nicbarker/clay\">Clay</a>-inspired layout system, a Model-View-Update architecture, and <a href=\"https://github.com/lukewilliamboswell/roc-ray\">roc-ray</a> rendering. You can see its <a href=\"https://github.com/obust/terrocotta/blob/main/examples/tutorial/README.md\">interactive tutorial</a> in action here:</p>\n<p> <a href=\"https://rtfeldman.com/assets/showcase/terrocotta-tutorial.mp4\">Download the Terrocotta demo.</a></p>\n<p>A web platform with typed HTML templates, <a href=\"https://www.sqlite.org/\">SQLite</a> queries that are verified at compile time, <a href=\"https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events\">server-sent events</a>, and live reload. <a href=\"https://github.com/Eldhus/roux-tutor\">Its tutorial</a> is a Roux app, and there are <a href=\"https://fourneau.y2kbugger.com/?class=premium-4&amp;protocol=tls\">nightly benchmarks</a> vs. Go, axum, and others.</p>\n<p>Generates Roc bindings for <a href=\"https://godotengine.org/\">Godot</a>, <a href=\"https://www.redotengine.org/\">Redot</a>, and other game engines using <a href=\"https://docs.godotengine.org/en/4.4/tutorials/scripting/gdextension/index.html\">GDExtension</a>, so you can write game logic in Roc for any of these engines.</p>\n<p>Scott has also built other platforms and developer tools in Roc.</p>\n<p>As <a href=\"https://github.com/thebrandonlucas/kai\">the README</a> explains: \"Kai wraps Nix in a friendly frontend\"—with an optional <a href=\"https://github.com/thebrandonlucas/kai#guix\">guix plugin</a> as well.</p>\n<p>Brandon has also built Ancient Greek learning tools in Roc.</p>\n<p>A binary-safe Redis client that can be used from different Roc platforms. Jared isn't aware of anyone using it in the wild yet.</p>\n<p><em>#### Redis client throughput (higher is better)</em></p>\n<ul>\n<li><code>roc-redis</code></li>\n<li><code>go-redis</code></li>\n<li><code>redis-py</code></li>\n<li><code>redis-rs</code></li>\n</ul>\n<p>Throughput vs. redis-rs</p>\n<p>0%</p>\n<p>10%</p>\n<p>20%</p>\n<p>30%</p>\n<p>40%</p>\n<p>50%</p>\n<p>60%</p>\n<p>70%</p>\n<p>80%</p>\n<p>90%</p>\n<p>100%</p>\n<p><code>ping_sequential</code></p>\n<p><code>set_get_sequential</code></p>\n<p><code>incr_sequential</code></p>\n<p><code>ping_pipeline</code></p>\n<p><code>mset_mget_sequential</code></p>\n<p><code>hash_roundtrip_sequential</code></p>\n<p><code>set_get_pipeline</code></p>\n<p>roc-redis on ping_sequential</p>\n<p>91.8% of redis-rs throughput</p>\n<p>go-redis on ping_sequential</p>\n<p>76.0% of redis-rs throughput</p>\n<p>redis-py on ping_sequential</p>\n<p>29.7% of redis-rs throughput</p>\n<p>roc-redis on set_get_sequential</p>\n<p>93.5% of redis-rs throughput</p>\n<p>go-redis on set_get_sequential</p>\n<p>79.2% of redis-rs throughput</p>\n<p>redis-py on set_get_sequential</p>\n<p>29.8% of redis-rs throughput</p>\n<p>roc-redis on incr_sequential</p>\n<p>92.6% of redis-rs throughput</p>\n<p>go-redis on incr_sequential</p>\n<p>78.7% of redis-rs throughput</p>\n<p>redis-py on incr_sequential</p>\n<p>32.1% of redis-rs throughput</p>\n<p>roc-redis on ping_pipeline</p>\n<p>96.3% of redis-rs throughput</p>\n<p>go-redis on ping_pipeline</p>\n<p>91.8% of redis-rs throughput</p>\n<p>redis-py on ping_pipeline</p>\n<p>10.0% of redis-rs throughput</p>\n<p>roc-redis on mset_mget_sequential</p>\n<p>92.7% of redis-rs throughput</p>\n<p>go-redis on mset_mget_sequential</p>\n<p>81.4% of redis-rs throughput</p>\n<p>redis-py on mset_mget_sequential</p>\n<p>29.8% of redis-rs throughput</p>\n<p>roc-redis on hash_roundtrip_sequential</p>\n<p>94.4% of redis-rs throughput</p>\n<p>go-redis on hash_roundtrip_sequential</p>\n<p>80.5% of redis-rs throughput</p>\n<p>redis-py on hash_roundtrip_sequential</p>\n<p>29.7% of redis-rs throughput</p>\n<p>roc-redis on set_get_pipeline</p>\n<p>91.2% of redis-rs throughput</p>\n<p>go-redis on set_get_pipeline</p>\n<p>95.8% of redis-rs throughput</p>\n<p>redis-py on set_get_pipeline</p>\n<p>11.3% of redis-rs throughput</p>\n<p>A webserver platform with typed handlers, tags, and staged middleware. Here's how <a href=\"https://github.com/KouYuume/roxum/blob/bc4b5059d68b0e72798be0a7d7838543425fca82/docs/performance.md\">Roxum benchmarks</a> against Rust's <code>axum</code> crate:</p>\n<p><em>#### HTTP throughput with Roxum</em></p>\n<ul>\n<li><code>roxum</code></li>\n<li><code>axum</code></li>\n</ul>\n<p>Throughput vs. axum</p>\n<p>0%</p>\n<p>20%</p>\n<p>40%</p>\n<p>60%</p>\n<p>80%</p>\n<p>100%</p>\n<p>120%</p>\n<p>Plaintext</p>\n<p>Pre-encoded JSON</p>\n<p>Routing (100 routes)</p>\n<p>Keep-alive-heavy</p>\n<p>1,000 connections</p>\n<p>Roxum on plaintext</p>\n<p>216,198 req/s (82% of axum)</p>\n<p>(median across four runs)</p>\n<p>Roxum on pre-encoded json</p>\n<p>218,086 req/s (83% of axum)</p>\n<p>(median across four runs)</p>\n<p>Roxum on routing (100 routes)</p>\n<p>187,479 req/s (73% of axum)</p>\n<p>(median across four runs)</p>\n<p>Roxum on keep-alive-heavy</p>\n<p>172,320 req/s (96% of axum)</p>\n<p>(median across four runs)</p>\n<p>Roxum on 1,000 connections</p>\n<p>200,752 req/s (76% of axum)</p>\n<p>(median across four runs)</p>\n<p>Pronounced \"raven,\" short for Roc Value Notation. As <a href=\"https://git.sr.ht/~jwoudenberg/roc/tree/main/item/rvn/README.md\">the README</a> says:</p>\n<blockquote>\n<p>Raven is to Roc as JSON is to JavaScript. Any Roc value that does not contain functions is valid Raven.</p>\n</blockquote>\n<pre><code>{\n\tlanguage: \"Roc\",\n\ttags: [Fast, Friendly, Functional],\n\tcolor: 0x7c38f5, # Hex numbers and comments, too!\n}\n</code></pre>\n<p>Jasper also created <a href=\"https://git.sr.ht/~jwoudenberg/roc/tree/main/item/gregorian/README.md\">Gregorian</a>, \"a small and safe date/time package.\"</p>\n<h3>Other Packages</h3>\n<p>You can find many more Roc projects at <a href=\"https://github.com/lukewilliamboswell/roc-awesome\">roc-awesome</a>, or right here in this list:</p>\n<p>More packages from community members</p>\n<h4>Niclas Åhdén</h4>\n<ul>\n<li><a href=\"https://github.com/niclas-ahden/joy-html\"><strong>joy-html</strong></a> provides HTML building blocks for Joy applications.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-pg\"><strong>roc-pg</strong></a> is a PostgreSQL client with compile-time checking of SQL queries.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-deflate\"><strong>roc-deflate</strong></a> implements DEFLATE compression in pure Roc.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-xlsx\"><strong>roc-xlsx</strong></a> generates Excel spreadsheets.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-zip\"><strong>roc-zip</strong></a> creates and extracts ZIP archives.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-playwright\"><strong>roc-playwright</strong></a> lets Roc programs automate browsers using Playwright.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-spec\"><strong>roc-spec</strong></a> runs tests in parallel with isolated test environments.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-vcr\"><strong>roc-vcr</strong></a> records and replays HTTP interactions for tests.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-openapi\"><strong>roc-openapi</strong></a> validates HTTP request bodies against OpenAPI specifications.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-sendgrid\"><strong>roc-sendgrid</strong></a> sends email through SendGrid.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-url\"><strong>roc-url</strong></a> parses and constructs URLs.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-database-url\"><strong>roc-database-url</strong></a> parses database connection URLs.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-base64\"><strong>roc-base64</strong></a> encodes and decodes Base64.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-crc32\"><strong>roc-crc32</strong></a> calculates CRC32 checksums.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-hmac\"><strong>roc-hmac</strong></a> implements HMAC authentication codes in pure Roc.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-md5\"><strong>roc-md5</strong></a> implements MD5 hashing in pure Roc.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-scram\"><strong>roc-scram</strong></a> implements SCRAM authentication in pure Roc.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-prng\"><strong>roc-prng</strong></a> provides pseudorandom number generation.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-xml\"><strong>roc-xml</strong></a> generates XML.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-human-readable-file-size\"><strong>roc-human-readable-file-size</strong></a> formats file sizes for people to read.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-maybe\"><strong>roc-maybe</strong></a> provides a type for optional values.</li>\n<li><a href=\"https://github.com/niclas-ahden/roc-non-zero\"><strong>roc-non-zero</strong></a> provides a number type that excludes zero.</li>\n</ul>\n<h4>Luke Boswell</h4>\n<ul>\n<li><a href=\"https://lukewilliamboswell.github.io/roc-ray/\"><strong>roc-ray</strong></a> is a platform for games and graphics built on raylib, with support for tasks, networking, files, and databases.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-gui\"><strong>roc-gui</strong></a> is an experimental platform for native GUI applications using GPUI.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-signals\"><strong>roc-signals</strong></a> is a signals-based framework for web user interfaces.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/plume\"><strong>plume</strong></a> provides a typed Roc API for interactive Plotly.js charts.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-docx\"><strong>roc-docx</strong></a> reads and writes Word documents compatible with Word, LibreOffice, and Google Docs.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-font\"><strong>roc-font</strong></a> reads OpenType and TrueType fonts and shapes text into positioned glyphs.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-graph-layout\"><strong>roc-graph-layout</strong></a> provides graph layout algorithms and parses and renders Mermaid diagrams.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-parser\"><strong>roc-parser</strong></a> combines parser combinators with ready-made parsers for formats including JSON, YAML, XML, Markdown, AsciiDoc, HTTP, and Roc source.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-pdf\"><strong>roc-pdf</strong></a> generates PDF 2.0 and PDF/A-4 documents in Roc.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-time\"><strong>roc-time</strong></a> handles dates, times, and durations.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/weaver\"><strong>weaver</strong></a> parses command-line arguments with an API inspired by Rust's clap.</li>\n<li><a href=\"https://lukewilliamboswell.github.io/basic-ssg/\"><strong>basic-ssg</strong></a> generates static sites from Markdown and AsciiDoc.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-fuzz\"><strong>roc-fuzz</strong></a> provides fuzzing and property-based testing using libFuzzer, along with tools for observing performance.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-platform-template-zig\"><strong>Zig platform template</strong></a> is a starting point for hosting Roc applications in Zig.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-platform-template-rust\"><strong>Rust platform template</strong></a> is a starting point for hosting Roc applications in Rust.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-platform-template-go\"><strong>Go platform template</strong></a> is a starting point for hosting Roc applications in Go.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/embed-roc-in-dotnet\"><strong>embed-roc-in-dotnet</strong></a> demonstrates embedding Roc in a .NET application.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-blueprint\"><strong>roc-blueprint</strong></a> describes development environments, builds, tasks, and workflows in Roc, with Nix integration.</li>\n<li><a href=\"https://lukewilliamboswell.github.io/roc-automation/\"><strong>roc-automation</strong></a> supplies shared automation and a manual for maintaining Roc packages and platforms.</li>\n<li><a href=\"https://github.com/lukewilliamboswell/roc-awesome\"><strong>roc-awesome</strong></a> collects maintained Roc packages, platforms, tools, and applications from across the community.</li>\n</ul>\n<h4>Karl</h4>\n<ul>\n<li><a href=\"https://github.com/grayrest/trantor\"><strong>Trantor</strong></a> assembles Roc platforms from reusable Rust components.</li>\n<li><a href=\"https://github.com/grayrest/roc-regex\"><strong>roc-regex</strong></a> is a regular expression engine written in Roc.</li>\n<li><a href=\"https://github.com/grayrest/roc-markdown\"><strong>roc-markdown</strong></a> is Karl's CommonMark and GitHub Flavored Markdown parser, a separate project from Steve's library of the same name.</li>\n</ul>\n<h4>Steve Howell</h4>\n<ul>\n<li><a href=\"https://roc.lynrummy.com/safari-walk/\"><strong>Safari Walk</strong></a> is a 3D journey through a savanna at sunset, built with Roc and Rocco and running in browsers with WebGPU support.</li>\n<li><a href=\"https://roc.lynrummy.com/tutorial/introduction.html\"><strong>A little Roc book</strong></a> teaches Roc by walking through the code behind the original 2D Safari Ride.</li>\n<li><a href=\"https://github.com/showell/roc-markdown\"><strong>roc-markdown</strong></a> is Steve's Markdown library, used in his book-building tools and chat application.</li>\n<li><a href=\"https://roc.lynrummy.com/basic/basic.html\"><strong>BASIC interpreter</strong></a> is a browser playground for running BASIC programs with an interpreter written in Roc.</li>\n<li><a href=\"https://roc.lynrummy.com/fasttrack/\"><strong>Fast Track</strong></a> is a browser implementation of the marble-racing board game, with card-driven moves and computer opponents.</li>\n<li><a href=\"https://roc.lynrummy.com/welcome-to-roc/\"><strong>Welcome to Roc</strong></a> is an animated welcome made for the Roc release.</li>\n</ul>\n<h4>blu</h4>\n<ul>\n<li><a href=\"https://study.lyceum.quest/\"><strong>Lyceum Study</strong></a> is a spaced-repetition tool for learning Ancient Greek, being ported to Roc.</li>\n<li><a href=\"https://github.com/lyceum-quest/apo\"><strong>Apo</strong></a> uses language models to generate glosses and prose translations as part of the Lyceum Ancient Greek toolkit.</li>\n</ul>\n<h4>Aurélien Geron</h4>\n<ul>\n<li><a href=\"https://github.com/ageron/roclet-display\"><strong>roclet-display</strong></a> adds rich notebook output such as tables, images, charts, and interactive controls.</li>\n<li><a href=\"https://exercism.org/tracks/roc\"><strong>Exercism's Roc track</strong></a> provides coding exercises, tests, and example solutions for learning and practicing Roc.</li>\n</ul>\n<h4>Jasper Woudenberg</h4>\n<ul>\n<li><a href=\"https://git.sr.ht/~jwoudenberg/roc/tree/main/item/gregorian/README.md\"><strong>Gregorian</strong></a> provides tools for working with dates and times.</li>\n</ul>\n<h4>Scott Campbell</h4>\n<ul>\n<li><a href=\"https://github.com/scottc/goose-roc\"><strong>goose-roc</strong></a> experiments with hosting Roc applications in Goose, including a console example and a work-in-progress mini-Doom port.</li>\n<li><a href=\"https://github.com/scottc/roc-build\"><strong>roc-build</strong></a> runs build tasks in parallel according to their dependency graph, using a Zig host.</li>\n<li><a href=\"https://github.com/scottc/roc-platform-patcher\"><strong>roc-platform-patcher</strong></a> injects middleware into already-distributed platforms, enabling instrumentation, effect interception, and testing even when a platform's source is unavailable.</li>\n</ul>\n<h2>More about the language</h2>\n<p>Beyond the basics discussed earlier, here are some more details about Roc as a language. This won't be as comprehensive as <a href=\"https://www.roc-lang.org/docs/main/langref/\">the language reference</a> or as helpful an introduction to the language as <a href=\"https://www.roc-lang.org/tutorial/\">the tutorial</a> or <a href=\"https://exercism.org/tracks/roc\">Exercism learning track</a>, but it will give you an overview of what you can find in it.</p>\n<h3>Common Features</h3>\n<p>These are some features Roc has that can be found in several other languages.</p>\n<ul>\n<li>Cross-compiling to static binaries out-the-box just like Go, including to Linux with no libc dependency (e.g. for Alpine Linux).</li>\n<li><a href=\"https://www.roc-lang.org/docs/main/langref/tag-unions/\">Sum types</a> with <a href=\"https://www.roc-lang.org/docs/main/langref/pattern-matching/\">pattern matching</a> and <a href=\"https://www.roc-lang.org/docs/main/langref/pattern-matching/#exhaustiveness\">exhaustiveness checks</a>.<ul>\n<li>You don't have to declare them up front; they can be <a href=\"https://www.roc-lang.org/docs/main/langref/tag-unions/#structural-tag-unions\">anonymous and structural</a>. Same with <a href=\"https://www.roc-lang.org/docs/main/langref/records/#structural-records\">records</a>.</li>\n</ul>\n</li>\n<li>Simple, <a href=\"https://en.wikipedia.org/wiki/Type_safety#Definitions\">sound</a> type system.<ul>\n<li>No <code>null</code> or <code>any</code> (or equivalent of either).</li>\n<li>Type annotations are optional. Roc's type inference is principal and decidable, meaning it always correctly infers the most flexible correct type.</li>\n</ul>\n</li>\n<li>All expressions that can be evaluated at compile time are evaluated then.<ul>\n<li>This is true even if heap allocations are involved.</li>\n</ul>\n</li>\n<li>Testing, building, package management, and formatting, are all out-the-box.</li>\n<li>Tests are automatically cached to avoid re-running tests whose outcomes couldn't possibly have changed given that the relevant source code didn't.</li>\n</ul>\n<h3>Uncommon Features</h3>\n<p>These are features that are much less common.</p>\n<ul>\n<li>All values are semantically immutable, but Roc's optimizer does <a href=\"https://www.roc-lang.org/docs/main/langref/expressions/#opportunistic-mutation\">opportunistic mutation</a> behind the scenes to speed up common situations where mutating would not be observable.</li>\n<li>Zero-allocation lambdas (heap allocation, that is)</li>\n<li>Binary algebraic effects (<a href=\"https://www.roc-lang.org/docs/main/langref/functions/#pure-functions\">pure functions</a> vs. <a href=\"https://www.roc-lang.org/docs/main/langref/functions/#effectful-functions\">effectful functions</a>)<ul>\n<li>Related: <a href=\"https://www.roc-lang.org/docs/main/langref/packages/#url-packages\">Supply-chain attack resilience for packages</a></li>\n</ul>\n</li>\n<li><a href=\"https://www.roc-lang.org/docs/main/langref/platforms/\">Platforms and applications</a></li>\n<li>Shared build and test cache out-the-box</li>\n<li>Inferred <a href=\"https://www.roc-lang.org/docs/main/langref/parsers/\">parsers and encoders</a></li>\n</ul>\n<h2>Getting Started</h2>\n<p>If Roc sounds interesting to you, the <a href=\"https://www.roc-lang.org/tutorial/\">official tutorial</a> is an easy place to start, and the <a href=\"https://www.roc-lang.org/docs/main/langref/\">language reference</a> can answer questions you encounter in more detail.</p>\n<p>In addition to writing much of the official documentation, Aurélien Geron created <a href=\"https://exercism.org/tracks/roc\">Exercism's Roc track</a> and has built out 139 different exercises in conjunction with other maintainers.</p>\n<p>Finally, <a href=\"https://roc.zulipchat.com/\">Roc Zulip</a> has always been a welcoming place for beginners, and there are plenty of friendly people there who are happy to help you get into the language. Come <a href=\"https://roc.zulipchat.com/#narrow/stream/387892-1-Introductions/topic/introductions\">say hi in the #introductions channel</a>!</p>\n<h2>Shout-Outs</h2>\n<p>Before wrapping up, I want to give some final shout-outs to all the people and projects who got Roc to this milestone, including:</p>\n<ul>\n<li>The amazing Roc community! This post would have practically no content without the people who created the wonderful projects above.</li>\n<li>All the contributors, past and present, who helped bring the language to this milestone. Thank you, thank you, thank you!</li>\n<li>The <a href=\"https://elm-lang.org/\">Elm Programming Language</a>, which directly inspired Roc (fun fact: the logo is origami <a href=\"https://www.roc-lang.org/faq#name-origin\">as an homage to Elm's tangram logo</a>).</li>\n<li>The <a href=\"https://koka-lang.github.io/koka/doc/index.html\">Koka</a> and <a href=\"https://morphic-lang.org/\">Morphic</a> research languages, without which Roc would not be competitive with fast imperative languages on performance.</li>\n<li>The <a href=\"https://rust-lang.org/\">Rust Programming Language</a>, which is the language Roc's original compiler was written in. It served us well for years, and I'm still happy to use it daily <a href=\"https://delta.dev/\">at work</a>.</li>\n<li>The <a href=\"https://ziglang.org/\">Zig Programming Language</a>, which is the language <a href=\"https://rtfeldman.com/rust-to-zig\">Roc's compiler is now written in</a>. It has continued to be great for us since the rewrite, and I'm still a happy recurring donor to the nonprofit <a href=\"https://ziglang.org/zsf\">Zig Software Foundation</a>.</li>\n<li><a href=\"https://zed.dev/\">Zed</a>, the editor I used for the entirety of the current code base, at least until I switched to...</li>\n<li><a href=\"https://delta.dev/\">Delta</a>, which has become my main tool for building software. It's what I use daily to collaborate with <a href=\"https://zed.dev/team\">my coworkers</a>, as well as some Roc contributors.</li>\n<li>And finally, all the people and companies who have <a href=\"https://roc-lang.org/donate\">donated</a> to the <a href=\"https://roc-lang.org/foundation\">nonprofit Roc Programming Language Foundation</a>. Your donations, whether through <a href=\"https://www.every.org/roc-programming-language-foundation?donateTo=roc-programming-language-foundation\">every.org</a>, <a href=\"https://liberapay.com/roc_lang\">Liberapay</a>, <a href=\"https://github.com/sponsors/roc-lang\">GitHub Sponsors</a>, or <a href=\"https://benevity.com/\">Benevity</a>, have let us pay contributors to improve the language, and we'd love to do more of that! Corporate sponsors are also welcome; <a href=\"https://roc.zulipchat.com/#narrow/pm-with/281383-user281383\">DM me on Zulip</a> if you'd like to chat about corporate sponsorship.</li>\n</ul>\n<h2>What's Next?</h2>\n<p>The next release after 0.1.0 will most likely be 0.1.1, with bugfixes and performance improvements based on issues people have already reported on 0.1.0. (It will not take eight years to ship. Most likely sometime in December 2026.) In the meantime, there are automatically-published <a href=\"https://github.com/roc-lang/nightlies/releases\">nightly releases</a> if you want to try the latest compiler built from the previous day's <code>main</code>.</p>\n<p>After that, here are some things we're exploring for 2027 and beyond:</p>\n<ul>\n<li>Concurrency primitives in the standard library</li>\n<li>Improved test output, as well as support for simulating effects (and testing real effects) and property-based testing out-the-box</li>\n<li>A built-in debugger (in addition to the DWARF debug info we already emit for third-party debuggers to use)</li>\n<li>Features inspired by theorem provers for additional ways to verify Roc programs</li>\n<li>Improving build times for cold builds and optimized builds. (Minimizing development rebuild times was the priority for 0.1.0, since that's the most common feedback loop.)</li>\n</ul>\n<p>It's taken a long time to get this foundation in place, but 0.1.0 is just the beginning for Roc!</p>\n"
}