Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ffwff
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
ffwff
7y ago
With enough macros you can even bring high-level programming to C a la libcello: http://libcello.org/
2.
▲
by
ffwff
7y ago
Love the fact that people are developing kernels in new languages!
3.
▲
by
ffwff
7y ago
Precise GC information, the crystal compiler prepends a dword/qword value indicating an class' typeid upon allocation. I decided to patch the compiler to generate 2 functions, one that outputs the class' size based on a typei
4.
▲
by
ffwff
7y ago
I've read up on how luajit does garbage collection (in fact the current gc/allocator with allocation/marking bitmaps is inspired by his tri-color gc. Apart from specifying when the GC should run, I won't be changing anyt
5.
▲
by
ffwff
7y ago
Thanks but the code isn't that clean, there are hacks here and there and it isn't organized as clearly as I wanted to but feel free to look through it.
6.
▲
by
ffwff
7y ago
You can checkout what I replied to jchw. But tldr, wanted to do DOS => got ambitious => made it multitasking => got more ambitious => added graphics and guis. Currently it's pretty barren driver-wise, I currently have a FAT
7.
▲
by
ffwff
7y ago
Right after the global descriptor table is setup and paging is enabled, the GC is then enabled. On every allocation, and whenever the os has no task available to switch to, a gc cycle is performed. Not really, the kernel and any process wri
8.
▲
by
ffwff
7y ago
Sorry for the late reply (being rate limited) Thanks! Originally it only started as an experiment to see how far I could go making an OS in a high-level (higher than C at least) language, I was only planning to build a monotasking DOS syste
9.
▲
by
ffwff
7y ago
shhh.
10.
▲
by
ffwff
7y ago
Out of the box, Crystal does garbage collection through the boehmgc library, however if you pass in some compiler flags you can get application to not use GC. As for my OS, I wasn't gonna port libgc, and since I have prior knowledge of
11.
▲
by
ffwff
7y ago
Cool coincidence but nah. Maybe its a reference to the first angel in Evangelion? Maybe its a reference to Adam's wife? Maybe its best girl from Machikado Mazoku? Hint: asuka best girl.
12.
▲
by
ffwff
7y ago
POSIX-like, not entirely POSIX! There are basic IO syscalls, and some process management calls, but overall I try to take unix as a guideline rather than trying to reimplement one entirely. I also try to take inspiration from other kernels
13.
▲
by
ffwff
7y ago
Oh wow someone actually posted this! Thanks a lot for the comments and criticisms guys, really means lot to me. Before I go I'll answer some questions, so ask them away!