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 RSA-210 factored
For new keys, 4096 is preferred.
kingkilr··on Judge to Sikh Man: Remove “That Rag” or Go to Jail
What do you think free speech has to do with this?
kingkilr··on If PyPy is 6.3 times faster than CPython, why not just use it?
Please stop replying to people like this. It's extremely discouraging to people, and not helpful to the PyPy project (of which I'm one of the developers).

People have a right to have a problem with our software without trying to fix it themselves.

kingkilr··on If PyPy is 6.3 times faster than CPython, why not just use it?
Please file bugs. We can't fix issues we don't know exist.
kingkilr··on If PyPy is 6.3 times faster than CPython, why not just use it?
It's worth noting that PyPy also supports epoll (and kqueue), and has for a few versions.
kingkilr··on If PyPy is 6.3 times faster than CPython, why not just use it?
You can't compare measurements taken on different computers, for all you know the OP has a potato and I have a speed demon toaster.
kingkilr··on If PyPy is 6.3 times faster than CPython, why not just use it?
PyPy also manages to speed this program up (or at least, what I understand this program to be):

    Alexanders-MacBook-Pro:tmp alex_gaynor$ time python t.py
    .

    real    0m0.202s
    user    0m0.194s
    sys 0m0.007s
    Alexanders-MacBook-Pro:tmp alex_gaynor$ time python t.py
    .

    real    0m0.192s
    user    0m0.184s
    sys 0m0.008s
    Alexanders-MacBook-Pro:tmp alex_gaynor$ time python t.py
    .

    real    0m0.198s
    user    0m0.190s
    sys 0m0.007s
    Alexanders-MacBook-Pro:tmp alex_gaynor$ time pypy t.py
    .

    real    0m0.083s
    user    0m0.068s
    sys 0m0.013s
    Alexanders-MacBook-Pro:tmp alex_gaynor$ time pypy t.py
    .

    real    0m0.083s
    user    0m0.068s
    sys 0m0.013s
    Alexanders-MacBook-Pro:tmp alex_gaynor$ time pypy t.py
    .

    real    0m0.082s
    user    0m0.067s
    sys 0m0.013s
    Alexanders-MacBook-Pro:tmp alex_gaynor$ cat t.py
    def main():
        vals = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o"}

        for v in vals:
            for w in vals:
                for x in vals:
                    for y in vals:
                        for z in vals:
                            if v + w + x + y + z == "abcde":
                                print(".")

    main()
kingkilr··on Smart Things Jeff Bezos Has Said
https://thoughtstreams.io/glyph/they-lives/
kingkilr··on Announcing the Malcolm Tredinnick Memorial Prize
I am emphatically not a lawyer, but while I served as a board member of the DSF, I did speak with one about this! We didn't spend a lot of time on it, but the one think he noted was to avoid using the word "scholarship", because there are some regulations around those.
kingkilr··on Ruby 2.1 Garbage Collection to Address Criticism on Large Scale Deployments
PyPy wasn't, but as a result of the groundwork we laid in building it, I (and several contributers) were able to build Topaz in under a year: http://topazruby.com/
kingkilr··on Semantic UI – A language for sharing UI
Independent of any semantic-or-not discussion, the UI looks great.
kingkilr··on Postgresql 9.3 Released
diag stuff is also supported by psycopg2cffi (the postgresql adapter for use with PyPy)
kingkilr··on Efficient String Concatenation in Python
If you really care about efficiency (and are using PyPy), an actually efficient way to concat strings:

    from __pypy__.builders import StringBuilder
    builder = StringBuilder(<size estimate, optional>)
    for i in xrange(10000):
        builder.append(str(i))
    return builder.build()
kingkilr··on Efficient String Concatenation in Python
No it doesn't, and that heuristic isn't possible. It's based on looking at the reference counting and mutating an immutable object. It's pretty awful.
kingkilr··on Linus: bool is dangerous in C if you don't understand it
Really though, what isn't dangerous in C if you don't understand it. (Hell, most of C is dangerous even if you understand it).
kingkilr··on 10gen is now MongoDB, Inc.
Not a lawyer, but if the software project had an independent owner for its trademark, I believe that they'd have a case against 10gen. The name is deliberately chosen to provoke confusion between the two.
kingkilr··on Myth: Select * is Bad
It's 100% possible to use SQLAlchemy to do that in Python.
kingkilr··on Schema migrations merged into Django master
No, south migrations are not compatible, you'll have to collapse your south migrations down and start with these.
kingkilr··on Python vs Go - Requests per Second
Yes, PyPy is used in production by many companies.
kingkilr··on I hate the Pumping Lemma
I'm not sure if they're turing complete, however many many many common regexp dialects (as seen in perl, ruby, python, etc.) are more powerful than what you learned as "regular expressions" in CS class, they're at least as powerful as a PDA.
kingkilr··on I hate the Pumping Lemma
A conversation I had the other week:

Him: Do you know how to check if it's possible to write a regular expression for this?

Me: Either create an automata and then it's demonstrably possible, or apply the pumping lemma to prove it's impossible?

Him: No. Dare Stackoverflow to write it.

kingkilr··on Update on STM
Current HTM implementations limit the size of a transaction to the L1 cache, so for the time being, no.
kingkilr··on How and why writing crypto is hard (2012)
Crypto library authors seem to have taken the philosophy that "it was hard for me to learn all this stuff, so it should be hard to use". Since I started working on the cryptography library that lvh mentioned I've seen some absolutely amazing APIs from crypto libraries:

* Undocumented error conditions (actually in general the documentation is atrocious for crypto libraries, "crypto is easy, why would you need docs"?) * ECB as the default mode for block ciphers * Ignoring invalid parameters * Allowing you to provide parameters which basically your cryptography a no-op (e=1) * Modes whose purpose is undocumented, merely "This mode should not be used"

And finally, absolutely NO python crypto libraries expose AES GCM. (This is all to say nothing of the myriad of other issues I have)

kingkilr··on Django adopts a Code of Conduct
Please don't think of diversity as an issue that doesn't affect you, because you are a man. A lack of diversity affects all of us. More diverse groups perform better. If a lack of diversity is a result of artificial barriers being put into place (such as a community not welcoming new members), then that less the effect an individuals right to self-determiniation, and I believe that's an issue that effects all of us.
kingkilr··on Django adopts a Code of Conduct
We've tried to articulate the reason for having a code of conduct here: https://www.djangoproject.com/conduct/faq/#why-do-we-need

Basically the alternative to writing a code of conduct isn't not to have one, it's for it to be implicit and undocumented. Put another way: we've been moderating #django and other forums for a while, it's not fair that the rules for that were in our heads, and not on paper (bytes).

kingkilr··on Django adopts a Code of Conduct
It's not. Jacob and I started working on a code of conduct for the Django community months before PyCon.
kingkilr··on PyPy.js: First Steps
Numba isn't a general purpose python compiler, it compiles a small subset of the Python language that targets numeric computations.
kingkilr··on Apple Confirms That Its Dev Center Has Been Breached By Hackers
It's almost definitely a violation of the CFAA.
kingkilr··on Apple Confirms That Its Dev Center Has Been Breached By Hackers
The Computer Fraud and Abuses Act is incredibly broad, it's basically impossible to prove a vulnerability like this exists without violating it.
kingkilr··on Gittip at Khan Academy
If you enjoy speaking or attending conferences, I've tried to use some of the money (since I'm also in the "have a full time job" boat) towards going to conferences I normally wouldn't, and trying to be an asset to the community there.
← PreviousPage 3 of 26Next →