A Django site.
October 16, 2007

Pat Eyler
pate
On Ruby
» SICP 1.1.6 (Ruby) A look back

In my post on SICP 1.1.6, there were a couple of questions raised about my Ruby code. Fabio Akita Your first example would be better written off as: def abs(num) num < 0 ? -num : num end Personally, I really hate the ternary if, I’ve always thought that it makes code harder to read. It’s probably still worth looking at though, since my biases are just that. Peter Cooper ... I was just

» SICP 1.1.7 (Factor)

I’m going back to the idea of treating each langauge in a separate post. Hopefully this will make the comments a bit more manageable (especially since I cross posted the last one onto my erlang blog as well). Housekeeping There were several factor related comments on the last post that I wanted to address before I moved on to section 1.1.7. Anonymous Is Factor “done”? Seems like it’s

October 8, 2007

Pat Eyler
pate
On Ruby
» Reading SICP 1.1.6

This time around, I’ve decided to toss the translations for Ruby, Factor, and Erlang into the same post instead of trying to juggle multiple posts and point them all at one another. So, without further ado … Section 1.1.6 Let’s take a look at section 1.1.6, the goal of this section is to look at conditional expressions through implementing an absolute value procedure. the book iterates

October 4, 2007

Pat Eyler
pate
On Ruby
» Reading SICP in Factor: Section 1.1.4

Here’s my cut at SICP 1.1.4 in Factor. I’m a lot less sure of this than I am of the Ruby translation since I’m learning Factor as I go along. I’d appreciate comments from the Factor community as I go along, especially about Factor idioms. In my Ruby translation, I failed to talk about some things, like procedures in SICP being methods in Ruby, and changing the method names to match the

October 3, 2007

Pat Eyler
pate
On Ruby
» Reading SICP in Ruby: 1.1.4

Recently, I posted about reading and working through SICP in languages other than scheme. Today is the day that I start. I don’t know how quickly I’ll work through things, but we’ll see what I can do. In addition to Ruby, I’m also hoping to work with Factor and Erlang in parallel. My first SICP post is nice and easy, I’m skipping up to Section 1.1.4 of SICP which covers

September 26, 2007

Pat Eyler
pate
On Ruby
» Reading SICP

I’ve had a long standing goal to read SICP, but it keeps conflicting with other goals, like mastering Ruby or learning Erlang (to name a couple of geeky ones). Recently I learned of a project to ‘translate’ SICP into Erlang (and other languages). “Great! I can use this to help with both learning Erlang and reading SICP”, I thought and went to take a look at it. It turns out they also have