News for hackers. Stuff that matters.

grifaton

Re:Guido van Rossum's Performance tips for Python on Saturday October 13, 2012 @09:02AM (#4648506)
Sounds like you're looking for a Sufficiently Smart Compiler[0]. James Hague has a good piece on why this might not be so desirable[1].

One of the reasons I'm fond of Python is that, while there is a tradeoff between flexibility and performance, it gives you the means to sacrifice flexibility to aid you in improving performance -- once you've identified what (if any) actual performance bottlenecks you face.

[0] http://c2.com/cgi/wiki?SufficientlySmartCompiler [1] http://prog21.dadgum.com/40.html

Re:Why I am no longer a skeptic on Saturday September 01, 2012 @04:24AM (#4463087)
I don't think anybody's suggesting that Dawkins called Skepchick "Muslima".
Re:The Concepts Get Harder (Python in 30 Days - Day 12) on Monday August 27, 2012 @02:13PM (#4440022)
I'm afriad this doesn't make much sense from a Python point of view, where a metaclass is a very specific language construct. For more details, you can't do much better than the StackOverflow answer that JulianWasTaken has linked to.
Re:Experimental Python 3 support in Django on Sunday August 19, 2012 @03:50PM (#4404992)
This has obviously been a mammoth effort, so congratulations to all involved!
Re:Sexual Harassment at DefCon (and Other Hacker Cons) on Wednesday August 15, 2012 @02:03PM (#4387248)
Seriously?
Looks like it'll cover similar ground to his Europython keynote (which I think was a rehash of his Pycon talk), a video of which you can see here: http://www.youtube.com/watch?v=RwbEEzl3bL4
Re:Tails of the Unexpected on Saturday June 09, 2012 @06:04PM (#4089460)
I'm puzzled by the references to paper/scissors/stone. Why is "stone" the "most obvious move"?

Later on, the paper states that the game is "well known to be power law distributed". I couldn't immediately find anything online to back this up -- the first hit in google was a link to this paper. Can anybody provide some insight?

Re:PyCon UK 2012 on Tuesday May 29, 2012 @03:18PM (#4039205)
Really? The UK's centre of population [0] is apparently Appleby Parva in Leicestershire [1], which is less than 25 miles from Coventry [2].

[0] http://en.wikipedia.org/wiki/Center_of_population [1] http://en.wikipedia.org/wiki/Appleby_Parva [2] https://maps.google.co.uk/maps?saddr=Appleby+Parva&daddr...

Re:A few things to remember while coding in Python on Sunday May 20, 2012 @08:34AM (#3998620)
I blogged about this, and other uses for mutable default arguments (with tongue somewhat in cheek) a few weeks ago: http://inglesp.github.com/2012/03/24/mutable-default-argumen...
Re:A few things to remember while coding in Python on Saturday May 19, 2012 @05:03PM (#3997055)
Here's a rare example of obfuscated python, deceptively called "Python's Ellipsis Explained": http://blog.brush.co.nz/2009/05/ellipsis/
Re:Python iteration on Wednesday April 25, 2012 @12:34PM (#3889801)
I sometimes use zip as a poor man's matrix transposition operator:

    >>> m = [(1,2,3), (4,5,6), (7,8,9)]
    >>> zip(*m)
    [(1, 4, 7), (2, 5, 8), (3, 6, 9)]
Re:Google's Python style guide on Thursday April 19, 2012 @04:19AM (#3861927)
This would catch a SyntaxError raised by eval().

For example,

    try:
        eval(".")
    except:
        pass
Re:Poll: Do you have a Facebook account? on Thursday February 02, 2012 @10:56AM (#3543148)
Sample bias?
Re:Hacking a knitting machine on Thursday January 26, 2012 @07:57AM (#3513912)
I think this is interesting because it's the first time I've seen "hacking" presented in a positive light in the media.
Re:New York City gets a Software Engineering High School on Friday January 13, 2012 @11:14AM (#3461114)
Could anything like this ever happen in the UK?
What's the back story here?
It's not perfect yet -- Facebook knows that I went to university in Cambridge (UK) but keeps asking me if photos from my undergraduate years were taken in Cambridge (Massachusetts).
Re:Metaclasses in Python on Thursday December 15, 2011 @10:55AM (#3356613)
Jonathan Fine gave a talk on this at Europython this year.

Looks like there's a video available at http://ep2011.europython.eu/conference/talks/javascript-for-....

Older »