Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
btmorex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
btmorex
10y ago
Sports teams don't actually pay market rates. Every sport that I can think of limits pay in one way or another especially for stars, ostensibly so that small market teams can compete with big market teams.
62.
▲
by
btmorex
11y ago
Clearly, you don't live in a city. 2.4Ghz on any channel is nearly unusable in my apartment (5Ghz fairs better I think because it penetrates obstructions less easily). My laptop can currently detect >50 wifi networks.
63.
▲
by
btmorex
11y ago
I would redesign your protocol to be request/response based akin to http. Achieve performance by using multiple connections in the client. Simplicity > efficiency especially if you don't have the engineering resources of a comp
64.
▲
by
btmorex
11y ago
I don't believe that you have too many active connections for threading to work. Passive connections can be handled by a single or small number of threads. Modern Linux on modern hardware has no problem with many thousands of threads a
65.
▲
by
btmorex
11y ago
Threads
66.
▲
by
btmorex
11y ago
Why are you reinventing a scheduler when the OS (at least Linux) already provides a good one?
67.
▲
by
btmorex
12y ago
Not saying netstat isn't slow, but: # time sh -c 'netstat -tn | wc -l' 486206 real 0m13.538s user 0m1.698s sys 0m10.380s It still works with a whole lost of connections. (in fairness, only about 130k were connected)
68.
▲
by
btmorex
12y ago
You're wrong, but I think you just don't have the right kind of experience to understand why.
69.
▲
by
btmorex
12y ago
fwiw, on linux with g++-4.8.2: qsort: 4415 ms std::sort: 4413 ms Some comments: 1.) std::sort doesn't require twice as many comparisons 2.) You not only have a vector with equal items, you have a vector of the same item repeated. That
70.
▲
by
btmorex
12y ago
As long as std::sort can fit in the instruction cache, who cares? (outside the embedded world obviously) It will always be faster unless you're getting regular instruction cache misses.
71.
▲
by
btmorex
12y ago
To play devil's advocate for a minute: Nearly all useful, reusable software today is written in a mostly or entirely imperative language. This is despite the fact that functional programming has been around for at least 20-30 years. So
72.
▲
by
btmorex
12y ago
not corrupt != everything is peachy At the very least, you need to be prepared for a possibly very long replay of logs. Also, a huge number of people run databases in a configuration that doesn't make those guarantees. For example, man
73.
▲
by
btmorex
12y ago
Yup, there are risks too though with that approach. You should be sure that ulimit for core size is large enough (not default almost always). Also, a core dump can take a very long time if your programs address space is large. It might in
74.
▲
by
btmorex
12y ago
As if often the case with stackoverflow answers, all of them are wrong in different ways. You should only kill -9 when every other signal the program is likely to respond to has not worked. kill -9 is likely to leave program in a state that
75.
▲
by
btmorex
12y ago
Google is and always has been downright hostile to anything that comes from outside Google.
76.
▲
by
btmorex
12y ago
Not employed at google, but I'm sure I'm in a similar situation in terms of deciding whether and when to port. There are a lot us of who think either: 1.) python3 will die (long live python 2.x) 2.) python3 will become easier to p
77.
▲
by
btmorex
12y ago
Basically unreadable. Not sure what you were going for, but I think it was the wrong thing. Off the top of my head: 1.) There's no reason not to use newlines. They have no chance of introducing bugs in any reasonable language and they
78.
▲
by
btmorex
13y ago
I'm sorry you cannot feel compassion or empathy for your brother. From personal experience, it makes it much easier if not understandable.
79.
▲
by
btmorex
13y ago
So, I had a long response written out, but I decided it didn't really get to heart of the matter. Here's the short response: Every time you start a new character, it takes a while -- at least a couple hours -- to get to a comforta
80.
▲
by
btmorex
13y ago
No, automatic memory is always easier to use. It also always has a performance cost. Garbage collection has a ton of problems in systems applications (off the top of my head: unreasonable and unpredictable delays, incapability of dealing wi
81.
▲
by
btmorex
13y ago
Whenever I read something like this, I'm reminded of that Winston Churchill quote "It has been said that democracy is the worst form of government except all the others that have been tried". I think C++ usage is one of those
82.
▲
by
btmorex
13y ago
JustFab is a trash company and you're a trash investor. They won't last and you won't last.
83.
▲
Notes from a Growth conference
(medium.com)
1 points
by
btmorex
13y ago
|
0 comments
84.
▲
Mixpanel Now Analyzes More Than 15 Billion Actions A Month
(techcrunch.com)
1 points
by
btmorex
13y ago
|
0 comments
85.
▲
by
btmorex
13y ago
Interesting, although I think that makes the benchmark even less useful because the heart of it (generating random numbers) is not using the same algorithm across languages.
86.
▲
by
btmorex
13y ago
This test isn't actually a great benchmark between languages because, as the author correctly points out, it's mostly a test of random number generation and presumably all of those languages use libc's random number generator
87.
▲
by
btmorex
14y ago
I thought this was going to be a modern fuckedcompany replacement. Have to admit, I was little disappointed.
88.
▲
by
btmorex
14y ago
In fairness, steam videos don't work for me even in Windows. Something about wrong flash version. I really wish they would just embed a normal video player.
89.
▲
by
btmorex
14y ago
Nate Silver gives Romney a ~20% chance of winning because there's a chance that the polls are systematically wrong. Each polling firm comes up with their own likely voter model and participation model. If they're are correct in the aggregat
90.
▲
by
btmorex
14y ago
If anyone finds themselves needing to write a Websockets implementation, there's an awesome protocol test suite at http://autobahn.ws/testsuite I wrote a C++ implementation for a side project and with the aforementioned test suite I actua
More ›