New
The latest blog posts to take off on Hacker News. 1,551 posts.
What is the inverse of a circle?
In this post we’ll try to make sense of what we’re seeing, and try to understand what it means to invert a circle!
Request bodies in GET requests
12 years ago I asked on Stack Overflow: Are HTTP GET requests allowed to have request bodies? . This got a 2626 upvotes and a whopping 1.6 million views, so clearly it’s something lots of people are still curious about, and in some cases disagree with the accepted answer.
Tech debt gets worse before it gets better
Projects to pay down tech debt tend to start by making more tech debt. The level of tech debt gets worse before it gets better. The new, cleaner code is just adding to the mess until it allows you to finally delete the old code.
An update on rust/coreutils
TLDR: we are making progress on the Rust implementation of the GNU coreutils. Well, it is an understatement to say my previous blog post interested many people. Many articles, blog posts and some …
Devious SQL: Message Queuing Using Native PostgreSQL
An interesting question came up on the postgresql IRC channel about how to use native PostgreSQL features to handle some sort of queuing behavior. While the specific usage was related to handling serialization of specific events to some external broker, the specifics are less important than the overall structure.
Async Rust: Panics vs. Cancellation
One of the things people often complain about when doing Async Rust is cancellation. This has always been a bit confusing to me, because it seems to me that async cancellation should feel a lot like panics in practice, and people don’t complain about panics very often (though they do sometimes). This post is the start…
There’s No Such Thing as Clean Code
Everyone seems to be striving for ‘clean’ code at the moment. You can’t read a blog post without the author telling you how clean their approach is. Engineering teams get together and discuss which of the possible solutions is the cleanest. Other developers assure you that they practice ‘clean code’.
Writing an open source GPU driver without the hardware
Until now, no Valhall devices (Mali-G57, Mali-G78) ran mainline Linux - whilst this made driver development obviously difficult, there’s no better time to write drivers than before the devices even get into the hands of end users.
The baseline for web development in 2022
TL;DR:The baseline for web development in 2022 is: low-spec Android devices in terms of performance, Safari from two years before in terms of W...
Why can't you reverse a string with a flag emoji?
davidamos.dev is your first and best source for information about davidamos. Here you will also find topics relating to issues of general interest. We hope you find what you are looking for!
Speeding up VSCode extensions in 2022
I was curious to know if the functionality of VSCode can catch up with the native speed of some editors, such as Sublime. That led me to seek out where some bottlenecks may be and where time is being spent. In this post I look at both the internals and extensions.
Aligning Language Models to Follow Instructions
We’ve trained language models that are much better at following user intentions than GPT-3 while also making them more truthful and less toxic, using techniques developed through our alignment research. These InstructGPT models, which are trained with humans in the loop, are now deployed as the default language models…
Wordle-solving state of the art: all optimality results so far
Almost all mathematical questions one could have about Wordle are settled by now. I summarize here what is known so far.
Worst practices are viral for the wrong reasons (2014)
Perverse incentives surrounding best practices
Why our team cancelled our move to microservices
Recently our development team had a small break in our feature delivery schedule. Technical leadership decided that this time would be…
Deno in 2021
Retrospect of what happened in 2021 and what's coming in 2022
What's new in Ruby 3.1?
Nithin Bekal's blog about programming - Ruby, Rails, Vim, Elixir.
Julia Macros for Beginners
Macros are a powerful and interesting feature of the Julia programming language, but they can also be confusing. Users coming from Python, Matlab or R have not come in contact with similar constructs before, and they require a different way of thinking about code. This article is supposed to be a simple introduction…
Highlights from Git 2.35
The open source Git project just released Git 2.35. Here's GitHub's look at some of the most interesting features and changes.
LogJ4 Security Inquiry – Response Required
On Friday January 21, 2022 I received this email. I tweeted about it and it took off like crazy. The email comes from a fortune-500 multi-billion dollar company that apparently might be using a product that contains my code, or maybe they have customers who do. Who knows? My guess is that they do this … Continue…
Const all the things?
Last week someone posted a /r/cpp thread titled “Declaring all variables local to a function as const”: Ok, so I’m an old-school C++ programmer using the language now since the early ’90s. I’m a fan of const-correctness for function and member declarations, parameters, and the like. Where, I believe, it actually…
I accidentally used YAML.parse instead of JSON.parse and it worked
How I stumbled upon the fact that YAML is a superset of JSON.
Solving Wordle in 3.64 guesses on average, 99.4% of the time
Hey all, I’ve been enjoying wordle, the puzzle game recently but also wondered how a program might do at it.