How close can pure functional programming get to C?
Article URL: https://rtfeldman.com/fp-vs-c Comments URL: https://news.ycombinator.com/item?id=50218195 Points: 208 # Comments: 59
A functional programming language and proof assistant, Lean 4, recently outperformed a popular Rust compression library in a test. However, it fell short when compared to C-written libdeflate, considered the benchmark for DEFLATE performance. Roc, another functional language with a focus on runtime performance, showed promise in matching libdeflate's speed for non-streaming DEFLATE compression.
Despite its young age and limited optimization work, Roc's performance improvements, especially on the M1 MacBook Pro, suggest it may be able to challenge libdeflate in the future.
Written by urgent.news from Hacker News Best's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.
- How close can pure functional programming get to C? rtfeldman.com