HNHacker News
TopNewBestAskShowJobs

kingkilr

4,623 karma · joined July 6, 2009

Fish in a Barrel Principal and co-founder. Core developer of Django, PyPy, CPython, PyCA Cryptography. US Digital Service alumni. Former Firefox Security. Retired Python Software Foundation board member.
submissionscomments
kingkilr··on Ruby has an ISO standard now
It's a standard for 1.8.7, right?
kingkilr··on Google's opening slides in the trial v. Oracle
It's not a java virtual machine; a java virtual machine executes a specific instruction set. It's a VM that runs the dalvick bytecode, and a Java source to dalvick compiler.
kingkilr··on Why Every Ruby Developer Should Learn Smalltalk
I was going to say, is that not a standard feature of test runners today? py.test is amazing though :)
kingkilr··on I told my 2nd year CS students to create a programming language
I gave a talk yesterday on implementing a VM in 30 minutes. I'm not sure how well it went (it's a lot of material for 30 minutes), but I hope I at least got some people excited about implementing languages.
kingkilr··on On the making of a girl nerd
It's been a while since I looked at the data, but my main source was: http://blip.tv/pycon-us-videos-2009-2010-2011/python-for-cs1... (a talk Bill Punch gave on those papers). I think it goes into more detail on the non-CS majors.
kingkilr··on On the making of a girl nerd
I think it matters more than you give it credit. Michigan State did an experiment where they replaced one of the Intro to CS classes (which were formally in C++) with Python. The result they found is that for people who went on to CSII (in C++), they did just as well; but for people who were non-CS majors, a) they did significantly better than non-CS majors starting with C++, and b) they were more likely to take more CS courses. So if you're someone already committed to programming or computer science, maybe it doesn't matter, but if you're trying to get your feet wet, it matters a great deal.
kingkilr··on On the making of a girl nerd
Because the hello world program has so much boilerplate. It means from the get-go you're telling students, "Don't worry about this, and this, and that; ignore it and we'll explain it later." You could go months into learning programming before you need to understand what a static method is, but it's right there in your first program.
kingkilr··on '9223372036854775807' == '9223372036854775808'
If only we had some sort of way of explicitly telling our computers that we wanted to to convert a sequence of characters into a number.
kingkilr··on Part 2 Dart vs Go vs Python (and PyPy) Performance
PyPy is using a pure-python JSON parser as well.
kingkilr··on PHP Sucks But I Like It
Yeah, or I can live in some other big city that doesn't have all the shitty parts (or at least less of them). Plus it has all the good stuff. Please stop with this insane dichotomy that I have to choose between the stuff I like and living somewhere without crap. Damnit I want it all, and I'm getting it.
kingkilr··on Do Not Use Go for 32bit Development
They've introduced S-Gen which is a good, precise, generational collector. I don't know if it's the default, but it is considered production ready IIRC.
kingkilr··on Senator Lieberman proposes to eliminate Section 230 immunity from blogs
You can make an argument that we should be contemplating changing our constitution, but what I read you saying was: "How about you just do whatever you want, instead of trying to actually follow the law?"
kingkilr··on Poll: Do you have a CS degree?
Ask me in 2 months.
kingkilr··on Java 9 with GPU processing, Java 10 will be all-OOP without primitives
The only issue that comes up is synchronization, because it requires maintaining identity, localized escape analysis alleviates a lot of the burden here, but the fact remains that anytime you escape an Integer you'll need to allocate it, because you might want to synchronize on it, without the synchronization issue you can come up with schemes to avoid allocating even if the object does escape. Every other issue can be handled by a compiler optimization (either AOT, or JIT).
kingkilr··on 'A Test You Need to Fail': A Teacher's Open Letter to Her 8th Grade Students
An alternative to what? Standardized testing? How about, non-standard testing? Do we have such a dearth of qualified teachers that we think we need to strip the people in charge of the classroom of any discretion? What sort of cognitive dissonance does it take to say, "Gee, this person can teach our kids the material, but they probably have no ability to evaluate whether the kids learned it".
kingkilr··on [dead]
Probably the fact that it strongly discourages polysyllabic words... and you know, thoughts.
kingkilr··on Talk Of GCC 5.0 To Be Modular, More Like LLVM
Small world, Dave and I just ran into issues related to this a week ago (I suppose it may have motivated his email). Namely that there was no single API to get the assembler generated for an RTL (register-transfer-language, GCC's final IR) node without going through some destructive APIs.
kingkilr··on Lets Talk About Something Diabolical: A PyPy Intro (David Beazley PyCon keynote)
I seriously doubt it, considering a) RPython is a strict subset of Python, operating on the in memory representation of Python objects and does aggressive type inference, whereas Cython adds additional features (and syntax) to the language and has it's own parser and no type inference (AFAIK), and b) RPython predates Cython, AFAIK.
kingkilr··on Stop writing classes...
Do you think a closure isn't state?
kingkilr··on Adding a new statement to Python
It's going to have all these same steps, but they'll mostly be in python. I'll try to write a tutorial on this at some point.
kingkilr··on ESPN Developer Center
I don't play fantasy basketball myself, but from reading the comments a lot of the other commenters do.
kingkilr··on ESPN Developer Center
Yeah, this is really unfortunate. I run a game thread generator for the NBA subreddit (essentially just builds a nice pre-game data table for a user to create a thread), I guess it's going to stick with insane scraping for now: https://github.com/alex/nba-gamethread
kingkilr··on How to contribute to an open source project: look for TODOs in code
This is really bad advise. If I commit a TODO to my code, it's because the difficulty of fixing vastly outstrips the value of fixing it. If it was an easy thing to fix, I'd have done it myself.
kingkilr··on GCC 4.6.3 Released
That wasn't fixed in 4.6.1, I filed the issue against 4.6.1 :)
kingkilr··on GCC 4.6.3 Released
Dumb question, is there a way to verify if a given commit is in a GCC release? Specifically, I'm interested in r181014.
kingkilr··on The Day Python Embarassed Imperative Programming

  In Python, every object is an example of a monad. It has two possible values: None and anything_else.
Is no more true then, "It has two possible values: 'Hello, I am a sexy bear' and anything_else."
kingkilr··on Show HN: A graph of the languages you use on Github
So yeah, code.

  Python	7308374
  JavaScript	1247179
  Shell		12761
  C		5939
kingkilr··on Ask HN: Have you taken 6 months to 1 year break to do self study?
Yes. I dropped out of high school during my sophomore year, I spent the next 18 months of so teaching myself to program, economics, and a bunch of other stuff. It wasn't taking a break from work, but I figure it's relevant.
kingkilr··on Put your programming skills to the test
Ah of course, a SyntaxError would take precedence over their broken builtins.
kingkilr··on Put your programming skills to the test

    def pyChallenge():
      print sum(s for s in range(1000) if s % 7 != 0 and s % 5 != 0)

    pyChallenge()
Produces a TypeError, and using xrange produces a NameError (Python 3?). I have no idea what they're trying, but it doesn't work.
← PreviousPage 7 of 26Next →