Code Samples

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Code Samples

Post by pcmattman »

What's the go with code samples on the Wiki... I know there's a lot of things that can be really confusing without code on the Wiki and it would be nice if there was the availability of code on the wiki for assistance. I'd be happy to donate parts of my code to assist.
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:

Post by Combuster »

If you think it will improve the wiki, i suggest you go ahead.

You may also want to read on http://www.osdev.org/wiki/User:Combuste ... tyle_draft
"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 ]
ehird
Member
Member
Posts: 214
Joined: Thu Mar 15, 2007 8:48 am

Post by ehird »

combuster: [[:Category:blah]] for non-adding category links.
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:

Post by Combuster »

ehird wrote:combuster: [[:Category:blah]] for non-adding category links.
I know very well what that does - what is your point?
"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
~
Member
Member
Posts: 1227
Joined: Tue Mar 06, 2007 11:17 am
Libera.chat IRC: ArcheFire

Post by ~ »

Maybe it would be good to start creating a temporary subsection that would contain all external exemplary code (like from osdever.net) and work formally on own code in the rest of the place; this could help to have an extensive mirror to code samples nearby.
draggy
Posts: 9
Joined: Wed Feb 23, 2005 12:00 am

Post by draggy »

agreed.... Need some serious tutorial :D
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

I just wrote a tutorial for porting newlib here
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

pcmattman wrote:I just wrote a tutorial for porting newlib here
It's a bit vague, but it's a bit more "descriptive" then most of the guides available..

Still, that page could use a few cleanups.. possible rewording.. and a list of files you "added" and/or modified ;-)

Nice work though.... :wink: (If only it was easier to port one of the BSD C libraries :D)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

Brynet-Inc wrote:
pcmattman wrote:I just wrote a tutorial for porting newlib here
It's a bit vague, but it's a bit more "descriptive" then most of the guides available..

Still, that page could use a few cleanups.. possible rewording.. and a list of files you "added" and/or modified ;-)

Nice work though.... :wink: (If only it was easier to port one of the BSD C libraries :D)
If I had have found this tutorial I would have been reasonably happy with it. I leave a lot up to the person reading it to understand - I prefer not to spoon feed a reader.

And yes, more descriptive, thanks to my unfortunate experiences during the past week...
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

Great tutorial. As to my knowledge, I don't believe the wiki has a section for libraries at all. (There's mention of it, but it's somewhat generic.) It could fit in tutorials, however.

I would be more interesting in creating a library section. That way we could have more articles about porting the different libraries, general information about them, etc. Kind of like we have Executable formats and Compilers.
C8H10N4O2 | #446691 | Trust the nodes.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

If it's possible could someone move it from my user page into a different place where it is more suited? I don't quite know where to put it :D, but I'm sure my user page is not the best place for it.
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

Done. However, I think a section on Libraries still needs to be addressed.
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

I just made a few changes to make it fit better..

Welcome to change it back if it looks bad though.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply