Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gsliepen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
gsliepen
6mo ago
That's an easy answer, but multi-process mutexes are supported on Linux (and perhaps other OSes as well), and it would be nice if this could also be safely handled by something like Surelock. If it would, then it couldn't rely on
32.
▲
by
gsliepen
6mo ago
What about mutexes living in shared memory, and each process having a different address mapping?
33.
▲
by
gsliepen
8mo ago
Something similar: https://www.youtube.com/watch?v=7t7_naYJnHo Source code can be found here: https://github.com/spookysys/attiny-synth
34.
▲
by
gsliepen
10mo ago
A rather big problem is that Wayland is just a protocol, not an implementation. There are many competing implementations, like Gnome, KDE and wlroots. The problems you have with one of them might not appear in another. The reference composi
35.
▲
by
gsliepen
10mo ago
I did move from physics to becoming a SWE. I could put the knowledge I gained doing 3D rendering and GPU compute used for visualization and simulations in my academic jobs on my CV, and get a job as a SWE that way. Later I moved to another
36.
▲
by
gsliepen
10mo ago
I used GIMP before I ever used Photoshop. My experience was the opposite. I think that means the UIs are different, but there is no one that is objectively better, it's just a matter of what your expectations are, which are set by what
37.
▲
by
gsliepen
11mo ago
You are assuming division itself is an O(1) operation. However, it also scales with the size of the number. So more correct would be to say that this naive method is O(sqrt(N) log(N) log(log(N))).
38.
▲
by
gsliepen
11mo ago
If you start with the problem of how to create a reliable stream of data on top of an unreliable datagram layer, then the solution that comes out will look virtually identical to TCP. It just is the right solution for the job. The three dra
39.
▲
by
gsliepen
11mo ago
They shouldn't; the whole point is that the IP header is enough to route packets between endpoints, and only the endpoints should care about any higher layer protocols. But unfortunately some routers do, and if you have NAT then the NA
40.
▲
by
gsliepen
1y ago
Could be an interesting chip for a future Raspberry Pi model? With Radeon having nice open source drivers, it would be easy to run a vanilla Linux OS on it. The TDP looks compatible as well.
41.
▲
by
gsliepen
1y ago
Predicting the future is very hard (think butterfly effects, Lyapunov exponents and so on). It's also easy to extrapolate what would happen if the current situation continues unchanged , but very hard to predict what will happen in th
42.
▲
by
gsliepen
1y ago
Nice. Note though that you don't necessarily have to limit everyone else to email; some messaging platforms allow one user to post something using a webpage for example, and cause that to send email to another user, and vice versa. One
43.
▲
by
gsliepen
1y ago
The problem of a Linux phone is not the hardware, it's the software. Are you doing to run a desktop OS on it? No. And if you want something like Android but not Android itself, how are you getting enough quality apps made? What about t
44.
▲
by
gsliepen
1y ago
I am not surprised, as most things that generate light are generating photons using quantum effects, and thus are true random. Furthermore, CCD and CMOS detectors themselves have a quantum efficiency less than 100%, meaning they only detect
45.
▲
by
gsliepen
1y ago
The Intel architecture is already Turing complete when you just use MOV instructions: https://github.com/xoreaxeaxeax/movfuscator . Of course, you don't even need instructions at all: https://news.ycombi
46.
▲
by
gsliepen
1y ago
I wrote a software synth myself with the intention of running it on Raspbery Pi 3 / Zero 2. Those are actually quite capable processers; sound synthesis requires very little RAM, both code and for maintaining state, so everything fits
47.
▲
by
gsliepen
1y ago
> My hunch is that many advocates would hesitate to put this in their project Readme, because they know that some companies might actually comply... by not using the code. Definitely. And not only companies; even Debian rejected some pac
48.
▲
by
gsliepen
1y ago
Well, they probably didn't have a choice in which GPU to use. You choose a SoC and then you are stuck with everything it comes with. What is most amazing is that they put in the effort to make a completely open source, upstreamed drive
49.
▲
by
gsliepen
1y ago
Something like MessagePack or CBOR, and if you want versioning, just have a version field at the start. You don't require a schema to pack/unpack, which I personally think is a good thing.
50.
▲
by
gsliepen
1y ago
IMO, the GPU is actually a strength. It might not be the most powerful, but it is supported by the mainline kernel and libraries. Many other phone SoCs throw some binary drivers over the wall if you are lucky, and good luck if you ever want
51.
▲
by
gsliepen
1y ago
Tinc unfortunately has a complete lack of maintainers with enough time to dedicate to it. Tinc 1.1 should make setting up easier; it has a CLI to set up and add nodes without having to manually edit config files. And you can generate invita
52.
▲
by
gsliepen
1y ago
And even in projects that are maintained by more than one person, it's usually just a single person responsible for most of the commits.
53.
▲
by
gsliepen
1y ago
> But half of people earn less than the mean salary though. That's incorrect. Half of people earn less than the median salary. Depending on where you live, it could be that a lot more than half earn less than the mean salary.
54.
▲
by
gsliepen
1y ago
But... Debian is also a rolling release distro. Just use the "testing" or "unstable" suite. I am using Debian unstable on my main desktop since 1999, and had very little issues with it. The testing suite is the one whi
55.
▲
by
gsliepen
1y ago
At first glance it looks like this is very useful, but it only gives a speedup for very sparse graphs with an average degree of less than 3, unless your graph is very big, as in trillions of vertices.
56.
▲
by
gsliepen
1y ago
I was thinking more about higher-order things, like a compiler being able to see that your for-loop is just counting the number of bits set in an integer, and replacing it with a popcount instruction, or being able to replace recursion with
57.
▲
by
gsliepen
1y ago
Why would that be impossible? Most programming languages are still Turing complete, so you can build whatever you want in them.
58.
▲
by
gsliepen
1y ago
Early programming languages had to work with the limited hardware capabilities of the time in order to be efficient. Nowadays, we have so much processing power available that the compiler can optimize the code for you, so the language doesn
59.
▲
by
gsliepen
1y ago
It's amazing how many people try to write generic containers for C, when there is already a perfect solution for that, called C++. It's impossible to write generic type-safe code in C, and this version resorts to using GCC extensi
60.
▲
by
gsliepen
1y ago
But this makes me wonder how it works when there are concurrent requests. What if a second thread requests data that is being written to memory by the first thread? Shouldn't it also wait for both the write intent record and completion
More ›