#.
1 messages · Page 1 of 1 (latest)
the colors are very eye torturing
at least for me
not bad code
wait
oh nvm
i thought its kernel shell for a second
though are you sure you wanna use mb2 ans 32 bit in 2026?
just a QoL note
you should test it on all emulator you can
bochs, vmware, qemu,
and your pc (with csm i think its possible)
ld.lld -m elf_i386 -T linker/linker.ld -o build/coffeeos.elf build/boot.o build/kernel.o build/gdt.o build/idt.o build/gfx.o build/keyboard.o build/kshell.o build/pmm.o build/interrupt.o
ld.lld: error: undefined symbol: memcpy
>>> referenced by gfx.c
>>> build/gfx.o:(draw_braille_cell)
very nice
average clang trying to do its own thing
btw
you are using host gcc to compile!?!?
plus, make sure that the script knows about grub2-mkrescure
'like on fedora (just switched in the morning)
its grub2-mkrescue
very standard os overall
if you want it to be better
switch the bootloader, and go long mode
okay i will try implementing it as fast as i can
Finally NO KERNEL SHELL!!! proud of you @low glen
I would love your guys input.. What do you want to see in the OS? If I can, I will prioritize to get it done fast! and probably learn something from it also
better mm
i switched to
which x86_64-elf-gcc
/mnt/d/toolchains/coffeeos-x86_64/bin/x86_64-elf-gcc
please dont hardcode this as always
clang is superior
okayy
the reason why i tell you to add clang support is people wont compiler that they wont use just to test out your os
ohh okay
though keeping it work on both compilers is a bit of work
like my kernel is basically locked to clang
though im trying to add gcc support
though definitely not keen on it
btw you created your account today??
ohh i know i almost faint while looking at the OSDev Wiki
interesting build system
luckily i am 16 and probably will live a long life
fair
why is it repeated so much?
the flags
and compiler
??
i asked claude to generate the justfile
tf
since i heard it is newer than make
llm are good at this
and used basically nowhere
yea
or very rare
i wanted to try it out from this : https://youtu.be/_aQ8xJ5DuHY?si=E6uYITuU7SFIpGoa
Except, maybe, if I'm writing C
Click this link https://boot.dev/?promo=DREAMSOFCODE and use my code DREAMSOFCODE to get 25% off your first payment for boot.dev.
For the longest time, Make has been a staple in my developer toolkit, acting as not only a build tool, but also as a task runner.
Whilst there's good reasons to use Make as a build ...
the thing is
just isnt actually a build system
its like ninja
its a command executor
theres no reason to switch
but refactor the thing man
on it
you are not updating 200 lines to add just a flag
some flags you may find usefuk for kernel compliation
btw some needs runtime support
prob overfkill imo
ohh
the keyboard driver will likely overflow
try slamming the keyboard on startup and see if you can type anything in qemu
what's the difference?
like checking which files need to be compiled again which don't?
Are you sure you understand what you're writing, or is AI writing it for you
yea i can understand if not i ask it to explain
i ain't fully vibe coding the os
Well, you have some well questionable comments around the OS.
which one
wicks when the project has fucking ai comments
No, well this comment implies you have nooo idea what youre doin
Do you even know what an ISR is?
i mean it probably shouldn't work in either cases
Interrupts
🙏
and an interrupt is?
@dire girder dont give him the answer yet
lmao ok
a signal frm the input device to the cpu to
ehmm well, ill take that.
not necessarily input device
tell it stop whatever it is currently doing and do something else
Are you joking??
nope
ofc
why even comment about it?
??
are you joking?
Why comment about a thing that's absolutely no-shit moment. Like ohh wonder why the keyboard handler doesnt work when i remove the keyboard handler call? huh??
prob becuz ai did it and i had to change it
i told u i use AI
i have like lil to no experience
I AM 16
And i am 14?
Do I need to send you a picture of my passport for you to believe me?
For you to believe that Im 14?
nah actually are u 14?
Correct, turning 15.
Well I have around 5 years of programming experience, where one of those is spent doing osdev?
oh great
i have 2 years of exp since my school kinda techs this and may dad is a software engineer
soo
This is not a project for you.
u can expect me to have only like minumum knowlege
I programmed for around 4 years before I even thought about this project.
so imma leave the project and get back to it when i have more exp
cya and thanks for informing
Well it's your project, I'm just saying that it might be a good idea to learn a bit more and make some succesfull user-space programs before you approach a OS.
so should i keep working or gather more info?
no lowkey you could continue but (ab)using ai will keep you from understanding what happens and why things don't work
Do you have any other significant project under your belt?
No.
It will all come crash down.
the road is long and hard but also fun and rewarding, use human produced resources
If you haven't made any userspace project don't expect to be able to make a full blown OS:
yeah c experience and low level understanding is necessary but if he has some it can work out
Currently it doesn't look like that.
damn @calm sapphire you only 15 😭, i'm 17 with 5 years of general programming experience and almost 2 years in systems programming, you are cookin'
imma keep going ig?
Have you made any substantial projects before?
That's in userspace?
probably not
i might learn more and then try to upgrade this project
not just vibe code into this since that ruins the entire point
Well, keep this on a chill and make some decent sized userspace project and then pick it up again.
Sounds good.
Yea.
thx for the support
np lmk if you need any more help w anything else.
ur bio does say this "DNI if you vibe-code."
Correct.
I made you come to the conclusion that vibecoding a os is not the right thing to do.
@calm sapphire did you just suspect another vibecoded project
?
Yep and I was completely right this time, like almost every other time.
it is actually vibecoded?
gotta upgrade my ai spotter skills 😭
Scroll up and read the conversation
Well that was the thing that sparked my AI senses.
.
Kernel Shells are 🔥
architecturally, hell no
but adrenaline-wise, yes absolutely
They’re fun :3
Nothing is fun when your OS/Kernel isn't architecturally correct
and a Kernel Shell is a HUGE MEGA FAT no-no
??
man im drinkin water and see the msg
almost drown
lmfao
ain't a kernel shell a big security risk?
not only that
it breaks the kernel - os architecture
not only security wise, it's not correct and weird. also because the job of the kernel is to ONLY AND ONLY ABSTRACT HARDWARE
thats why kernel shells are also called os-in-kernel
nothing else which USERSPACE can do
ohh
a kernel gives a massive api
so basically its
bootloader then kernel then userspace right?
for the os to build stuff
simply yes
so is this the correct order : BIOS/UEFI → Bootloader → Kernel → Userspace
yeah
though its general
but thats how it is
the only think you must remember when working on your kernel, "the kernel NEVER handles things which userspace can already do"
advancement get: KNOWLEDGE
e.g. knows how to render a font, fancy graphics
in this case, kernel only exposes the draw, ctl methods
userspace drivers use those methods to draw what you see
ohh
obviously, kernel is only there to abstract and do stuff which is not permitted by userspace
eg. like accessing hardware DIRECTLY
yeah
but the reason why you see os-in-kernels are such common
is that
its easier
alot in fact
ohhh
mine ain't a kernel shell right?
not kernel shell
nope
if its run in userspzce
thank god
but you need some modifications to get it out of the os-in-kernel area
which are?
loadable modules is one of them
if your os uses a framebuffer,
and its know graphics
and its in your kernel
#1467786251510743061 MENTIONED
and #1452605767185338378 also
this guy project is insane ngl
thanks
both of ur guys project are great
thx
are u sure i am ready to get into this project Wicks did say its not for meant for me rn
wdym not meant for you? anything specific
for OSDev u need more experience
right?
well rn i do not have the necessary knowledge
imma continue the project well i have more exp about userspaces
i mean why not
yea otherwise it ruins the exp if i vibecode my way thorugh this
Ehmm.
Did you really recommend someone to continue vibecoding a kernel.
??
what?
i thought he stopped after that?
guys chill i ain't continuing this project until i get more exp
not really, memset, cpy, … are assumedto exist
it assumed exist and it use it explictly
btw isnt that what im trying to say?
yes… not clang specific
it is usually clang
if you compile a freeatanding gcc
it wont likely use it
clang is different
it targets a lot or archtecture and platforms, at once
so it inherits
??? gcc can do the exact same thing, this is not a clang specific thing
freestanding gcc please
x86_64-unknown/none
i already tried
and it did not, in fact ask for mem* functions
thats hosted gcc
on opt level?
.