HN user

zde

13 karma
Posts0
Comments48
View on HN
No posts found.

Single pass compiler with back-patching. No intermediate code representation, very simple optimizer (just constant folding and dead code removal). C Preprocessor integrated with parser code. Back-end generates instruction opcodes instead of assembly, eliminating another stage.

[dead] 9 years ago

Loved the part that explains how to prevent your servers from being hacked. You must "defend it" with energy drinks.

Guido said in some interview they used tagged pointers in some project before Python, and it didn't work well. Apparently there is some benefit in "value is always a reference" (less code paths?) that outweights somewhat larger heap pressure.

When the server is done processing a request, the allocator goes out of scope and all memory allocated for that request is deallocated.

Forking servers, reinvented.

Latency matters 9 years ago

Python startup latency is horrible, and unfixable. It got much worse in python3 because it loads much more modules (think of all the unicode crap).

String.intern() 9 years ago

String.intern() would suck much less if strings had an "IS_INTERNED" flag which would prevent hashtable lookups for already interned strings. Really sad given the insane overhead Java strings have.

[dead] 9 years ago

Beware: Wikileaks are Russian. She said so.

Fast Python loops 9 years ago

Likely not, managed code tends to avoid nulls. They are problem in the return path though.

Fast Python loops 9 years ago

In the time frame spent to test these hacks I would have written a perfect C module that runs circles around it.

separate problem

Nope. When doing business, the only thing that counts is formal, verifiable spec. Crying "You have cheated since I wanted somehing else" should be irrelevant in any country that honors rule of law.

specifically designing their cars to cheat on the existing test.

Test is a predicate. It can pass or fail, but you can't cheat it.

actively circumvent the purpose of the test

Hmm, that's probably closest to something I can accept as an argument. Nice. But to circumvent the purpose requires an actual purpose. If the purpose is formal, it's the test itself. And if it's not formal, then it's IMO impossible or very hard to prove that it has been circumvented.