~/talk

C# as a system language

slides:none on file

Implements a Redis clone in C# in under 100 lines, runs on an Amazon ARM 16-core 64GB VM and hits ~1M qps with naive code then 1.6M after using PipeReader/PipeWriter, 1.8M when removing string allocations with Span<T>/owned buffers and can reach ~2.5M when pushed further; uses unsafe pointers, array pools, ConcurrentDictionary for storage, native memory with GC fallback, vector intrinsics and even Linux io_uring via a NuGet package to minimize syscalls, demonstrating practical system-level performance and tradeoffs.

AI-written summary · about

  1. 0:00C# as system language
  2. 1:12Why use C# for systems
  3. 3:20Managed languages for systems
  4. 5:29.NET performance over time
  5. 6:36Building Redis clone in C#
  6. 9:44Optimizing Redis clone
  7. 14:478M queries per second
  8. 16:12I/O bottlenecks with io_uring
  9. 18:00Memory management in C#
  10. 20:26High-level vs low-level code
  11. 22:11Iterative optimization
  12. 23:34Code example and JIT optimizations
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.