#So I created my first barebones OS Witten in assembly
1 messages · Page 1 of 1 (latest)
Here's some advice for you.
- Don't use AI, if you don't know how you build an OS in the first place, relying on ChatGPT will only make it worse.
- Secondly, never commit build files. This is standard practice.
- We strongly advice not using your own bootloader, use something like Limine instead.
Planning to say the exact same
For an 'ACTUAL' is, this is already a bad start
Youre not targeting uefi
@open sand It have GCC and makefile my friend
i think i have heard these words before
Really?
or no
.gitignore makes commiting build files reasy easy too
but sounds familiar
; Terminal prompts for different directories
prompt_root db 'root@thinkos:/ ] ', 0
prompt_home db 'root@thinkos:/home ] ', 0
prompt_docs db 'root@thinkos:/docs ] ', 0
prompt_src db 'root@thinkos:/src ] ', 0
prompt_bin db 'root@thinkos:/bin ] ', 0
i am not an asm dev is this normal
Wth is this
Its what's you think it is s
Its an entire os
Within
A single file
i know 
i dont think we should clown on the kid
And no, its not, its what you think it is, hardcoded directories
true, but still
still we shouldnt clown on somone who is trying and give at least constructive advice esp to sombody who apears to be younger?
well he surely isnt younger than me
i have seen several osdev projects almost exactly like this and its strange how similar they are at times. I can go in more details in another time but im inclined to be nice to these people
just i feel that i have seen this thread title before, with the same spelling mistake
but from another author
maybe im hallucinating 
ah yes i am hallucinating
sorry
which can be fixed easily for the most part
hope so
there is some hardcoding, but pretty easy to fix
; Files in /home
file_bashrc db '.bashrc', 13, 10, 0
file_profile db '.profile', 13, 10, 0
; Files in /docs
file_readme db 'README.txt', 13, 10, 0
file_manual db 'MANUAL.txt', 13, 10, 0
file_readme_name db 'README.txt', 0
file_manual_name db 'MANUAL.txt', 0
but still can be fixed
good on the person for getting started and making this
im proud of them
but actually appears more feature-rich than my kernel
he is probably a beginner, and getting that much progress on making a bootloader and a mostly good kernel is insane
right, he also made an os simulator PoC
in python
also assembelly
and 'ACTUAL' is a bold claim
; File contents
content_readme db '=== THINK OS README ===', 13, 10, 'Welcome to Think OS v1.3.0!', 13, 10, 'A complete OS with filesystem.', 13, 10, 13, 10, 0
content_manual db '=== USER MANUAL ===', 13, 10, 'Commands: ls, cd, pwd, cat', 13, 10, 'GCC: gcc filename.c', 13, 10, 13, 10, 0
content_hello_c db '#include <stdio.h>', 13, 10, 'int main() {', 13, 10, ' printf("Hello World!");', 13, 10, ' return 0;', 13, 10, '}', 13, 10, 0
yeah but apparently they do nothing
i have my 2004 laptop
im actually willing to test but my motherboard just doesnt like CSM
should work
this project have some in common with another project i think which is a single file kernel shell
im pretty sure he hasnt ported gcc lol
its just a fancy makeup
well i dislike AI stuff.
was this AI 
likely
100%
damn
dont explicitly hate it, just use it in a way that helps you
Linus vibes code now
(not in a way you think)
And that way is not AI generating a whole OS.
yup
Why should I praise someone for prompting?
There's surely better servers for that than this server.
definitely one for generating slop images
why does he have more software ported than me??
; Filesystem commands
cmd_ls db 'LS', 0
cmd_cd db 'CD', 0
cmd_pwd db 'PWD', 0
cmd_mkdir db 'MKDIR', 0
cmd_touch db 'TOUCH', 0
cmd_rm db 'RM', 0
cmd_cat db 'CAT', 0
cmd_gcc db 'GCC', 0
cmd_make db 'MAKE', 0
cmd_vim db 'VIM', 0
cmd_edit db 'EDIT', 0
cmd_clear db 'CLEAR', 0
cmd_echo db 'ECHO', 0
cmd_date db 'DATE', 0
cmd_uname db 'UNAME', 0
cmd_whoami db 'WHOAMI', 0
nothing is ported.
nothing is real
ik its irony
; Files in /src
file_hello_c db 'hello.c', 13, 10, 0
file_main_c db 'main.c', 13, 10, 0
file_makefile db 'Makefile', 13, 10, 0
file_hello_c_name db 'hello.c', 0
file_main_c_name db 'main.c', 0
what
they make no sense
nothing makes sense in this thread lol
; File contents
content_readme db '=== THINK OS README ===', 13, 10, 'Welcome to Think OS v1.3.0!', 13, 10, 'A complete OS with filesystem.', 13, 10, 13, 10, 0
content_manual db '=== USER MANUAL ===', 13, 10, 'Commands: ls, cd, pwd, cat', 13, 10, 'GCC: gcc filename.c', 13, 10, 13, 10, 0
content_hello_c db '#include <stdio.h>', 13, 10, 'int main() {', 13, 10, ' printf("Hello World!");', 13, 10, ' return 0;', 13, 10, '}', 13, 10, 0
i haven't read it all
what the fuck
its a complete os with a filesystem
"filesystem"
it actually does have a ramfs
dw its AI generated.
its just hardcoded initrd
the os is just a big pile of if else statements but in assembly
yeah....
still a lot of effort put into prompting
a lot of tokens wasted
Yeah, I agree. Don't throw stones, especially if your house is made out of glass.
unless your glass house has a machine gun turret mounted at the top /s /ref
this project should be made into a 'how not to make an os'
ChetGPF
I Didnt use AI?
Well it’s my first time kinda
what?
Yea I didn’t
💀
Why does everyone keep saying it’s ai?
no way
Oh yea I haven’t been here in a while cause of exams
So this is kinda like my free day off in a while
"not AI"
the stage2 is CLEARLY
ai
though dont be ashamed (though you should be). learn from it
- Overly use of comments in some parts, none in others.
- Really long variable names.
- AI like code.
- I know AI code when I see it.
but not tell it to make
I’ll try to do better to not use ai
I made a mistake
and the coding style
did you do this in one go or?
Only this one
Personally, the worst part is trying to fool us into beliving its handmade.
For porting my old project
I’m sorry
Genuinely
I’ll take down and start from scratch
just speechless at this point
i dont discourage ai
i mean if you hate reading docs
then just tell it to explain to you
theres nothing wrong with that
in fact thats more efficient than reading from osdev wiki trying to understand some kind of black magic
especially if you are a beginner
Ok
Thanks
I really appreciate it
Time to close this post
And make what’s right
It can also be good for boilerplate and other crap
Just like make sure you understand the code
fact
And don’t use it for the entire thing
Thanks
Like it’s really good at basic things you CBA to Google on stackoverflow or whatever
though personally i think ai is somewhat better for webdev than sth like osdev
Like oh what’s the thing for a for loop if you haven’t touched the language in a hot moment etc
Keep the channel open
Ok
Thanks
This would be a decent start
Ok
Not entirely, recently because of my exams I couldn’t work on it hard enough, so I used ai. Looking back on it I don’t know what the hell i was thinking. I should’ve learned instead of copying and pasting. I genuinely feel regret for this.
I made a mascot of think OS and HBREW, I’m thinking of adding him to the neofetch
His name is flux
How old ru?
according to his bio,
A minor
Also this
I dont read peoples bios.
It's just that I think the painting looks like its made by a 10 year old lol. (no offense)
Ah, it’s ight. It’s not a painting but a drawing
maybe he just has bad drawing skills, why refer to age immediately?
Text.
Not the painting itself
I also suck at drawing
under 18 but above 13 right?
That's why I'm asking lol
Yep
you safe
yeah, if he says hes under that would immediately violate discord tos
though the hand writing is insane
Many people tell me that
To be fair I haven’t used a pencil in fucking ages so mine may not be that much better 
I dont even know where a pen is rn