DaemonForums  

Go Back   DaemonForums > Other Operating Systems > Other BSD and UNIX/UNIX-like

Other BSD and UNIX/UNIX-like Any other flavour of BSD or UNIX that does not have a section of its own.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th November 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default Comparison of Code Quality

O.K. - this will probably be subjective as all else - but, which *BSD (FreeBSD vs. OpenBSD vs. NetBSD vs. etc.) has the best quality of code in their source base.

For me in this thread, I define code quality as

1) free of bugs and errors
2) no security holes
3) efficiency of design (i.e., CPU and memory usage, etc.)
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
  #2   (View Single Post)  
Old 27th November 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

I can't decide if this is a troll or not.. #1 and #2 are just ridiculous.. #3 will always be speculative.
Reply With Quote
  #3   (View Single Post)  
Old 27th November 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

Troll no, but probably young.


For my point of view: code should be robust, understandable, and maintainable -> that's what I consider code quality. One of the best bits of advice I ever read amounts to: all large programs will have many bugs, the question is how hard they are to kill [on account of your system].
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #4   (View Single Post)  
Old 27th November 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Quote:
Originally Posted by JMJ_coder View Post
O.K. - this will probably be subjective as all else - but, which *BSD (FreeBSD vs. OpenBSD vs. NetBSD vs. etc.) has the best quality of code in their source base.

For me in this thread, I define code quality as

1) free of bugs and errors
2) no security holes
3) efficiency of design (i.e., CPU and memory usage, etc.)
1) NetBSD
2) OpenBSD
3) FreeBSD

Like that

BSDs on the left while Linux on the right side:

__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #5   (View Single Post)  
Old 27th November 2008
anemos's Avatar
anemos anemos is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Ελλάδα
Posts: 53
Thanked 5 Times in 5 Posts
Default

Quote:
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live
There is a book which is certainly in my todo (|toread) list.
The author is a FreeBSD commiter.
Reply With Quote
  #6   (View Single Post)  
Old 27th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Read Unix philosophy
Reply With Quote
  #7   (View Single Post)  
Old 28th November 2008
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Thanked 9 Times in 8 Posts
Default

To be sure,

#1 = netBSD.

I'm conflicted wrt awarding positions 2 vs. 3.

Using the suggested criteria, then

#2 = openBSD
#3 = freeBSD.

I'd like to award points for native-to-their-project's innovation, and the intrinsic risks to the code-quality-criteria in doing so, then,

#2a = dragonflyBSD,
#2b = freeBSD,
#3 = openBSD.

/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote
  #8   (View Single Post)  
Old 3rd December 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
I can't decide if this is a troll or not.. #1 and #2 are just ridiculous.. #3 will always be speculative.
I warned from the start that this would most likely be subjective as all - but I like to get other people's opinions on such topics - I'm quirky like that.
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
  #9   (View Single Post)  
Old 3rd December 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default

Quote:
Originally Posted by anemos View Post
There is a book which is certainly in my todo (|toread) list.
The author is a FreeBSD commiter.
It's on my bookshelf - but I can't read every book I have instantly. It takes a while for books to be processed in my reading queue; especially when work and school takes priority on such reading assignments during the semester.
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
Old 3rd December 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default

Quote:
Originally Posted by s2scott View Post
To be sure,

#1 = netBSD.

I'm conflicted wrt awarding positions 2 vs. 3.

Using the suggested criteria, then

#2 = openBSD
#3 = freeBSD.

I'd like to award points for native-to-their-project's innovation, and the intrinsic risks to the code-quality-criteria in doing so, then,

#2a = dragonflyBSD,
#2b = freeBSD,
#3 = openBSD.

/S
Thanks. I always had the thought (completely subjective) that NetBSD was the best BSD - codewise. I certainly find it better for me than FreeBSD. I never was able to test it against OpenBSD, because when I was testing them a couple years back, OpenBSD did provide ISO's - something I see they now provide (yipee!). So I am about to install OpenBSD and give it a whirl.
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
Old 10th April 2009
guerrier-cachalot guerrier-cachalot is offline
New User
 
Join Date: Apr 2009
Posts: 3
Thanked 0 Times in 0 Posts
Default

opensolaris ;-)
Reply With Quote
Old 10th April 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

OpenSolaris is not a *BSD.
Reply With Quote
Old 11th April 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

if memory serves [classic] SunOS was BSD based, [traditional] Solaris is SVR4 based. While BSD began on a AT&T UNIX base, and System V always had a little bit of code lifted from the Berkeley distribution making its way into the family tree.


Occasional pissing contests and legal issues about pedigrees aside, of course.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 11th April 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

That's basically right. Some Berkeley code dribbled into SysVR4, but it is an AT&T product and codebase.

OpenSolaris is a modern SVR4, so it is no *BSD, which was my point.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Obfuscated Code JMJ_coder Programming 14 5th November 2009 05:00 PM
Quality and Backwards Compatibility of GNU Tools ... vermaden Off-Topic 1 12th May 2009 08:25 PM
Source code for ed? matt FreeBSD Ports and Packages 1 21st October 2008 08:18 PM
Compiling OpenBSD code WeakSauceIII OpenBSD General 4 19th May 2008 12:59 AM


All times are GMT. The time now is 06:40 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick