OSDev Tutorial License

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
inixsoftware
Member
Member
Posts: 32
Joined: Fri Jan 31, 2014 8:21 am

OSDev Tutorial License

Post by inixsoftware »

I have been borrowing & adapting OSDev tutorial code, and I'm wondering how the tutorial code is licensed (GPL, LGPL, Public Domain, etc) as so to comply to it and heed to the license when I release my own source code (and complied code).

Thanks!
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: OSDev Tutorial License

Post by sortie »

The code on wiki.osdev.ofg is CC0 unless specified otherwise. In fact, nobody will really care if you copy snippets off the wiki.
inixsoftware
Member
Member
Posts: 32
Joined: Fri Jan 31, 2014 8:21 am

Re: OSDev Tutorial License

Post by inixsoftware »

Thanks!
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: OSDev Tutorial License

Post by bluemoon »

As a side note, codes from tutorials are for learning purpose, it is very likely not suitable for any serious work.
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: OSDev Tutorial License

Post by neon »

I have been borrowing & adapting OSDev tutorial code
That is a bad habit to be dropped ASAP. That type of thing might work well for some other projects, but I assure you that it does not work well for OS development. There is always a threshold; a point of no return; when you will have to be completely self reliant. And if you don't understand your own code very well (you don't from copying and pasting) you won't stand a chance.

Copying and pasting code does not even guarantee that the code you copied is valid or correct, even if it appears to work on some machines.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: OSDev Tutorial License

Post by sortie »

Indeed. It's also worth remembering that when you copy code, even if it is correct and you understand it, it might not be good code. I'm still removing the last pieces of bad tutorial code from my OS, going on for the third year.
inixsoftware
Member
Member
Posts: 32
Joined: Fri Jan 31, 2014 8:21 am

Re: OSDev Tutorial License

Post by inixsoftware »

Yes, I do understand that. I just copied some code to start off (e.g. bare bones tutorial), but don't intend on making my OS 100% based off of tutorials & copied code (as there are many possible issues as mentioned before)
Post Reply