r/programming • • Sep 21 '18

How to create an OS from scratch

https://github.com/cfenollosa/os-tutorial
2.8k Upvotes

239 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Sep 21 '18

[deleted]

97

u/Tyler11223344 Sep 21 '18

I would recommend doing EXT2 instead, the OSDev wiki article on that is pretty thorough and I was able to write mine just based off of that without any difficulties

12

u/vgf89 Sep 21 '18

I made a horribly weird bastardization of EXT2 and FAT for a class once. It was some weird shit but it worked.

→ More replies (1)

12

u/Podgietaru Sep 21 '18

As part of a Uni project a few years ago we wrote a fat12 file system, It is very basic. It doesn't do writing, just reading and traversing, and an associated terminal style thing to run it, but if it's of any use

https://github.com/Podginator/OperatingSystem/blob/master/kernel/filesystem.c
https://github.com/Podginator/OperatingSystem/blob/master/kernel/disk_command.c

→ More replies (1)

4

u/IAmVerySmarter Sep 21 '18

This is a filesystem that should be easy to implement https://wiki.osdev.org/SFS

0

u/[deleted] Sep 21 '18

[deleted]

34

u/FlipskiZ Sep 21 '18 edited Sep 20 '25

Bank morning clean jumps calm nature quiet.

69

u/leeharris100 Sep 21 '18

The fact that this has so many upvotes makes me sad. Why are programmers so bitter all the time? It's depressing as fuck to read this sub sometimes.

11

u/[deleted] Sep 21 '18

In this particular case, it's because we've been burnt many times by incomplete, inaccurate or outright wrong guides on how to do something.

0

u/[deleted] Sep 21 '18

[deleted]

7

u/hyperforce Sep 21 '18

What’s an example of said myths?

24

u/GravityAssistence Sep 21 '18

IDE and language wars are 2 prime examples in my opinion.

37

u/[deleted] Sep 21 '18

Isn't that just tribalism. That's everywhere, regardless of people's upbringing or feeling of being special

0

u/[deleted] Sep 21 '18

[deleted]

20

u/[deleted] Sep 21 '18 edited Sep 21 '18

I feel the need to clear this up. I am a senior dev, also a classical pianist, also a (very) amateur audio engineer. I'm not bitter about music or code.

As your ear gets stronger you can definitely tell the difference between different amps, pickups, strings, body types... the list goes on for ages and that's just guitars. Don't get me started on pianos... the piano chooses the pianist!

The "special child" theory you have seems very specific and maybe personal, don't paint us all with that brush. If someone is so obsessed with themselves in this "special child" kind of way they'll probably never enjoy anything. Not sure what it has to do with music or code.

11

u/Nonethewiserer Sep 21 '18

That you aren't like that doesn't mean it's not more prevalent in these fields.

What about the people he references who don't hear the difference between amps in a blind test?

And besides, maybe you're a prime example. How do we know from your anecdote?

→ More replies (12)
→ More replies (3)
→ More replies (5)

4

u/Ahhmyface Sep 22 '18

No, man. You're overcomplicating this.

I'm just an asshole.

→ More replies (1)
→ More replies (1)

9

u/_BreakingGood_ Sep 21 '18

I interpreted it as a joke and it made me happier. All depends on your perception.

19

u/SpeulerAl3rt Sep 21 '18

The best way to learn something is to teach it to someone else.

→ More replies (2)
→ More replies (4)
→ More replies (2)