Print(“lol”) doubled the speed of my Go function
Here is a Go function, if_max(). It finds the max value of an array of integers. Simple enough:
The latest blog posts to take off on Hacker News. 21,821 posts.
Here is a Go function, if_max(). It finds the max value of an array of integers. Simple enough:
Bun gets debugger support, fetch streaming, and `bun update`. ReadStream and WriteStream from `node:tty` are implemented, including raw mode on `process.stdin`. SvelteKit now works in Bun. Plus bug fixes and stability improvements.
Many years ago I've re-posted a Stack Overflow answer with Python code for a terse prime sieve function that generates a potentially infinite sequence of prime numbers ("potentially" because it will run out of memory eventually). Since then, I've used this code many times - mostly because it's short and clear. In this…
Learn how to deliver, manage, and protect your applications using F5 NGINX products.
I recently pondered how I'd answer [Peter Thiel's](https://www.goodreads.com/quotes/1478492-what-important-truth-do-very-few-people-agree-with-you) interview question if my answer had to relate to software:
We think we do, but in fact every web developer will happily sacrifice simplicity to the first shiny thing promising them relief from the mildest of ailments.
Developers can now bring their own data to customize GPT-3.5 Turbo for their use cases.
... they pay, they leave, they drink, they order.
In the ownership trio, we discussed 3 elements: Knowledge, Mandate and Responsibility. This article digs into various broken ownership scenarios where 1-2 of those elements are missing, what are the common symptoms and how to fix them.
The Go 1.21 standard library includes a new structured logging package, log/slog.
Without spending a year on it.
tl;dr annotated AHK scripts here. Anybody who’s spent time with me knows how much I love AutoHotKey, the flat-out best Windows automation tool in the world. Anybody’s who’s tried to use AutoHotKey knows how intimidating it can be. So to help with that, I’m sharing (almost) all of my scripts along with extensive…
Arrays are unique objects inside the JVM, and understanding their structure makes for better coding.
Success and Litigation
blog-cells can turn any web page into an interactive code notebook, similar to Jupyter notebooks, but powered by JavaScript and running entirely in the browser.
And then telling it to not generate those images!
How to use GNU Parallel to gather stats on long-running flaky tests by running them many times and capturing their results.
This article shows the obscure but useful capabilities of Hash, a simple but equally powerful data structure in Ruby.
Made in Notion, the connected workspace where AI agents and teams organize docs, projects and knowledge together.
Though most strings online today follow the Unicode standard (e.g., using UTF-8), the Latin 1 standard is still in widespread inside some systems (such as browsers) as JavaScript strings are often stored as either Latin 1, UTF-8 or UTF-16 internally. Latin 1 captures the first 256 characters from the Unicode standard…
The Apple Macintosh combined brilliant design in hardware and in software. The drawing program MacPaint, which was released with the computer in January of 1984, was an example of that brilliance both in what it did, and in how it was implemented.
Historical reference to Ian Denhardt’s A Critique of the Cap'n Proto Schema Language (2019-06-25), with archive and current documentation links.
Explore the risks associated with unaligned pointer accesses in GCC. Understand how these assumptions can lead to unexpected program behavior and potential security vulnerabilities. Learn best practices to mitigate these risks and write secure code.
The original ANSI C standard, C89, introduced the concept of “undefined behavior,” which was used both to describe the effect of outright bugs like accessing memory in a freed object and also to capture the fact that existing implementations differed about handling certain aspects of the language, including use of…
Async Rust is a whole new world of programming. Let's try to understand it by working our way through a series of web servers, learning the details of concurrency and I/O along the way.
If you’re thinking of migrating to another infrastructure as code tool (and why would you, everything is great in the IaC world now, right?!) you might find yourself asking yourself