Topics /
Programming Languages
The most popular blog posts about programming languages on Hacker News. 3,707 posts.
Using attrs for everything in Python
Use attrs. Use it. Use it for everything.
The category design pattern
A programming design pattern inspired by category theory
I wrote the least-C C program I could
As a fun afternoon challenge, I decided to write a C program that looked nothing like C. Not necessarily obfuscated, though there is a competition for that if you are so inclined.
Lvalues, rvalues, glvalues, prvalues, xvalues, help (2018)
Did you use to have some sort of intuition for what “lvalue” and “rvalue” meant? Are you confused about glvalues, xvalues and prvalues, and worry that lvalues and rvalues mi…
Lessons from Writing a Compiler
Collected tips from building the Austral compiler.
A look at Crystal, a programming language for humans
I recently implemented a Brainfuck interpreter in the Crystal programming language and I’d like to share my honest opinion about working in the language.
The Go Programming Language, or: Why all C-like languages except one suck.
A short update: A lot has happened. Go has its place in the software world, but other languages developed as well. I don't write new Go code anymore, various people voice (IMHO valid) criticism about golang, C++ has a supposedly safe subset these days, Rust is a completely new language with strong guarantees if you…
An incoherent Rust
Coherence and the orphan rules are a frequent source of complaints about Rust, and a common topic of language proposals. This post covers most of the existing proposals around coherence and my vision for how we should solve coherence once and for all.
Zig's (.{}){} Syntax
A look at some unfriendly Zig syntax
Porting 4.5K lines of C to Go
Porting Yoga (Facebook's CSS flexbox implementation) from C to Go.
A Virtual Machine
Magicians protect their secrets not because the secrets are large and important, but because they are so small and trivial. The wonderful effects created on stage are often the result of a secret so absurd that the magician would be embarrassed to admit that that was how it was done.
Demangling C++ Symbols in Rust
I wrote a Rust crate to demangle C++ symbols: cpp_demangle. Find iton crates.io and github.
JavaScript Is C
JavaScript and C both make you maintain your invariants the most painful way possible. Happily, there are better alternatives these days.
PHP 8.5
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
Lisp: Icing or Cake?
The Spring Lisp Game Jam 2024 ended one week ago. 48 games were submitted, a new record for the jam! This past week has been a time for participants to play and rate each other’s games. As I explored the entries, I noticed two distinct meta-patterns in how people approached building games with Lisp. I think these…
Why Python Is Not My Favorite Language (2016)
Historical reference to Ian Denhardt’s Why Python Is Not My Favorite Language (2016-12-25), with archive and current documentation links.
Carbon’s most exciting feature is its calling convention
Last week, Chandler Carruth announced Carbon, a potential C++ replacement they’ve been working on for the past two years. It has the usual cool features you expect from a modern language: useful generics, compile-time interfaces/traits/concepts, modules, etc. – but the thing I’m most excited about is a tiny detail…
Goodbye C++, Hello C
Part 1 of this series about my toy renderer covers the most fundamental design decisions. Over the years, I have written many renderers and for a long time their complexity kept growing. This time, I took the opposite route. I wanted to maximize the fraction of code that implements crucial functionality rather than…
Why I think Rust is the "language of the future" for systems programming
This four-post series on Rust is intended to introduce you to the language, to teach you about Rust's cool language features, and to give a...
Designing a programming language to speedrun Advent of Code
“shouldn’t this have been published a few months ago?” yeah, probably. I even considered submitting it to the AoC contest. time is a real beast. The title is clickbait. I did not design and implement a programming language for the sole or even primary purpose of leaderboarding on Advent of Code. It just turned out…
Crafting Interpreters with Rust: On Garbage Collection
I became interested in implementing programming languages a few years ago and discovered [Crafting Interpreters](https://craftinginterpreters.com/) by Bob Nystrom. At the time, I had experience with Rust and decided to use it to follow the book. Albeit, being a noob, I managed to implement a fully functional bytecode…
The type system is a programmer's best friend
Programming, Coffee and Indie Hacking
Swift is a more convenient Rust
Mercy4D jadi lounge gaming digital buat yang pengen main dengan suasana lebih nyaman. Game online yang tersedia beragam, tampilannya enak dilihat, jadi mau jelajah sebentar atau lanjut lama tetap terasa santai dan nggak monoton.