[talk] NYC*BUG Upcoming

Isaac (.ike) Levy ike at blackskyresearch.net
Mon Aug 24 23:13:24 EDT 2015


Wow,

On 08/23/15 21:04, George Rosamond wrote:
> Some new BSD hackers are in town, and they import an event they have
> held in Scandinavia.  We were excited to hear about the meeting content
> and form, and are happy to get the word out to the NYC*BUG lists:
> 
> The search for truth: the `true` and `false` programs
> 
> August 24, 7:00 PM
> thoughtbot, 1384 Broadway 20th Floor, New York, NY (map)
> 
> This meetup will concentrate on simple and common commands: true and
> false. We will start with the OpenBSD true program and compare it to
> FreeBSD's, Solaris', GNU bash's, and GNU's. They all have different
> complexity, and some even have different features, which should provide
> for an interesting discussion.
> 
> See the Meetup page for more details:
> 

OMG folks come out next month...

> http://www.meetup.com/Classical-Code-Reading-Group-of-New-York/events/224744308/

So I just got home from this and was blown away, Mike B. (with the help
of George B.) put together an excellent evening.  I was the only NYC*BUG
regular in attendance, (though some folks there had been to NYC*BUG
meetings before).

That was seriously a great time- come out next month folks!

For fun, you can read what we read tonight as well - true and false...

--
While reading the code consider the following discussion points in
addition to any you think of: What is the code boilerplate and why is it
there? This is a small program; how did the different implementations
demonstrate this? Why does this program exist? What shortcuts did they
take and how do those make it easier to read?

For those who don't yet have five variants of true.c on your hard disk,
you can find them online:

OpenBSD:

-
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/true/true.sh?rev=1.2&content-type=text/x-cvsweb-markup

-
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/false/false.sh?rev=1.2&content-type=text/x-cvsweb-markup

FreeBSD:

-
http://svnweb.freebsd.org/base/head/usr.bin/true/true.c?revision=216370&view=markup

-
http://svnweb.freebsd.org/base/head/usr.bin/false/false.c?revision=216370&view=markup

Solaris:

-
https://github.com/illumos/illumos-gate/blob/master/usr/src/cmd/true/true.c

-
https://github.com/illumos/illumos-gate/blob/master/usr/src/cmd/false/false.c

GNU Bash:

-
https://raw.githubusercontent.com/bminor/bash/master/examples/loadables/truefalse.c

GNU:

- http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/true.c

- http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/false.c

--


Best,
.ike




More information about the talk mailing list