OSkit ?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

OSkit ?

Post by quanganht »

Has anybody use it? If yes, can you tell people your experiences with it ?

Edit: I haven't figure out how to build examples yet ... :oops:
"Programmers are tools for converting caffeine into code."
quok
Member
Member
Posts: 490
Joined: Wed Oct 18, 2006 10:43 pm
Location: Kansas City, KS, USA

Re: OSkit ?

Post by quok »

I've looked at it out of interest, but have never really used it. The code is fairly clean and straight forward, but the entire project is quite out of date as well. The last release was, I think, in 2002. It also uses a COM-like model, which I personally have never liked.

Also, IMO, the licensing is a mess. All the code written by the FLUX group is GPL'd, and other code donated to the OSKit is covered under various licenses like the BSD, Mach, or X11 licenses.

It's a good resource for learning the basics and even some of the more advanced topics, but I wouldn't base my own kernel off of it. If you just write code to use the OSkit's functions for everything, then you really won't be learning much as to how an OS works. IMO, if you're interested, use the code as an example of how to implement a feature (like enabling paging or perhaps how a VM functions), but don't otherwise use the OSkit code.
User avatar
babylon2233
Member
Member
Posts: 66
Joined: Fri May 23, 2008 5:30 pm
Location: Malaysia

Re: OSkit ?

Post by babylon2233 »

LibOSdk is another option.

http://libosdk.berlios.de/
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

Re: OSkit ?

Post by i586coder »

I've never been used OSkit's before,but i downloaded LibOSdk,it's very poor library to develop an OS, even rubbish OS :!: ...



CheerS,
a.T.d
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: OSkit ?

Post by Combuster »

If you have criticism, please let it be constructive rather than this kind of derogatory remarks, thanks.
"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 ]
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

Re: OSkit ?

Post by i586coder »

Well, i apologize if some one understand my POST as derogatory remarks

i can explain why criticism:

The library does not contain the basic functions of the operating system (e.g FS,paging,I/O,...etc),in other side not even complete implementation of string.h,

...,in other word "newbei's lib"

CheerS,
a.T.d
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: OSkit ?

Post by JamesM »

Hi,
i586coder wrote:Well, i apologize if some one understand my POST as derogatory remarks

i can explain why criticism:

The library does not contain the basic functions of the operating system (e.g FS,paging,I/O,...etc),in other side not even complete implementation of string.h,

...,in other word "newbei's lib"

CheerS,
a.T.d
Why is what the library doesn't do relevant? If you didn't use the library you wouldn't have FS, paging or I/O functions either, so how can the absence of such functions be deemed a flaw?
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

Re: OSkit ?

Post by i586coder »

YO!
JamesM wrote: so how can the absence of such functions be deemed a flaw?
not exactly , if we talking about library for OS, that mean library should contain such functions


CheerS,
a.T.d
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Re: OSkit ?

Post by Craze Frog »

I just created the world's best OS ever. It's 0 bytes and does nothing.
quok
Member
Member
Posts: 490
Joined: Wed Oct 18, 2006 10:43 pm
Location: Kansas City, KS, USA

Re: OSkit ?

Post by quok »

Combuster wrote:If you have criticism, please let it be constructive rather than this kind of derogatory remarks, thanks.
While I'm pretty sure you were replying to this post:
i586coder wrote:I've never been used OSkit's before,but i downloaded LibOSdk,it's very poor library to develop an OS, even rubbish OS :!: ...
It'd have been nice if you quoted the post you were replying to just so my ego wouldn't be unneccessarily hurt in the cross-fire. :wink:
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: OSkit ?

Post by quanganht »

Even it is rubbish, I will give it a try. Don't know if I can found something interesting :)
"Programmers are tools for converting caffeine into code."
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: OSkit ?

Post by quanganht »

Yeah. After some minutes 'researching', I can say LibOSdk is surely a piece of rubish. OSkit is 1000 times better !
"Programmers are tools for converting caffeine into code."
User avatar
babylon2233
Member
Member
Posts: 66
Joined: Fri May 23, 2008 5:30 pm
Location: Malaysia

Re: OSkit ?

Post by babylon2233 »

quanganht wrote:Yeah. After some minutes 'researching', I can say LibOSdk is surely a piece of rubish. OSkit is 1000 times better !
If LibOSDK is rubbish then what your OS is? :roll:
quok
Member
Member
Posts: 490
Joined: Wed Oct 18, 2006 10:43 pm
Location: Kansas City, KS, USA

Re: OSkit ?

Post by quok »

quanganht wrote:Yeah. After some minutes 'researching', I can say LibOSdk is surely a piece of rubish. OSkit is 1000 times better !
As Combuster said before -- if you have criticism, let it be constructive rather than (extermely vague) derogatory remarks.

LibOSDK isn't nearly as complete as oskit, sure, and it's limited to i386 only. But as a project it is also a lot newer than the oskit, and it (unlike oskit) is still maintained.
i586coder wrote:The library does not contain the basic functions of the operating system (e.g FS,paging,I/O,...etc),in other side not even complete implementation of string.h,
I just had a look at libOSDK, mostly because it seems I have nothing better to do than post rebuttals on here tonight (I have to get my post count up somehow). It seems you're wrong in that libOSDK actually does support paging. Take a look at i386/paging.s in the source.

I don't think that libOSDK has to (or even should) offer functions to cover filesystems and I/O. There's many filesystems out there. If it offered one or two implementations, would you call it 'rubbish' if neither of the offered filesystems happened to be your favorite?

Along those lines, why should a library that aims to be an Operating System Development Kit offer a complete implementation of string.h, which is a function in the C Standard Library? Yes, you may need a minimal C lib in your kernel environment, but a library that focuses on offering cpu-specific functions like libOSDK shouldn't necessarily have to also provide glibc! Not everyone needs to use all of string.h in their kernel; I certainly don't. Also, just because a nearly compete C lib is included in oskit is no reason for libosdk to do the same.

If you want to use string.h in your kernel code, go write your own implementation. It's not tough. Or you could use Solar's excellent PDCLIB or borrow it from one of the BSDs.
i586coder wrote:...,in other word "newbei's lib"
Typos aside, I fail to see how either libosdk or even OSkit could be called a "newbie's lib." While I personally wouldn't use either one, I have thought about starting my own project that would provide something similar. Newbies may use these libs to get them going, but more advanced people who just want to write a network stack, for instance, could also these libs. Sure, they could also take the source code of linux or openbsd and write their network stack there, but both of those codebases have huge learning curves, while that of the OSKit is fairly clean and easy to understand.

My only gripes about libosdk are that it is written entirely in assembly (excluding the example OSes) and there are virtually no comments in the source. I was pleasantly surprised to see an example written in Pascal though, and it seems that eventually there's plans for an example written in basic as well.
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: OSkit ?

Post by quanganht »

My faults. :oops: Somehow, when I extract the zipped file, some files are missed. But ".s" ? :? Relying on Asm is not good. Pure C code will be much easier to understand and maintain, without platform dependent. And OSkit provide much more modules and libs.
"Programmers are tools for converting caffeine into code."
Post Reply