Build your own ResponseWriter: safer HTTP in Go
https://anto.pt/articles/go-http-responsewriter [anto.pt]
2025-05-09 19:14
tags:
go
programming
web
Go’s http.ResponseWriter writes directly to the socket, which can lead to subtle bugs like forgetting to set a status code or accidentally modifying headers too late.
source: L
Beating the Fastest Lexer Generator in Rust
https://alic.dev/blog/fast-lexing [alic.dev]
2025-05-09 19:07
tags:
compiler
perf
programming
rust
text
I was aware of the efficiency of state machine driven lexers, but most generators have one problem: they can’t be arbitrarily generic and consistently optimal at the same time. There will always be some assumptions about your data that are either impossible to express, or outside the scope of the generator’s optimizations. Either way, I was curious to find out how my hand-rolled implementation would fare.
source: L
Write the most clever code you possibly can
https://buttondown.com/hillelwayne/archive/write-the-most-clever-code-you-possibly-can/ [buttondown.com]
2025-05-09 18:55
tags:
development
essay
ideas
programming
How do we make something utterly mundane? By using it and working at the boundaries of our skills. Almost everything I’m “good at” comes from banging my head against it more than is healthy. That suggests a really good reason to write clever code: it’s an excellent form of purposeful practice. Writing clever code forces us to code outside of our comfort zone, developing our skills as software engineers.
source: L
The State of SSL Stacks
https://www.haproxy.com/blog/state-of-ssl-stacks [www.haproxy.com]
2025-05-07 00:26
tags:
development
library
networking
perf
security
update
For years, OpenSSL maintained its position as the de facto standard SSL library, offering long-term stability and consistent performance. The arrival of version 3.0 in September 2021 changed everything. While designed to enhance security and modularity, the new architecture introduced significant performance regressions in multi-threaded environments, and deprecated essential APIs that many external projects relied upon. The absence of the anticipated QUIC API further complicated matters for developers who had invested in its implementation.
Examining alternatives—BoringSSL, LibreSSL, WolfSSL, and AWS-LC—reveals a landscape of trade-offs. Each offers different approaches to API compatibility, performance optimization, and QUIC support. For developers navigating the modern SSL ecosystem, understanding these trade-offs is crucial for optimizing performance, maintaining compatibility, and future-proofing their infrastructure.
I'd rather read the prompt
https://claytonwramsey.com/blog/prompt/ [claytonwramsey.com]
2025-05-04 22:18
tags:
ai
essay
hoipolloi
ideas
language
Don’t let a computer write for you! I say this not for reasons of intellectual honesty, or for the spirit of fairness. I say this because I believe that your original thoughts are far more interesting, meaningful, and valuable than whatever a large language model can transform them into. For the rest of this piece, I’ll briefly examine some guesses as to why people write with large language models so often, and argue that there’s no good reason to use one for creative expression.
source: HN
Plural
https://www.smbc-comics.com/comic/plural-2 [www.smbc-comics.com]
2025-05-04 20:31
tags:
admin
comic
language
storage
gif files
The plural is gives. It’s like shelves or elves.
The absurdly complicated circuitry for the 386 processor's registers
http://www.righto.com/2025/05/intel-386-register-circuitry.html [www.righto.com]
2025-05-04 20:22
tags:
compsci
cpu
hardware
photos
retro
tech
If you look in a book on processor design, you’ll find a description of how registers can be created from static memory cells. However, the 386 illustrates that the implementation in a real processor is considerably more complicated. Instead of using one circuit, Intel used six different circuits for the registers in the 386.
What went wrong with wireless USB
https://oldvcr.blogspot.com/2025/05/what-went-wrong-with-wireless-usb.html [oldvcr.blogspot.com]
2025-05-04 17:34
tags:
article
hardware
tech
wifi
But what if the USB connection could be made wirelessly? For a few years, real honest-to-goodness wireless USB devices were actually a thing. Competing standards led to market fracture and the technologies fizzled out relatively quickly in the marketplace, but like the parallel universe of FireWire hubs there was another parallel world of wireless USB devices, at least for a few years. As it happens, we now have a couple of them here, so it’s worth exploring what wireless USB was and what happened to it, how the competing standards worked (and how well), and if it would have helped.
Also with a detailed explanation of UWB.
The key basis technology instead was the concept of ultra wide-band, or UWB, which in modern parlance collectively refers to technologies allowing very weak, very wide-spectrum (in excess of 500MHz) signals to become a short range yet high bandwidth communications channel.
source: HN
runtime: green tea garbage collector
https://github.com/golang/go/issues/73581 [github.com]
2025-05-04 17:19
tags:
beta
garbage-collector
go
The core idea behind the new parallel marking algorithm is simple. Instead of scanning individual objects, the garbage collector scans memory in much larger, contiguous blocks. The shared work queue tracks these coarse blocks instead of individual objects, and the individual objects waiting to be scanned in a block are tracked in that block itself. The core hypothesis is that while a block waits on the queue to be scanned, it will accumulate more objects to be scanned within that block, such that when a block does get dequeued, it’s likely that scanning will be able to scan more than one object in that block. This, in turn, improves locality of memory access, in addition to better amortizing per-scan costs.
source: L
The Future Of Solar Doesn’t Track The Sun
https://terraformindustries.wordpress.com/2025/04/29/the-future-of-solar-doesnt-track-the-sun/ [terraformindustries.wordpress.com]
2025-05-03 21:41
tags:
article
business
energy
PV modules are cheap enough today that the simple fixed East-West arrays are cheaper and faster to install than the industry’s darling, the single-axis tracked array.
source: HN
A Strange Phrase Keeps Turning Up in Scientific Papers, But Why?
https://www.sciencealert.com/a-strange-phrase-keeps-turning-up-in-scientific-papers-but-why [www.sciencealert.com]
2025-05-02 08:42
tags:
ai
factcheck
science
web
Earlier this year, scientists discovered a peculiar term appearing in published papers: “vegetative electron microscopy”. This phrase, which sounds technical but is actually nonsense, has become a “digital fossil” – an error preserved and reinforced in artificial intelligence (AI) systems that is nearly impossible to remove from our knowledge repositories.
source: HN
Why did Windows 7, for a few months, log on slower if you have a solid color background?
https://devblogs.microsoft.com/oldnewthing/20250428-00/?p=111121 [devblogs.microsoft.com]
2025-04-28 21:20
tags:
bugfix
perf
ux
windows
The code to report that the wallpaper is ready was inside the wallpaper bitmap code, which means that if you don’t have a wallpaper bitmap, the report is never made, and the logon system waits in vain for a report that will never arrive.
How a Single Line Of Code Could Brick Your iPhone
https://rambo.codes/posts/2025-04-24-how-a-single-line-of-code-could-brick-your-iphone [rambo.codes]
2025-04-28 05:20
tags:
exploit
iphone
security
turtles
This is the story of how I found one of my favorite iOS vulnerabilities so far. It’s one of my favorites because of how simple it was to implement an exploit for it. There’s also the fact that it uses a legacy public API that’s still relied upon by many components of Apple’s operating systems, and that many developers have never heard of.
However, just as any process on the system can register to receive Darwin notifications, the same is true for sending them. Considering these properties, I began to wonder if there were places on iOS using Darwin notifications for powerful operations that could potentially be exploited as a denial-of-service attack from within a sandboxed app.
source: HN
OpenBSD 7.7
https://www.openbsd.org/77.html [www.openbsd.org]
2025-04-27 21:18
tags:
openbsd
release
RWSbCCUoGpcxVRmNb/XFYBbthxWMK7G6fNbJhb993Ohuh29WFaT9vhe2
Four Critically Endangered Galapagos Tortoises Hatch at Philadelphia Zoo
https://www.philadelphiazoo.org/news/four-critically-endangered-galapagos-tortoises-hatch-at-philadelphia-zoo/ [www.philadelphiazoo.org]
2025-04-25 04:56
tags:
biology
philly
turtles
The hatchlings’ parents, female Mommy and male Abrazzo, are the Zoo’s two oldest residents, each estimated to be around 100 years old.
FediMeteo: How a Tiny €4 FreeBSD VPS Became a Global Weather Service for Thousands
https://it-notes.dragas.net/2025/02/26/fedimeteo-how-a-tiny-freebsd-vps-became-a-global-weather-service-for-thousands/ [it-notes.dragas.net]
2025-04-23 05:11
tags:
admin
hoipolloi
social
This article, although in some parts very conversational, aims to demonstrate how it’s possible to build solid, valid, and efficient solutions without the need to use expensive and complex services. Moreover, this is the demonstration of how it’s possible to have your online presence without the need to put your data in the hands of third parties or without necessarily having to resort to complex stacks. Sometimes, less is more.
source: Dfly
Cheating the Reaper in Go
https://mcyoung.xyz/2025/04/21/go-arenas/ [mcyoung.xyz]
2025-04-21 23:49
tags:
garbage-collection
go
malloc
programming
These things mean that despite Go having a GC, it’s possible to do manual memory management in pure Go and in cooperation with the GC (although without any help from the runtime package). To demonstrate this, we will be building an untyped, garbage-collected arena abstraction in Go which relies on several GC implementation details.
source: HN
Marching Events: What does iCalendar have to do with ray marching?
https://pwy.io/posts/marching-events/ [pwy.io]
2025-04-18 05:31
tags:
format
programming
rust
I’ve found a way of describing occurrences through distance functions. This means that instead of implementing logic for all combinations of frequencies and parameters - as that spooky table from before suggests one might do - we can simply compose a couple of distance functions together.
source: HN
Unsure Calculator
https://filiph.github.io/unsure/ [filiph.github.io]
2025-04-17 20:57
tags:
ideas
math
visualization
The idea is simple: apart from regular numbers (like 4, 3.14 or 43942), you can also input ranges (like 4~6, 3.1~3.2 or 40000~45000). The character between the two extremes of the range is a tilde (~), a little wave symbol. You can find it on most keyboards, but for convenience, I also included it in the keypad above. The range notation says the following to the calculator: I am not sure about the exact number here, but I am 95% sure it’s somewhere in this range.
source: L
How a $2,000 'Made in the USA' Phone Is Manufactured
https://www.404media.co/how-a-2-000-made-in-the-usa-liberty-phone-phone-is-manufactured/ [www.404media.co]
2025-04-11 03:43
tags:
business
hardware
interview
policy
solder
tech
valley
But there is currently one smartphone that qualifies for a “Made in the USA” title from the FTC. It’s the Liberty Phone, which is made by a company called Purism. The phone is a version of Purism’s Librem 5. The Made-in-China Librem 5 costs $800, and the Liberty phone costs $2,000. It has 4 GB of memory, and reviewers say that its specs are pretty outdated. Not every single component in the Liberty Phone is made in the USA, but the company has been trying very hard to make it as American-made as possible.
source: HN