#So I created my first barebones OS Witten in assembly

1 messages · Page 1 of 1 (latest)

tough thunder
#

Let's see how this goes

#

Starting in asm and using your own bootloader is only good for learning

open sand
#

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.
tough thunder
#

For an 'ACTUAL' is, this is already a bad start

#

Youre not targeting uefi

#

@open sand It have GCC and makefile my friend

sick rock
#

i think i have heard these words before

tough thunder
sick rock
#

or no

stark shard
sick rock
#

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

tough thunder
sick rock
#

his code

#

stage2.asm lines 3377

#

also he has an incredibly large stage2 file

tough thunder
#

Its what's you think it is s

tough thunder
#

Within

#

A single file

sick rock
stark shard
#

i dont think we should clown on the kid

tough thunder
sick rock
stark shard
#

still we shouldnt clown on somone who is trying and give at least constructive advice esp to sombody who apears to be younger?

sick rock
stark shard
#

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

sick rock
#

but from another author

#

maybe im hallucinating nooo

#

ah yes i am hallucinating

#

sorry

tough thunder
#

there isnt anything too wrong about the code

#

its just full of bad habits

stark shard
tough thunder
sick rock
#

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
tough thunder
#

yeah, and its an os-in-kernel

#

plus a bit misleading

stark shard
#

good on the person for getting started and making this

#

im proud of them

tough thunder
#

but actually appears more feature-rich than my kernel

sick rock
#

he is probably a beginner, and getting that much progress on making a bootloader and a mostly good kernel is insane

tough thunder
#

in python

sick rock
#

also assembelly

tough thunder
#

and 'ACTUAL' is a bold claim

sick rock
#
; 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
tough thunder
#

it have gcc and makefiles btw

#

wonder if it runs on real hw

sick rock
#

yeah but apparently they do nothing

sick rock
tough thunder
#

im actually willing to test but my motherboard just doesnt like CSM

tough thunder
#

this project have some in common with another project i think which is a single file kernel shell

open sand
tough thunder
open sand
stark shard
tough thunder
stark shard
#

damn

tough thunder
#

Linus vibes code now

#

(not in a way you think)

open sand
tough thunder
open sand
#

Why should I praise someone for prompting?

#

There's surely better servers for that than this server.

tough thunder
sick rock
#

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
open sand
#

nothing is real

sick rock
sick rock
# open sand nothing is real
; 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
sick rock
#

its his filesystem code

glacial cobalt
#

they make no sense

sick rock
#

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
glacial cobalt
#

i haven't read it all

sick rock
glacial cobalt
#

"filesystem"

tough thunder
open sand
tough thunder
#

its just hardcoded initrd

sick rock
#

the os is just a big pile of if else statements but in assembly

tough thunder
#

yeah....

sick rock
#

still a lot of effort put into promptingpain

tough thunder
mortal beacon
stark shard
tough thunder
#

this project should be made into a 'how not to make an os'

sick rock
#

ChetGPF

gaunt plume
tough thunder
gaunt plume
open sand
gaunt plume
#

Why does everyone keep saying it’s ai?

tough thunder
#

no way

gaunt plume
#

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

open sand
tough thunder
#

the stage2 is CLEARLY

#

ai

#

though dont be ashamed (though you should be). learn from it

open sand
tough thunder
#

but not tell it to make

gaunt plume
#

I made a mistake

tough thunder
#

and the coding style

gaunt plume
#

I’m sorry

#

I have no excuse

tough thunder
#

did you do this in one go or?

gaunt plume
#

Only this one

open sand
#

Personally, the worst part is trying to fool us into beliving its handmade.

gaunt plume
#

For porting my old project

gaunt plume
#

Genuinely

#

I’ll take down and start from scratch

tough thunder
#

just speechless at this point

gaunt plume
#

Without AI

#

Have y’all a nice day

tough thunder
#

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

gaunt plume
#

Thanks

#

I really appreciate it

#

Time to close this post

#

And make what’s right

stark shard
#

Just like make sure you understand the code

stark shard
#

And don’t use it for the entire thing

gaunt plume
stark shard
#

Like it’s really good at basic things you CBA to Google on stackoverflow or whatever

gaunt plume
#

I’ll start from scratch

#

And actually try

#

And learn

tough thunder
#

though personally i think ai is somewhat better for webdev than sth like osdev

stark shard
#

Like oh what’s the thing for a for loop if you haven’t touched the language in a hot moment etc

gaunt plume
#

I really thank y’all for the advice

#

Have a nice day I gtg

#

Bye

stark shard
#

Keep the channel open

gaunt plume
#

Ok

stark shard
#

We can help you in your next one

#

.!tag limine

slim boughBOT
gaunt plume
stark shard
#

This would be a decent start

gaunt plume
gaunt plume
# stark shard And don’t use it for the entire thing

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.

gaunt plume
#

I made a mascot of think OS and HBREW, I’m thinking of adding him to the neofetch

#

His name is flux

glacial cobalt
gaunt plume
gaunt plume
open sand
open sand
gaunt plume
sick rock
open sand
#

Not the painting itself

#

I also suck at drawing

restive berry
open sand
sick rock
#

that one is true

gaunt plume
restive berry
#

you safe

tough thunder
#

yeah, if he says hes under that would immediately violate discord tos

#

though the hand writing is insane

gaunt plume
stark shard
#

I dont even know where a pen is rn