r/crystal_programming • • Jul 31 '26

I can't find a job, so I'm building Crystal's future instead. Here's what I'm working on and why I need your help

86 Upvotes

I can't find a job, so I'm building Crystal's future instead. Here's what I'm working on and why I need your help.


Hi, I'm Serdar (sdogruyol). I created Kemal, I'm a Crystal Core Team member, and I've been building Crystal tools since 2015.

I can't find a job right now. So instead of waiting around, I'm spending every day on Crystal open source. No safety net, no backup plan, just Crystal.


What I'm working on

gcry - a %100 Crystal native garbage collector for Crystal. Currently at ~89% of Boehm GC's throughput with ~0.95x RSS. My hope is that one day it becomes the default GC for Crystal. That's the dream.

Kemal - 3.8k+ stars, 5M+ downloads. I've been maintaining it since 2015. The framework, session management, CSRF, auth, caching, the whole ecosystem. I'm not going anywhere.

Crystal Weekly - a newsletter keeping the community updated.

Crystal Community - discover Crystal developers around the world and check Crystal Stats.

Free books - Crystal for Rubyists, Kemal El Kitabı, Crystal El Kitabı. All free.


Why I'm here

I set up a GitHub Sponsors page. My goal is $1,000/month so I can keep doing this full time. If Kemal or any of my projects has helped you, or if you believe in Crystal's future, please consider sponsoring. Every dollar counts.

Even $5/month helps. Here's what you get:

TierPricePerk
☕ Coffee$5Sponsor badge
⚡ Kebab$10Badge + personal thanks
🛠️ Backer$20Name in Kemal README
🏆 Champion$50Logo + shoutout
🏢 Corporate$100Logo + Twitter shoutout

Thanks for reading. Let's build Crystal's future together. 💎

👉 github.com/sponsors/sdogruyol


r/crystal_programming • • Apr 17 '26

Crystal 1.20.0 is released!

Thumbnail crystal-lang.org
68 Upvotes

Crystal 1.20.0 is officially here

Significant performance leaps and architectural improvements are now live. Here are the 3 most impactful updates in this release:

- M:N Scheduling: A major shift in the scheduling architecture that drastically optimizes concurrency and resource handling.

- Multi-threading Refinement: Critical improvements to parallel execution efficiency and overall system stability.

- Broadened Platform Support: Official Linux ARM64 builds and enhanced Windows stability make Crystal production-ready across environments.

Time to update your shards!

Release Post: https://crystal-lang.org/2026/04/16/1.20.0-released/


r/crystal_programming • • Jan 15 '26

Crystal 1.19.0 Released!

51 Upvotes

Crystal 1.19.0 just dropped! Here are the highlights:

Breaking Changes

  • OpenSSL 1.1.1+ or LibreSSL 3+ now required

  • Monotonic clocks now include suspended time

  • WebSocket#stream flush is now a no-op

Key Features

  • Execution Context is here! Compiler now built with -Dexecution_context – the new concurrency model is becoming default

  • New Sync module – Sync::Mutex, Sync::RWLock, and Sync::ConditionVariable for proper synchronization primitives

  • Time::Instant – new type for monotonic time measurements

  • SNI support via OpenSSL::SSL::Context::Server#on_server_name

  • Large JSON file support – finally!

  • Int.from_digits – inverse of Int#digits

  • NamedTuple#reverse_merge, Set#map!, Hash#transform_keys!

  • Path#relative?

  • Process.debugger_present? for Windows/Linux

Macro Improvements

  • Compiler flag values via flag?

  • StringLiteral#gsub with block, #match, #split(Regex)

Bug Fixes

  • Multiple XML memory leaks fixed

  • Several interpreter fixes

  • Thread safety improvements across the board

Full changelog: https://github.com/crystal-lang/crystal/releases/tag/1.19.0


Happy coding! 💎


r/crystal_programming • • Mar 05 '26

ASCII already solved structured data in 1963 — we just forgot.

Thumbnail trans.github.io
42 Upvotes

Introducing C0DATA, the Copy Zero Data format.


r/crystal_programming • • Apr 20 '26

Why Crystal, 10 Years Later: Performance and Joy

Thumbnail serdardogruyol.com
40 Upvotes

Hi everyone,

I wrote the original "Why Crystal?" blog post back in 2015 when Crystal was just v0.9.1.

Ten years and many versions later, I am revisiting that post to analyze the road to v1.20.

If you are interested in how a language matures from a syntax experiment to a high performance standard, this one is for you.


r/crystal_programming • • Mar 27 '26 Thanks

5 Years Anniversary of Crystal 1.0

38 Upvotes

It's been 5 years since the release of Crystal 1.0. This anniversary is an opportunity to celebrate. 🎉

We're going to do that with a live-streamed video call in which we look back at that big milestone, what happened since then, and what's coming next.

On the call will be members from the Core Team and the community, and we'll be answering questions in an AMA format ("Ask me anything").

Mark your calendar: Friday, 27 March 2026 16:00 UTC (check your time zone)

Follow either of these links to participate in the event:

We accept questions from the following channels:

  • Hashtag #Crystal2026AMA on Mastodon or Twitter

  • Community Discord channel #ama-questions

  • Zoom chat

Hope to see you next week! 🥳

If you want to socialize during the event or hang out afterwards, you'll find like-minded people on the Community Discord server. Let's get together in the voice channel for an aftershow party.


r/crystal_programming • • Jul 16 '26

Crystal 1.21.0 is out, and execution contexts are on by default now

36 Upvotes

New Crystal dropped today (1.21.0). It's 161 changes from 21 contributors since 1.20.3. Full notes are on the site and GitHub, but here's the stuff that actually matters if you don't feel like scrolling the whole changelog.

Release post: https://crystal-lang.org/2026/07/16/1.21.0-released/ GitHub: https://github.com/crystal-lang/crystal/releases/tag/1.21.0

Execution contexts are enabled by default

This is the headline. The multithreading work that's been cooking for a while (RFC 0002) is now the default runtime, not an opt-in flag.

The practical version: the default context is still single-threaded (parallelism 1), so most people won't notice a day-to-day behavior change. You can resize it, or spin up extra contexts, when you actually want fibers running in parallel.

The catch, and the reason it's flagged as breaking: fibers are no longer pinned to a thread. Even at parallelism 1, a fiber can resume on a different thread after a yield, and in a concurrent context it can switch threads on a blocking syscall. So if you've got code leaning on thread-local state surviving across fiber yields, go review it. Also spawn(same_thread: true) doesn't work with execution contexts anymore. It raises at runtime in a parallel context and is deprecated in general.

%W string arrays with interpolation

Small but nice. %w gave you a plain string array with no escapes or interpolation. %W is the same idea but supports escape sequences, interpolation, and even splats:

%W[foo\ bar baz]             # => ["foo bar", "baz"]
%W[foo #{"bar"} baz]         # => ["foo", "bar", "baz"]
%W[foo #{*%w[bar baz]} qux]  # => ["foo", "bar", "baz", "qux"]

Stdlib odds and ends I liked

  • Channel(T) now implements Iterator(T), so channel.to_a works and channels plug straight into iterator chains.

  • HTTP::WebSocket#receive is a synchronous, blocking read for a request/response style loop, instead of the callback-based #run.

  • String#present? finally exists for the intent-revealing guard checks.

  • UUID.v6 and UUID.v8 generators.

  • Experimental Socket#sendfile for efficient file-to-socket transfers with fewer user-space copies.

  • You can chain spec matchers now: value.should be_a(String).should_not be_empty.

  • -Dwithout_main builds a binary with no main function, e.g. to use as a dynamic library.

Breaking changes worth watching

  • Execution contexts (above), the big one.

  • The automatic fallback to legacy PCRE is off. PCRE2 has been the default for years anyway; if you still need old PCRE you now have to opt in with -Duse_pcre or USE_PCRE1=1.

  • case ... when Bar, Baz now splits into separate is_a? restrictions per type instead of treating it as Bar | Baz. If you were relying on the union behavior, write when Bar | Baz explicitly.

  • OpenSSL 4.0 support landed, worth noting if you package or link against it.

The thread-pinning change is the one I'd test carefully if your app does anything clever with concurrency. Everything else is pretty low-risk.

Anyone migrated something bigger yet? Curious whether the execution context switch caused real problems for anyone with same-thread assumptions baked in.


r/crystal_programming • • May 28 '26

Huge Milestone: There are now over 10,000 Crystal projects!

36 Upvotes

I was just checking the data over at the Crystal Community Stats page and realized we've officially crossed a massive milestone: there are now more than 10,000 Crystal repositories!

Seeing how far the ecosystem has come is just incredible. From the early days of building Kemal and piecing together the first shards, to seeing the language mature and the core team push boundaries, the community's dedication to performance, concurrency, and developer happiness has never been stronger.

This isn't just a number; it’s proof that the "Ruby-like syntax, C-like speed" philosophy is steadily growing its footprint. We're seeing more high-performance backends, blazingly fast CLI tools, and minimalist web frameworks being built every single day.

A huge shoutout to everyone contributing to the compiler, writing and maintaining shards, or even just spinning up their first HTTP server to try the language out.

To celebrate, let’s do a quick roll call: What are some of your favorite Crystal projects or shards right now? Or what are you currently building? Let’s highlight the awesome work happening in the ecosystem! 👇


r/crystal_programming • • May 18 '26

Crystal LSP

34 Upvotes

Hey,

I just discovered Lattice – a Crystal LSP that looks really solid.

Works on Windows too.

Repo: https://codeberg.org/DaZhi-the-Revelator/lattice


r/crystal_programming • • Aug 04 '26

Next version of gcry is faster than Boehm GC. And it uses less RAM.

32 Upvotes

Next version of gcry is faster than Boehm GC. And it uses less RAM.

On a production Kemal app (Açık Türkiye):

- 103% Boehm throughput
- 8% less memory
- 100% Crystal
- No C code

Crystal can have its own GC. We're building it

https://github.com/sdogruyol/gcry


r/crystal_programming • • Mar 24 '26 Thanks

Anyone using Crystal for low-level projects? Built a NES emulator, now looking into microcontrollers

32 Upvotes

Hey! I'm a Ruby dev who discovered Crystal a few months ago while trying to build a NES emulator. Started in Ruby, got 0.5 FPS, rewrote it in Crystal and jumped to 120 FPS with basically the same code. Been hooked on the language since.

Now I'm planning some hardware side projects, specifically building an RC plane and programming the microcontrollers for it. Crystal's C interop makes me think it could work, but I haven't seen many people using it for that kind of thing.

Anyone here working with Crystal on low-level / embedded / hardware projects? Would love to hear about your experience, what worked, what didn't, what you'd do differently.

If you're curious about the emulator, I wrote about the whole journey here:

- Crystal: The Language I Didn't Know I Needed
- Building a NES Emulator from Scratch: The Book


r/crystal_programming • • Jan 11 '26

Crystal LSP implementation for Windows and Linux

Thumbnail
github.com
31 Upvotes

Since Crystalline only supports some POSIX platforms, I wrote an LSP implementation which works cross platform.


r/crystal_programming • • Aug 29 '26

Marten 0.7 is now available!

Thumbnail
martenframework.com
30 Upvotes

r/crystal_programming • • Jan 31 '26

Kemal has a new Website

Thumbnail kemalcr.com
30 Upvotes

r/crystal_programming • • May 09 '26

Lune v0.1.0 is online - Build native desktop apps with Crystal and a web frontend

29 Upvotes

Hi everyone,

Back with another update on my Crystal adventures haha.
Just pushed https://github.com/AristoRap/lune (yes, still github?).

Lune (+LuneCLI) wraps a native WebView https://github.com/naqvis/webview and lets you call Crystal code from JavaScript over a typed bridge. Think Wails or Tauri, but for Crystal.

If you check it out, let me know how it works (or not) for you! 😄

--EDIT--
FYI to spare your time:
Please note that this seems to not work for Windows at the moment due to webview and other observed errors.


r/crystal_programming • • Mar 03 '26

Kemal 1.10.0 is released! Biggest release ever

Thumbnail
github.com
29 Upvotes

r/crystal_programming • • Oct 17 '26

Kemal 1.15.0 is released! More Stability and more Security

Thumbnail
github.com
27 Upvotes

r/crystal_programming • • Feb 13 '26

CrystalCommunity.org - Connecting the Crystal Community

27 Upvotes

Hi everyone,

As developers, we often work in silos. I felt the Crystal language needed a dedicated space for us to say, "Hey, I'm here, and I build with Crystal."

So, I built CrystalCommunity.org using Crystal and Kemal. This site is inspired by Ruby Community site.

Why Open Source?
I believe this tool belongs to the community. That’s why I’ve open-sourced the entire project. It’s currently an MVP allowing you to pin your location via GitHub login, but there is so much more we can do.

How you can help:

  1. Join the map: Log in and show your location.

  2. Contribute: The code is available on GitHub. If you want to see how it works or add new features, PRs are highly welcome.

Check out the code here: https://github.com/sdogruyol/crystal_community

Let’s make Crystal better together!


r/crystal_programming • • Jul 29 '26

gcry: a garbage collector written in pure Crystal

26 Upvotes

I just released 0.14.0 of gcry. It's a conservative mark sweep GC written entirely in Crystal, shipped as a shard. No C code, no compiler patches, no fork. You just add require "gcry" and build with -Dgc_none.


Performance

Same host, median of 3, wrk -c 100 -d 30:

Workloadgcry vs BoehmPost-GC RSS
Kemal /json (Linux)~89% throughput0.79x Boehm
Kemal root (Linux)~89% throughput0.78x Boehm
Kemal /json (macOS)~84% throughput0.93x Boehm
Kemal root (macOS)~93% throughput1.06x Boehm

21% less memory than Boehm on Linux Kemal. Same throughput.


What makes gcry different

It's a conservative, non-moving, stop-the-world collector. Same family as Boehm, so it works with Crystal's existing ABI. But it's written in Crystal, which means:

  • You can read it. The whole collector is about 9,000 lines of Crystal across 32 files. No C macros, no opaque foreign library.

  • You can debug it. Set a breakpoint anywhere. Crystal's debugger works on it.

  • You can change it. Want to experiment with a different marking strategy? Edit a .cr file and rebuild.

Architecture: mmap-backed size classes, fiber stack roots, conservative mark with layout precise opt-in, deferred madvise, and platform specific STW (Linux signals, Mach thread_suspend on macOS).


What's new in 0.14.0

This release is all about quality infrastructure:

  • Debug invariant checker (GCRY_DEBUG_INVARIANTS=1). Validates live_objects counter, freelist consistency, chunk index integrity, block overlap detection. At runtime, on every malloc/free/collect.

  • AddressSanitizer and Valgrind on every PR in CI.

  • Coverage reports via kcov on every PR.

  • Deterministic replay fuzzing with --seed and --replay.

  • 24 hour soak tests, thread storm tests, OOM tests, property based heap invariant tests.

  • Heap dump (Gcry.dump_heap) streams live objects as NDJSON for leak hunting.

  • Trace (GCRY_TRACE=1) traces every collect, malloc, and free.


How to try it

# shard.yml
dependencies:
  gcry:
    github: sdogruyol/gcry
{% if flag?(:gc_none) %}
  require "gcry"
{% end %}

puts "Hello from gcry!"
crystal build -Dgc_none app.cr -o app

No special malloc API. No compiler fork. String, Array, Hash, everything works as usual.


Limitations

gcry is a shard and I'm pushing it as far as I can. But there are things you can't do from a shard. True precise stack scanning, write barriers, and concurrent collection need compiler support. At some point that line has to be crossed. But for now, the shard approach gets you surprisingly far: Kemal class HTTP at near Boehm perf, layout precise heap scanning, fiber stack scrubbing, and full observability. All without touching the compiler.


Github

https://github.com/sdogruyol/gcry


r/crystal_programming • • Sep 15 '26

Kemal 1.14.0 is released! Biggest release with a lot of improvements

Thumbnail
github.com
25 Upvotes

r/crystal_programming • • May 06 '26

Marketer here, looking for help: what's the Crystal pitch that lands?

24 Upvotes

Hi all,

I'm Lovisa, on the marketing team at 84codes. We've been running LavinMQ in production for some years now. It's an AMQP 0-9-1 and MQTT-compatible message broker written in Crystal, and a lot of my job is figuring out how to talk about it to teams who've never used Crystal before.

That's something I'd love this community's input on. When you pitch a Crystal-built product (or Crystal itself) to developers who default to Go, Rust, or Java, what actually lands? Which arguments resonate, and which ones make eyes glaze over?
For context, I just published an interview with our CEO about the full story behind LavinMQ, including why we picked Crystal: https://lavinmq.com/blog/the-story-behind-lavinmq.

So: what's the Crystal pitch that's actually worked when you've had to convince a skeptical teammate, someone at a conference, or a stakeholder?

(Disclosure: 84codes is the company behind LavinMQ. Happy to discuss the technical side, and I can pull in our engineering team if anything goes deep into LavinMQ internals.)


r/crystal_programming • • 22d ago

iyi: Crystal syntax, Go-like compile times, no C dependencies

23 Upvotes

I've been working on iyi programming language for a couple of months. It's ready to show now.

iyi keeps Crystal's syntax - blocks, union types, nil-safety, everything. It adds one rule: a module compiles against its dependencies' declarations, never their bodies. That one rule changes everything below.

The numbers: 30 modules, 7207 lines. Change one number in one function. Build again.

Plaintext

iyi:       0.13 s
crystal:   1.17 s
go build:  0.16 s

The Crystal column is the same compiler binary under the rule iyi drops. Open classes cost 1 second per edit. Take them away and you get the first column.

Full build from scratch: 0.24 s. Hello binary: 36 KB, 1.6 ms.

Crystal code runs on it

.cr files build as-is. iyi build --crystal gives you the whole Crystal stdlib and every shard. Kemal works. No porting needed. But its own standard library has no Crystal code underneath.

The standard library has no C deps

At v0.20.0, iyi speaks TLS 1.3, HTTP/1.1, HTTP/2, WebSocket with WSS.

  • All written in iyi, from the RFCs.

  • No OpenSSL, no libcurl.

  • The garbage collector is also iyi's own-precise for typed objects, concurrent mark. It competes with Go's collector on the same benchmarks.

AI tooling

iyi mod context prints a module's interface without reading its body. An agent editing code reads 52-59% less text and spends 31-43% fewer prompt tokens. MCP and LSP are built into the compiler binary. No external servers.

Packages

packs.iyi.dev indexes 50 packages. Third-party ports already include a Web Framework, a TOML parser, a Slang templating engine, and an ORM with the Active Record pattern.

Bash

iyi get github.com/iyilang/pg
iyi get github.com/iyilang/sqlite
iyi get github.com/sdogruyol/iyi-web

Install (Linux, macOS, Windows)

Bash

curl -fsSL https://raw.githubusercontent.com/iyilang/iyi/master/install.sh | sh

Links:


r/crystal_programming • • Oct 25 '26

Interactive examples for my book on writing a NES emulator in Crystal

23 Upvotes

Hey! I wrote a book about building a NES emulator in Crystal a while ago. I added a few free browser examples to go with it:

6502 registers and flags: https://emulator.matiassalles99.codes/learn/6502-for-web-developers/

Drawing a background pixel: https://emulator.matiassalles99.codes/learn/first-background-pixel/

Memory-mapped I/O: https://emulator.matiassalles99.codes/learn/memory-mapped-io/

They run in the site's WASM emulator. You can edit bits or RAM writes and see what changes. There are English and Spanish versions.

If you're learning this stuff, I'd like to know which example is still confusing.


r/crystal_programming • • Feb 03 '26

Fossil.cr: A FastAPI-Inspired REST API Framework for Crystal

23 Upvotes

Hey r/crystal_programming!

I built Fossil.cr, a FastAPI-inspired framework for building REST APIs in Crystal. It leverages Crystal’s macro system to reduce boilerplate and simplify API development, making it easy to handle path/query/form/body parameters, dependency injection, and custom content types.

Why Fossil.cr?

  • Macro-based routing: Automatically generate endpoints from annotated methods.

  • Parameter support: Handles path, query, form, file, and body parameters with type safety.

  • Dependency injection: Supports header, cookie, and singleton dependencies for modular code.

  • Content flexibility: Built-in JSON serialization and custom content-type handling.

  • Lightweight: Extends Crystal’s HTTP::Server with minimal overhead.

Example: Building an API

A complete example can be found in my blog or on Medium.

Why It Matters

Fossil.cr fills a gap in the Crystal ecosystem by providing a type-safe, expressive way to build APIs without manual request/response handling. It’s perfect for projects where you want the performance of Crystal with the developer experience of FastAPI.

GitHub: Scurrra/fossil