August 2011
11 posts
4 tags
Aug 1st
11 notes
July 2011
20 posts
1 tag
Jul 31st
2 notes
1 tag
Unlimited Novelty: The Trouble with Erlang (or... →
This is an interesting read from the person who implemented a Ruby-like language on top of Erlang. But, you should also read mononcQc’s response: https://gist.github.com/f99035df1bc1d5f8a218. MononcQc is the author of Learn You Some Erlang For Great Good. And read Jesper Louis Anderson’s response too: https://plus.google.com/108725849902883879959/posts/gQXiUsUyPGV. Jesper is the...
Jul 30th
2 notes
2 tags
Python closures
Here are code snippets representing the same ideas from my previous post on Javascript closures. >>> x = 15 >>> def foo(y): ... return x + y ... >>> foo(10) 25 >>> x = 20 >>> foo(10) 30 The value changed, just like we saw in Javascript. >>> x = 15 >>> def bar(): ... z = x ... def foo(y): ... return z + y ... ...
Jul 30th
18 notes
2 tags
Javascript closures
Javascript closures are a little tricky. Here is an example: $ node > x = 15; 15 > foo = function(y) { return (x+y); } [Function] OK, we’ve got a function foo and closed around a variable x. Let’s see what happens to the behavior of foo when we modify x. > foo(10); 25 > x = 20; 20 > foo(10); 30 foo’s behavior changed! For the same input 10 we got...
Jul 30th
4 notes
4 tags
Brubeck: A Lightning Talk
I gave a lightning talk to NYCPython Monday night on Brubeck. It was the first time I have spoken publicly about it. These are a slightly improved version of the slides I used. Thank you, Spotify, for hosting the meetup. And thank you, Bob Hancock, for the thorough coverage of concurrency in Python. PDF of slides http://brubeck.io source code
Jul 28th
3 notes
Jul 28th
1 note
1 tag
Jul 20th
2 tags
Brubeck on Tornado's mailing list
Brubeck was discussed on Tornado’s mailing list recently. Here is the discussion: http://groups.google.com/group/python-tornado/browse_thread/thread/217e7048a78a35ee I am pleased to hear Ben’s response and felt I should share.
Jul 20th
3 tags
Jul 16th
1 note
1 tag
Jul 14th
855 notes
Scope of Job Creation
thegongshow: Dan Primack (@danprimack) wrote a quick stat on job creation in the VC industry: Groupon, LinkedIn and Zynga hired a combined 11,143 new employees between March 2009 and March 2011, based on regulatory filings. During that same period, the overall U.S. economy lost nearly 1.29 million non-farm jobs. Lets push Dan’s numbers a bit further:   Facebook has “over 2000 employees”...
Jul 12th
79 notes
3 tags
Jul 11th
26 notes
1 tag
Jul 11th
1 tag
The Britney Spears Problem  →
dataanxiety: Tracking who’s hot and who’s not presents an algorithmic challenge
Jul 10th
6 notes
Jul 7th
4 tags
Python vs. Javascript: The JSON Race
I was discussing the current state of Python with some friends after describing some thoughts on why Node.js’s concurrency model is outdated and impractical. I don’t think copying Twisted’s model is the right thing to do, but I believe Javascript on the backend makes Node.js a reasonable choice. One of the core issues of the Python vs. Javascript vs. Ruby debates is the...
Jul 6th
8 notes
3 tags
Python, self and higher-order programming
Here is a simple class: >>> class Foo(object): ... def foo(self): ... print 'foo called' ... >>> f = Foo() >>> The class is Foo and this class has one function foo that takes one argument self. self (aka. f) is an instance of Foo. Because of that, the two statements below are equivalent. >>> f.foo() foo called >>> Foo.foo(f) foo...
Jul 6th
2 notes
1 tag
Jul 5th
1 tag
Jul 5th
1 note