Better HN
topnewbestaskshowjobs
Log inSign up

downsplat

304 karma · joined Jun 14, 2013 (13y ago) · 103 submissions

Submissions

comment 1d ago · link · parent

Yes, and every website that loads ads from a broker is untrusted.

comment 5d ago · link · parent

Hindsight is 20/20, it's easy now to say that if Unicode had been utf8 from the start, no 16-bit encoding would have been needed anywhere. But someone had to think of it first, and in the real world, 16-bit came first and became quite entrenched.

comment 5d ago · link · parent

It's a big world out there, it's not like you don't have a choice. I quite like the model.

Perl was famous for excellent native unicode support in its native string type, but the result was that you had to keep track of whether your variable was native unicode or octets, and many CPAN modules would try to transparently support both, in buggy ways. A richer system is not always an advantage.

comment 5d ago · link · parent

The php convention is that strings are bytes, but we store utf8 in them. Convert or validate at ingestion, transform using the mb_* family of functions, and be happy.

comment 5d ago · link · parent

It has some historical warts but it's still a perfectly decent language with lots of modern features too. I quite like the semi-typed style, strong types for function arguments and returns, and duck typed within. Keeps things concise and well-checked enough. I just finished porting a 120kLoC project into php, and I'm quite happy with it. Using Slim as a micro framework, with a custom layer on top.

comment 5d ago · link · parent

If anyone needs it, the Ubuntu package is up: https://ubuntu.com/security/CVE-2026-123633

comment 1mo ago · link · parent

Does anyone know which IRC group this descends from, if any? Back when IRC was the thing it was split into rival networks, there was EFnet and IRCNet - I still remember when they split from each other, rather acrimoniously, over questions of governance and network protocol. And then there were the alternative networks, Undernet and DALnet and possibly a few more.

I was involved in server-to-server protocol design for a while, and each network had very specific ideas of how they wanted it. IIRC Undernet pioneered the use of timestamps to keep track of channel membership priority, EFnet came up with a v2 twist on the same idea, while IRCNet rejected the approach in favor of some kind of limited server-side persistence. Heady times!

comment 2mo ago · link · parent

Saml serializing to XML is not a problem at all, the problem is then including the signature within the XML, which Saml idiotically does. They could just as well have appended it to the xml with a separator. There's nothing about that that couldn't have been understood in 1995 or so.

comment 2mo ago · link · parent

If you want to own your computer, linux is where it's at. Windows is rusty iron chains and MacOS's are gold-plated silver pretending to be gold, but they're still chains.

comment 2mo ago · link · parent

So what does this one offer on top? All they're saying is "here's our FTS offering".

comment 2mo ago · link · parent

I suppose it all depends on the scale of your project, but I've had pretty good luck using both MySQL's and SQLite's FTS capabilities. Surprised to hear that Open Source champion Postgres didn't have up-to-snuff FTS up to now...?

comment 3mo ago · link · parent

How often do you reboot your laptop anyway? It takes a couple seconds to type in a well-rehearsed passphrase.

When I reboot mine it's actually three passwords that I need to put in: disk encryption, linux login, and firefox master key.

comment 4mo ago · link · parent

Cool article, but the one it acknowledges and riffs off of, at https://lr0.org/blog/p/arabic/ , is much more informative, and tells all about how we got decent Arabic script rendering on our browers and OSs, but still notably imperfect.

Which makes me think: come on, in the age of Claude, the gap between "we know what to do" and "here is the working code" is narrower than ever.

Who will be the one to pick up the job? Has to be an Arabic speaker I guess!

comment 5mo ago · link · parent

The point is not about what it means exactly to "own" something, you'll get plenty of noise discussion around that one.

But if I care about some piece of digital art enough to pay for it, I sure want a non-DRM copy to sit on my hd at the end of the transaction. If the store won't supply, the pirate sites will.

comment 5mo ago · link · parent

Redis is a great piece of tech but it suffers from trying to be good at two different jobs (persistent data structures, volatile cache) which should not be combined. And indeed in Redis itself they don't combine well - persistence is globally on or off.

Personally I'd use memcached or some equivalent for strictly cacheing, and then bring on Redis with persistence if you need its data structures for e.g scoreboards.

At $WORK we never imported either, our cache layer for slow operations keeps its data in both the filesystem and a db table (used as a k/v store). The database helps coordinate thundering herd problems - this operation is being calculated by another thread, so just wait for it. Reads from the same server just hit the filesystem, and reads from another server hit the db once and then keep it in the filesystem. We could change the fs layer to memcached but so far it's working great.

comment 5mo ago · link · parent

Search around, there's surely a way to break the drm. When theres no better way that's what I do too: pay for the book, convert to plain epub.

The publishing industry never got its head out of... some dark place. We've been able to buy mp3s without drm for ages, but somehow books are different.

comment 5mo ago · link · parent

Yep, if you haven't lost the will to put a bit of curation work upfront, RSS never stopped being the right answer. Substack has been a pretty good addition to the landscape, bringing lots of people into blogging (without calling it that). But for the skimming/reading interface, RSS beats the app.

comment 6mo ago · link · parent

I've been using Claude to work on a medium-sized (100+kLoc) codebase, and it's a great productivity multiplier. Putting hours into creating a good AGENTS file is more improved results a lot. I find that over time it picks up the codebase quite well. Tedious tasks that would take a day are now a matter of a few prompts.

Still... I'm not ready to give it more autonomy. Even as it gets high-level things quite well, I still look at the code, give feedback, and have 3-4 rounds of tweaks until I'm happy with it, and also happy that I stil feel I have a good handle on the codebase.

comment 6mo ago · link · parent

I basically skipped React. I went from jquery to Vue3, and use even that sparingly. When React got really popular, I read the docs and played with it, but I prefer the Vue model where the component runs once and sets up its reactive tree. Why would you want to recreate the component's inner functions every time it renders? And manually declare dependencies, when every other framework is doing them automatically?

My favourite front-end architecture is MPA actually mostly server-rendered, with Vue only on the pages that need high interactivity, and vanilla JS on the others.

comment 6mo ago · link · parent

If postgres is too heavyweight for you but you still want client-server, I'd consider MySql. It's an old classic, pretty fast and scalable, and has much better mainstream support and a bigger ecosystem than Firebird.

I'm not really sure what Firebird is for at this point in life really. It was pretty exciting when it was open sourced in the early 2000s, before postgres became the mature beast it is, before mysql acquired something as basic as transactions, and before sqlite became the default embedded db. But then it never really went anywhere.

comment 7mo ago · link · parent

Well-researched article on the relative safety of acetaminophen and ibuprofen.

22.

The Mystery in the Medicine Cabinet(asteriskmag.com ↗)

4 points · by downsplat · 7mo ago · 1 comment

comment 8mo ago · link · parent

It's called euthanasia. You can ask the medical system for an assisted suicide if your life situation is extra painful with no hope for recovery.

This case got heaps of media popularity because the christian right wing latched on it, and the father tried as hard as he could to impede the euthanasia. Ultimately got told that the lady unequivocally wants it and qualifies, and he can't override that.

comment 8mo ago · link · parent

https://www.boe.es/diario_boe/txt.php?id=BOE-A-2021-4628

comment 8mo ago · link · parent

What kind of context has you deploying into old systems that don't ship a recent perl? If that is a legacy requirement for whatever reason, then at least I'd use docker or podman to get a recent runtime. Or would you also write Python 2 or Php 7?

comment 8mo ago · link · parent

What are you using for parameter type checking? I switched to native function signatures, native try/catch and might look into the new class system soon, but I don't recall native type checking...

comment 8mo ago · link · parent

This looks like a huge project, even with AI help... I have a sweet spot for perl but I'm honestly not sure if the current community has the bandwidth and interest to sustain an alternative implementation. At the very least it should be ported to MacOS too. Breaking with XS is a bold decision. Best of luck though!!

comment 8mo ago · link · parent

Alcohol has been deeply embedded in human culture for thousands+ years, that's why prohibition is a bad idea. Loot boxes are a new invention, if they're deemed too harmful we can just do without them.

comment 8mo ago · link · parent

It's amazing how people will jump to something new just because it's there and it's being promoted.

When wireless headphones came out, I looked at my wired ones and asked the simple question: is a tangling cable worse than bluetoth pairing and having to keep yet another thing charged? My answer was no, so I kept using cheap wired ones.

A few years later, now that makes me look rich. Or something.

comment 8mo ago · link · parent

I guess it's really not for me though. First thing I do is turn autoplay off, and I'd refuse to use a service that doesn't give me that option. OTOH, I do sometimes find it fun to hunt for good stuff among the recommendations.
1234