Live data from Hacker News

Show HN: A DOS-like hobby OS written in Rust and x86 assembly

github.com

51–60 of 62 posts

Re: Show HN: A DOS-like hobby OS written in Rust and x86 assembly

#52
post #27

Earlier quoted context omitted.

Afaik there is a 'DIR' command in MS-DOS. Anyway, what would be a better command to list a directory? I could think of 'ls' maybe

I would most likely end up with something like this: CAT CATalogue - output the contents of current directory RM to Raster Memory - load contents of named file in framebuffer MV Make Virtual - map the file into memory and output the address LS Load System - attempt to reboot using the named file as the kernel CD Create Directory - self-explanatory SH System Halt - immediately stop all processing ...and so on.

To create a file, we should take inspiration from TOPS-10 and call the command `make` [0]. When issuing `make love`, it should ask for confirmation to the user: `not war?`.

[0] https://en.wikipedia.org/wiki/Easter_egg_(media)

Re: Show HN: A DOS-like hobby OS written in Rust and x86 assembly

#53
post #3
post #2

Memory-safe language. x86_64, with Arm on the roadmap. Networking stack. Boots from a CD and via multiboot. Your hobby project wipes the floor with DOS.

Whoa there. Gotta run Doom and BASIC to compete with DOS. That is the officially recognized DOS-Kármán line.

Borland languages and xBase ecosystem as well

Re: Show HN: A DOS-like hobby OS written in Rust and x86 assembly

#54
post #15

Earlier quoted context omitted.

also, can't be a dos with the 'dir' command.

Afaik there is a 'DIR' command in MS-DOS. Anyway, what would be a better command to list a directory? I could think of 'ls' maybe

As someone old enough to have started on MS-DOS 3.3, dir has been there all time.

Re: Show HN: A DOS-like hobby OS written in Rust and x86 assembly

#56
post #27

Earlier quoted context omitted.

Afaik there is a 'DIR' command in MS-DOS. Anyway, what would be a better command to list a directory? I could think of 'ls' maybe

I would most likely end up with something like this: CAT CATalogue - output the contents of current directory RM to Raster Memory - load contents of named file in framebuffer MV Make Virtual - map the file into memory and output the address LS Load System - attempt to reboot using the named file as the kernel CD Create Directory - self-explanatory SH System Halt - immediately stop all processing ...and so on.

CAT was on the Amstrad CPC.

Re: Show HN: A DOS-like hobby OS written in Rust and x86 assembly

#57
post #42

Earlier quoted context omitted.

> Rust and x86 assembly then > Memory-safe language. What's the point? Looks like today Rust is like 3D printing was. As if it makes something better. Printing was hyped and advertised by printers sellers and manufacturers. Finally they run out of money. As for project, it's cool if compatible with old soft. Otherwise suitable mostly for education and masochism. Long way to become practical anyway even if it gets tra…

You can write memory safe code in any language, but having a machine i.e. the Rust compiler check it for you is less error-prone than if a human does it. Also if you look at the repo, only 3% of the codebase is in Assembly. IMO if >95% project is in Rust, you can definitely claim it's a Rust project.

Finally, a positive comment about Rust that I can 100% agree with :)

Re: Show HN: A DOS-like hobby OS written in Rust and x86 assembly

#58
post #39
post #34

Earlier quoted context omitted.

The original blog post has more details: https://krusty.space/projects/rourexos/ Ultimately, it's an eye of the beholder type thing, but it seems very fair to call it DOS-like to me. The DOS inspiration is pretty blatant all throughout it from its aesthetic, commands (more than just dir and cls is shared), booting from a 1.44 floppy, etc. And if you are coming from a primarily windows computing background, then "DOS-…

Ah yes, the first version does indeed sound DOS-like. The second one diverges quite a bit though. Fun project indeed.

You are right, it goes way ahead the first iteration. I call it DOS-like because of its resemblance to the Text mode-only operating systems (and to MS-DOS especially). On the other hand, it shares very little as the architecture, command set, or hardware utilization approach are concerned when compared to MS-DOS.
Post reply on HN