HNHacker News
TopNewBestAskShowJobs

slau

2,033 karma · joined December 29, 2014

Freelance cloud consultant. I have a background in telecoms, security, and databases. https://unticks.com
submissionscomments
slau··on Error handling in Rust
Yes! Thank you!
slau··on Error handling in Rust
This shouldn’t happen unless you’re actively refactoring the function and introducing new error paths. Therefore, it is to be expected that the cake hierarchy would be affected.

You would most likely have had to navigate up and down the caller chain regardless of how you scope errors.

At least this way the compiler tells you when you forgot to handle a new error case, and where.

slau··on Ask HN: What Are You Working On? (June 2025)
A Parquet file compactor. I have a client whose data lakes are partitioned by date, and obviously they end up with thousands of files all containing single/dozens/thousands of rows.

I’d estimate 30-40% of their S3 bill could be eliminated just by properly compacting and sorting the data. I took it as an opportunity to learn DuckDB, and decided to build a tool that does this. I’ll release it tomorrow or Tuesday as FOSS.

slau··on Europe approves first saliva-based contraceptive – no pill required
Which, according to the article, is the exact same rate as oral birth control and much better than condoms.
slau··on Error handling in Rust
I disagree that the status quo is “one error per module or per library”. I create one error type per function/action. I discovered this here on HN after an article I cannot find right now was posted.

This means that each function only cares about its own error, and how to generate it. And doesn’t require macros. Just thiserror.

slau··on Europe approves first saliva-based contraceptive – no pill required
I never said they had no uses! I’m glad they are effective in managing your family’s pains (I’ve experienced that as well, so I fully understand where you are coming from).

But that wasn’t really the discussion I was trying to start. I realise I made my point quite poorly.

I was lamenting the fact that because “female contraceptives” are a “solved problem”, there is basically no research or innovation in male contraceptives. See sibling thread.

slau··on Europe approves first saliva-based contraceptive – no pill required
Yeah, that was my point, but obviously not very clear. It feels to me like male contraceptive offerings are basically non-existent, and that there is basically no research/innovation in that field because it’s sort of expected that women will shoulder that burden.
slau··on Europe approves first saliva-based contraceptive – no pill required
This is actually a crazy important development if the results can be reproduced in larger studies.

Hormonal contraceptives are absolutely terrible. None of my long term partners were happy with them—whether it was a hormonal implant, hormonal IUD or pill, the side effects have always been ridiculous.

In addition, WHO classified oral contraceptives as G1 carcinogens. So having a potential alternative is incredibly important.

It is insane to me that as a society, we’re fine asking women to “just take drugs” that mess with their reproductive system, affecting their mood, sleep, weight, libido, and blood pressure (and most likely a lot more I’m not aware of).

slau··on Switching Pip to Uv in a Dockerized Flask / Django App
uv and its flexibility is an a absolute marvel. Where pip took 10 minutes, uv can handle it in 20-30s.
slau··on Switching Pip to Uv in a Dockerized Flask / Django App
Whether it’s the latest or not is irrelevant. What’s important is the actual package hash. This is the only way to have fully reproducible builds that are immune to poison-the-well attacks.
slau··on Switching Pip to Uv in a Dockerized Flask / Django App
In my experience, this is fundamentally untrue. pip-tools has extensive support for recording the explicit version numbers, package hashes and whatnot directly in the requirements.txt based on requirements.in and constraints files.

There are many projects that use pip-compile to lock things down. You couldn’t use python in a regulated environment if you didn’t. I’ve written many Makefiles that explicitly forbid CI from ever creating or updating the actual requirements.txt. It has to be reviewed by a human, or more.

slau··on [dead]
The issue isn’t that they are emailing, or even that he is receiving the emails. The issue is that they are not deleting his data even after they pinky promised they did.
slau··on NASA raises the odds that an asteroid could hit the moon in 2032
Thank you for correcting my mistake. I went through the article multiple times and never noticed that part. Apologies.
slau··on NASA raises the odds that an asteroid could hit the moon in 2032
Fake title. From the article:

> On Feb. 24, NASA announced an official "all clear" on social media, reporting the impact probability had dropped to just 0.004% and that the asteroid is "expected to safely pass by Earth in 2032."

slau··on Ask HN: Freelancer? Seeking freelancer? (June 2025)
SEEKING WORK | Europe | Remote | Tech Lead

Location: Copenhagen, Denmark

Remote: Yes

Willing to relocate: Very unlikely

Technologies: Rust, Python, Golang, Make, Bash, Linux, AWS, K8S, 3D printing, CAD, PCB design, electronics.

Résumé/CV: https://drive.google.com/file/d/1cJK__zzaZYSoZv0AZ0j0vjVAwhv...

Email: sl@unticks.com

I'm a jack of all trades. I've built highly scalable telephony systems, industrialised startups, discovered major bugs in Twilio's call routing algos through a handy home-made hardware latency tester, built big data teams and pipelines for pharma companies. I even built an industrial camera for the wine industry in the middle of the pandemic. These days I mostly focus on backend software development and architecture, data-archeology and -science, and trying to build cool stuff.

If you need someone who has the ability to absorb a massive context quickly, and is able to maintain the goals of all the stakeholders in his head while coming up with a solution, I'm your person.

Not interested in: DRM/IP enforcement/blockchain

slau··on Another way electric cars clean the air: study says brake dust reduced by 83%
Do you know where the increased tyre wear comes from? I run a PHEV, and if anything, my tyre wear has improved.

This being said, I’ve noticed that many a “big EV” driver will take off from red lights like they’re driving a dragster.

slau··on Chuuchuu - Train travel, made smart
I discovered this a few days ago and shared it with some friends. It worked quite well for the few routes I tried.

It provides percentage of chance of delay and average delay for specific routes. Each time slot has different stats. So for example the 13:00 train from Copenhagen to Hamburg is much less reliable than the 17:00 one (random example, not sure if accurate).

Very cool overall.

slau··on My TV Remote Stopped Working So I Made My Own
In fairness, this is only the “tutorial” page. Stock published an intro video to the entire project a few days ago where he goes into depth about the Harmony remote, why he loved it so much and what he’s trying to replace. https://youtu.be/Pe_ozZkrRAw

I find it odd he doesn’t link to it from his tutorial page, though.

slau··on Ask HN: Are there any apps to track grocery prices in local stores?
You're right, barcodes are just unique IDs individually identifying producers and products.

However, as I wrote, the vendors of these systems provide customisation services to improve the OCR of the price relative to the barcode. Location, font, etc. Even the name can be imported, and in some cases shelf space per product, thus stock estimates, etc.

slau··on The Danish language, even the Danes don't understand it [video]
And yet, no Dane will be able to help himself asking foreign speaker to try and pronounce rødgrød med fløde and erupt in laughter upon the attempt.
slau··on The Danish language, even the Danes don't understand it [video]
For context, this is made by the Norwegian broadcaster. They’re not speaking anything close to Danish—it’s just a skit on Danish pronunciation.

While written Danish is relatively close to both Swedish and Norwegian, the pronunciation is significantly removed. This is most likely due to the printing press arriving too early and locking down the orthography rules while the spoken language was still evolving massively (similar to the GVS in English).

It takes a significant effort for foreigners to understand the relationship between written and spoken Danish.

slau··on Sycophancy in GPT-4o
I don’t think there’s a need to use Word. On iOS, I can trivially access those characters—just hold down the dash key in the symbols part of the keyboard. You can also get the en-dash that way (–) but as discussed it’s less useful in English.

I don’t know if it works on the Finnish keyboard, but when I switch to another Scandinavian language it’s still working fine.

On macOS, option-dash will give you an en-dash, and option-shift-dash will give you an em-dash.

It’s fantastic that just because some people don’t know how to use their keyboards, all of a sudden anyone else who does is considered a fraud.

slau··on Ask HN: Are there any apps to track grocery prices in local stores?
There are barcode scanning libraries that specialise in scanning dozens or hundreds of barcodes in a single frame.

These are typically used to mass-import your competitors prices just by walking through the shop with a camera mounted on your shoulder. Or phone in a shirt pocket with the camera facing forward.

There’s a few white-label companies that offer these apps. Many of the barcode companies offer their own version of this app. They’re not usually available on the AppStores.

The reason for this is that each competitor requires slight customisation (font, price location relative to each barcode, etc) to get the best results.

slau··on I want to work for an entrepreneur who has awakened spiritually
I recognise myself in many of the things you say. Being good at understanding the entire system very quickly, and keeping the constraints of all the parts in mind simultaneously. Picking up technologies quickly and throwing together MVPs in a few days.

I’m not sure I understand other parts. The spiritual aspect, the lack of output for a week, etc.

The problem is that there’s a million people like you looking for work now. All of them as skilled and knowledge-hungry as the next. You’re adding extra barriers to be hired, instead of removing them. That you have personal objectives about who/what/why you work somewhere is fine. Most people have those.

Anyone your message doesn’t resonate with is going to leave you on seen. That’s a problem.

slau··on Serverless Is a Scam
I’m not sure I understand this argument. Anything that runs in a lambda can also be run outside of a lambda. You just need to give yourself a way to invoke it or access it.

One setup I’ve used with a previous client was deploying many FastAPI lambdas, wrapped in Mangum. You can even in the same code base expose both. This way, you can deploy to a container and a lambda without changing any code.

In one case, we used APIGWv2 to give the lambda an HTTP endpoint, in the other, it’s the container that provides it. You can throw in IPv6 support by having a CF distro in front of both.

slau··on Toothpaste widely contaminated with lead and other metals, US research finds
I’ll have a craving for chocolate or something maybe once or twice per year, make a batch of cookies and that solves it. I’ve noticed it correlates with winter setting in and there being less sunlight available.

I’m not trying to come off as a paragon of perfect food habits; I’m overweight like many others. It’s just that my diet never included desserts and very rarely sweet stuff.

I also don’t consume fruits—I realise how much sugar they contain. I was just wondering it was specifically the *-ose your body was craving. Your answer seems to indicate it’s the dessert association more than the sugar per se.

slau··on Toothpaste widely contaminated with lead and other metals, US research finds
What do you mean by “it’s what keeps me off sugar”? Do you otherwise have cravings for candy if you don’t satisfy the need with that chocolate?

Does fruit satisfy the same craving?

I’m asking because I genuinely don’t really get cravings for sweet stuff. There are plenty of candy stores where I live, and there’s a social norm to get “Friday sweets”, especially for parents with children, but I never understood the appeal.

slau··on Kotlin, Swift, and Ruby losing popularity
Because you'll still need UX experts for each platform. And people who know how to get through the App Store review. And expertise to handle each platform's quirks, push notification implementation limitations, etc.

Things like ReactNative or <insert cross-platform app dev toolkit here> miss exactly the same point that CEOs firing engineers over LLMs or vibe coders do: the code was _never_ the problem. It's all the domain expertise that allowed you to produce said code.

Do you know how often I use an app that was clearly built for Android, but also happens to run on iOS? Most likely once, and then never again. Because all the conventions are wrong, and it requires more effort than what I'm willing to give it.

Granted, I haven't played around with Flutter so maybe I'm unaware of how good these cross-platform solutions have become, but still.

slau··on 'A hostile state': Why some travellers are avoiding the US
Not anymore, really. Not unless you have significant platforms or they’re flagged for another reason (metal detector, etc).
slau··on Why Norway is edging towards a fresh EU membership bid
There’s also a remarkable cognitive dissonance thinking that the EU would “accept” being dumped (very publicly and dramatically, with many instances of name calling), followed by having their old partner crawling back asking for an open relationship, because “but Norway+”.

Norway wasn’t a founding member. Norway never fully joined and then partially pulled out.

I really hope the UK rejoins eventually, but I will never support them having the prime position they used to enjoy.

← PreviousPage 4 of 18Next →