The unreasonable effectiveness of f-strings and re.verbose
... in which we look at one or two ways to make life easier when working with Python regular expressions.
Topics /
The most popular blog posts about programming languages on Hacker News. 256 posts.
... in which we look at one or two ways to make life easier when working with Python regular expressions.
Why self-host Zig?<br> For great justice, of course… and also a few more reasons actually.
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
Rust is awesome, for certain things. But think twice before picking it up for a startup that needs to move fast.
V is a programming language promising to be “Simple, fast, safe, compiled. For developing maintainable software.” V has a controversial past but what is the state of V in 2022?
The 1999 revision to the C programming language brought several interesting changes and additions to the standard. Among those are variable length arrays, or VLAs for short, which allow array types to have lengths that are determined at runtime. These can show up in different contexts, but for the purposes of this…
Experimenting transpiling Uber h3 library with ccgo.
Translating Rob Pike's simple and elegant C regex matcher to Go.
I have been thinking about the semantics of Rust – as in, the intended behavior of Rust programs when executed, in particular those containing unsafe code – a lot. Probably too much. But al...
An article titled Rust Is Hard, Or: The Misery of Mainstream Programming came out today and it's getting a lot of attention. I have a feeling that it's viewed in a wrong context, so I'd like to comment on the issue raised there.
Today, I’m releasing deflect , an implementation of reflection for Rust. Deflect can be used to recover the concrete types of trait objects, inspect the internal state of async generators, pretty-print arbitrary data, and much more.
A love letter to Ruby and Rails.
We’ll spend the rest of this book illuminating every dark and sundry corner of the Lox language, but it seems cruel to have you immediately start grinding out code for the interpreter without at least a glimpse of what we’re going to end up with.
So, I’ve been working on a programming language in my spare time for over a year now. I’ll save you the details but it’s meant to be a minimal, easy-to-learn language for beginners. This year for the Advent of Code, I set myself a challenge; complete every day’s challenge using only my programming language.
You never get a second chance to make a first impression.
In my never ending quest to have oksh support every C compiler in existence, I have ported two more C compilers to OpenBSD . They are chibicc and kefir. As always, let's review them and at the end I'll have links to unofficial ports so that you can play around with these C compilers.
Benchmarking Rust to determine if small structs should be passed by-copy or by-value.
I keep seeing discussions that equate zig's level of memory safety with c (or occasionally with rust!). Neither is particularly accurate. This is an attempt at a more detailed breakdown.
Why and how I added proper CSV support to GoAWK, my POSIX-compatible AWK interpreter.
It’s That Blog Post. The release one, where we round up all the last of the features approved since the last time I blogged. If you’re
Since making a sudden leap from computer science to academic medicine about seven years ago, I haven’t programmed as much.
I think there's another reason this problem persists in Clojure. There's no Rails for Clojure.
You can go a long time as a JavaScript developer without ever feeling the need for generators. Hence, it’s natural to wonder: What are they good for? Why would you ever need one? What’s the point? But generators can do some neat tricks. And they may even change the way you approach certain problems.
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.
Collected tips from building the Austral compiler.
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…
Programming, Coffee and Indie Hacking