5 ms·
A Linux-compatible kernel under a BSD license is intriguing :) Jokes aside, this looks great as an educational project, because you can run real Linux software
by nine_k 4y ago
A Linux-compatible kernel under a BSD license is intriguing :)
Jokes aside, this looks great as an educational project, because you can run real Linux software on this kernel, from Vim to Doom.
Things will become really interesting once this gets ported to ARM. There is a serious amount of MCUs with 4 MB of RAM where Tilck should run fine, but even Yocto or OpenWRT won't fit.
- yjftsjthsd-h 4y ago> A Linux-compatible kernel under a BSD license I mean, in all seriousness, NetBSD and FreeBSD both have binary compatibility layers to run Linux programs
- nix23 4y agoI really was hoping that this Tilck is a microkernel, otherwise i don't see any point compared to Free or NetBSD. But maybe it's just there because it's fun...and that's absolutely ok.
- retrac 4y agoThe comparison was due to the licence. Both Net and FreeBSD have monolithic kernels in the style of Linux. (Or more properly, Linux is in the style of the BSD kernel.)
- nix23 4y ago>The comparison was due to the licence. Thanks Sherlock.
- lproven 4y ago> I really was hoping that this Tilck is a microkernel It says right there on the homepage in the link: « What is Tilck? Tilck is an educational monolithic x86 kernel » That answers both your points.
- nix23 4y agoMy third point was fun, so that makes your answer unnecessary ;)
- lproven 4y agoNo, not really. It specifically addresses a useful purpose -- education -- meaning that no, it's not just for fun.
- nix23 4y ago>meaning that no, it's not just for fun. As if you know what fun is ;)
- lproven 4y agoWhy do people always go ad-hom? :-(
- nix23 4y agoSee, that's what i mean... Be happy and have a great day.
- lproven 4y agoLet's summarise here. You: [1] apparently didn't read the link and asked foolish questions about it. [2] I answered your questions. [3] You attacked me and questioned its usefulness. [4] I answered that too. [5] You attacked me again and mocked me. [6] And now, it's not really clear to me, but you are blaming me for being unhappy that you attacked me? I don't know if it is possible to block people on HN, but for you, I will try to find out, because you personally have both wasted my time and made my weekend noticeably less pleasant, and now you are mocking me.
- aliswe 4y ago
- yjftsjthsd-h 4y agoFWIW, someone downthread linked to one that is: https://news.ycombinator.com/item?id=34296258 https://news.ycombinator.com/item?id=34296258
- tbrock 4y agoIf you’re learning, having a direct implementation vs multiple layers of abstraction is a huge benefit.
- bonzini 4y agoWithout networking support (not even sockets), not being ported to ARM is the least of the tasks.
- rnestler 4y agoMCUs with just 4MB of RAM may not even have IP based networking.
- nine_k 4y agoUnless you want really high performance networking, you don't need tons of RAM to implement it. ESP32-based MCUs are known to implement Wifi + TCP/IP + TLS [1] on 1-2MB of RAM. This is, of course, without a Linux-compatible kernel. Much RAM is not needed if most of your code resides on the flash and runs directly from there. [1]: https://github.com/espressif/esp-idf/tree/master/examples/protocols/https_server/wss_server https://github.com/espressif/esp-idf/tree/master/examples/pr...
- contingencies 4y ago2KB SRAM. ~1-2ms TCP setup + HTTP round trip, ~500-1000 requests/sec. Guess the MCU.
- snvzz 4y agoAtmega328P?
- contingencies 4y agoKnew someone would get it in one :)
- snvzz 4y agoIf the slowness wasn't hint enough, the 2KB SRAM was a dead giveaway.
- snvzz 4y agoPorting to RISC-V would make sense. Porting to ARM is not a priority, and ARM could fund it if they cared.
- guenthert 4y ago> A Linux-compatible kernel under a BSD license is intriguing :) > Jokes aside If you just were. That project uses indeed a BSD license. Isn't that making it unnecessarily hard on oneself as one then cannot 'borrow' Linux kernel code, including drivers?
- kevin_thibedeau 4y agoYou can still borrow code for a private test suite to compare behaviors.