OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Oct 19, 2017 10:21 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3169 posts ]  Go to page Previous  1 ... 208, 209, 210, 211, 212
Author Message
 Post subject: Re: What does your OS look like? (Screen Shots..)
PostPosted: Thu Oct 12, 2017 4:40 pm 
Offline
User avatar

Joined: Fri Sep 01, 2017 6:53 pm
Posts: 10
Location: Londrina - Paraná | Brazil
zesterer wrote:
Octacone wrote:
7th time wow, I can relate to you. :P Looks like some people just love rewriting their OSes over and over.
What is wrong with C++? What problems did you run into? I've recently (~5 months ago) switched to C++ and things are definitely easier to work with and organize.
Nah, don't go micro yet, that is a really big big switch IMHO, lots of specific things to consider.


It wasn't so much that I had a problem with C++: I love the language, and it can be extremely expressive. If you excuse the ridiculous naming conventions of its standard library, it's incredibly powerful too.

The problem I found was that I got bogged down in details. I'd write my own implementation of std::vector. It would work, but then I'd realise a month down the line that there was a bug in it. I'd go back to fix that, and this became a common thing. The more I tried to create abstractions: automatic reference counting, smart data structures, etc. the more time I consumed working on things that weren't core features of the OS. I got myself stuck in a pit where, for about 2 months, I added virtually no new features to my OS, instead spending my time improving and adding needless overhead to my kernel in an effort to produce correct code.

I moved to C, and things are much nicer. Most code is actually shorter, it doesn't do strange things in the background, you mostly don't have to care about constructing static objects, it doesn't mangle function names (putting 'extern "C"' at the beginning of stuff gets boring very quickly), and the syntax is SO simple that it feels more like you're working with the underlying machine rather than the language. Its syntax seems to be designed to just get out of the way, without any distractions like OO, templating, constexpr, lambda functions, global construction, etc.

My conclusion is this: C++ is superb for userland applications. But for my kernel, I'm going to use C for sure.


I think the same thing.
I'm gonna use C and Assembly for kernel stuff, port some small C compiler for user land ... and that is it.
C++ is a nightmare. I simply can't handle that language at this moment.
Maybe in the future.


Top
 Profile  
 
 Post subject: Re: What does your OS look like? (Screen Shots..)
PostPosted: Sat Oct 14, 2017 5:29 am 
Offline
Member
Member
User avatar

Joined: Sat Oct 16, 2010 3:38 pm
Posts: 529
Revamp of my GUI. Some optimisations, and some improvements in graphics. A bunch of new games and applications :)

Image

_________________
Glidix: An x86_64 POSIX-compliant operating system, aiming to be as optimized as possible, especially in graphics.
https://github.com/madd-games/glidix


Top
 Profile  
 
 Post subject: Re: What does your OS look like? (Screen Shots..)
PostPosted: Sun Oct 15, 2017 6:43 am 
Offline
Member
Member
User avatar

Joined: Sat Dec 17, 2016 6:58 am
Posts: 79
Location: The Internet
mariuszp wrote:
Revamp of my GUI. Some optimisations, and some improvements in graphics. A bunch of new games and applications :)



I love it! Looks professional.

_________________
Everyone should know how to program a computer, because it teaches you how to think! -Steve Jobs
Code:
while ( ! ( succeed = try() ) );


Top
 Profile  
 
 Post subject: Re: What does your OS look like? (Screen Shots..)
PostPosted: Sun Oct 15, 2017 12:07 pm 
Offline
Member
Member

Joined: Wed Aug 17, 2016 4:55 am
Posts: 171
frednora wrote:
A simple window.

You probably should start using different colors for the text depending on where it's used (I can barely see the text on the titlebar buttons)

_________________
https://github.com/sikthehedgehog/indigo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3169 posts ]  Go to page Previous  1 ... 208, 209, 210, 211, 212

All times are UTC - 6 hours


Who is online

Users browsing this forum: Alexa [Bot], ARISTOS, BerNardEr, Bing [Bot] and 18 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