HNHacker News
TopNewBestAskShowJobs

gnyeki

349 karma · joined July 1, 2024

Data and code enthusiast.

https://blog.gabornyeki.com/

submissionscomments
gnyeki··on Hang on to Your Firefox
One advantage of Firefox's PDF reader is that it is sandboxed which a dedicated PDF reader typically isn't AFAIK.
gnyeki··on Twenty Years of Pandoc
Djot is great, I wrote a web server that uses it natively.[0]

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

gnyeki··on Website is served from nine Neovim buffers on my old ThinkPad
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.

gnyeki··on My Python code is a neural network
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.

gnyeki··on My Python code is a neural network
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