OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 7:51 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 178 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 12  Next
Author Message
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Thu Jul 31, 2014 1:57 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
kutkloon7 wrote:
although I doubt it works as well as for a cafe, as OSes are complicated and the different parts have to work together
Umm... The different parts of cafe's have to work together as well, otherwise the waitress will take the order, the people will be sitting in the bowling line, but the coffee won't be ready in time.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Thu Jul 31, 2014 3:40 pm 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2293
Location: USA (and Australia)
We should parody this thread with "What's your OSDev AW HELL NAW! moment?"

_________________
My OS is Perception.


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Aug 01, 2014 8:55 pm 
Offline
Member
Member

Joined: Thu May 06, 2010 4:34 am
Posts: 116
Location: Leiden, The Netherlands
compositor adapted to use cairo for rendering: (bars are leftovers of switch to vt2, screen is only updated where changes are made and there is no event for vt change yet)
Image

_________________
posnk ( a simple unix clone )
twitter profile - security research, die shots and IC reverse engineering, low level stuff


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Tue Aug 12, 2014 3:45 pm 
Offline
Member
Member
User avatar

Joined: Fri May 14, 2010 3:46 pm
Posts: 62
Location: New York, NY
Combuster wrote:
Quote:
640x480x8
Are you sure it wasn't 640x480x4 or 320x240x8?

Nope, it was 640x480x8. I wasn't using a "mode" I manually set the regsiters. It worked on emulators, but only on older hardware. Newer cards didn't understand the resolution/color combination.

_________________
"On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."
Image


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Wed Aug 13, 2014 4:34 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
I'd expect the screen to be the one that rejects such a mode.

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Aug 15, 2014 10:51 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
Combuster wrote:
I'd expect the screen to be the one that rejects such a mode.
Or blows up. WATCH OUT!!! And READ THE WARNINGS in the Wiki!

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Thu Aug 21, 2014 10:07 am 
Offline
Member
Member
User avatar

Joined: Thu Mar 27, 2014 3:57 am
Posts: 568
Location: Moscow, Russia
1. Realized, that I can take user name "Roman".
2. Made my boot loader load second stage by parsing my own filesystem.
3. Fixed ATA driver.

_________________
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Aug 22, 2014 5:40 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
Roman wrote:
1. Realized, that I can take user name "Roman".
Haha, I know that feel :D

_________________
Ghost OS - GitHub


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Thu Aug 28, 2014 4:42 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
I just had another AAAAWW YEEEAAH moment. I got 2 threads running on 1 CPU.

AAAAWW YEEEAAH!

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Oct 24, 2014 2:53 pm 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2293
Location: USA (and Australia)
I was tracking down a bug - I would get a triple fault when I terminated a thread.

My system call handler runs using my thread's stack, and I was unmapping the live stack from virtual memory. Instead, I invented a thread cleaning thread (fun to say!), and when I destroy threads I move it into a limbo queue and wake up my thread cleaning thread. This involved working on many things, including some interesting atomics like sleep_if_not_set - which I'm going to reuse in lots of places around the kernel.

Here's my thread cleaning thread - thread.c - line 102.

My aww yeah moment was when I made a huge test of lots of threads that destroyed at random moments, and watched it collect them all!

_________________
My OS is Perception.


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Oct 24, 2014 4:52 pm 
Offline
Member
Member
User avatar

Joined: Thu Jul 26, 2007 1:53 am
Posts: 395
What is the benefit in keeping a stack of a closed thread around if you are not using it anymore instead of just removing it directly when it stops executing?

_________________
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Oct 24, 2014 8:56 pm 
Offline
Member
Member
User avatar

Joined: Wed Mar 21, 2012 3:01 pm
Posts: 930
Pointers to variables on the stack might still be alive until the thread is joined. Depends on the design whether this is handled.


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Tue Nov 11, 2014 6:56 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
Just had two back-to-back AAAAWW yeahhh moments.

The first was adding support for parsing complex, nested statements in my CLI/shell.

The second was using it to perform trigonometry!

Code:
>Float.Sine(Float.Pi)
0.00000
>Float.Cosine(Float.Pi)
1.00000


AAAAWWE YYEEEAAAHHH!

That feels good!

Next up... 3D transforms!!

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Thu Nov 13, 2014 2:56 pm 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2293
Location: USA (and Australia)
My 64-bit kernel is iterating over the PCI bus, detecting my IDE controller, detecting and reading sectors from my ATAPI drive (which it's doing from another thread after the kernel has initialized!), scans it for a known file system (asynchronously and multithreaded - currently only detects ISO 9660) - and then mounts it. Aww yeah.

Attachment:
ml1.png
ml1.png [ 8.37 KiB | Viewed 6712 times ]


Now to finish fleshing out my file system driver to iterate through directories and read files, which is going to be fully asynchronous (I am inspired by node.js).

_________________
My OS is Perception.


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Mon Nov 17, 2014 12:35 am 
Online
Member
Member

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 306
Location: Germany
Seeing that my compiler can compile a simple OS that prints something!

_________________
managarm


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 178 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 12  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 47 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group