News for hackers. Stuff that matters.

gnyeki

Re:Hang on to Your Firefox on Tuesday September 01, 2026 @06:59PM (#49529443)
One advantage of Firefox's PDF reader is that it is sandboxed which a dedicated PDF reader typically isn't AFAIK.
Re:Twenty Years of Pandoc on Monday August 03, 2026 @09:13PM (#49163325)
Djot is great, I wrote a web server that uses it natively.[0]

[0] https://github.com/gn0/nvim-web-server

Yes, neither Nginx nor Neovim should be hitting the disk when serving the requests.

One difference I can imagine is context switching due to system calls. If Nginx incurs a context switch when it calls into the kernel for the disk cache, then it suffers a performance penalty. Neovim avoids this because the file contents are loaded into a table. When requests are served, getting the content is done fully in userspace.

I have no idea if this actually accounts for the performance difference though.

Re:My Python code is a neural network on Monday July 01, 2024 @12:21PM (#40847301)
I'm glad you found it valuable! Both are good questions and I haven't gone far enough mapping the code to Elman's architecture to know the answer to the second.

For your first question, using three hidden layers makes it a little clearer what the network does. Each layer performs one step of the calculation. The first layer collects what is known from the current token and what we knew after the calculation for the previous token. The second layer decides whether the current token looks like program code, by checking if it satisfies the decision rule. The third layer compares the decision with what we decided for previous tokens.

I think that this could be compressed into a single hidden layer, too. A ReLU should be good enough at capturing non-linearities so this should work.

Re:My Python code is a neural network on Monday July 01, 2024 @12:03PM (#40847107)
This area is covered by non-parametric statistics more generally. There are many other methods to non-parametrically estimate functions (that satisfy some regularity conditions). Tree-based methods are one family of such methods, and the consensus still seems to be that they perform better than neural networks on tabular data. For example:

https://arxiv.org/abs/2106.03253