Live data from Hacker News

Show HN: Banan-OS, an Unix-like operating system written from scratch

github.com

61–65 of 65 posts

Re: Show HN: Banan-OS, an Unix-like operating system written from scratch

#61
post #9

Very cool! How much time do you dedicate to this, in terms of hours per week? Looks like a lot of work has gone into it! You say you're a student on your profile - does that mean university? If so, have you also worked on the OS directly as part of your studies?

Yeah I am a student at an university. I have managed to "skip" some courses like operating systems and concurrency just by showing my project to the professor. Otherwise my project is not integrated to my studies in any way. I also got a part time job in my university's embedded side because of my project. How much time I put to this really depends on what else is happening in my life at the moment. There has been mo…

Joining these courses may be enriching for everyone though. You may learn something new or a different approach to a problem you've solved. Other students will appreciate your actual experience with the subject. And the professor may learn a thing or two (and appreciate your contributions) if you can add to the subject. That said, I'm not good managing my time and I don't have the guts to code an OS from scratch, so what do I know?

Re: Show HN: Banan-OS, an Unix-like operating system written from scratch

#62
post #60

can you compile and run smth like gcc in your OS?

I've managed to compile the GNU toolchain (binutils + gcc). gcc seems to work fine, it can properly compile source code into assembly. There are some problems with binutils that make it not able to create object files or link. I'm haven't dug deeper to see where the problem actually is.

Re: Show HN: Banan-OS, an Unix-like operating system written from scratch

#63

I think it’s going to be quite important to address portability and general flexibility when it comes to architectures. What do you think it will take to target RISC-V?

I've tried to abstract everything architecture dependent but there is still a lot of x86 specific code outside of archutecure specific directories. I've been planning on adding support for new platforms, but I've not yet had the motivation to start doing it.

I'm not familiar with other architectures than x86 so I can't really say what it will take. At least a lot of work :D

Re: Show HN: Banan-OS, an Unix-like operating system written from scratch

#64
post #60

can you compile and run smth like gcc in your OS?

I've managed to compile the GNU toolchain (binutils + gcc). gcc seems to work fine, it can properly compile source code into assembly. There are some problems with binutils that make it not able to create object files or link. I'm haven't dug deeper to see where the problem actually is.

wow, i envy you! :) i have been working on a really simple self-compiling C compiler for some time, was wondering if you are interested in adding it to your OS haha. but if GCC works fine, then i don't see a reason :d

Re: Show HN: Banan-OS, an Unix-like operating system written from scratch

#65

Awesome. I was not expecting something with that feature set. Do you plan on porting more software?

I do plan to port more! I want to keep the base OS free of 3rd party code, but ports are really nice way to get things running that I have not yet written. I have some ports locally that are not yet working. I have git, binutils, gcc, make all compiling but they are giving some weird errors. Probably a bug in my libc or syscalls.

Not enough OS's built from scratch nowadays. Fair play.
Post reply on HN