Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lqdc13
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
361.
▲
by
lqdc13
11y ago
Yeah, those two. There are some Latvian ones as well. What are some of the issues you've ran into with them? Genuinely curious.
362.
▲
by
lqdc13
11y ago
Why not just get two dedicated servers and have one be used as a backup? For $60/mo you can get 4Tb space free, basically unlimited bandwidth and a permanent 4XL-equivalent instance that makes scaling up to that point extremely easy wi
363.
▲
by
lqdc13
11y ago
Why not Swig2?
364.
▲
by
lqdc13
11y ago
There are usually issues in compatibility between linux zip utility and the mac one. Has to do with zip not being backward compatible. How does atool deal with cases where there are two versions of the same extractor?
365.
▲
by
lqdc13
11y ago
Interestingly, it's opened by the same command on both OSes - tar -xf some_file.tar.xz tar -xf some_file.tar.gz
366.
▲
Tell HN: Meta HN: Mobile CSS on Firefox Mobile/Opera Mini
1 points
by
lqdc13
11y ago
|
0 comments
367.
▲
by
lqdc13
11y ago
Python has MPI4PY and Multiprocessing. Not sure why you need threads in the first place. Also, many matrix operations autoscale to all cores when compiled against Atlas. Finally, you can release the GIL with Cython: http://docs.
368.
▲
by
lqdc13
11y ago
cProfile takes a while to learn how to use well. What didn't you like about line_profiler? Here's a good guide on how to write fast(ish) code in Python: https://wiki.python.org/moin/PythonSpeed/Performan
369.
▲
by
lqdc13
11y ago
Very resouce hungry though which translates to poor battery life. One such image on every web page and you would only be able to browse the web for an hour a day.
370.
▲
by
lqdc13
11y ago
I actually think people end up thinking more about it. Sometimes you have several "devops" people in a small team dealing with orchestrating these "serverless" deployments so as to reduce latency etc.
371.
▲
by
lqdc13
11y ago
You might be right. I just went to one comparison site: http://www.gamespot.com/articles/amd-radeon-r9-390x-review/1...
372.
▲
by
lqdc13
11y ago
Solution that works for me is to add the ppa from this page: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa Everything else requires having to turn off lightdm service or having to ssh to the mac
373.
▲
by
lqdc13
11y ago
I'm not sure what applications you're talking about when you say they get crushed by Nvidia. AMD has faster integer operations so they're much better for hashing operations like bitcoin mining and password cracking. Nvidia is
374.
▲
by
lqdc13
11y ago
Not sure about 2GB limit though. It doesn't work well at low RAM. Probably better to just use your own suffix tree or some trie for all the stuff you want to search for and use that. I bet you can get it down to something like 100MB.
375.
▲
by
lqdc13
11y ago
Wow! That's a lot of code! I'm always surprised how nytimes comes up with these sometimes for a single story.
376.
▲
by
lqdc13
11y ago
Sure, but why did you enable the -R flag? We are talking about the default way of doing things in the most commonly by far used implementation. I'm not saying someone should have relied on the specific ordering or that the code that do
377.
▲
by
lqdc13
11y ago
I don't have a reference, but bytearray concatenation with some more bytes is amortized O(1) w.r.t. original bytearray size, but for bytes it is O(n) where n is the length of the byte string, because bytes are immutable and they are co
378.
▲
by
lqdc13
11y ago
async lib is really really nice. You can easily issue async requests now. Also, a bunch of useful utilities were improved like shutil.
379.
▲
by
lqdc13
11y ago
Ok, try running this in a program like so: d = {chr(i):i for i in range(65,91)} print(d) Do it with python2 and python3. You'll see that the output in python3 changes every time. If someone was relying on consistent orderi
380.
▲
by
lqdc13
11y ago
I think a bigger issue with keys() is that now the order is non-deterministic. So people may have relied on it not being in any particular order but being the same order. These are the kinds of bugs that are difficult to detect.
381.
▲
by
lqdc13
11y ago
I think it has more to do with that people using Python3 want to write good looking code, and the people still using Python2 are more interested in getting something running quickly and therefore tend to produce hackish code.
382.
▲
by
lqdc13
11y ago
The traps are not always well known (to me). For example, I just discovered a few days ago while porting a Python2 library that byte concatenation is an O(N^2) procedure in Python3 while it is an O(N) procedure in Python2. So you have to us
383.
▲
by
lqdc13
11y ago
Including those that are not installed on the device?
384.
▲
by
lqdc13
11y ago
Pretty sure nobody did a study with a specific number of LoC for best understanding, because it probably depends on a lot of things. But quick understanding is a function of consistent style and a small number of things to keep in mind requ
385.
▲
by
lqdc13
11y ago
of course. There are also other differences. Actually, I have no idea why it even matters unless you are specifically exploiting curl. And they are not in this case. You can redirect wget output to stdout too...
386.
▲
by
lqdc13
11y ago
no but if you change the user agent of the wget to the same one the curl uses, it would be much harder to figure out the differences.
387.
▲
by
lqdc13
11y ago
So let's pretend we have a language ABC that is based on standards. It has one implementation and one standard library and the code can only be compiled with one compiler. If the standard library's string functions are slow, can y
388.
▲
by
lqdc13
11y ago
I would have to find the exact example, but I tried counting words etc. Specifically, using the new built in abstractions is slower than not using the abstractions. For example, unordered_map was pretty slow. I just checked again though and
389.
▲
by
lqdc13
11y ago
I tried using new C++14 features, but the performance was terrible. Even compared to scripting languages. The problem is that you have to now performance profile every single feature and know all the gotchas.
390.
▲
by
lqdc13
11y ago
I very much dislike presentations that keep the slide history in the browser history. Now, to go back to the original page you were on before you went to the site, you have to search through your history or click 100x times on the back butt
More ›