Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zardeh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
151.
▲
by
zardeh
11y ago
What? Py2/3 shouldn't impact CV code at all. THe major issue should be installation, which is generally a solved problem. OpenCV, and the scipy stack fully support python3, and are some of the best documented libraries I've e
152.
▲
by
zardeh
11y ago
This would be a textbook example of overfitting, yes?
153.
▲
by
zardeh
11y ago
Its that microbenchmarks are useless. If it was worth my time, I could come back and use any of the available python tools (cython, numba, etc.) to compile that function to native code from python syntax and achieve native speed. Or I could
154.
▲
by
zardeh
11y ago
Is D or the compiler doing something sneaky and inlining something, because I'd expect doing 100x more things to take 100x more time for a linear algorithm,but it takes you on the order of 10x more time. Does the original function run
155.
▲
by
zardeh
11y ago
Sure, but the claim he's making is that D is faster than the numpy numerical algorithms. This is patently false. The C or fortan code that is doing the numerical calculation is as fast or faster than the D code he's running. Al of
156.
▲
by
zardeh
11y ago
That still doesn't matter. So much of the work is being done in python that you're benchmarking the overhead of python, not the numpy speed. I mean this is a terrible benchmark. Comparing to pure python, the numpy code is about 4-
157.
▲
by
zardeh
11y ago
And here we have a case of why microbenchmarks don't work. What you're measuring here isn't a speed difference in the mathematical code, its a constant time overhead from calling into the numerical libs. Up your array size by
158.
▲
by
zardeh
11y ago
You do if it causes language development to stagnate.
159.
▲
by
zardeh
11y ago
protobuff supports 3.0 (though apparently the pip3 version still requires you to manually run 2to3, but then it works) and there's already a port of fabric (ish) by the original author to py3. And Ansible should be python2 until distro
160.
▲
by
zardeh
11y ago
Who said you trusted each other?
161.
▲
by
zardeh
11y ago
Such as.... The entire scipy stack, ntlk, tensorflow has partial 3.0 support and plans to support both, caffe, theano, etc. There are few to no libraries that don't support, or don't plan to soon support both.
162.
▲
by
zardeh
11y ago
you are exactly correct.
163.
▲
by
zardeh
11y ago
consider the example @decorator_without_args def function(): pass this is equivalent to function = decorator_without_args(function) now consider the other case, where the decorator takes in some args: @de
164.
▲
by
zardeh
11y ago
I think rails ( https://github.com/rails/rails ) would qualify.
165.
▲
by
zardeh
11y ago
Reddits stated policy was to remove harassment (and harrassing subs). So fph harrassed users and broke that policy. Coontown, while also racist and imo worse, stays in its box, doesn't brigade, doesn't target specific people, an
166.
▲
by
zardeh
11y ago
No, she intended to post something in an admin sub and didn't. https://www.reddit.com/r/announcements/comments/3cbo4m/we_ap... And they've officially denied shadowbanning anyone in that thread.
167.
▲
by
zardeh
11y ago
there is no /r/all for irc or newsgroups.
168.
▲
by
zardeh
11y ago
Implement it as a merkle tree so that you can reference parents and know it will only evolve forward.
169.
▲
by
zardeh
12y ago
So, uhmm, def parse(s): return json.loads('['+re.sub('([")])\s*(["(])','\g<1>,\g<2>',re.sub('[^()\s]+','"\g<0>"',s)).replace('(','[
170.
▲
by
zardeh
12y ago
Here's the problem: `a<b>c` is already valid python. `3<5>2` evaluates to true, because python allows operator overloading. Because the < and > operators can be overloaded, there is no guarantee that an object of ty
171.
▲
by
zardeh
12y ago
Furthermore, at scale, interference sucks.
172.
▲
by
zardeh
12y ago
As a reasonably proficient juggler and a less than reasonably proficient roboticist: The only functional juggling robot at any scale is housed inside a case and doesn't use an arm, it can juggle at exactly one width, and doesn't u
173.
▲
by
zardeh
12y ago
Wayne Gretzky?
174.
▲
by
zardeh
13y ago
Not him, but I use a Yoga 1 as my main laptop (CS undergrad) and I run ubuntu 13.10 on it. Getting wifi working takes a bit of work, and I don't have full functionality (though you can get it working with some scripts, I just don'
175.
▲
by
zardeh
13y ago
Are you by any chance thinking of a http://en.wikipedia.org/wiki/Bloom_filter ?
176.
▲
by
zardeh
13y ago
bogosort does that already. I ran it on an the array [0,1,2,3,4,5,6] and it took between 3 hundred million and 1 billion operations (by my marginally accurate counter) and between 6 and 20 minutes, but mine was in python, not C.