Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
weberc2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
172 ms
·
961.
▲
by
weberc2
8y ago
Pandas isn't the problem, the problem is assuming that "$LIBRARY releases the GIL so things will be fast!". It's a pennywise, pound-foolish approach to performance. Someone will write a function assuming the user is only
962.
▲
by
weberc2
8y ago
> The event loop will literally print out all the un-awaited coroutines when it exits IIRC, I've only ever seen "unawaited coroutine found" (or similar) errors; I've never seen anything that points to a specific unawa
963.
▲
by
weberc2
8y ago
Because you’re using Numpy via an intermediate library like pandas and you have composite data in one column?
964.
▲
by
weberc2
8y ago
Not everything is amenable to numpy and it's pretty easy to make performance worse by throwing numpy at every problem. For example, if your array contains Python objects that are part of an operation, you've likely just introduc
965.
▲
by
weberc2
8y ago
Even if your app is IO bound, Python's concurrency is painful. Because it's not statically typed, it's too easy to forget an `await` (causing your program to get a Promise[Foo] when you meant to get a Foo) or to overburden yo
966.
▲
by
weberc2
8y ago
You're supporting the parent's point that it's contextually dependant.
967.
▲
by
weberc2
8y ago
> There is no agreed-upon definition of weakly and strongly typed; It is a nonsense word. Sure there is. Strong typing means a language doesn't permit implicit type coercions. > Any Haskell programmer would laugh at someone who c
968.
▲
by
weberc2
8y ago
> It seems unfair because I guess you're thinking of situations where then subjugated races can then be racist towards non subjugated ones? It's not a question of "fairness"; it's a question of whether or not the
969.
▲
by
weberc2
8y ago
It's not possible to communicate the full nuance of any ideological group, especially not in every HN post or tweet. We need meaningful definitions even if these definitions don't 100% apply to every individual in the group. And w
970.
▲
by
weberc2
8y ago
Disclaimer: As mentioned elsewhere in this thread, I don't particularly like the term "SJW" for its pejorative connotations, but I'll use it since it's the established term in this thread. It's not an opinion,
971.
▲
by
weberc2
8y ago
Earnest question--what is the non-perjorative word? "Progressive" is the closest I've found. I genuinely want to debate ideas, but I'm not sure what the most precise term is.
972.
▲
by
weberc2
8y ago
I agree that we need a better term, but I don't perceive it as being co-opted by the alt-right so much as a pejorative that gives the user an air of bad faith. I want a neutral label for people who advocate for race/gender caste s
973.
▲
by
weberc2
8y ago
There is a difference between making observations about different political ideologies (what the parent was doing) and advocating for the establishment of racial, gender, etc hierarchies (what "SJWs"--for lack of a better term--do
974.
▲
by
weberc2
8y ago
Can't speak for OP, but Social Justice (tm) is mutually incompatible with social justice. The former is roughly a movement to establish identity-based hierarchies while the latter opposes these hierarchies. So when people say they'
975.
▲
by
weberc2
8y ago
I'm a moderate liberal and I percieve SV as being quite a lot farther left than me. Notably Google terminating James Damore and Apple terminating Denise Young Smith for dissenting from progressive orthodoxy in the most inoccuous ways p
976.
▲
by
weberc2
8y ago
The startup costs are fixed (they don't increase linearly with the number of loop iterations) and for such a small program, they could not reasonbly explain more than 1s of the 20s gap between C and Java. Also, I don't think it&#x
977.
▲
by
weberc2
8y ago
How does the lone contractor model compare with working for a contractor company?
978.
▲
by
weberc2
8y ago
Which government?
979.
▲
by
weberc2
8y ago
Are you opposed to all kinds of intellectual property protections or just this one domain? In particular, why should anyone put R&D into developing better varieties of crops if their innovations aren’t protected? Or perhaps improving cr
980.
▲
by
weberc2
8y ago
I'm not sure if you missed my distinction between far-left and moderate-left or if I'm misunderstanding something about your response. I agree that these institutions have long been left-of-center, but they used to be liberal (i
981.
▲
by
weberc2
8y ago
Yeah, I'm not sure that "far left" is the appropriate term, but I wanted to communicate "people to the left of moderate liberals". I'm thinking people whose "egalitarian" vision demands segregation an
982.
▲
by
weberc2
8y ago
Agreed, although the right-wing echo chamber is rightly marginalized (in the literal sense of the word), while the far-left are running newsrooms, universities, associations, corporations, public education, etc. I don't think the far-l
983.
▲
by
weberc2
8y ago
Granted, it's not a general purpose programming language, but it has a comparable learning curve. Certainy many times steeper than YAML or JSON or other markup languages.
984.
▲
by
weberc2
8y ago
I did some profiling too--I shaved off 10-15s by using the C xorshift implementation instead of rand.Float32() (which spends a lot of time locking a mutex).
985.
▲
by
weberc2
8y ago
I rewrote the Go benchmark to be a mechanical translation of C and it performs much better. C (gcc -O3): 23.8s Julia (julia 1.1.0): 32.8s Go (alt) (go 1.12): 39.3s Java (java 1.8.0_60): 44.2s
986.
▲
by
weberc2
8y ago
It's surprising that the optimized C is slower; it's much faster on my machine. Like 20s (optimized C) vs 1m20s (unoptimized C).
987.
▲
by
weberc2
8y ago
I'm 99% sure the Go version doesn't allocate any vectors; afaict, it's passing everything on the stack.
988.
▲
by
weberc2
8y ago
The Go version spends 8 seconds writing data. This is probably par for the course for most implementations.
989.
▲
by
weberc2
8y ago
Those are copied on the stack, not heap allocated, so the GC wouldn't come into play.
990.
▲
by
weberc2
8y ago
I modified the Go version to pass references (see my second edit) and that made up the difference (or I mistranslated).
More ›