Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cdavid
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
115 ms
·
511.
▲
by
cdavid
16y ago
Or maybe you are expecting one context and the author is using a different one. This is quite likely given the author (a well known hacker, and having worked in particular on this exact problem through his project codeville)
512.
▲
by
cdavid
16y ago
Or more simply, use a passphrase where words are truely selected by random (diceware).
513.
▲
by
cdavid
16y ago
Concerning the 35 hrs/week: it is the legal duration for work above which you are supposed to pay a higher hourly rate. It is NOT a maximum, and many people work more than 35 hrs/week (the figures for working hours are pretty similar betwee
514.
▲
by
cdavid
16y ago
No, I think it is a terrible example at so many levels it is not even funny. The only interesting thing about that example is how almost any other solution is much better. I would consider quicksort to be a quite simple example if you use a
515.
▲
by
cdavid
16y ago
if you are interested in new insights about complex numbers and analysis from a geometric POV, this book is wonderful: http://www.amazon.com/Visual-Complex-Analysis-Tristan-Needha... and quite accessible.
516.
▲
by
cdavid
16y ago
Agreed - the problem is not recursion, but that it becomes useful for actual complex problems. I understand recursion pretty well at a conceptual level (my background is math, mostly self-taught for CS), but I have a hard time using it for
517.
▲
by
cdavid
16y ago
inlineCallback overhead can certainly become significant. Saying that it is not an issue because it is nothing compared to IO only works if you are not CPU bound in the first place - but for many applications in python, you are CPU bound. U
518.
▲
by
cdavid
16y ago
It is not that simple in real life, unfortunately. Even ignoring the fact that inlineCallbacks's overhead is significant, inlineCallback forces you to serialize things which may be run in parallel. If you do yield f1() yield f2()
519.
▲
by
cdavid
16y ago
I have to ask: what reasons do you have in mind for the "sketch why this could happen". I have never worked for a large corporation, and besides usual miscommunications between departements about official policy, I cannot find any reasonabl
520.
▲
by
cdavid
16y ago
You sometimes see one or two Apple people at speech conferences, at least it was true 2-3 years ago. I cannot imagine that not to be the case anymore.
521.
▲
by
cdavid
16y ago
Latin is and most likely already was in the XIXth century a tool to discriminate people, which is one of the role of education (even more so in the XIXth century maybe ?). There are at least two ways to look at education from a purely econo
522.
▲
by
cdavid
16y ago
For the C rationale: yes, I want to use clang to generate cython interface files from pxd (I have an horrible hack using gccxml ATM: https://github.com/cournape/cython-codegen ), and I would prefer writing the tool in python from ctypes. D
523.
▲
by
cdavid
16y ago
Does anyone have experience with using the C API from clang ? Does it improve from former versions (doc, stability) I would really like to get a reliable C header parser for code generation, and gccxml is just damn awful to use.
524.
▲
by
cdavid
16y ago
I know very well about the use of static within compilation unit, but I was referring to "public API" (more exactly: API between components of your application). This is especially excruciating once you need to use various libraries outside
525.
▲
by
cdavid
16y ago
I don't think it is an issue of technology (typedef, etc...) as much as an application target issue. Using short names in a language without any kind of namespace support can only work for a certain type of applications and developmenent or
526.
▲
by
cdavid
16y ago
Don't hesitate to ask on the ML (while I know numpy fairly well inside out, I am not the best person to talk about parallelism). There is also a lot of talks available in the scipy conferences video. See http://conference.scipy.org/scipy20
527.
▲
by
cdavid
16y ago
There is not effort to "get numpy working on cython" (I am not sure what it would really mean). There is an effort to refactor numpy code between the python-dependent part and the more core, "pure C" part, which would help. Adding pypy as a
528.
▲
by
cdavid
16y ago
The big issue here is that most scientific code in python runs on top of numpy, and getting numpy to work on top of pypy would be challenging. I understand that relying on a C extension compatibility layer would make things slower at first,
529.
▲
by
cdavid
16y ago
I have never used the parallel stuff in ipython, but my understanding was that it was more for cluster-kind of stuff. This is getting significantly rewritten, also, so things are changing there. But the way most people use parallel stuff in
530.
▲
by
cdavid
16y ago
One thing to note is that the authors are foremost very well known machine learning researchers. Reading Bottou's PhD thesis (in French unfortunately for most HN readers) was kind of depressing in a way, when you see the kind of things he d
531.
▲
by
cdavid
16y ago
I am curious about why you think numpy/scipy does not fit that bill ? Python is a straightforward general purpose programming language, has a lot of stats functionalities, can access GPU functions. While python's story for parallel programm
532.
▲
by
cdavid
16y ago
primary sources is known to be one of the worst way to study any field, especially when you are not familiar with it, because you lack the context, and because they are rarely written for the profane. This is all the more true for maths: ha
533.
▲
by
cdavid
16y ago
Yes, this is a real pain point, because that's exactly why you need everything to be non-blocking in the libraries you are using with something like node.js (things like twisted in python have exactly the same issue). Not only do you need n
534.
▲
by
cdavid
16y ago
So it is more an architecture issue with conventional hardware ? It makes much more sense to me with this explanation - the issue is the same as in most real-time systems then (like in embedded hardware for audio gears, which is more famili
535.
▲
by
cdavid
16y ago
This seems a bit surprising: what is the latency coming from the NIC to the motherboard ? I somehow doubt the latency due to distance within one piece of hardware matters (current CPU cannot do much more than a few 1000s cycles for the elec
536.
▲
by
cdavid
16y ago
As someone who studied maths before programming, I think the only real predictor is whether you are comfortable with discrete mathematics. I don't find most mathematics I learned (undergrad + stats/EE at graduate level and above) very usefu
537.
▲
by
cdavid
16y ago
B is especially important for python people - it is my understanding that a lot of pypy current benchmarks are coming from unladen swallow.
538.
▲
by
cdavid
16y ago
While I like some of the things Ubuntu did for Linux, I don't think that'a good example as a business. As far as I know, they still don't make money. I don't know any significant business linked to linux on the desktop, actually, they all f
539.
▲
by
cdavid
16y ago
I am not familiar with leiningen or clojure, but it looks like you are just adding a list of requirements + version, which is exactly what you get with pip + requirements.txt file ?
540.
▲
by
cdavid
16y ago
But what's the difference with python at that point ? Is is because the JVM makes it inherently easier ("one" jvm, one bytecode, no difference between version/build options for C extensions) ?
More ›