Top posts
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 7,294 posts.
Locality of Behaviour (2020)
Carson Gross explores the Locality of Behaviour (LoB) principle, which emphasizes making the behavior of code units obvious on inspection to enhance maintainability. He discusses the tradeoffs between LoB and other software design principles like DRY and SoC, offering insights on balancing clarity, abstraction, and…
JEP 325: Switch Expressions
Extend the switch statement so that it can be used as either a statement or an expression, and that both forms can use either a "traditional" or "simplified" scoping and control flow behavior. These changes will simplify everyday coding, and also prepare the way for the use of pattern matching (JEP 305) in switch …
Weaponizing Dependabot: Pwn Request at its finest
Your trusty Dependabot (and other GitHub bots) might be an unwitting accomplice. Through "Confused Deputy" attacks, they can be tricked into merging malicious code. This doesn't stop here. It can escalate to full command injection via crafted branch names and even bypass branch protection rules. Plus, we disclose two…
Gotk3: GTK3 the Go way
Today marks the first release of gotk3, Conformal’s own GTK3 bindings for Go (available on Github here ). These bindings were developed out of a frustration with other GTK bindings for Go either using ancient versions of GTK, not handling memory in a way a Go developer would expect, or simply not working at all on our…
Btcd: Not your mom's Bitcoin daemon
We are pleased to announce that btcd , our full-node bitcoind alternative written in Go, is finally ready for public testing!
How to use a Python multiprocessing module
Working with Python multiprocessing module can be difficult at times. Learn what you can do with it.
Run Nix Based Environments in Kubernetes
Run reproducible, immutable environments in Kubernetes without container images. Faster deploys, SBOMs-by-default, and zero drift with Flox.
SQLite builds for WASI since 3.41.0
A short recap of how SQLite now has a WASI build
To Keep Track of Reddit Conversations Around NYT Articles, We Built a Slack Bot
How we’re getting feedback from the Reddit community
Merging In The GNU D Language Compiler To GCC
This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project .
TypeScript team released an explorer for performance tuning
Over the past few months, during the lead-up to the TypeScript 5.0 beta, our team spent a good portion of our time looking for ways to improve the
Implementing Mario's Stack Blur 15 times in C++ (with tests and benchmarks)
Implementing Mario Klingemann's Stack Blur algorithm in C++ 15 ways, with tests and benchmarks, to build fast CPU drop shadows for JUCE.
DuckDB Isn't Just Fast
A whistlestop tour of the cool bits of DuckDB
Ignoring bulk change commits with Git blame (2019)
A long-standing objection to making bulk changes to code using automated tools (e.g. to conform to a given code style) is that it clutters the output of git blame. With git 2.23, this does not have to be the case anymore! In this post I will start by explaining the value of git blame and […]
How We Use Make
Twilio Segment is a customer data platform (CDP) that collects, cleans, and activates customer data, sending events to hundreds of tools with one API.
Voyage-code-3
TL;DR – Introducing voyage-code-3, our next-generation embedding model optimized for code retrieval. It outperforms OpenAI-v3-large and CodeSage-large by an average of 13.80% and 16.81% on a suite …
Automating Dead Code Cleanup
Meta’s Systematic Code and Asset Removal Framework (SCARF) has a subsystem for identifying and removing dead code. SCARF combines static and dynamic analysis of programs to detect dead code from bo…
Rust: Investigating an Out of Memory Error
TL;DR: We discovered the hard way that when backtrace is enabled, the anyhow library is capturing a backtrace on every error. Only when printing this error in debug format!(”err: {:?}”, error) backtrace’s symbols are resolved to human-friendly names, thus leading to a significant memory increase for your application…