Linux Kernel Explorer
220 points
6 hours ago
| 15 comments
| reverser.dev
| HN
knuckleheads
2 hours ago
[-]
Very neat. It reminds me a bit of how pages in the Talmud are laid out. From a gentile perspective, it was very interesting to me to see how hundreds (thousands?) of years of commentary are contained within the same page.

https://www.reddit.com/r/interestingasfuck/comments/1acgks3/...

https://triberuth.wordpress.com/2016/09/23/my-talmud-layout-...

Code isn't linear the same way, and pages don't make as much sense, but that idea of layers of commentary rings out in this Linux Kernel Explorer as well. I very much like the notes on the side!

reply
guy4261
2 hours ago
[-]
Talmud - the original hypertext (tm)

(*maybe, not 100% sure)

reply
ofrzeta
1 hour ago
[-]
see also Pi, the movie, although it's more about numbers and the Kabbalah :) https://en.wikipedia.org/wiki/Pi_(film)
reply
ezrabrand
1 minute ago
[-]
Long-time HN lurker here! Was excited to see this discussion around my major interests of Talmud, Kabbalah, and tech.

There are a lot of misconceptions and mystique surrounding the Talmud. I'd like to take the opportunity to clarify some fundamental aspects, as relates to the discussion here:

The famous "Talmud page" (discussed in the links in the parent comment) was set by a Christian printer in the 16th century.

It emulated a common layout in medieval Christian manuscripts for Christian primary texts and commentaries [0]

The analogy of the Talmud to a hypertext isn't especially apt, IMO. The Talmud indeed extensively cites Bible and Mishnah, and uses lots of technical terms.

In this regard, a better analogy is to legal literature (which is what the Talmud in fact is). While being couched as a (fictional) "conversation"/dialogue between rabbis who lived over the course of ~300 years (200 CE to 500 CE).

In fact, Kabbalah (as another commenter mentioned) is a better example of a “hypertext,” since it’s full of recurring symbols that point to different Sefirot and other core concepts.

(My bona fides: I studied academic Talmud and Kabbalah for an MA, and I've been vibe-coding related digital humanities projects in the last two years.)

References:

[0] https://seforimblog.com/2023/06/from-print-to-pixel-digital-...

[1] https://www.ezrabrand.com/p/beyond-the-mystique-correcting-c...

reply
Gormanu
10 minutes ago
[-]
You know, I think this Explorer is exactly the tool many of us lacked. Reading the Linux kernel source always felt daunting — thousands of files, confusing paths, complex structure. This feels like a “map” that helps you orient yourself, see how parts interconnect, how VFS works, how modules tie together. Yeah, sometimes a feature breaks (API limits, errors opening directories), but even so — this is a great way to peek “under the hood,” understand the architecture, and take the first step. Big thanks to the folks behind it.
reply
rbanffy
1 hour ago
[-]
I love tools like this. I remember using a similar one (made by Red Hat IIRC) that I used to look inside the sources for the Brazilian voting machine (I was asked to map duplicate files and functionality and simplify the codebase) in 2002. It was a desktop app with a very Motif interface.
reply
cepera
4 minutes ago
[-]
Can I somehow deploy it locally?
reply
stacktrace
4 hours ago
[-]
> API rate limit exceeded for 106.51.68.199. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

The GitHub APIs that you are using to list files are getting rate-limited in my case. If somebody else is also facing this issue, just use a VPN or something like Cloudflare Wrap to change your ip - this should fix the issue.

P.S If you are the main dev, giving an option to the visitor to sign in using Github or use a caching layer will be really helpful to make this accessible for the new user.

reply
reverserdev
3 hours ago
[-]
Hey! Thank you for catching this issue and reminding me of the super naive implementation I went with. I will improve this! :)
reply
rbanffy
1 hour ago
[-]
It’s often better to overlay caching and other tricks on top of naive implementations than making the implementation more complicated.
reply
oskarkk
2 hours ago
[-]
I love this idea. I like exploring code of interesting projects even if I don't intend to ever work on them, but in complex software I don't know much about it's hard to even find where are the most important basic parts. This allows me to easily find and see how some things in the kernel look like.

Found a bug: in the Chapter 2, when I click on "open" next to "mm/" or other dirs, I get an error: " Failed to load file - Invalid file response from GitHub API - File: mm/". I guess it's cause it tries to open the dir as a file, instead of something like pointing at the dir in the dir tree?

reply
xxdd2ea
2 hours ago
[-]
Yes it's good idea and nicely executed.

For the same reason I created a couple of projects with the same goal of lowering the barrier to entry to the linux kernel:

- an app to follow the UDP packet flow in the linux kernel source code: https://dmkskd.github.io/linux-kernel-network-stack-visualiz...

- a (hopefully) simple way to play with the linux kernel source code on a mac: https://github.com/dmkskd/linux-kernel-debugging-on-mac

Kudos to https://github.com/FlorentRevest for all his work in the space

reply
joshlk
2 hours ago
[-]
Asking a silly question… what piece of kernel code do you find the most awe-inspiring or impressive?
reply
throwaway29303
2 hours ago
[-]
Maybe fs/select.c or the polling machinery.
reply
suprjami
1 hour ago
[-]
Agree. The VFS is a delight to read. It's a good intro to the kernel pattern of using function pointers to provide a generic API which other functionality can plug into, simply by implementing the appropriate functions. In this case you'll see all the filesystem drivers implement the VFS operations.
reply
nolist_policy
3 hours ago
[-]
Also: https://elixir.bootlin.com/linux/v6.17.9/source

Elixir works better on mobile despite being around for years.

reply
reverserdev
3 hours ago
[-]
Thanks for the observation about mobile responsiveness, I will improve it!
reply
jtwaleson
3 hours ago
[-]
This is super cool. Love the little icons in the left and would be nice if they were clickable.
reply
qweqwe14
3 hours ago
[-]
How is this different from https://elixir.bootlin.com/linux
reply
stacktrace
3 hours ago
[-]
Elixir is a great tool for exploring and cross-referencing the Linux codebase but for a new person, Linux can come across as very intimidating and complicated. The above explorer makes it very interesting to explore the codebase. This is kind of like an interactive book on Linux internals, with every topic being referenced through code.
reply
oskarkk
3 hours ago
[-]
Look at the content in the right sidebar, this is like an interactive guide to the kernel.
reply
reverserdev
3 hours ago
[-]
The Elixir cross referencer does not have any special features to help you learn
reply
w4yai
2 hours ago
[-]
Even if it was the same, how problematic would it be ?
reply
proc0
3 hours ago
[-]
I don't see all those versions, and for some reasons my fans turned on with the elixir link lol
reply
reverserdev
3 hours ago
[-]
Thanks for sharing OP! It seems quite some people liked it, so I'll be listening to feedback and see what to do next. :)
reply
bobowzki
2 hours ago
[-]
This is very nice. It would be interesting to see the same for other code bases like emacs and vim.
reply
__bjoernd
3 hours ago
[-]
I appreciate the learning guidance.
reply
thdhhghgbhy
1 hour ago
[-]
I love this.
reply
fscaramuzza
3 hours ago
[-]
Am I the only one that can't access the website due to certificate problems with the .dev?
reply
reverserdev
3 hours ago
[-]
I cannot reproduce. Would you mind sharing a bit more? The certificate is handled by Cloudflare Pages.
reply
fscaramuzza
3 hours ago
[-]
My bad, the network I was connected to didn't like the certificate for some reason. Cool project!
reply