Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cdavid
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
421.
▲
by
cdavid
15y ago
There are actually ways to profile python functions on a per-line function (e.g. the line profiler from Robert Kern: http://packages.python.org/line_profiler )
422.
▲
by
cdavid
15y ago
Don't worry too much about it. I know it is often said that good programmers start early, but it is not an absolute rule. Not that I consider myself great or anything, but I start to program when I was around 24-25. Now, 5 years later I am
423.
▲
by
cdavid
15y ago
Yahoo Japan is a pretty Japanese company (dunno about the proportion of Japanese workers there). I only got a very small look at it during interview there, but google Japan seems much more westernized as far as the workforce is concerned. I
424.
▲
by
cdavid
15y ago
Concerning websites, when you compare rakuten Japan and say UK, you see a stark difference in how things are presented. This may just be due to the UK site being done outside Japan/by foreigners, but this would hint at a some preference tow
425.
▲
by
cdavid
15y ago
My own hypothesis about failure of Japanese companies in software is the "pursuit to perfection". This is pervasive in the Japanese work ethic and culture in general. I still vividly remember the first comment of a small prototype aimed at
426.
▲
by
cdavid
15y ago
I don't think Travis is suggesting to the pypy people to do all the work, but rather contribute to the discussion to help the numpy community as a whole for a way forward that makes it easier for both pypy and numpy own needs.
427.
▲
by
cdavid
15y ago
But those packages do not just depend on C libraries. They also depend on the numpy C API. If emulating the C API of CPython is too much non-fun work, I would expect the same to be true for numpy C API.
428.
▲
by
cdavid
15y ago
This is again a different argument. I understand it is more fun, more rewarding and more challenging to implement a new array module on top of pypy. But it is seriously doubtful that it is the best way forward to make pypy usable for librar
429.
▲
by
cdavid
15y ago
There is no question about the value of numpy on top of pypy. The issue is whether a reimplementation from scratch is the best way to achieve that.
430.
▲
by
cdavid
15y ago
fair enough. But you could also argue that this reinforces my point, as few people use pypy instead of python.
431.
▲
by
cdavid
15y ago
The current code only implements a fairly trivial array structure in python, and it does not seem to implement any expression lazyness. But pypy should obviously make it easier to try this kind of things compared to the current numpy.
432.
▲
by
cdavid
15y ago
The strategy followed by pypy to reimplement numpy from scratch makes it rather unlikely that it will support packages depending on numpy, because of the various dependencies on numpy's implementation details.
433.
▲
by
cdavid
15y ago
If you have nested loops, numpy will indeed not help you. Numpy per-item access is actually slower than python usual container (list, tuple). You could post the code that is actually slow, so that one could help you to make it faster. As fo
434.
▲
by
cdavid
15y ago
I think you are confused about what a page fault is: that's what happens when the memory manager of your OS needs to load a page from the disk ("swap"). Dynamic language does not help you at all for that. It does not help you with segfault
435.
▲
by
cdavid
15y ago
it could also be racket, which is still prevalent I believe. At least several foreign bar owners told me they had to give money to them.
436.
▲
by
cdavid
15y ago
Most Japanese families have a coat of arms. Yamaguchi is the strongest yakuza group (according to wikipedia, it would be around 55000 members), and has a specific daimon: http://en.wikipedia.org/wiki/File:Yamabishi.svg. hishigata means di
437.
▲
by
cdavid
15y ago
There is a link in the article about TGV accidents (although to be fair, it is a website about TGV, so maybe biased toward TGV safety, I dunno). It should be noted though that the French railway system is pretty good from a quality POV, if
438.
▲
by
cdavid
15y ago
Nobody is discussing about usual mathematical definitions: this is about the IEEE754 standard. In that context, x / 0 is defined (to positive infinity). I was pointing the error of the OP about the explanation about Nan != Nan.
439.
▲
by
cdavid
15y ago
actually, they are both equal to infinity: #include <stdio.h> int main() { float a = 1. / 0; float b = 2. / 0; printf("%f == %f ? %d\n", a, b, a == b); return 0; } will print: inf == inf ? 1
440.
▲
by
cdavid
15y ago
You may mix up with linux (which does not save the FPU state: that's why you can't use most floating point operations in the kernel).
441.
▲
by
cdavid
15y ago
This is not exactly true. We can alleviate the GIL issue by releasing it inside C extensions, true, but it is still there nonetheless. Incidentally, one of the big advantage of the GIL is to make C extensions easier to write.
442.
▲
by
cdavid
15y ago
At least I found DIP to be a more than decent book (my background before was mostly C and matlab). Certainly not a great book, but I have yet to find one of those for python. The python tutorial is ok if you don't know much about programmin
443.
▲
by
cdavid
15y ago
In my experience, when you have a system that works, is creaky, and you have to spend days to understand how thing work, there is at best a significant gap between actual and specified behavior. Most of the times, there is actually no spec
444.
▲
by
cdavid
15y ago
I am pretty much a beginner in database handling, what would you suggest for 1 ? Concerning 2: how do handle schema fixes (example: at my previous job, the tables were very badly designed, and the application+schema combination prone to fre
445.
▲
by
cdavid
15y ago
Continuous deployment sounds right to me in principle, but I have yet to see a system to handle rollback in the face of database handling (one slide mentioned this briefly). When you have a bug (say you delete the wrong data), how do you ro
446.
▲
by
cdavid
15y ago
I don't understand how BRPOPLPUSH helps you doing things you could not do with centralized syslog: you can also start indexing things with syslog by analysing the central logs without changing anything client-side. And in both cases, what w
447.
▲
by
cdavid
15y ago
I don't really understand your list in view of the article. How is this solution more queryable than syslog: they record events into redis without any schema related to it (just a string), so I fail to see the improvement there. They put it
448.
▲
by
cdavid
15y ago
Also, twitter is at a point where they can afford the best programmers, and where hardware efficiency becomes a big issue. In my experience, a lot of web-based small companies are more limited by skill, development practice than language an
449.
▲
by
cdavid
15y ago
It depends on the communities. For web developers, which depend on few compiled dependencies, this works well. For some other communities, like scipy community, not so much. Incidentally, mac os x is the worst platform to support ATM in tha
450.
▲
by
cdavid
15y ago
Actually, most of the worsening debt situation is due to the financial crisis started 3 years ago, but this would not fit into a story which benefit any political side ( http://www.cepr.net/index.php/blogs/beat-the-press/president... ). Fra
More ›