HNHacker News
TopNewBestAskShowJobs

krustowski

115 karma · joined March 27, 2025

submissionscomments
krustowski··on Pawn is a simple, typeless, 32-bit extension language with a C-like syntax
let's resurrect these days with open.mp!
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
How about the event loop in its completeness?
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
Sort of, but IMO that module(s) is just a wrapper for video buffer.
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
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.
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
I am not at the moment. The goal is to keep this iteration in English for now. The first iteration was in Czech in the beginning though.
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
Well, the point is to experiment with Rust no_std+no_main environment while trying to educate myself on how the things work under the hood. The project itself is part "just" a rewritten system (from C to Rust), and part an enhancement of such system furthermore. It lacks the external program execution though yet.
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
NGL, the codebase of the first iteration is pretty much a mess. It had been written in my mid-teenage years, so the C code is not very consistent across the project. There is a filesystem prototype written in Go as well... Also, it is quite complex to even compile RoureXOS: it needs Borland TCC and TASM (ca 1989 btw) to properly build a 16bit executable(s). It is feasible to compile it using DOSBox though. Maybe some day I could open source that one repository too.
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
The x86 arch is used because this system iteration derives from the first one, which relies on BIOS interrupts and inline assembly in Turbo C. I am not trying to mimic (MS-)DOS exclusively, but both systems are highly inspired by it.

IMO multiple archs could be supported as Rust compiler allows the target arch specification, so one would build a specific target before the build itself.

krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
For FAT12, it reads the first sector (0 or bootsector) of the floppy provided to gather information like bytes per sector, reserved sectors count, LBA of the root directory, etc.
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
Booting from an EFI system partition has not been tested yet. FAT12 is the only filesystem (ok, there is a memdisk implementation, but it won't work now) supported, so GPT is not supported at the moment too (yet). Kinda aiming for FAT32 implementation to be the very next implemented (flash disks are usually FAT32 iirc). Not sure about the last question: the OS utilizes/directly writes to the VGA buffer in memory, the provided resolution is 80x25 by GRUB.
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
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
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
What a challenge! Need to implement some interrupts it seems then, to provide an API for filesystem and so... Thank you for such idea
krustowski··on Show HN: A DOS-like hobby OS written in Rust and x86 assembly
You are right. The first iteration however is 16bit and is very close to MS-DOS in terms of compatibility. Moreover, any OS that can handle simple disk I/O ops could be considered a DOS system too, innit?
krustowski··on A second iteration of my DOS-like hobby OS
I didn't really think this through like that, good point. Thanks for the link, will consider reposting it later

https://github.com/krustowski/rou2rexOS