New

The latest blog posts to take off on Hacker News. 6,299 posts.

Any topic
2023
1388

Text showdown: Gap Buffers vs. Ropes

I have been working on a hobby project to reimagine the C core of Emacs in Rust. On this journey, I reached the point where I needed some way to represent the text of a buffer. The simplest approach is to just use a large string or array of lines. However these each suffer from poor performance as either the size or…

1399

MiniDisc Hacking

Most MiniDisc aficionados are aware of unit hacking to gain access to new features. The unit that perhaps benefits the most from this is the Sony MZ-N510, which also comes in the N520 and NF610 variants. The 2001 model R700 can be hacked to add many features of its upscale brother, the R900 , as well as the Type-R…

1405

Calling Rust from Python

I recently watched GOTO conferences' talk Calling Functions Across Languages by Richard Feldman. I’m afraid I have to disagree with using the term 'language' in this context. It’s a no-brainer to call Java from Kotlin or Scala or to call Java from Kotlin. Hence, in the rest, I’ll use 'stack'.

1408

Why is Debian the way it is?

Debian is a large, complex operating system, and a huge open source project. It's thirty years old now. To many people, some of its aspects are weird. Most such things have a good reason, but it can be hard to find out what it is. This is an attempt to answer some such questions, without being a detailed history of…

1410

The anatomy of a smart bulb

I’ve been having some troubles with Zigbee. Yes, at our airbnb we have a rather big dining room where I’ve put 7 Zigbee RGBWW Smart bulbs. The problem is that each time I try to turn all 7 on or off there’s either a lag or some of them just won’t switch on or off. The controller is a Sonoff Zigbee 3.0 USB dongle, yes…