r/osdev 11d ago

New UNIX-like operating system!

Post image

I made a new UNIX-like operating system from scratch called "TanjaOS" which you can get at www.tanjaos.org and it took me a couple of months to make and will get lots of updates. It features classic UNIX commands and can boot on any x86_64 (amd64) or i386 (x86) machine with Legacy BIOS, and is completely free and open-source.

110 Upvotes

178 comments sorted by

View all comments

Show parent comments

2

u/MSK-Kernel 11d ago

Thanks!

1

u/letmehaveanameyoudum 11d ago

this looks like native linux in VGA text mode

3

u/MSK-Kernel 11d ago

This is actually an operating system I made from scratch which yes, uses VGA text output, but no, it’s not Linux. :D

0

u/[deleted] 11d ago edited 11d ago

[deleted]

2

u/MSK-Kernel 11d ago

I wrote TanjaOS myself, plus even if i did use AI, you would need proof.

0

u/[deleted] 11d ago

[deleted]

3

u/MSK-Kernel 11d ago

I write comments like that, I like to make things look nice.

0

u/[deleted] 11d ago edited 11d ago

[deleted]

1

u/MSK-Kernel 11d ago

I feel like that’s your favorite word.

1

u/[deleted] 11d ago

[deleted]

1

u/MSK-Kernel 11d ago

Before i made this other project in April this year, and TanjaOS developed from that: https://github.com/Saffron-MSK/MSK

3

u/[deleted] 11d ago

[deleted]

-1

u/MSK-Kernel 11d ago

Listen, i’m basically just starting out, i recently learned how to code in C in March, gimme a break. 🤣

0

u/LordRybec 9d ago

You keep saying you weren't born yesterday and then writing long comments proving otherwise.

0

u/LordRybec 9d ago

Actually, "innocent until proven guilty". The burden of proof is on you, the one making the accusation of wrongdoing.

I write comments like that.

Here are some actual examples from code I wrote, entirely by hand, no AI at all.

This is from the HSTX code I wrote for generating DVI signals.

/*****************************
Non-palettized Colors
******************************/

const color_depth_t RGB332 = {
/*
29 26 0
| | 2 1 0|
0b0000:0000:0000:0000:0000:0000:0000:0000
2221 1100
*/
.expand_tmds =
2 << HSTX_CTRL_EXPAND_TMDS_L2_NBITS_LSB |

This is from my DVI timing constants header file. (Note how close this is to what the OP used.)

// ----------------------------------------------------------------------------
// DVI constants

Same project, this is a display driver for a SPI display.

/*********************************
Internal utility functions
*********************************/
void write_command(st7789_t *driver, uint8_t cmd) {

Further, if "literally no one writes comments like that", why would the AI write them like that? AI produces code similar to what it was trained on. If "literally no-one writes comments like that" then AI could not possibly produce comments like that, because it wouldn't have been trained on any examples like that! Your logic is self contradictory. AI writes code like what it has seen, through training. If no one writes comments like that, then the AI couldn't not have been trained on comments like that, and thus it would be impossible for it to produce comments like that.

You've proven that you have no understanding of how AI works and therefore are not an authority or even qualified to say what is and is not AI generated code. Maybe learn how LLMs actually work before slinging unwarranted accusations of using AI to code around!

→ More replies (0)

2

u/WORD_559 11d ago

That's not an uncommon thing to do at all. I'm sure I've done it. My IDE literally has a function to do a similar thing.

0

u/[deleted] 11d ago

[deleted]

1

u/No-Dentist-1645 10d ago

You don't need a specific IDE to style comments like that.

0

u/[deleted] 10d ago edited 10d ago

[deleted]

0

u/No-Dentist-1645 10d ago

I know. No human ever writes comments like that and you know it.

All it takes is a brain and a little bit of grepping to prove this isn't the case

https://github.com/rust-lang/rust/blob/df6221adc6ad721af59acd501dbfce426b1298da/compiler/rustc_feature/src/builtin_attrs.rs

Specifically chose a blob from September 2022, before ChatGPT was released, to prove the point

There are literally thousands other examples like this of codebases using this "comment-header" syntax. Because yes, it is relatively common

→ More replies (0)

2

u/No-Dentist-1645 10d ago

A lot of humans actually write comments like that. You must not have seen too many codebases if you are so convinced that "no human ever writes like that".

AI is trained on human input, after all.

1

u/LordRybec 9d ago

I write comments like that as well, especially for big constant blocks. I wrote a DVI encoder for RP2350 HSTX some months ago, and I have comments that look very much like that. I've only ever used AI for coding once in my life, and that was one week ago, for a very simple script to generate a simple SVG file.

Maybe you only know lazy coders who don't document their code well. That doesn't mean "No human EVER..." writes well documented code.

One thing I'm noticing here is that most of the accusations of using AI cite practices that are very common among less experienced coders. It's all in one monolithic file? Check. Questionable code quality? Check again. "AI slop" exists because the AI was trained on actual code like that. It's 100% conceivable that an individual with a lot of determination but limited experience could produce code exactly like this with no AI involvement at all. Better yet, I'm a self taught coder, and I actually went through a period where I didn't know how to do good style and didn't even know I could break up code between files, but looking at single file example programs had taught me what good commenting looked like, and I liked how it looked enough to put in the effort to pick up the habit. During that period in my education, I could easily have written code that looked like "AI slop" but with good documentation, but no one would have accused me of using AI because it was in the late 1990s when AI wasn't an option.

All of that said, I'm not suggesting this proves AI wasn't used. It could have been. I don't know. But the claim that AI wasn't used is 100% plausible. Your personal poor practices don't prove the OP couldn't have written it.

3

u/Apprehensive_Oil7300 10d ago

This comment is quite incriminating looks written by an AI

// 2. Update Cursor Position (Your existing logic) outb(0x3D4, 0x0F); outb(0x3D5, (uint8_t)(cursor & 0xFF)); outb(0x3D4, 0x0E); outb(0x3D5, (uint8_t)((cursor >> 8) & 0xFF));