New

The latest blog posts to take off on Hacker News. 3,707 posts.

Programming Languages
Any year
512

Why Haskell?

Haskell is a great programming language with many features that make it easier to write robust software, and yet it is rarely taken up by software engineering teams. This essay aims to explain my views as to why Haskell is a great choice for programmers.

514

Bitten by Unicode

One product of mine takes reports that come in as a table that’s been exported to PDF, which means text extraction. For dollar figures I find a prefixed dollar symbol and convert the number following it into a float . If there’s a hyphen in addition to the dollar symbol, it’s negative.

533

Zngur: A C++/Rust interop tool

Zngur (/zængɑr/) is a C++/Rust interop tool. It tries to expose arbitrary Rust types, methods, and functions while preserving their semantics and ergonomics as much as possible. Using Zngur, you can use arbitrary Rust crates in your C++ code as easily as using them in normal Rust code, and you can write idiomatic…

536

Quote-unquote "macros"

You’ve probably seen this Python 101 thing before: @memoized def fib(n): if n <= 1: return n return fib(n - 1) + fib(n - 2) Leaving aside the absurdity of computing Fibonacci numbers recursively, it’s a common first introduction to Python decorators and higher-order functions. fib is just a function, and memoized…