Contributed by jose on from the improve-your-code dept.
(Comments are closed)
OpenBSD Journal
Contributed by jose on from the improve-your-code dept.
(Comments are closed)
Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]
By code monkey () on
I maintain applications for a software company, and am always on the look-out for ways to program defensively. I know I'm weakest in this regard, but I've yet to find a good reference that I can use while in the thick of code trying to track down a bug.
O'Rielly books have made me very smrt (Homerism intended) over the years. I will definitely check out this title when I see it at my local computer bookstore.
Comments
By fansipans () on
--cheers
mike
By mpatterson () pattersonmarkANTI@SPAMoptusnet.com.au on mailto:pattersonmarkANTI@SPAMoptusnet.com.au
Comments
By jose () on http://monkey.org/~jose/
the option of rewriting all or much of OpenBSD in a language (say, a typesafe language like Cyclone or C#, and hopefully you're not the "rewrite OpenBSD in Java!" guy) is impossible to do reasonably. think about it for a bit. low level material in the kernel will have to be in assembly, and most of the kernel will probably still be in C. so then you start rewriting the userland in this new lanaguage. so you have two sets of libraries, two compilers, etc ... two of everything for some forseeable future. now you have an entirely new codebase ... which probably has more errors than what you started with way back at OpenBSD 2.0.
i'm all for doing it right, and i'm all in favor of people exploring these other lanaguages. i'd love to see some migrations to languages with safer semantics and built-ins, but it's just not a reality. for the time being the best solution is to take what we have any to use it as best we can.
Comments
By Jeffrey () on
I like the message you posted to ports@ about
'typesafe languages'. I haven't had a chance
to look yet, but I'm gonna have a look at
Cyclone for sure (probably today in fact).
I only have done some relatively simple C programs,
but I must say that I am somewhat surprised at how
difficult it can actually be to do correctly.
But hey, each day you learn a little more... =)
Good docs are a must .. man pages are my favourite
resource, but perhaps some of these books would be
useful. Definitely worth exploration...
Comments
By Anonymous Coward () on
a language called OCaml that a friend was
extolling the virtues of, namely that it was
a typesafe language, primarily functional but
with imperative and OO elements, that compiled
to native binary format... Of course, I don't know
if OCaml is self-hosting or not, but it would be
a pretty rad idea to implement a very secure
OS built on a functional language with typesafety.
Comments
By Anonymous Coward () on
its very nice ....
By mpatterson () pattersonmarkANTI@SPAMoptusnet.com.au on mailto:pattersonmarkANTI@SPAMoptusnet.com.au
I was keen on Ada a while ago, but it seems to have languished. Personally, I think the OS world needs a new language, sort of Ada done right, with more wisdom and OOPS experience applied to its design. An OS needs maximum efficiency and maximum reliability. The language use makes a big difference.
By Anonymous Coward () on