Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gsliepen
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
gsliepen
4d ago
I think the solution is to really give the user control over when something is pasted and into which application. So if you press ctrl-V, it shouldn't pass that on to an application that then gets to poll the clipboard, instead the O
2.
▲
by
gsliepen
9d ago
> Intent matters a great deal, The road to hell is paved with good intentions.
3.
▲
by
gsliepen
15d ago
For FPGAs in general: When latency is important. Even a $1 MCU has a huge amount of compute power nowadays, and they can simulate many things, but if you need to deterministically react within 1 microsecond to what happens on a pin, and you
4.
▲
by
gsliepen
15d ago
The Swedes managed it.
5.
▲
by
gsliepen
1mo ago
> Everything being static inline makes it hostile to these older systems which have limited RAM. Compilers can un-inline as well. In fact, since every function is defined in the header file, the static inline annotation means very little
6.
▲
by
gsliepen
2mo ago
> execute instructions faster (via -O3) One problem with -O3 is that it disregards any effects of the cache (and yes, ESP32s have a bit of cache memory). I recommend using -Os as the default optimization level, as it often has the same o
7.
▲
by
gsliepen
2mo ago
We'll see how much people like it once the cheap subscriptions end and the actual cost of LLMs (+ profit margin) is asked of them. Although I'm suspecting that eventually, machines that are good enough to run reasonably useful mod
8.
▲
by
gsliepen
2mo ago
> Notable are the endorsements, which are balanced over all three options, perhaps indicating only 1/3 are supportive of a more permissive position. That's not the case. First, you can't really extrapolate from endorsers t
9.
▲
by
gsliepen
2mo ago
If you do a rebase -i because you want to squash or fix some commits, then there's git commit --squash and git commit --fixup commands which will mark commits as intending to squash or fixup another commit, and then you can use git reb
10.
▲
by
gsliepen
2mo ago
I actually tried doing it as a Vulkan compute shader, continuously simulating 128 strings (all possible MIDI notes). It didn't work very well. While the latency was tolerable, it was slower than doing the same on the CPU (although this
11.
▲
by
gsliepen
2mo ago
The simplest form of string synthesis is perhaps the Karplus-Strong algorithm ( https://en.wikipedia.org/wiki/Karplus%E2%80%93Strong_string_... ). Instead of simulating the motion of all parts of the string for each time
12.
▲
by
gsliepen
2mo ago
> However, I have to wonder about the cost of these projects. A very good way to deal with this is to recognize that all infrastructure needs maintenance and periodic replacement. Once it is time to replace a road, that is when you chang
13.
▲
by
gsliepen
3mo ago
Nice, although if you already are running your own DHCP and web server, it's very easy to add a TFTP server and configure everything to serve whatever you want. So it does feel a bit like reinventing the wheel to me. A PXE boot server
14.
▲
by
gsliepen
3mo ago
It's definitely possible, but I agree with many other commenters it probably will not happen. I wrote an encrypted mesh networking library that runs on normal operating systems. A customer asked me if I could make it run on an ESP32 wi
15.
▲
by
gsliepen
3mo ago
Ok, but that would just be your own website having a single point of failure, not that Let's Encrypt is a single point of failure. Otherwise you could call every certificate authority a single point of failure.
16.
▲
by
gsliepen
3mo ago
No, it's not. You can always switch to a different SSL provider. There are other free ones (as mentioned in other comments). However, thinking about how to make your own setup more robust without having to manually change configuration
17.
▲
by
gsliepen
3mo ago
Very nice. I wonder if implementing a one-instruction set computer (for example something that implements Adrian Cable's subleq VM, see https://www.ioccc.org/2025/cable/ ) would be educational and whether it c
18.
▲
by
gsliepen
3mo ago
Nice! What surprised my about the IOCCC submission though was how fast it ran. Sure, subleq can at least do some useful arithmetic in one instructions, but it still requires a lot of instructions to do an integer multiplication, let alone a
19.
▲
by
gsliepen
4mo ago
Seems like this does the reverse of the C64 demo "A Mind Is Born" ( https://linusakesson.net/scene/a-mind-is-born/ ): that one is making music first, and simultaneously interprets it as graphics. Of course
20.
▲
by
gsliepen
4mo ago
There was a wild range in capabilities in the various BASIC implementations of that time. I grew up with an Amstrad CPC6128, it came with Locomotive BASIC ( https://en.wikipedia.org/wiki/Locomotive_BASIC ), which was ver
21.
▲
by
gsliepen
4mo ago
I'm happy that my bank (still) allows me to have both a stand-alone reader and a mobile app to authenticate. Because if you lose your authentication device, a lot of things suddenly get a lot harder. I also tried to use an old phone as
22.
▲
by
gsliepen
4mo ago
And even if you avoid external libraries, you still need to interact with the kernel to do I/O, and that involves system calls that are also non-portable.
23.
▲
by
gsliepen
5mo ago
I would use RFC2822 as the underlying format to store any kind of message (pull request, review comment, issue etc.), and of course when displaying messages use CommonMark to style them. Any metadata goes into headers, and Message-ID/I
24.
▲
by
gsliepen
5mo ago
Rust's FromStr only deals with parsing a single object. However, ideally std::scan() would be an exact counterpart of std::print() and would be able to parse multiple objects. I totally agree that the C way of passing references to alr
25.
▲
by
gsliepen
5mo ago
The C example could have implemented a lot of validation just by checking the return value of sscanf(): if (sscanf(user_input, "%4u-%2u-%2u", &year, &month, &day) != 3) { // return an error
26.
▲
by
gsliepen
5mo ago
Yes, but this project doesn't do anything analog to begin with. It could just have several S/PDIF and I2S inputs, and convert that to USB. You probably don't want any processing then, and just pass the digital inputs straight
27.
▲
by
gsliepen
5mo ago
I wonder if you could have it play the music as well by the right timing of flipping, just like how the Floppotron works.
28.
▲
by
gsliepen
5mo ago
The SourceHut UI looks weird compared to commercial offerings, but every time I use it I am pleasantly surprised how fast it is and how little clutter there is.
29.
▲
by
gsliepen
5mo ago
I worked on an open source application, and some people wanted to use parts of it as a library in their commercial applications. So I started a consultancy due to that demand. I still had a regular job at the same time though, so there was
30.
▲
by
gsliepen
5mo 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
More ›