Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kingkilr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
80 ms
·
331.
▲
by
kingkilr
15y ago
A related view of language evolution: http://www.reddit.com/r/programming/comments/90g80/history_o...
332.
▲
by
kingkilr
15y ago
I'm a little disappointed that people are still talking about tagged ints. There are so many better ways to avoid the overheap of integers being a refrence type (namely type specializing everything under the sun, particularly your JIT'd c
333.
▲
by
kingkilr
15y ago
Also works with mysql-ctypes: https://github.com/quora/mysql-ctypes
334.
▲
by
kingkilr
15y ago
no longer true, virtualenv 1.6.1 supports pypy nicely!
335.
▲
by
kingkilr
15y ago
Yes, compile times are rather long, about 40 minutes for the full interpreter on a recent, fairly good, laptop. On the other hand you don't need to do a compile all that frequently, because all the code is testable by executing directly ato
336.
▲
by
kingkilr
15y ago
http://stackoverflow.com/questions/6277174/are-generators-su... explains why we don't have generators in RPython
337.
▲
by
kingkilr
15y ago
* The JIT is written in RPython. * Comparing code with C is pretty difficult for all but the easiest 1-1 ports (i.e. numeric stuff), so I don't have good comparison numbers for it. * Yes, I tried to improve the submissions to the benchmark
338.
▲
by
kingkilr
15y ago
I have some answers! * Yes, the JIT is part of the RPython translation toolchain (more on this in a few) and can be used in other interpreters, for example we have Scheme, Javascript, Prolog, and Haskell in varying level of completeness (Pr
339.
▲
by
kingkilr
15y ago
Yes, it does probe at site URLs, you can look at libprobe.py to see all the indicators it takes into account.
340.
▲
by
kingkilr
15y ago
Strength reduction in this vein is pretty trivial though, even if there is lower hanging fruit. For example this is what transforming some_int * a_power_of_two looks like in PyPy: https://bitbucket.org/pypy/pypy/src/default/pypy/jit/metai
341.
▲
by
kingkilr
15y ago
Interesting, but seems a little primitive compared to the cleverness in https://github.com/mitsuhiko/probe
342.
▲
by
kingkilr
15y ago
not for floats (which javascript numbers are) on x86 (using the XMM registers, I don't know the x87 numbers offhand), last I checked a MULSD is 5 cycles, and ADDSD is 3, therefor conversion doesn't generally make sense.
343.
▲
by
kingkilr
15y ago
Python has Java like closures? No comprende.
344.
▲
Announcing the release of MySQL-ctypes for Python
(quora.com)
19 points
by
kingkilr
15y ago
|
1 comments
345.
▲
by
kingkilr
15y ago
A few of us at our office have had beta access for a few weeks, everyone with it (for some reason I got left off the invite list :/) likes it, but the one person I know who also has an rdio account prefers rdio.
346.
▲
by
kingkilr
15y ago
Nope, wrapped values are interpreter level objects, they're the kind of things that exist at the Python level, in PyPy they're called things like W_IntObject, on CPython they're PyIntObject, I'm sure Ruby has the same. Then there are unwra
347.
▲
by
kingkilr
15y ago
I don't think so, in my experience working on dynamic languages there's no need to kill bytecode, it's a useful intermediary form, as you still need either a stage-one compiler or an interpreter anyway, and interpreters are (to a first appr
348.
▲
by
kingkilr
15y ago
Wrong on both (but not far off) :P a) It's a "restricted subset of PHP" it doesn't compile the entire language, b) it compiles to C++.
349.
▲
by
kingkilr
15y ago
I think this goes to a pretty simple point: anything you have to do by hand you will eventually get wrong. Thus, to a first approximation anything that can be automated, probably ought to. To show off this principle I'm going to show off s
350.
▲
by
kingkilr
15y ago
I'm guessing it's Ron Paul and I'd be shocked if he has an inkling of an understanding of the technology.
351.
▲
by
kingkilr
15y ago
Well, undefined means the compiler is able to generate any code it pleases, includig, but not limited to, segfaulting, invoking NetHack, or raping your family.
352.
▲
by
kingkilr
15y ago
> it's not going to rape your family, it'll just crash Well, if it hits undefined behavior it could in fact rape your family, the standard allows for that.
353.
▲
by
kingkilr
15y ago
Well the answer is "InvokeDynamic" of course :) FWIW I've heard that term brandied around for 3-4 years at this point, and I still have no idea what it means, and I'm a VM implementer. Personally, my feeling is that implementing a languag
354.
▲
by
kingkilr
15y ago
I've never built a time keeping system, but this is how I put that number in perspective. For $63 million I can hire everyone who's ever been a Django core developer (people I've worked with, and who are excellent) for 5 years, at 500k a y
355.
▲
by
kingkilr
15y ago
The goal is to remove the GIL from PyPy. RPython (the language our VM is written in) has excellent annotations on things like side-effects.
356.
▲
Global Interpreter Lock, or how to kill it
(morepypy.blogspot.com)
165 points
by
kingkilr
15y ago
|
43 comments
357.
▲
by
kingkilr
15y ago
That's correct, the US does taxes by citizenship, whereas most countries do it by residence.
358.
▲
by
kingkilr
15y ago
Only where AT&T is involved could we rush to the defense of IE6.
359.
▲
by
kingkilr
15y ago
The original paper was a joke, as anyone who read it knows, for example the Scala version submitted didn't even implement the same algorithm as the other submissions.
360.
▲
by
kingkilr
15y ago
Yes, but if in searching my neighbor's property they were poking in my living room that would be an illegal search of my property. I'm not sure which metaphor is stronger, but it's certainly not a clear case either wya.
More ›