News for hackers. Stuff that matters.

dachrillz

Re:Parsing Chemistry on Wednesday November 05, 2025 @09:19AM (#45823121)
What about inchi? Isn’t that a common way of describing molecules as well?
Re:Kairos: Immutable Distro for K8s at the Edge on Friday October 03, 2025 @12:25PM (#45464719)
Not OP, but when we tested it out it was painful to handle usb disks. The reason being that if you have two they get named sda/sdb randomly. We managed to overwrite the usb we were using to install talos since that one was named sda one boot and sdb the next. This lead ut to develop the “pullout technique” when installing…

This mostly only happened because it was a test cluster where we used usb disks, probably not a problem when one properly provisions.

Otherwise it was great! But it does feel akward not booting into an environment where you have a terminal at first

One that is kind of in this spirit is that you can describe sparse matrices by omitting all the zeros and only describe the indices that have data. In this compression you can still perform normal matrix operations without having to unpack them into the “normal form”. Now this is neither encryption nor a particularly interesting compression, but it does prove that it is possible in principle ;p
A very basic way of how it works: encryption is basically just a function e(m, k)=c. “m” is your plaintext and “c” is the encrypted data. We call it an encryption function if the output looks random to anyone that does not have the key

If we could find some kind of function “e” that preserves the underlying structure even when the data is encrypted you have the outline of a homomorphic system. E.g. if the following happens:

e(2,k)*e(m,k) = e(2m,k)

Here we multiplied our message with 2 even in its encrypted form. The important thing is that every computation must produce something that looks random, but once decrypted it should have preserved the actual computation that happened.

It’s been a while since I did crypto, so google might be your friend here; but there are situations when e.g RSA preserves multiplication, making it partially homomorphic.

Re:Ask HN: How do you deal with your brain not being “on?” on Tuesday February 14, 2023 @04:07AM (#34787114)
I recently had a period of intense stress, stomach aches and all of that. I'm normally pretty stress tolerant so feeling these feelings was very uncomfortable for me. Being this stressed obviously impacts your mental clarity.

This led me to discover Andrew Huberman, a renowned neruo-scientist at Stanford that talks publicly alot about well being.

Learning some things from him I came to realize that "feeling bad in any way" is pretty much just your body being out of whack. I implemented some of his tips into my daily routines and the feeling of stress went away, despite my external circumstances being roughly the same.

Not saying there is anything magical about him, but you could look into him to see if he's got anything that could help bring back your mental clarity.

Ask HN: How do you make sure a back end matches API-spec?

Hello everyone,I've sort of come to the conclusion that I prefer writing API-specification (Open API in this case) before starting to write the application itself.The reason mainly being that if one writes the specification first, one has to think through the api, its error codes an so forth. There is nothing wrong with going the other way, namely generating the specification from the code....

( Read More... | 2 comments | 4 points | on HN )
Andreas Kling, the original author of the serenity os, has a series on youtube where he builds a javascript engine for his web browser.

That could be a good start for you if you want to see a competent programmer build an engine from scratch

Good luck!

Something like ls still relies on sys-calls. If they change in the future someone would have to still update it right?

So even if you have a working C-compiler in the far future, so that you can compile ls on new operating systems or whatever, even this simple application requires maintenance?

Ask HN: Is there any software that can be considered finished?

Hello all,We recently had a discussion at work about how software decays. That is, if one does not actively work on a piece of software it will eventually fall into ruin. This can happen e.g. because expertise is slowly rotated out of the business, dependencies break or the software can't be run on newer operating systems.This begged the question: Is there any software that is essentially done?...

( Read More... | 22 comments | 6 points | on HN )