Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jzwinck
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
301.
▲
by
jzwinck
8y ago
That's why I qualified it by mentioning a huge commercial product which uses it extensively.
302.
▲
by
jzwinck
8y ago
Lua is far simpler, and still easy to learn. Yet it's powerful enough to be used in "real" projects (e.g. Photoshop Lightroom).
303.
▲
by
jzwinck
8y ago
Indeed. I once had critical systems routed via a large redundant Cisco switch which claimed to be 1+1. Turns out there was a single "supervisor" component which failed (after just a year or two) and made the pair of switches usele
304.
▲
by
jzwinck
8y ago
The STL doesn't always live up to the standard of "zero overhead abstractions." The list is not high performance, many implementations of hash tables never shrink (and used to have O(n) erase!), and deque is a bad joke (no ch
305.
▲
by
jzwinck
8y ago
What many people don't expect is that if the compiler can prove that some function invokes undefined behavior, the compiler can emit no code for it at all--before, during, and after the UB expression. Saying that writing past the end o
306.
▲
by
jzwinck
8y ago
There is a surprise on Thursday (if not before). If the prisoner is alive on Thursday at noon he will either be surprised to find he is to be hanged on Thursday, or surprised to find it will be Friday. Before that he had 50% expectation for
307.
▲
by
jzwinck
8y ago
I agree, but TFA said: > modern C++ style using auto almost whenever possible. Using auto everywhere, to me, is bad code. It's hard to understand what types we're dealing with, at a glance.
308.
▲
by
jzwinck
8y ago
The Shanghai Pudong maglev is a couple miles longer than the train to O'Hare, and it takes just over 8 minutes. Well, except during rush hour, when it takes 7.5 minutes!
309.
▲
by
jzwinck
8y ago
Yes, I know. What's your estimate?
310.
▲
by
jzwinck
8y ago
Perhaps 100 windows at 10 kg per unit, so roughly one metric ton. The metal required to fill the holes will be quite light. LCD screens are light as well, but less so when you account for the long wires to drive them, plus other infrastruct
311.
▲
by
jzwinck
8y ago
I like objcopy for this. Here is an example command: objcopy --input binary --output elf64-x86-64 myfile.txt myfile.o
312.
▲
by
jzwinck
8y ago
They thought if they used Tcl, CMake would not have enjoyed widespread adoption: http://www.aosabook.org/en/cmake.html To me, the CMake language is the only part that keeps me on the lookout for a CMake replacement.
313.
▲
by
jzwinck
8y ago
cut solved your problem. Let's talk about why. cut is line oriented, like most Unix style filters. It needs to keep only one line in memory at most. If you say: pd.read_csv(f)[[x,y,z]] It has to read and parse the entire 28GB
314.
▲
by
jzwinck
8y ago
In American English it's "Group does X" but in British English it's "Group do X."
315.
▲
by
jzwinck
8y ago
A related thing I'd like is a navigation system which understands that some turns are not important. If I'm driving on a Manhattan-style grid, I'd like it to say "You could turn here if you want, but straight is good to
316.
▲
by
jzwinck
8y ago
If I eat a piece of chicken, can I not also be a vegetarian?
317.
▲
by
jzwinck
9y ago
The moving part of a "tape library" is known as a "tape robot." For the past few decades there really have been physical robot arms retrieving data from long-term storage. This is still an area of development today, beca
318.
▲
by
jzwinck
9y ago
I predict this will work in five years but not in fifteen. By 2033 you will have an iPhone XXIV which will not support Bluetooth, and even if you find an ancient iPhone XVI with Bluetooth on eBay, the remote maker will no longer be working
319.
▲
by
jzwinck
9y ago
Occasionally something gets deprecated. Like export template, trigraphs or auto_ptr. But pretty much only when there is widespread disuse and displeasure. 99% of features are used by at least 1% of the user base and need to be kept around
320.
▲
by
jzwinck
9y ago
Nm is Newton meters. You're looking for NM (Nautical Miles). Common mistake. Similarly, kt means knots as in speed, but the very same kt also means kilotonnes as in dynamite.
321.
▲
by
jzwinck
9y ago
Can you name one function other than dot() and tensordot() which has intrinsic multithreading?
322.
▲
by
jzwinck
9y ago
That's misleading--you say linalg routines "may be" multithreaded, but the vast majority of them never have been. matmul and einsum, despite being candidates for intrinsic multithreading, are not multithreaded. You can read
323.
▲
by
jzwinck
9y ago
That's always been easy enough, just a little hidden: import signal signal.signal(signal.SIGINT, signal.SIG_DFL) Now it will just die on Ctrl-C. For text filter programs it's a good idea to do the same for SIGPIPE too
324.
▲
by
jzwinck
9y ago
Only np.dot() has intrinsic multithreading. No other functions do. Bizzarely np.dot() is the fastest way to do things other than dot product (like copy or multiply) in some cases.
325.
▲
by
jzwinck
9y ago
How high level can a team get in CS (in terms of national or world rankings) without playing in a controlled environment where this sort of cheating would be more easily detected by local human observers? Could my team be ranked in the top
326.
▲
by
jzwinck
9y ago
VLAN is a popular one.
327.
▲
by
jzwinck
9y ago
Around 2001 I made a pedal from Radio Shack parts and connected it to the Backspace key on an IBM Model M keyboard. Why Backspace? It was a gift for a friend who had what we called Rusty Degenerative Typing Syndrome. His typo rate was just
328.
▲
by
jzwinck
9y ago
The guidelines say to use class when there is an invariant and struct otherwise. This is counter productive because if a struct without invariants suddenly gains an invariant, it should be changed to class. Which doesn't matter except
329.
▲
by
jzwinck
9y ago
Yes. You can only buy this if you can show income over 200k USD for the past 2-3 years (or meet other criteria which are less common for people on HN). https://www.investopedia.com/terms/a/accreditedinvestor.asp
330.
▲
by
jzwinck
9y ago
45 person office, hiring developers gradually and continually. But what I wrote also applied when I was at a 6 kiloperson firm and we hired a hundred developers a year. Some tests will seem impossible to complete in the alotted time. Often
More ›