What's the point of std:monostate? You can't do anything with it
Not doing anything with it is exactly the point.
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 327 posts.
Not doing anything with it is exactly the point.
Learnings from building MiniJinja, a template engine in Rust
This blog post explores an alternative formulation of Rust’s type system that eschews lifetimes in favor of places . The TL;DR is that instead of having 'a represent a lifetime in the code, it can represent a set of loans , like shared(a.b.c) or mut(x) . If this sounds familiar, it should, it’s the basis for polonius…
How is tail recursion different from regular recursion? What do continuations have to do with this, what is CPS, and how do trampolines help? This article provides an introduction, with code samples in Python and Clojure.
Recently, we had a discussion in our team about undefined behaviour (UB) in C. For those unfamiliar: We say that a program has undefined behaviour when we write code where the language specification doesn't define what should happen during execution. That means compilers can do whatever they like if they encounter…
Overture to our small Lisp to x86-64 compiler
Silo AI is announcing the release of the first open LLM for the Nordic languages
deadcode is a new command to help identify functions that cannot be called.
Good development practices for modern Python
Smaller programs that do less work.
Many years ago, Kragen complained about the implementation and performance of Java regexes , and suggested that an implementation that emitted JVM bytecode could perform better. It's been a minute, but I'm happy to report that complaining on the Internet has served its purpose.
The personal website of JT Archie. Includes a blog, work ethic, and projects they have worked on.
From the highly eclectic blog of Mark Dominus
A somewhat compact implementation of the awk programming language
Design patterns are these cool things that make you go 'hell yeah' because they make a certain problem easier to deal with. Whether it's applicable to all languages, or due to a language constraint, they're pretty nice. Of course, some people go crazy with them rather than doing the simple thing that works. Other…
Laurent Le Brun's blog
R has built-in support for two functional Object Oriented Programming (OOP) systems: S3 and S4, corresponding to the third and fourth version of the S language, respectively. The two systems are largely compatible; however, they are two fundamentally distinct systems, two systems for a user to understand, two systems…
A short explanation of what is preemption and how it works
Algebraic Effects are a useful abstraction for reasoning about effectful programs by letting us leave the interpretation of these effects to callers. However, most existing literature discusses these in the context of a pure functional language with pervasive sharing of values. What restrictions would we need to…
September 28, 2024 @ 5:50 am · Filed by Mark Liberman under Linguistics in the comics
Some time ago, during a code review, I had a discussion with a colleague of mine about preferring dict() over {} in new Python code. They argued that dict() is more readable — and expresses intent more clearly — therefore should be preferred. I wasn’t convinced by that, but at that time I didn’t have any…
(Discussion on HackerNews)
Projects and articles by Chris Gioran
A guide to domain-specific types that make sense.
An implemenation of the SuperMemo-2 algorithm.
Update : I forgot that I did a brief analysis on this many years ago, using ROT13 as example.
A somewhat compact implementation of the awk programming language
Rama is a platform with huge applicability, able to express all the computation and storage for a backend at any scale. Just like the UNIX philosophy of composing simple programs to do more complex…