HNHacker News
TopNewBestAskShowJobs

clnhlzmn

152 karma · joined February 18, 2018

submissionscomments
clnhlzmn··on The Ploopy A+ Trackball Is Here
fwiw I just received the adept trackball and I too was worried about the quality of the enclosure but upon seeing it in person I'm fine with it. As far as fdm prints go it's really well done.
clnhlzmn··on Linux eliminates the strncpy API after six years of work, 360 patches
The way we do it in modern languages with things like std::optional and even that is not the best example.
clnhlzmn··on The intracies of modern camera lens repair (2024)
Because to control the autofocus motor and other features it makes sense to have a microcontroller in the lens. If you have a microcontroller in the lens you have software in the lens and if you have software in the lens you're going to need to update it.

You could argue that the camera should do firmware updates but the manufacturers for (semi) open mounts like the ones Tamron is making lenses for don't want to have to design a protocol to do updates for third party lenses through the body when the lens manufacturer can just slap a USB port on the lens and call it a day.

The port is also useful for customizing the lens functions. For third party lenses the camera can't be expected to manage those functions.

clnhlzmn··on Ian's Secure Shoelace Knot
I use this knot usually but it doesn't work for my pisgah range laces. They have their own recommended knot, which does work, but it's annoying to tie and asymmetric. I'll be trying this "secure" knot now.
clnhlzmn··on United Airlines 767 returns to Newark after Bluetooth name sparks alert
The really crazy thing is they returned to the origin instead of the nearest airport. If it was really an emergency they would have got out of the air at the nearest runway of suitable length instead of flying all the way back. Just theater.
clnhlzmn··on A fundamental principle of aeronautical engineering has been overturned
You learned something different then because this finding is that some kinds of additional roughness delay the transition to turbulent flow which is pretty clear in the article.
clnhlzmn··on Floating point from scratch: Hard Mode
doesn't ieee754 define a decimal format? Specifically "decimal64"
clnhlzmn··on A Japanese glossary of chopsticks faux pas (2022)
It's probably a faux pas to be left handed
clnhlzmn··on I Don't Like Magic
I think you're mistaken on that. Maybe me and the engineers I know are below average on this but even our combined knowledge of the kinds of things _real_ compilers get up to probably only scratches the surface. Don't get me wrong, I know what compilers do _in principle_. Hell I've even built a toy compiler or two. But the compilers I use for work? I just trust that the know what they're doing.
clnhlzmn··on Apple-1 Computer Prototype Board #0 sold for $2.75M
I need that "RUB OUT" key on my keyboard
clnhlzmn··on A Social Filesystem
Seems similar to remoteStorage [0]. What happened to that anyway?

[0]: https://remotestorage.io/

clnhlzmn··on HP Reveals Keyboard Computer with Ryzen AI Chip
So instead of carrying a slightly larger but perfectly useful computer (a laptop) I have to carry a smaller but useless keyboard and mouse for the benefit of not having a keyboard and mouse sitting on a desk when the desk isn't being used? I still don't get it.

I could see the benefit if this thing dropped the keyboard entirely to make it as small as possible but still I'd rather just carry a small laptop.

clnhlzmn··on HP Reveals Keyboard Computer with Ryzen AI Chip
If this is better than a laptop for mobile work why include the keyboard? Why not just make it a tiny box with a single USB C connector to plug into the dock on your home and work desks? Since you already must have monitors and mice at those locations (or bring them with you) I'm failing to see the point of including the keyboard in this package (except of course to be able to advertise the "copilot key")
clnhlzmn··on The struggle of resizing windows on macOS Tahoe
Seems like you could make the corners round (not making a judgement on that in any way) and still give the resize handle a more sensible size/shape/location right? As in this isn't a visual design problem.
clnhlzmn··on Pebble Index 01 – External memory for your brain
This makes me wonder about things like air pods. Do they replaceable batteries? Does Apple plan to make them so?
clnhlzmn··on Abuse of the nullish coalescing operator in JS/TS
> I've come to see this ubiquitous string of symbols, ?? "", as the JS equivalent to .unwrap() in Rust

Isn't this more like `unwrap_or`?

clnhlzmn··on LAPD helicopter tracker with real-time operating costs
I think the person you replied to probably just has a different definition of "completely ruined" than you or I.
clnhlzmn··on Show HN: 32V TENS device from built from scratch under $100
I see

> Each electrode channel is tied to a finger pad

but the layout shows the finger pads are all tied together. What am I missing?

clnhlzmn··on Archive or Delete?
I haven't seen this option yet: archive things you think are important, delete things you think are not important, but don't permanently delete anything. Just use archive and trash as folders of differing degrees of importance. If you run out of storage you can manually delete some of the oldest items in the trash and be pretty sure you didn't need those things (but this will never be necessary because who runs out of email storage).
clnhlzmn··on Bloom Filters by Example
I recently used a bloom filter to achieve a log message anti-spam feature. In the logger I hashed the messages and inserted into the filter. If the entry was present I didn’t output the messages. Then every few seconds I would iterate over the filter and clear all the bits. It worked out nicely that I didn’t have to worry about atomically clearing all the bits in the filter, if messages were coming in and any of their bits had been cleared that was sufficient to cause them to be logged again. This was much more efficient than the previous implementation which kept a count of messages seen and would saturate at N and had the effect that if a particular message was being repeatedly logged it would be seen, just at most at the rate at which the filter was being cleared.

After being aware of bloom filters for a while it was quite satisfying to organically find a real use for one that was such an improvement.

clnhlzmn··on Algebraic Data Types for C99
You might also be interested in metalang99 by the same author.
clnhlzmn··on The xz attack shell script
Oh I get it. Sometimes bash is the right tool for the job. I think that’s just mostly an unfortunate historical artifact though. It’s hard to argue it’s intuitive or “clean” or ${POSITIVE_ADJECTIVE} in the average case.
clnhlzmn··on The xz attack shell script
This is totally true and the bash apologists are delusional.
clnhlzmn··on Timeline of the xz open source attack
This is not Lasse Collin’s responsibility. What is a burnt out committer supposed to do? Absolutely nothing would be fine. Doing exactly what Lasse Collin did and turn over partial control of the project to an apparently helpful contributor with apparent community support is also perfectly reasonable.
clnhlzmn··on What we know about the xz Utils backdoor that almost infected the world
This is really not the responsibility of unpaid developers.
clnhlzmn··on Overview: What are Cpp2 and cppfront? How do I get and build cppfront?
I think the c++ version could be more understandable but it’s as if the authors intentionally made it as obtuse as possible.
clnhlzmn··on Xz: Can you spot the single character that disabled Linux landlock?
Would it be reasonable to expect that this MR comes along with a test that shows that it does the thing it’s claiming to do? I’m not sure how that would work in this case.. have a test that is run on a system that is known to have landlock that does something to ensure that it’s enabled? Even that could be subverted, but it seems like demanding that kind of thing before merging “features” is a good step.
clnhlzmn··on Roll-Invert-Unroll: An easier way to replace a duvet cover
Yeah I find the rolling method is more work than it’s worth when the “grab the corners and shake vigorously” method works just fine.
clnhlzmn··on NotepadNext – a cross-platform reimplementation of Notepad++
TextAdept is a cross platform, minimal, fast, and extensible text editor that might be a good candidate.
clnhlzmn··on SQLite Is Dynamically Typed (2020)
> I mean, you can still use it, but you have to do your own type checking/coercion in code

Can you explain why you wouldn't have to check what you're putting into the database? If you're just stuffing values of unknown type into a statically typed DB you're going to get errors up front and if you stuff values of unknown type into SQLite you might get errors down the road. Either way you probably should know what you're putting into the DB in the first place.

Page 1 of 2Next →