JavaScript Array.push is 945x faster than Array.concat
It took six whole seconds to merge 15,000 arrays with an average size of 5 elements with .concat. What the hell is the Javascript's .concat method doing under the hood?
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 21,842 posts.
It took six whole seconds to merge 15,000 arrays with an average size of 5 elements with .concat. What the hell is the Javascript's .concat method doing under the hood?
A blog about game engines, graphics, C++, and more.
In Chapter 9 of Types and Programming Languages , Pierce presents his exposition of the Simply typed Lambda-Calculus. It is a truly awesome chapter - each subsection in succession constructs a rich and very well detailed system of computation and Pierce is a master of precision, guiding the reader through the maze of…
From the very beginning , we built Chrome to be the fastest browser possible. The faster Chrome is, the faster you find the information you ...
Sovereign code infrastructure.
Managing complexity within an application is one of the key challenges for any software developer. Cleanly reconciling new features with existing architectures is something we strive for.
Maslow's pyramid can help us think about what great code reviews look like.
A Rust object that survives program restart thanks to Rust allocators, systemd's file descriptor store, and syscall memfd_create.
This post is an account of why I prefer using the attrs library over Pydantic. I'm writing it since I am often asked this question and I want to have something concrete to link to.
As with our previous posts, you can skim the photos and captions for a quick read or dive into the text for more details. The power capability of Boosted's drivetrain would be useless without a...
I’m a keen user of Emacs and Org mode for a variety of tasks, including note taking, generating documents for exporting to LaTeX, Word, or html. creating blog posts (notably for this blog, us…
A brief overview of the formal specification landscape
I think I figured out what’s stressing me out about programming in dynamically typed languages: It’s about always being unsure if using a library in a particular way is going to work and if minor version upgrades aren’t going to break your code.
An archive of Steve Krouse’s Future of Coding research notes
Unix tradition encourages the use of command-line switches to control programs, so that options can be specified from scripts. This is especially important for programs that function as pipes or filters. Three conventions for how to distinguish command-line options from ordinary arguments exist; the original Unix…
Introduction Large language models are trained on huge datasets of text to learn the relationships and contexts of words within larger documents. These relationships are what allows the model to generate text. Recently I've read concerns about LLMs being trained on copyrighted text and reproducing it. This got me…
Computer scientists at MIT have developed a program called Helium that can automatically revamp and fine-tune old code, without needing the original source, in a matter of hours or even minutes.
A side-by-side comparison of the Polars and Pandas libraries.
None
Have you ever opened a core dump with gdb, tried to print a C++ std::vector element, and got the following?