"I have a mind like a steel... uh... thingy." Patrick Logan's weblog.

Search This Blog

Friday, July 22, 2011

Kotlin == Harry Potter, Scala == LoTR?

kotlin is a new JVM language, from JetBrains. To understand my title, you may want to read a comparison with Scala from the Kotlin perspective, and some of the discussion taking place in the Scala community.

Perhaps since I recently saw the final Harry Potter movie, the title of this post came immediately to mind. Harry Potter appears to me to be a fun story, whose details exist mainly to support that story. For example, characters seem to have the abilities they require to meet a specific challenge.

On the other hand, the characters in Middle Earth seem be situated in a world that has its own physics. The stories are based on that world, those characters, and the given physics. My understanding is that this is the intention and the process taken to write the books.

Arguably, Harry Potter is far simpler than LoTR. But, arguably, Harry Potter has less to offer than LoTR.

Ten years ago this analogy could have been (and was, essentially) made between Java and Smalltalk. Ten years before *that* the argument had been made between C++ and Smalltalk.

Java is not "pure". Java is in essence Smalltalk but with the "magic" its authors deemed necessary to make Java more successful.

Harry's world is not pure. Middle Earth is (minus some of the complications that can also be found in Smalltalk and Scala.)

Kotlin is a big improvement over Java, but it is merely Java minus some cruft, plus enough magic to be useful in 2011. Scala on the other hand has its own physics that makes sense, and provides for a more rich future than Kotlin.

Hmmm. Just thinking...

Saturday, April 09, 2011

Implementing McCarthy's AMB Operator in Javascript Using a Trampoline

John McCarthy in 1963 wrote about his "AMB" operator for making nondeterministic choices. ("A Basis for a Mathematical Theory of Computation", PDF) AMB is also explained in detail in the (free, online) book Structure and Interpretation of Computer Programs.

AMB provides nondeterministic choices with backtracking in the case of failure. This is one of the major components of logic programming, with unification being the other major component. But AMB is useful even without unification. For example AMB makes it easy to collect all permutations of mutliple choices and to generate selective permutations. (Remember writing permutations as a beginning programmer? Yeah - you probably wish you had been taught AMB ahead of that.)

The SICP book uses Scheme for AMB. Scheme makes this easy, using call/cc and macros. And Common Lisp makes this manageable and pretty using macros. Javascript should not be too bad either - no continuations, no macros, but first-class functions help.

Mihai Bazon recently provided an implementations of AMB in Javascript. (Along with some great examples of using AMB, for example to implement N-Queens and Map Coloring).

Implementing AMB benefits from first-class functions, but they are not necessary. Some mechanism for a dynamic escape is needed. In C this is setjump/longjump. In Javascript (and many other languages) this is throw/catch. C does not have first-class functions, so that part gets ugly. Javascript though is a semi-functional language with first-class functions.

Rather than throw/catch, another versatile way to implement control structures with dynamic extent is to use a trampoline. A few weeks ago I wrote here about NCONC, the core of a Scheme interpreter written in Javascript using a "trampoline" for tail-recursion efficiency as well as for first class continuations.

The project ambjs is an implementation of AMB I wrote in Javascript using a trampoline. The source and the tests are explained using docco.

Using trampolines for dynamic-extent control structures can be cleaner, and they can provide more control options. In the case of AMB this implementation exposes fewer mechanisms than Mihai's, the nesting of AMBs is more apparent (to me), and there are fewer rules to be obeyed (and so fewer opportunities for bugs).

Tuesday, April 05, 2011

Moby Grape on the Mike Douglas Show

The video is not perfect, and the sound is not a lot better, but Moby Grape plays a couple of really good songs on the Mike Douglas Show. And it looks like they're having fun being there.

Sunday, April 03, 2011

I Have Monkeys In My Clouds

I took advantage of Amazon's offer for a year of 20GB free Cloud Drive storage by purchasing an album stored directly into the cloud. So far I am happy using the Cloud Player from linux, mac, and android. And I am v.happy uploading tons of music that had been spread over several machines and largely unsync'd together in a playable fashion.

The album I purchased to enable the additional storage is The Monkeys, "Head".

The Monkeys started as a TV show, and most of their work was produced and marketed as such. But they did have some talent, and fought, and broke through occasionally as a group that could sing and perform. On "Head" they reflect on their origins.

Hey, hey, we're The Monkeys
...
The money's in, we're made of tin
We're here to give you more!
"Head" is a movie starring The Monkeys and produced by Jack Nicholson. The music is a soundtrack and a really good album in its own right. It's no more dated than the best music from the late 60s, and it's more fresh because it hasn't been overplayed. Or even played.

Saturday, April 02, 2011

Practical Common Lisp

I am reposting this from February 24, 2005 - given my renewed interest in Common Lisp. It has been 22 years since programming in CL professionally. I have brought up a CL implementation several times in between, but never to do much of anything real. Most of my Lisping over these years has been in various Scheme dialects.

I love Scheme and some great Scheme implementations like Gambit. I may not have given up on Scheme forever, but... After all these years the Scheme standard is a kernel and there's not much in the way of a portable registry of libraries.

There are several commercial and free Common Lisp implementations of very good quality. And an apparently long list of portable libraries. I've only recently tried Steel Bank Common Lisp (derived from CMU CL, which was first implemented in the early 1980s), but my impression is that any of these high-quality CL implementations is as good a choice as ever. Nothing like Java's base of software, but rich enough to keep exploring nevertheless.

What about Clojure? I've used Clojure a bit over the last couple of years. Clojure is great, and has access to Java's libraries. However I recently gave up the JVM for Lent. Really I'm just stepping away from the Java platform to see what other things can do. For exploring and fun I felt the need to step away at least temporarily from all the Java-based bits and pieces. I am not really missing anything so far.

I am happy to move around. There are a lot of good options in the wide web world. One dream not quite yet fulfilled is a world where all these languages can get along with extreme ease. (And by that I do *not* mean "running in the same virtual machine".) They can each get along fairly well with Javascript, running on a server and talking over HTTP. They can get along with each other modestly using JSON or XML, one as the HTTP client, another as the HTTP server. Better than ever, but the difficulties mount rapidly beyond this simple case.

Oh yeah, I digress. Here's that repost from 2005:

As seen on Lemonodor...

The book Practical Common Lisp shows the power of Lisp not only in the areas that it has traditionally been noted for—such as developing a complete unit test framework in only 26 lines of code but also in new areas such as parsing binary MP3 files, building a Web application for browsing a collection of songs, and streaming audio over the Web. Many readers will be surprised that Lisp allows you to do all this with conciseness similar to scripting languages such as Python, efficiency similar to C++, and unparalleled flexibility in designing your own language extensions.

Using SPARQL endpoints and 4store RDF databases from Common Lisp

Jeni Tennison posted an interesting article using the 4store for RDF databases from Ruby. This was an experiment to see how close one can get to meeting a challenge from Richard Pope. The challenge puts forth criteria for a set of easy-to-use "linked data" programming tools.

I have duplicated the essence of the ruby/4store demonstration, using common lisp. Mainly because I like programming in various lisp dialects, I want to explore using 4store, and I recently decided to pick up common lisp again after, for all intents and purposes, a 20 year hiatus from that particular dialect.

The source and sample data is on github at https://github.com/patrickdlogan/sbcl-4store

These are just some examples that a reusable package could be based on. The code in workspace.lisp includes instructions for installing 4store on ubuntu, installing Steel Bank Common Lisp, and using the quicklisp system (think ruby gems) for finding and installing useful libraries.

Several functions are defined showing quickly how to load, query, and process RDF data. Two primary functions and their results are listed here:

The function extract-rdfs-classes performs a SPARQL "select" query to select all of the RDFS classes from the sample data. Note: these are not 'object-oriented classes', rather an RDFS class is more like the identifier of a logical "set" of members which are themselves identifiers.

The SPARQL query is:

prefix rdf: 
prefix rdfs: 
select distinct ?type 
where { 
  ?x a ?type .
} 
order by ?type
And running it from the lisp REPL:
* (extract-rdfs-classes)

("http://purl.org/linked-data/cube#DataSet"
"http://purl.org/linked-data/cube#DataStructureDefinition"
"http://purl.org/linked-data/cube#Observation"
"http://purl.org/net/opmv/ns#Artifact" "http://purl.org/net/opmv/ns#Process"
"http://purl.org/net/opmv/types/google-refine#OperationDescription"
"http://purl.org/net/opmv/types/google-refine#Process"
"http://purl.org/net/opmv/types/google-refine#Project"
"http://rdfs.org/ns/void#Dataset"
"http://reference.data.gov.uk/def/central-government/AssistantParliamentaryCounsel"
"http://reference.data.gov.uk/def/central-government/CivilServicePost"
"http://reference.data.gov.uk/def/central-government/Department"
"http://reference.data.gov.uk/def/central-government/DeputyDirector"
...
The function extract-persons performs a SPARQL "construct" query to construct a graph of FOAF Person instances along with their FOAF names and other triples having the instance as the subject.

The SPARQL query is:

prefix foaf: 
construct {
  ?person 
    a foaf:Person ;
    foaf:name ?name ;
    ?prop ?value .
} where { 
  ?person a foaf:Person ;
  foaf:name ?name ;
  ?prop ?value .                        
}
And running it from the lisp REPL:
* (extract-persons)

(("http://source.data.gov.uk/data/reference/organogram-co/2010-10-31#person189"
  "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  "http://xmlns.com/foaf/0.1/Person")
 ("http://source.data.gov.uk/data/reference/organogram-co/2010-10-31#person189"
  "http://xmlns.com/foaf/0.1/name" #<"Philip Davies"@en>)
 ("http://source.data.gov.uk/data/reference/organogram-co/2010-10-31#person189"
  "http://reference.data.gov.uk/def/central-government/holdsPost"
  "http://reference.data.gov.uk/id/department/co/post/190")
 ("http://source.data.gov.uk/data/reference/organogram-co/2010-10-31#person189"
  "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  "http://xmlns.com/foaf/0.1/Person")
 ("http://source.data.gov.uk/data/reference/organogram-co/2010-10-31#person189"
  "http://xmlns.com/foaf/0.1/name" #<"Philip Davies"@en>)
 ("http://source.data.gov.uk/data/reference/organogram-co/2010-10-31#person189"
  "http://xmlns.com/foaf/0.1/mbox"
  "mailto:philip.j.davies@cabinet-office.x.gsi.gov.uk")
 ("http://source.data.gov.uk/data/reference/organogram-co/2010-10-31#person189"
  "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  "http://xmlns.com/foaf/0.1/Person")
...

Bill Hicks

Netflix now has four "watch instantly" shows regarding Bill Hicks. Three standups and one posthumous documentary.

Youtube has a number of videos too, including a good portion of the posthumous documentary, and the 2009 Late Show With David Letterman with Bill Hicks' mother. The Late Show decided to censor Hicks' October 1993 appearance.

The following February, Hicks died of pancreatic cancer in his early 30's. Letterman had his mother on in 2009, regretted the censorship and the additional pain it caused in Hicks' last months, then aired the censored performance. Letterman had had Hicks on a dozen times, on his previous 12:30am NBC show.

(Aside: I also recall Letterman had an episode at 12:30am in the 1980s where, during the course of the hour, the broadcast rotated once around the center of the screen. i.e. at 1:00am the show was upside down. An ongoing theme originally was the absurdity of television. There were many ways the show was "toned down" for the 11:30pm slot.)

There are a handful of social critics/satirists/comedians I continue to rate high my the list:

I'd have to put the Pythons on the list too, from my early teens and their series showing up on PBS, waiting each week for the next one, trying to memorize as much as possible in the half-hour. I didn't really recognize the Pythons or Carlin as social critics at the time. And Andy Kaufman, in his own way. More recently, Bill Maher and probably Eddie Izzard.

Hicks and I were born the same year. I wonder where he'd have gone over the last 17 years. He was pretty far out on the edge back then, and he didn't seem to hold anything back.

"It's just a ride... a choice right now, between fear and love." -Bill Hicks

Common Lisp libraries and Quicklisp

I made a modest donation to quicklisp, a very handy hosted-library system for common lisp. (Think of ruby gems and clojure's clojars) Quicklisp is fairly new, but already worth using at very low effort.

One thing that strikes me about common lisp libraries, beyond quicklisp per se, is the number of libraries available. I've been away from common lisp for all intents and purposes since 1989. The total number of libraries, and the number of library alternatives in any one feature area, are nowhere near those for the currently popular languages like java, ruby, or python. However I am impressed at the ease I've had finding what I am looking for, and then installing and using these libraries with ease.

I can simply say my recently renewed engagement with common lisp has been more than satisfactory on this front, and others I'll write about later.

Thursday, March 31, 2011

Richard Stallman at Portland State - April 7

Richard Stallman will be speaking at Portland State University next Thursday (April 7th) at 7:30.

Details are now on caligator:

http://calagator.org/events/1250460423

Friday, March 25, 2011

Building and Running 4store on Ubuntu 10.10

Note to self, if no one else: it's not immediately obvious, but time-saving to know, that 4store 1.1.2 will build with raptor 2.0.2 and rasqal 0.9.25.

All the other dependencies are available as packages on Ubuntu 10.10.

Upon building and installing raptor and rasqal, it is also not immediately obvious, but you might have to run sudo ldconfig for those shared libs to be found by 4store.

Starting the sparql http server includes one strange message in its output, something like:

4store[31919]: 4s-client.c:129 kb=sample getaddrinfo failed for “fe80::21e:64ff:fe2b:f42%wlan0” with error: Address family for hostname not supported

This probably is related to 4store using avahi to perform dynamic discoveries. Running 4store on a single machine, with a single store, this does not seem to be a problem. (Although I don't want to ignore this for long... so if you have any information...)

Wednesday, March 16, 2011

Bouncing Back

Over the years whenever I've wanted to learn a new programming language, the first significant application I've tried is a Scheme interpreter. Many (most?) Scheme interpreters on the web don't implement call-with-current-continuation and often do not handle tail calls well (i.e. they blow the implementation language's stack).

It's not hard to implement these things using simple mechanisms, but the simple mechanisms are not widely known. And as it happens, implementing these two very mechanisms tell you a lot about the implementation language. (Primarily because most languages have neither, and most languages do not have closures, and so you have to go to widely varying lengths to implement these two things.)

I've wanted to try out Javascript on a "significant" application. So below is a link to NCONC, which uses "trampoline style" to trampoline a "continuation-passing style" interpreter written in Javascript. I have a reasonable start on docco-style comments which I will put up asap. I presented this at pdxfunc last Monday and will use my memory of that to write more. 8^D

Note since I have only put in (parts of) a couple of weekends, and my only interest has been illustrating trampolines and call-with-current-continuation, you will not yet find more than a handful of implemented standard procedures. (Enough to run some tests.) And you will not find display so no printing yet. Oh, and no macros yet! But you do have call/cc.

https://github.com/patrickdlogan/nconc

Suggestions for better Javascript style are welcome too. I have a few in mind already, but people wanted to see the code. So.

Saturday, March 12, 2011

Node.js and the Javascript Tools Ecosystem

I recently have been picking up some javascript tools to test the waters of "serious" programming in that language (browser-side or otherwise). Although I've not used node.js yet for application development, it curiously shows up in several javascript-based shell tools.

And it works fine so far. My initial impression was, "Why use a web server to run shell tools?" But, e.g. docco installed perfectly using node.js and npm.

Being a skeptic, I first tried pycco, a a similar tool but more traditionally installed pythonically. Something wasn't right and it didn't run. This is just one, unfair, data point. But it was a reassuring experience that javascript tools are showing up and working fine.

Another javascript tool installed and run using node.js and npm is PEG.js, a parser generator based on, well, PEGs (parsing expression grammars).

These tools run fine, and I'm thinking they startup much more quickly than the java-based rhino javascript runtime tools. I've not bothered to investigate though.

Wednesday, November 10, 2010

This is not the one: On Lisp

This is not the post I'm going to write, but it is the one I'm writing.

I recently saw a tweet that reads something like, "Nice presentation on Clojure, but any language where you write 1 + 2 as (+ 1 2) is not for me." Fair enough. I won't hold it against you if you share that sentiment.

What about a language where you write 1 + 2 + 3 + ... + 1000 as:

(apply + (take 1000 (iterate inc 1)))
Lisp may seem foreign at first. And looking at a small expression in your language compared to the same in lisp may turn you off lisp forever. Fair enough.

Maybe your language has something equally as expressive. Fair enough.

But lisp is more than prefixes and parentheses, and you may want to dig deeper into the benefits of all of lisp's characteristics. Fair enough if you don't.

Tuesday, November 09, 2010

Is This Thing On?

Hi! (Insert animated gif of that guy digging. "Under Construction" - I'm working on a new blog post...)

Monday, June 08, 2009

Jobs of the Not-Steve Kind

An interesting graph of jobs related to some relatively hot programming language...

David Gelernter re: programming for/with clouds, etc.

"the reason why our approach was considered radical and strange in the
1980's was the so-called Tuple Space Model — the idea being that if
you had a lot of computing agents who needed to communicate, instead
of sending messages to each other, essentially like e-mail, if I had
information for someone, I'd just write it on a piece of datum and
release it and it would just float up into the cybersphere. If I
needed information, I'd look around, grab whatever I want, I would
read it or, if it were a task to be done, I'd grab it so nobody else
could grab it. "
-David Gelernter

http://www.edge.org/3rd_culture/gelernter09/gelernter09_index.html

(still beats the pants off all that crap we call integration
technology today. -me)

Friday, June 05, 2009

On Clojure, Testing the Implementation, and Protecting Your Investment

Over on the Object Mentor blog, Dean Wampler writes about the Clojure
programming language and the designer's stand on testing the
implementation. Dean writes that...

"TDD provides two important benefits
* Driving the design.
* Building a suite of automated regression tests. "

But another important benefit of a good collection of tests is communication.

Clojure is a fine Lisp in many ways. I personally would hesitate to
use it for anything in which I had a significant investment given the
maintainer's stand on testing. At least not without a good deal of
evidence that Clojure will continue to be maintainable and understood
(at the implementation level in particular) by more than one person.

Maybe his approach will work over a long period of time, and for a
user community that will rely on Clojure for many heavy-duty, valuable
production uses. I cannot say that it won't.

I can only say that for _me_ this would be a significant reason to
hesitate before taking too significant of a plunge.

And that's saying something because I am a veteran of programming in
various Lisps for 29 years, and Lisp generally is my favorite
language. I love that Clojure has rejuvenated interest in Lisp.

http://blog.objectmentor.com/articles/2009/06/05/rich-hickey-on-testing

Monday, May 18, 2009

TriSano: "Best Project for Government"

Click on this badge to vote for TriSano for "Best Project for Government"...

Friday, April 10, 2009

XPDX April: Bugs Do Not Exist

This month's http://xpdx.org meeting...

http://calagator.org/events/1250456971

Chris Sterling and Michael Tardiff are coming to Portland and will be
running April's XPDX session:

"We know about items on the product backlog, and getting them to
"Done." We know about impediments, and removing them as soon as
possible. And agile methods lead us toward shipping software with zero
defects, we hope. But bugs remain, for now, and we think of and treat
them quite differently from stories, tasks, and other work
items—perhaps to our, and our project's, detriment.
Buy why? We need your help finding an answer, or posing better questions.

In this interactive session, we'll explore the wealth of thoughts,
opinions, and especially the strong feelings behind the things we call
bugs."

>>> Pizza is sponsored by YesMail <<<

Pizza arrives at 6:30pm, the session starts at 7pm, and at 9pm we move
on to a local bar.

CHIFOO: Workshop: Interaction Design & Agile Development Techniques

From the xpportland yahoo group...

"Jeff Patton is giving a one-day workshop on user-centered design and
agile methods, organized by CHIFOO. The notice is below, in case
you're interested."
-Arlo


Come join the Computer Human Interaction Forum of Oregon (CHIFOO) for
a full-day workshop with two leading UX designers and Agile
Practictioners...

All Together Now: Blending Interaction Design and Agile Development Techniques

Lane Halley and Jeff Patton will lead a fast-paced day of fun and
learning. Through a combination of lecture and hands-on exercises, you
will increase your understanding of both User-Centered Design (UCD)
and Agile methods and gain useful techniques you can use immediately.

In this full-day workshop, you will learn how to:
• Choose appropriate UCD and Agile development techniques for your needs
• Successfully collaborate with diverse teams
• Understand who your "user" is, and what he or she values
• Create compelling design concepts that are shared by the entire team
• Iteratively sketch solutions as a group
• Translate design concepts into smaller user stories that can be implemented
• Prioritize and sequence product construction, without losing sight
of the "big picture"

This workshop is appropriate for people working in the UCD field, as
well as people curious about UCD or Agile.

Register Now for Lane Halley and Jeff Patton's Workshop

Registration is now open for Lane Halley and Jeff Patton's May 7, 2009
Workshop, "All Together Now: Blending Interaction Design and Agile
Development Techniques."

CHIFOO members receive a $50 discount off the price of the workshop!
Visit www.chifoo.org

Friday, March 27, 2009

My Earliest Reference to Erlang (So Far?) - It's Been >10 Years!

I started playing with Erlang and Haskell around 1998. Wow. Over ten years ago. I recently came across a post that may be my first on Erlang. It's to the Squeak list, suggesting Erlang might be seen in the same "message-passing" family of languages as Smalltalk. Someone had written, "I would like to create an application which runs seamlessly across multiple machines and platforms, but it's too hard because the communication and coordination is a bitch.". I replied...

Another approach is the simple message passing approach. This would be interesting to consider, given Alan Key's recent email to this list about "messages" vis-a-vis "objects".

Consider the programming language named Erlang from Ericsson. It is a concurrent and distributed language with no shared memory. All communication is by sending high-level messages. Receivers can pattern match on messages with time outs, etc. What Erlang calls "processes" can be linked to each other for high level process control and reliability.

There are several production-quality communications programs built with hundreds of thousands of lines of Erlang code, so it seems to have some practicality, which may meet the "lots of gain" requirement. The simplicity of it seems to meet the "little pain" requirement.

Wednesday, March 25, 2009

Apollo Workstations: Programming Interprocess Communication

This was sitting in a tab in Safari. I don't remember how it got there. It is a pdf of an Apollo document from 1985. Maybe it was from reading Steve Vinoski's latest RPC, etc. stuff - Steve worked at Apollo.

Maybe you're interested in reading it, maybe not. Apollo workstations were the first true "the network is the computer" computer, predating SunOS. I used them at Boeing and at Mentor Graphics in the 80's and 90's.

The CAD tools I worked on at Mentor Graphics used mailboxes to communicate between components, e.g. back end simulation engines and front end graphics. Note that Pascal is the systems programming language for Apollo.

(Programming Language Evolution?)

I'm not sure I will ever understand this obsession with "lisp has
parentheses". (http://bitworking.org/news/419/programming-language-evolution)

Jesus: "Dear god, we cannot use lisp. It has parentheses! Please
deliver us from evil."

God: "OK, my son. Here's ruby. It's a hack. Try writing a correct
parser! There's no 'there' there. St. Peter and I gave up. We found it
more soothing to go back to lisp."

Dynamic Language Symposium 2009

The 5th Dynamic Languages Symposium has issues its CFP. Funny
description though, seeing Python, Ruby, PHP, and TCL listed as "a new
generation".

Clojure? Yes, a new generation.

PHP? Ruby? They're now parents. Smalltalk and Lisp are grandparents.

http://www.hpi.uni-potsdam.de/swa/dls/dls-09/

"The 5th Dynamic Languages Symposium (DLS) at OOPSLA 2009 is a forum for
discussion of dynamic languages, their implementation and application.
While mature dynamic languages including Smalltalk, Lisp, Scheme, Self,
Prolog, and APL continue to grow and inspire new converts, a new
generation of dynamic scripting languages such as Python, Ruby, PHP,
Tcl, and JavaScript are successful in a wide range of applications."

Wiki 14th Birthday

Today is the birthday of Ward's first wiki. 14 years ago. Wow... I see some familiar names from that first day... Patrick Logan (oh, hey!), Patrick Mueller.

Learning from Mistakes — A Comprehensive Study on Real World Concurrency Bug Characteristics

From http://pages.cs.wisc.edu/~shanlu/paper/asplos122-lu.pdf

Some of our findings are as follows: (1) Around one third of the examined non-deadlock concurrency bugs are caused by violation to programmers’ order intentions, which may not be easily expressed via synchronization primitives like locks and transac- tional memories; (2) Around 34% of the examined non-deadlock concurrency bugs involve multiple variables, which are not well addressed by existing bug detection tools; (3) About 92% of the examined concurrency bugs can be reliably triggered by enforcing certain orders among no more than 4 memory accesses. This indi- cates that testing concurrent programs can target at exploring possi- ble orders among every small groups of memory accesses, instead of among all memory accesses; (4) About 73% of the examined non-deadlock concurrency bugs were not fixed by simply adding or changing locks, and many of the fixes were not correct at the first try, indicating the difficulty of reasoning concurrent execution by programmers.

Monday, March 23, 2009

Apache Cloud Computing Edition

Something Steve Loughran is taking with him to hackathon...

"Slideware on my proposal for an Apache Cloud Computing Edition; an
application stack from Apache to provide the app layer for all the low
level infrastructure-on-demand hosting services. Someone has to do it,
and who else is up to it?"

Interesting idea.

Saturday, March 21, 2009

On Accidentally Pulling The Scroll Bar Off Your Mail System

Dan Ingalls on simple, dynamic languages and systems like Smalltalk or Lively Kernel vs. the typical language and "API" stratification...

Lord knows you can get the Google Web Toolkit and start cranking out Java code for doing these things [browser-based applications]...

...You can't go in a grab hold of part of it and pull it out or change it the way you can in our system...

Now at times you don't want that. You don't want people accidentally pulling the scroll bar off their mail system. But my philosophy has always been: Make it first dynamic and malleable and then you can always turn off those capabilities. But you're in much less of a position to go forward in the world if you start out with stuff that can't be changed.

Saturday, March 14, 2009

Friday, March 13, 2009

Fwd: [xpportland] XPDX Wednesday March 18th: Ping Pong Pairing

---------- Forwarded message ----------
Subject: [xpportland] XPDX Wednesday March 18th: Ping Pong Pairing
To: xpportland@yahoogroups.com


Pair Programming has many benefits for a team above and beyond coding,
yet it's still one of the hardest XP practices to get into. Ping Pong
pairing is a lot of fun and is my favourite way to pair. It has a
game-like style that instils good pairing and TDD practices. So come
along to the next XPDX meeting to try it out. It doesn't matter if
you've been pairing for years or want to try it for the first time. This
will be a chance to learn from each other. We'll spend a little time
getting to know the mechanics of Ping Pong pairing, do a brief
demonstration, and then all pair up for over an hour of practice.

Absolutely positively bring a laptop with you. We'll be using Java,
JUnit, and Eclipse. A big time saver will be to ensure that you have the
Java *SDK* installed beforehand.

>>> Thanks to VersionOne there'll be pizza for thirty! <<<

Be there at 6:30pm for the pizza. We'll start at 7pm. At 9pm we'll move
on to a local bar.

Wednesday, March 18, 2009 @ CubeSpace. Details on Calagator:
http://calagator.org/events/1250456785

Wednesday, March 11, 2009

This Just In: Functional Programmers Can Now Access Memory (Experimentally)

OK, type fanatics, get beyond my inflammatory headline already!

Actually, LtU points to an interesting paper (for some) on a bit of progress toward type systems for describing the correct use of resources.

Globals! Memory! Files!

As one comment points out, the pragmatic benefit of this work is sometime out in the future. Type systems will be good when they add more than they subtract.

They're not there yet, but there's (some) progress.

Sunday, March 08, 2009

If Douglas Crockford Don't Care Why Should I?

At the end of this nice Google Tech Talk about Javascript good parts,
listen as Douglas Crockford (creator of JSON) pronounces "JSON"
incorrectly! (i.e. "Jason")

Also listen as various audience members pronounce if correctly... "Jay-SAHN".

http://www.youtube.com/watch?v=hQVTIJBZook

Of course I am kidding - can't you PLEASE stop pronouncing it "Jay-SAHN"???

But why doesn't this bug Douglas as much as it does me???

Wednesday, March 04, 2009

Please, Don't... No, Go Ahead!

TweetDeck is a popular Twitter client. I use it. And Phil Windley has included it in his Top Ten List of Valuable Web Sites and Services ("makes twitter easier to manage/use").

TweetDeck is an Adobe AIR desktop Flex application.

Wait a minute. Doesn't AIR *hurt* the web? Hmm.

Oh, right. AIR is simply a cross-platform application runtime with useful capabilities for running from and working with the web. Imagine.

Tuesday, March 03, 2009

Analysis Patterns and Contradictory Observations

I enjoyed _Analysis Patterns_ when Martin Fowler wrote that. Wow, it's
been 16 years. I found the book fascinating by discussing conceptual
topics, notdesigns. I really enjoy learning about all the various
worlds in which software is applied.

Martin recently wrote an update on "observations"...

http://martinfowler.com/bliki/ContradictoryObservations.html

Interesting problems are hardly ever simple. Finding simplifying
patterns and (relatively) simple solutions to complex problems is
fascinating.

As this article points out, "simplifying" can mean finding the essence
of what is important without being "simplistic".

Sunday, February 22, 2009

Slim FitNesse

I recently started exploring FitNesse for the first time. This began when someone pointed out the relatively new Slim protocol for using Fit tests with Systems Under Test. The primary benefit of Slim, as seen in the diagram below, is reducing the footprint of the framework in the SUT, and sharing a single implementation of the table interpreter. Improvements to the Fit interpreter do not have to be duplicated across multiple Fit implementations by multiple Fit f/w implementors.

I enjoy learning about various wiki implementations, generally. And FitNesse as a wiki has some interesting features. Mostly these seem geared toward supporting the wiki as a home for tests for multiple projects and multiple developers. I am always torn between the simplest wiki structures, such as the original c2 flat namespace, and structures such as confluence's spaces and hierarchies.

FitNesse has its own (as far as I know, unique) structure of subwikis. Essentially any page can begin its own sub-hierarchy, and the page name syntax allows for navigating and searching across the hierarchies above and below. This seems like a good thing, but I've not really used it yet.

Since I'd like a Fit tool for some fun projects, but I don't have modern Fit tools in the languages I'm using, Slim is the quickest path, and the whole FitNesse wiki comes along for free. I'd done a wee bit of integrating Fit and confluence along with http://twitter.com/ecopony and Slim FitNesse holds more promise for less effort.

Thursday, February 19, 2009

Wednesday, February 18, 2009

Roy Orbison

As long as we're in the neighborhood, stop by and say hello to Roy...

"Mean Woman Blues"...

"Down the Line"...

Rick Nelson

I was listening to, or trying to, Zooey Deschanel sing "Lonesome Town". I started feeling a bit queasy, until hopping over to the youtube to find this much better rendition by the great Rick(y) Nelson...

And here's "Hello, Mary-Lou" for good measure...

Now doesn't that make you feel so much better?

Tuesday, February 17, 2009

Google Tech Talk - Amy Jo Kim - "Game Mechanics"

I found this enjoyable and useful - this is probably a topic all
software developers should pay some attention to these days...

http://www.youtube.com/watch?v=ihUt-163gZI

Facilitation Skills

Merlyn writes up a piece on facilitation skills based on his
participation in AONW 2009 last week...

http://curious-attempt-bunny.blogspot.com/2009/02/aonw-2009-facilitation-skills.html

One of the "adds" we came up with in our host's retrospective last
Thursday was to add a page (on the wiki, in the packet, somewhere) on
facilitation skills for people interested in hosting a session at the
next AONW event.

Looks like Merlyn's got a good start, and hopefully we can get him to
help as we work on this... maybe a session during or before an XPDX
meeting.

Monday, February 09, 2009

Where do you use Smalltalk?

This question was asked recently at http://stackoverflow.com/questions

I love the responses that say, "It's great. But only use it with good developers that do unit testing."

Why would you use anything with any other kind of developer? And is the claim there is a tool that actually _works_ in those situations?

BTW this is not a new kind of comment from people. It just never ceases to amaze me that those follow-up questions neither seem to be asked nor answered.

Friday, February 06, 2009

What Do Nintendo, Squeak Smalltalk, and an EMCAScript-based OS Have in Common?

I knew some people at Nintendo have been doing something with Squeak Smalltalk. At least this aspect of that was not something I'd expected...

Using commands

From the command line shell, you can use the programs like below. Most of the commands are written in ECMAScript:

Command Name  Description
cat [file ...]  Prints the contents of files to the screen
cd [dir]  Sets the current directory to dir
clear  Clears the canvas for drawing graphics
date [-u]  Displays the current date and time.
echo [arg ...]  Prints the arguments to the screen
edit [file]  Edits text files
exit  Exits the command line shell
figure  Draws chars using the CanvasRenderingContext2D interface (A demo script)
ls [dir ...]  Lists names of objects in the directory
rm [file ...]  Removes the files
squeak  Squeak - a Smalltalk programming environment

Thursday, February 05, 2009

Bertrand / Wm Leler at pdxfunc meeting - Feb 9, 7pm

This month, Wm Leler will talk about Constraint Satisfaction Systems
and the Bertrand Programming Language. Wm is the creator of Bertrand
and the author of the book "Constraint Programming Languages: Their
Specification and Generation".

Constraint Satisfaction Systems were a hot topic of research in the
80's -- famous constraint systems include Ivan Sutherland's Sketchpad,
Alan Borning's ThingLab (built on top of Smalltalk), Guy Steele's
constraint language, and James Gosling's Magritte. These systems were
used for computer graphics, design, and general numeric problem
solving, but most of these solvers were domain specific and thus of
limited usefulness.

Bertrand is an equational programming system whose purpose is to build
constraint satisfaction systems using simple equational rules.
Bertrand has an purely declarative semantics and an absurdly simple
syntax, yet it is a powerful and expressive language, capable of
solving problems in a large number of domains including graphics, word
problems, electrical circuits, or -- with the right rules -- virtually
any mostly-linear domain.

Since this is the Functional Programming Study Group, this talk will
cover the underlying equational programming language of Bertrand and
ways in which it could be extended to make it more powerful.

--~--~---------~--~----~------------~-------~--~----~
visit this group at http://groups.google.com/group/pdxfunc?hl=en
-~----------~----~----~----~------~----~------~--~---

Tuesday, February 03, 2009

Original Hotcake House

I was recently reminded how much I love the Original Hotcake House on Powell Blvd. here in PDX. Really, really, "diner" good. As captured in this review from alt.portland...

The hot cakes were absolutely hot cake-like, doused in some butter-like substance, and then served with something that is heated, but probably not pure maple syrup. Hell, it may contain no maple syrup for all I know (I saw some patrons bring in their own)!

...

The coffee looks scary—we didn't go there.

The coffee, like everything else, is great. It's just sitting in a pot over there, and you go up and pour yourself a cup, then squirt some milk into it from this big squirter thing.

Now I have to plan a trip there soon.

PITA

Ron Jeffries again...

"I often tell teams that apparently my purpose in life is to tell
people that the sensation in their butt is called "pain", and that
they should get rid of it."

http://xprogramming.com/blog/2009/02/02/discovering-essential-technical-practices/

Grade: Incomplete

Ron Jeffries writes...

Jeff Sutherland, co-inventor of Scrum, says he has never seen a Scrum team become hyper-productive without adopting the XP practices. Less elegantly, I have said that teaching Scrum teams how to get Done-Done is why I have such a lovely blue convertible...

Well, my dear little children, I’ve got bad news for you. It is your precious context that is holding you back. It is your C-level Exeuctives and high-level managers who can’t delegate real responsibility and authority to their people. It is your product people who are too busy to explain what really needs to be done. It is your facilities people who can’t make a workspace fit to work in. It is your programmers who won’t learn the techniques necessary to succeed. It is your managers and product owners who keep increasing pressure until any focus on quality is driven out of the project.

So Called

I get frustrated listening to smart people talk about things they are only marginally familiar with. Part I of this recording was interesting... people talking about their own experience with specific systems and practices.

Part II of this recording is frustrating because they've not called in anyone with experience with XP, and so debate XP as they understand it. Not that they don't have good experiences and smart things to say here and there. Just that this one could have been much better.

Good software development evolves from a team's conversation about what's working for them. The heart of XP in my experience are practices that foster a teams conversations. Those practices should themselves evolve from those conversations.

This recording has some good conversations, but mostly I am frustrated because I'd love to be a part of their conversation.

Sunday, February 01, 2009

Agile Open Northwest 2009, Feb. 10-11

We've had two great AONW open space conferences, 2007 in Portland, and 2008 in Seattle.

This year we are back in Portland, close to the MAX, and as low-cost as ever: $125. There's still a bit of room to sign-up if you don't wait. The conference is Feb 10-11.

Agile Open Northwest 2009, the best open space conference in the world. Learn from each other at AONW 2009...

"These two-day Agile Open Northwest conferences are an extremely good value. ..[Y]ou learn directly from practitioners in the agile community what works and what doesn't. I attended the first two of these conferences, they were stunningly good... loads of practical, useful stuff and stimulating discussions." -- Ian Savage, PNSQC Program Chair

Friday, January 30, 2009

As Scheme Moves Forward

On the Scheme Language Steering Committee Nominees page, Will Clinger writes...

The R6RS has given us the option of writing programs in the new and more static language it describes. Two implementations of the dynamic language most recently described by the R5RS have added support for this new mode of execution, and four brand new implementations of R6 Scheme are well under way.

That represents a partial success, but this process has disappointed users of the language formerly known as Scheme...

As demonstrated by ERR5RS, the major new features of the R6RS could have been added without forbidding... the dynamic language paradigm of IEEE/R5 Scheme...

Tuesday, January 27, 2009

Do you practice hygiene (with your macros)?

No. God no.

Hygienic macro systems are a sign of weakness and a false crutch. If you can't write a macro that doesn't inadvertently capture a variable, you shouldn't be writing programs that write programs.

(Been a while since I've ranted. Hasn't it?)

Wednesday, January 07, 2009

Many, Cooperating, Screens That Compute

John Dowdell writes about recent internet-ready TV news from CES, and extrapolates...

We've got to start designing to the range of inter-cooperating display screens a person may use throughout a typical day in 2012.

And we've really got to work hard at bringing in your friends' and teachers' understandings of what's worth your attention onto those varied screens.

Future applications will be multi-screened, using the cloud, to connect with your friends. That's where the highgrowth markets are going.

Sunday, January 04, 2009

Beavs Beat Trojans All Over Again

The Oregon State Beavers basketball team did not win a conference game
last year, and had not won a conference game since February 2007.
Until today, when they upset the USC Trojans at home, just as the
football team did in the fall. Nice for them to have that monkey off
their back in just the second conference game this season. The team
with nowhere to go but up just elevated themselves a notch.

http://www.latimes.com/sports/la-sp-uschoops5-2009jan05,0,6109731.story

http://blog.oregonlive.com/behindbeaversbeat/2009/01/haynes_sounds_warning_to_rest.html

Tim Riley Podcast Begins

Subscribe to Tim Riley's podcasts. They begin Monday and cost
something like $4/month. Definitely worth the few bucks for Tim
Riley's unique approach to local and national news, and everything
else. This could be the beginning to a new format for Riley, and
perhaps Emerson, that transcends the fickle, short-sighted 20th
century media companies.

http://timrileylive.wordpress.com/2008/12/31/we-just-cant-wait-for-2009/

Waiting on WiMax

Looks like waiting for more complete reviews and early adopter
feedback is warranted before signing up for the WiMax. Mobile is what
I would get, but mostly for use indoors.

http://blog.oregonlive.com/siliconforest/2009/01/more_time_with_wimax.html

Wednesday, December 31, 2008

The Dark Pools of Finance

I am not sure "dark pools" are what's needed to resolve a crisis
worsened by, if not due to, opacity...

http://www.ft.com/cms/s/0/872657de-cf8b-11dd-abf9-000077b07658.html

Multnomah County Sheriff’s Office: “Naked Home Invader Captured After Senior Citizen Grabs His ‘Cahoochies.’”

From the Portland Tribune...

Gresham resident Michael Gordon Dick (that’s right), 46, is being held on $104,000 bail on accusations of felony burglary, harassment and private indecency at the Multnomah County Detention Center.

The 88-year-old victim was in her robe at 6:30 a.m. when she confronted Dick after finding him in her home...

...the victim reached behind her and grabbed the intruder’s crotch, “giving him a good squeeze,” wrote Deputy Paul McRedmond, a spokesman for the Multnomah County Sheriff’s Office, in a press release titled “Naked Home Invader Captured After Senior Citizen Grabs His ‘Cahoochies.’ ”

Mr. Dick may have to stay on guard in jail once news of his crime gets around.

New Tim Riley Podcasts

Tim Riley begins podcasting on Monday:

http://timrileylive.wordpress.com/2008/12/31/we-just-cant-wait-for-2009/

His xmas christmas special is here:

http://timrileylive.wordpress.com/2008/12/24/1107/

Building Lisps

Some Lisp-related, and just compiler-related papers and things I've been digging up and enjoying all over again...

Expansion-Passing Style: A General Macro Mechanism
A simple way to implement macros (no hygiene, thank you). Moreover compared to a basic defmacro, this approach allows many more kinds of transformations, e.g. currying, call-by-name, call-by-need, macrolet, stepping inspector, etc. Without getting into anything else about compilation, you can plop this thing right on top of your current Lisp and create all kinds of new Lisps and tools.
Rabbit: A Compiler for Scheme
The original Scheme compiler where Steele put all the basic elements together for writing modern compilers for any language.
The 90-minute Scheme-to-C Compiler
This one's fairly recent and has not received enough attention. This is a concise, Cliff Notes, summary of Rabbit, for all intents. Amazingly it is a working Scheme-to-C compiler, of course without optimizations, the full numeric tower, data structures, etc.
Realistic Compilation by Program Transformation
A thesis that came out of the Rabbit, Orbit, SML/NJ, etc. school. Explains why most compilers should not be *-to-C but *-to-Lambda. The cheapest way to do this today: *-to-Gambit-to-C. Takes transformation to an extreme: ultimately the source-to-source transformations restrict the names in the program to those that can be directly mapped onto the machine registers, etc. But the representation is still essentially executable source code, e.g. Scheme code.
ORBIT: An Optimizing Compiler for Scheme (pdf)
See also the T Project. If you've made it this far you are interested in compilers, language implementations, and Lisp. Orbit is Rabbit, but way out there.
I'm not a compiler guru. I've had the courses in school, built some simple Scheme-ish systems, implemented "little languages" dragon-style for employers who had no appetite for Lisp, etc. I just love these papers listed above, among others to be listed some other time.

qotd, sign of the times

"Somebody's going to hell, is all I know."

http://blog.oregonlive.com/madaboutmovies/2008/12/stunner.html

(The great Nat Hentoff being let go from the Village Voice.)

Tuesday, December 30, 2008

pdx sicp grp

Some folks in pdx are gathering to study Structure and Interpretation
of Computer Programs...

http://groups.google.com/group/pdxfunc/browse_thread/thread/807282d048f7d12e/e75a2dd00a55d33d?show_docid=e75a2dd00a55d33d

Oh My God, It's a System!

Via Andres Valloud, a list of the Madoff scheme's dupes sorted by magnitude of their losses.

What this highlights for me is that the worldwide financial system, generally, is both worldwide and a system. It's made of interconnected, independent agents, with varying motivations and levels of self-interest, all feeding back to each other filtered and transformed information, far from ideal, instantaneous knowledge.

A front page article in the Seattle Times this weekend speculated whether the regional home market would experience a rebound in 2009. The gist of the argument is that that market has been relatively untouched. I could be wrong, and whatever else, Seattle may continue to be less affected than other areas. However what I missed in the article was any recognition that Seattle is part of an overall system that continues to be sinking, and even worse: the home mortgage crisis may be not even halfway through its defaults.

Belying any glimmer of hope of a recovery, the Madoff list above provides a long list of banks and other financial institutions that clearly do not engage in sufficient diligence when investing billions of dollars. The Madoff case may be the most blatant but I imagine it is exemplary in exposing rampant negligence.

MallHoo

James Robertson writes about changing business models of retailers, etc.

Fuel prices are definitely a short-term issue. Moreover, on-line vendors have even more opportunities to take advantage of distribution patterns. WallMart manages their supply chain for their stores on-line. Vendors who do not require a storefront near their customers can optimize their supply chain as far down the distribution chain granularity as they desire. And they can outsource as much of the distribution as they desire.

I am continually surprised at how invisible WallMart is at least to this customer's eyes in building their on-line shopping capabilities. I see Amazon as WallMart's greatest competitor. I still say WallMart should buy Yahoo.

www.WiMaxPDX.info

Steven Hall writes that he can help with WiMax in Portland...

Just call 503-516-8457 or visit
http://www.wimaxpdx.info

Computer Horizons

As Steve Yegge points out at the end of his recent piece on embedded systems, his piece is not really about embedded systems per se, but any system that involves humans. The best explanation of this I've found is in what should be required reading for anyone that builds anything that involves humans: Winograd and Flores' "Understanding Computers and Cognition".

Minor Lispage Love Note

See previous

Monday, December 29, 2008

Lispful

(1984 Edition: Blogger Destroys Ignorance)

Before leaving on a short holiday adventure following the Northwest Snowpocalypse of 2008, I'd set out to email my blog a short love note to Lisp. After a few helpful comments, blogger destroying same, and Twitter destroying my patience for revising blog posts, I'll try rewriting with previous comments in mind...

Something I really like about Lisp and Smalltalk is the very small number of rules and the very large bang for the buck. Ioke and io fall into that same realm:

Although nothing beats Lisp for me. Consider doubling the fraction 3/2.

In ioke the following expression evaluates to the integer 3:

3/2 + 3/2

Although Smalltalk has fractions (and if it didn't you could add them), the same expression evaluates to the fraction 9/4. Why? Because Smalltalk evaluates binary messages from left to right. There are no "mathematical operators", no "operator precedence", and no syntax for literal fractions. The Smalltalk equivalent to the ioke expression above is:

(3/2) + (3/2)

Or less generally:

3/2 * 2

Smalltalk's fewer rules than the common Algol derivatives are a good thing. As Nat Pryce commented earlier, the mathematical operator precedence rules we learn in grade school are far from universal across all of mathematics anyway. Why cling to them in programming languages?

Now we get to Lisp:

(+ 3/2 3/2)

Fractions can be expressed truly as literal numbers. This evaluates to 3 and there's never any question about "operator precedence". The fewest rules of all: function application is function application. Absolutely uniform. Absolutely lovely.

Friday, December 19, 2008

OK, so it's the wiki or this

Just got an email telling me how to add some contact information stuck
in a spreadsheet on a sharepoint...

"The link below (that [some guy] sent) contains a content transmission
ID (basically giving you the view that [he] had). If you hit the link
below (also my personal view with a CTID):
http://blah-dee-blah
and then click on "[blah-dee-blah] Documents" (on the left pane) and
then click "Contacts"
You should be graced with your own personal view where you should be
able to make a checkout on the file, save it, and check it back in.
Hope this helps."

Yeah. Or I could edit a wiki page.

Thursday, December 18, 2008

a-DOH-bee AIR 1.5 on Linux

"Today, we are very pleased to announce the availability of AIR 1.5
for Linux. Thousands of AIR applications such as Twhirl (a popular
Twitter client), AOL's Top 100 Videos, and Parleys.com, are now
available to millions of Linux users. This announcement also means
that web developers can now use the AIR SDK to create a single desktop
application that works on Linux, Mac, and Windows without any
changes."

http://blogs.adobe.com/air/2008/12/adobe_air_15_now_available_for.html

Looks like Linux, 32-bit at least, is nearly to the point of
simultaneous releases of AIR with Win and Mac.

64-bit Linux can run AIR 1.5 as well on the alpha Flash 10 runtime.

Saturday, December 13, 2008

Multi Core Programming

The presentation and discussion at pdxfunc this week was all about bytecodes, JITs, and performance of dynamic languages, in particular Javascript, in particular for Mozilla. Igal took good notes. The presenter, Jim Blandy of Mozilla, made a few corrections to the notes.

Jim's presentation was well done. Future meetings of pdxfunc may very well be video recorded. Too bad this was not... people with various levels of experience with compiler internals each expressed satisfaction.

Michael Lucas-Smith was at pdxfunc and arranged for an Industry Misinterpretations podcast with Jim. James Robertson has that up on his blog now. (Aside: MLS is a whirlwind of facts on sci-fi, astro-physics, and other brainy (literally) topics... if you ever have a chance to sit down with him at a pub.)

One of the interesting highlights of the discussion during Jim's presentation was a brief segue into language compiler and runtime characteristics that do or do not play well with modern CPU architectures, especially regarding caching and off-chip accesses. This led to a brief touch on upcoming many-core chips, and MLS mentioned Intel's Larrabee chip, which will have many cores, each essentially a simple, small-but-64-bit, Pentium plus vector processor.

Programming languages and implementations that support small, dynamic, shared-nothing (or at least shared-little), asynchronous processes stand a chance.

Friday, December 12, 2008

InexpressivenessYet World Wide Webiness

Joe Gregorio writes...

One of the reasons that I have this feeling is that after programming for the past 25 years the field hasn't really changed.
I also have the feeling nothing about programming has changed. Except when I have the feeling that a *lot* about programming has changed.

I'm now in the frame of mind that 25 or 50 years is really not that long, and already programmers have created a world-wide web of information and computation, used by a significant number of people, that seems capable of outlasting any of its current parts. That's something.

On the other hand programming is still too hard (inexpressive), still too much like it was 25 or so years ago.

a-DOH-bee *doesn't* hurt the web (mostly)

Via Phil Windley, someone (not sure who) continues to get it wrong...

The Web is under attack by proprietary platforms like Air, Silverlight, etc. They have clear and obvious advantages but they have one big disadvantage: their lack of openness. Nick says that we need to accelerate the inclusion of the capabilities of these closed platforms in open standards and browsers. "We need more stuff in the browser faster." Mike says that the competition of Web browsers has led to improvements like Javascript being 10x faster now. Joshua thinks that stories about the threat to the Web are highly overrated. The Web has made great strides over the last few years.
Adobe AIR runs webkit, javascript, etc. just like many other applications. And it has the general ability to connect to HTTP servers, mail servers, XMPP servers, etc. So to claim that "the web is under attack by proprietary platforms like AIR" makes no sense to me.

Sure, AIR is not "a browser" out of the box. That's a good thing. It is an application development platform. Browsers (in the traditional sense) are not good at that.

Clearly the browser implementers are finding ways to become more like AIR, out of necessity. Browsers are not the end of evolution, neither is AIR. They are each points along the way to whatever comes next.

Thursday, December 11, 2008

Everything Becomes Lisp

"Find out how closures and lambda functions make programming easier by
letting you define throwaway functions that can be used in different
contexts. This article details how useful closures are as a functional
programming construct within PHP V5.3 code."

http://www.ibm.com/developerworks/opensource/library/os-php-5.3new2/index.html?ca=drs-tp5008

Wednesday, December 10, 2008

That's some damn hobby you've got there

Via Isaac Ropp...

a-DOH-bee: Please Don't Hurt The Web

From a-DOH-bee...

"Adobe(R) Wave™ is an Adobe AIR application and Adobe hosted service
that work together to enable desktop notifications. It helps
publishers stay connected to your customers and lets users avoid the
email clutter of dozens of newsletters and social network update
messages. Adobe Wave is a single web service call that lets publishers
reach users directly on their desktop: there's no need to make them
download a custom application or build it yourself."

http://labs.adobe.com/wiki/index.php/Wave

Em, why not use atom format and atom pub?

Monday, December 08, 2008

Sucks - one media downsize too many

Tim Riley is hilarious. And the best newsman in Portland, if not the world.

http://www.oregonmediainsiders.com/node/1748

Sunday, December 07, 2008

Programming Languages and Concurrency

This is in reponse to some questions from an earlier post...

I remember reading posts of yours criticizing STM in the past. Given some of the link love towards Clojure lately, have you softened on STM a bit? What are your opinions on the state of concurrency and the current crop of language out there now?
I don't know if I have softened on STM. My main concern with STM is that it is experimental, and moving it into widely used languages like Java and C# would be premature, at best. I am happy to see it in languages like Clojure and Haskell, where it can be experimented with.

Look at Clojure's ref mechanisms: there are several kinds, and now "atoms" are a kind of ref that seems intended to be used *instead* of STM. (Or maybe it is considered an alternate, atomic form of STM isolated from the previous, transactional STM?) That's all fine and good - Clojure is an experiment in concurrent, mostly-functional programming.

But where will STM bottom out? Will we end up with five kinds of refs? Ten? How many rules and exceptions to rules will we need to use them all effectively?

Having more people program more real applications with Clojure, Scala, Haskell, Erlang, and so on is great. Clearly we are just at the very beginning of a long evolution of concurrency mechanisms and how they are expressed in programming languages.

Thank goodness this is happening in widely varying languages, and not just in Java and C#. We'll certainly need multiple languages and mechanisms for addressing different kinds of concurrency problems. And many more than that to explore with enough variety to determine the better ones.

I am personally interested currently in how simple a language and its concurrency mechanisms can be for the widest variety of problems. While Haskell, Scala, Clojure, etc. are much better than Java or C#, they are still more complex than necessary for many applications.

Moreover, the "client" aspects of concurrency problems and opportunities continue to be largely negelected. However small and mobile or rich and graphical, we have to get away from the awful browser/ajax model. Yet even more clearly, there is no reason to retreat to the old desktop model per se. I'm afraid we're going to be stuck with crap for a long time here.

Atoms

Clojure takes another step away from Lisp. Clojure now as "atoms" which are not to be confused with Lisp atoms. Not necessarily a bad thing. I'm just saying.

Since they are a kind of "shared reference" maybe they could have been called "arefs". Oops. No. That is a ubiquitous Common Lisp function for arrays. I guess there are only so many terms to be applied. So to speak.

Lisp is a great vehicle for language experiments. Clojure is a vehicle for that on the JVM, specifically in the area of transactional memory and coordination via shared references. I'm not a big, big fan of this scheme so far, but I'm interested to see where it goes.

Down On Main St.(ream)

Mark Watson lines them up...

Gambit-C Scheme does have the Termite package for concurrency but something more main-stream like Scala or Haskell seemed like a better idea.
Ouch. Maybe lisp won't be our overlord.

Actually Gambit does not support multiple cores in one OS process either. It has Erlang-levels for threading, and almost as good for mailboxing, but just on one CPU.

So then Clojure? Good bit simpler than Scala or Haskell. Much more expressive for symbolic programming as well.

Mark points to an impressive comparison favoring Haskell over Scala. (Assuming all things being equal.) I wonder what the learning curve is to get really good numbers for various kinds of programs in Haskell, with its laziness, etc. Especially good memory usage numbers.

Saturday, December 06, 2008

If Roundball Had Body Checking

Dwight Jaynes' opinion of Kevin Garnett...

"At some point, doesn't an elbow have to be thrown? Or can't you at
least hammer him on a shot attempt? This is enough to make you
appreciate hockey, where you can take care of things like this."

http://feeds.feedburner.com/~r/DwightJaynes/~3/477143969/yes-kevin-garnett-is-a-dog

NYC

Some really nice photos from Tim Bray of one of my favorite cities,
NYC. The photos are nice, and have a different light and angle than
the images that come to mind as inner memories...

http://www.tbray.org/ongoing/When/200x/2008/12/05/Fuzzy-New-York

Wednesday, December 03, 2008

(loop)

"Clojure actually uses fewer parentheses to call java code than java code does."

podcast: http://podcasts.pragprog.com/2008-12/stuart-halloway-on-programming-clojure.mp3

Says this may be controversial to lisp programmers. Stuart obviously
has not seen the loop macro. ;-/

http://www.ai.sri.com/pkarp/loop.html

()

Let me get this straight, just as I am acclimating myself to groovy,
the world is coming around to lisp? I'll believe that when I see it.
But 10 years from now, I can imagine a programming community that
thinks nothing of the (), which is exactly how one should feel about
them.

http://www.dehora.net/journal/2008/12/02/qotd-mock-objects/

http://www.innoq.com/blog/st/2008/12/languages.html

Tuesday, December 02, 2008

The Transition is Over?

Has there ever been a presidential transition where the outgoing president has so completely disappeared, and the president-elect has so early-on assumed such a presidential presence? Not that I am complaining, because I believe the incoming administration to be more capable. But it seems that if a Mumbai-like attack or a significant-enough non-violent event were to occur in the US between now and Jan 20, who would America expect to see at the presidential podium? Could it cause a constitutional crisis of its own?

Best Groovy Book So Far

http://groovygrailsrecipes.com/

Monday the 8th at pdxfunc

pdxfunc is meeting Dec. 8 at CubeSpace...

Jim Blandy will present trace-based just-in-time compilation techniques, how they're being used in his work at Mozilla with the SpiderMonkey JavaScript implementation, and how these can be applied to functional programming languages. Jim is a contributor to GNU Emacs, Guile, GDB, GLIBC, Mozilla SpiderMonkey, Subversion, and others.

Julian Blake Kongslie will present his efforts in implementing modern state-based search using Haskell. He'll discuss the problems of search in FP in general and/or how he implemented his present solution. Julian is a graduate student at Portland State University, and author of the Chortl register-transfer language and Riviera continuation-based web framework.

Monday, December 01, 2008

Another Smalltalk in Flash

http://blog.smoaktalk.com/2008/07/simple-smalltalk-interpreter-in-flash.html

WiMax in PDX - you can order it now

The web site is up to check availability of, and place an order for,
WiMax ("mobile broadband") in the PDX area. Retail locations to open
early in 2009.

http://blog.oregonlive.com/siliconforest/2008/12/clearwire_coming_to_pdx_this_m.html

Too much information

Interesting bit on C#'s LINQ and C#'s "Dynamic Typing" having too much
information at compile-time and not enough at run-time...

http://www.infoq.com/news/2008/11/CSharp-LINQ-DLR

What's interesting is that none of this is interesting in simpler languages.

Winter Coders' Social II - Tuesday, December 9th, 7-10pm, CubeSpace

from pdxfunc...

http://calagator.org/events/1250456151

Last December, many of the local software developer User Groups banded
together and had a party (instead of the regular meetings). It was known
as the Winter Coders Social. In August, we had a Summer Coder's Social
as the outdoor and sunny successor!

Now, we're having a second Winter Coders' Social. Good and geeky times
will be had by all. Come join us.

Bring yourself, games if you have them, and a dish to share.

Food:
Some beverages will be provided.
Potluck signup: http://tinyurl.com/coders-social-potluck-form
Current potluck list: http://tinyurl.com/coders-social-potluck-list

Fun:
We'll be playing games, like last year, so bring 'em!

There will be a programming competition! Any language welcome, no
particular toolkits or api skills necessary. These'll be problems that
just require thought. If enough of you are interested and bring a
language that you're only vaguely familiar with, we'll have a separate
league for language newbies. Prizes? Bragging rights! Plus a surprise
or two.

Hope to see you there!

P.S.: We will need a cleanup crew immediately following the party; if
you don't have to split right away, we'd appreciate your help. :)


--~--~---------~--~----~------------~-------~--~----~
For more options, visit this group at
http://groups.google.com/group/pdxfunc?hl=en
-~----------~----~----~----~------~----~------~--~---

Geek Meets Art, Dec. 7, PDX

"DorkbotPDX brings you Collin Oldham, Shelly Farnham and Steve Davee

Come join us for an evening of geek meets art. The fine folks at
AboutUs will be hosting us for this event, which takes place December
7th at 6PM. AboutUs is located at 107 SE Washington St, Suite 520.

The event is free and open to the public. Feel free to bring snacks
and drinks to share. Please spread the word!"

http://dorkbotpdx.org/wiki/dorkbotpdx_0x02

Emacs and Clojure

Bill Clementson's got some useful info for using Emacs for Clojure...

http://bc.tech.coop/blog/081118.html
http://bc.tech.coop/blog/081120.html

Saturday, November 29, 2008

Leaving a Legacy

Is software the only domain where "legacy" is a bad word?

The Register wonders about "legacy" software.

Legacy as a bad word means to me "unworkable" or something nearly so... code or entire systems that you'd rather not have to work with.

Note this has less to do with age than design.

Now I have to go. My dog is leaving a legacy in my back yard.

Thursday, November 27, 2008

Live, Local Radio Drama in Portland

KCMD 970am in Portland, home of some good local radio (and streaming and podcasts) like the Rick Emerson Show, is bringing back live radio drama.

The first two 25-minute plays will be Sunday, December 7th, at 6pm: A.Z. (After Zombies), and The Crimson Mist (sounds like a 1940's crime drama set in Portland).

Wednesday, November 26, 2008

Try not to be that idiot

Dwight Jaynes on Saturday's Civil War football game between University
of Oregon and Oregon State...

"One other small thing: There is going to be a tremendous amount of
emotion in that stadium Saturday. It's going to be close to the
boiling point. So everyone please behave. No fights in the stands. No
stupid behavior. No riots after the game. Treat your rival and the
game of football with respect. I hate it when innocent people get hurt
because of the actions of idiots. Try not to be that idiot"

http://feeds.feedburner.com/~r/DwightJaynes/~3/466425587/and-my-civil-war-pick-is

Tuesday, November 25, 2008

The Stone Age of the Web

Tim Bray writes...

"For actual business apps, the kind that our servers spend most of
their time running, the war for the desktop is over and the Web
Browser won. I just totally don't believe that any combination of
Flash and Silverlight and JavaFX is going to win it back. AJAX is
increasingly central and we need to make sure that our Web Suite and
its tools support it well. But as for GUIs and the client side, let it
go already."

http://www.tbray.org/ongoing/When/200x/2008/11/24/What-Sun-Should-Do

It's early still. Observe that almost all energy for the last few
years around the web browser has been aimed at overcoming its many,
serious deficiencies and making it seem more like a desktop operating
system.

I don't know much about silverdoodle or javafx, but "any combination
of flash" includes the AIR combination, which incorporates "the web
browser" and then some.

There are certainly great things about web browsers, html, and even
javascript. But there are great things beyond those as currently
reallized.

In the history of the web, it's still the Stone Age. We have not even
discovered metal yet. We're just beginning to maybe glimpse what the
Bronze Age might be like.

The choices ten years from now will certainly be neither "2008
Desktop" nor "2008 Browser".

-Patrick

Sunday, November 23, 2008

Quiz: Second Degree Sprain

Sunday night update from the OS Beavers on the state of Quiz Rogers shoulder injury...

Here's what I understand about a second-degree shoulder sprain: it's worse than a first-degree sprain. I would think if Quiz Rogers plays in the Civil War he runs the risk of worsening the tear, possibly taking him out of whatever bowl game the Beavers get. (No worse than the Sun Bowl.)

I'd suppose Riley will start the game without Quiz and play him, at most, only if needed.

For all you OS fans.

Feeling Civical

The result of my civics test...

"You answered 31 out of 33 correctly — 93.94 %"

Just a Little Death - No Not That

From Jim Webber's QCon notes...

"A little part of MNot dies each time he sees an XML schema"

Blog Archive

About Me

Portland, Oregon, United States
I'm usually writing from my favorite location on the planet, the pacific northwest of the u.s. I write for myself only and unless otherwise specified my posts here should not be taken as representing an official position of my employer. Contact me at my gee mail account, username patrickdlogan.