Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zwegner
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
211.
▲
by
zwegner
13y ago
Unfortunately I forgot to grab it off my work laptop when I got laid off. I would've liked to have stuck it up on github... It wasn't really all that tricky though, it took me a few hours to write. git-log has options for only dis
212.
▲
by
zwegner
13y ago
At my last job I wrote a script to walk over git-log and add up all the line number differences (skipping merges). By the time I left, my net code contribution was something like -290kloc. I was the only person with a net negative, though i
213.
▲
by
zwegner
13y ago
And where are the unit tests?!?!
214.
▲
by
zwegner
13y ago
The highest tile you can get is 2^17, 131072. Each doubling of the tile size requires another extra space, as you have to construct two of the previous tile, and once you construct one, it has to go somewhere. In the end, the final board wi
215.
▲
by
zwegner
13y ago
It's good to be reminded of one's ignorance in C++ every once in a while. I'm really amazed that there are compilers for it that actually work. As a side note, thanks for making a quiz site that works quite nicely without any
216.
▲
by
zwegner
13y ago
As far as a decentralized content-addressable network goes, the swift protocol[0] seems pretty close to what you're talking about. I heard about it here a while back, and was quite interested in it, but it doesn't look like it
217.
▲
by
zwegner
13y ago
Ugh, we have enough awful, unmaintainable code to deal with as it is. We really need less code now, not more. I'd prefer it if he would call on Americans to learn to think first, or at least to meditate or something.
218.
▲
by
zwegner
13y ago
I'm confused about your reference to C. C has multidimensional arrays, and all the elements are laid out contiguously in memory. No index calculations are needed, it's all done by the array indexing operation. If you have this cod
219.
▲
by
zwegner
13y ago
I've thought that dict.items() should be the default behavior for a while, but haven't really thought it through. The 'key in dict' example is interesting--is the expected semantics of 'x in y' for sequence typ
220.
▲
by
zwegner
13y ago
As a noscript user, I think you're probably right.
221.
▲
by
zwegner
13y ago
Elo scores in different rating pools are not directly comparable at all, only the difference in ratings in the same pool is significant (although generally computer chess rating lists try to make them look reasonably close to the FIDE list)
222.
▲
by
zwegner
13y ago
You can't really make anything "ephemeral" with data. The closest you can get is probably a neutral third party that promises to delete the data at a future point, and locks down all endpoints where users can see the data. Of
223.
▲
by
zwegner
13y ago
Seconded. I use this along with NoScript, SelfDestructingCookies, and Adblock Edge (an ABP fork without any "acceptable ads" feature). A lot of the time it's a big pain to get it working right (say, to watch a video on a news
224.
▲
by
zwegner
13y ago
I think local commits are pretty useful, and local branches sometimes are as well. But "using branches heavily" is a pet peeve of mine. Git encourages lots of branching that in most cases is unnecessary (e.g. making feature branch
225.
▲
by
zwegner
13y ago
I only occasionally read it. There's two main reasons why I don't do so more regularly: 1) There seems to be quite a lot of low-quality content (blogspam, etc.) 2) I primarily read HN for the comments, and the new page stories usu
226.
▲
by
zwegner
13y ago
That would be pretty cool. I can't imagine that nobody else has thought of this idea before, though... What really scares me, though, is when we get to the point of not just being able to read thoughts, but being able to write them.
227.
▲
by
zwegner
13y ago
Unique? Maybe. Unreplicable? I can't imagine so, we're all just a bunch of molecules. At some point in the perhaps-not-too-distant future, we will likely have very sophisticated brain-scanning technologies, and combined with advan
228.
▲
by
zwegner
13y ago
Yup--that's a great one. And it too is by Brian Westley...
229.
▲
by
zwegner
13y ago
Reminds me of the old 1992 winner of the IOCCC by Brian Westley (who consistently entered some of the most impressive programs in that contest). It doesn't spin, but it prints a map of the provided lat/long. http://www.
230.
▲
by
zwegner
13y ago
And you reach your pinky all the way up to the escape key? Try ctrl-[. :)
231.
▲
by
zwegner
13y ago
You have showdead on, it seems...
232.
▲
by
zwegner
13y ago
I don't think he claims that, but rather that slipped discs being painful is. Not really sure about this (I haven't read that particular book), but I will say that Sarno's theories cured my RSI pain, which crippled me for o
233.
▲
by
zwegner
13y ago
> I know that I've been given a gift and that I'm a fucking idiot for wasting it, but I've just become a chronic procrastinator and it sucks. As someone in a rather similar position (my life has been fucked up in so many w
234.
▲
by
zwegner
13y ago
I would guess (of course this is just an observation, no real evidence) that both scenarios are plausible, and there is actually a feedback loop between them. Roughly: Superiority complex -> unethical behavior economically -> economic
235.
▲
by
zwegner
13y ago
Thanks for the link! Looks interesting. Here's an alternative link, that actually works: http://lang.stanford.edu/courses/ee380/2003-2004/040218-ee38...
236.
▲
by
zwegner
13y ago
I'm another person cured of RSI by the same approach. Initially, when learning of TMS, the RSI got worse (progressing from just constant pain to feelings of numbness and nerve damage). Certainly worth a look if you have RSI--clearly if
237.
▲
by
zwegner
13y ago
As a former chess engine author, and current compiler writer, with ideas in search-based compiler algorithms/unbounded compilation times, I hope to accelerate the arrival of that day :)
238.
▲
by
zwegner
13y ago
I had heard of that case before, but didn't know why it was dismissed: "The case was subsequently dismissed by the 9th Circuit on the grounds of sovereign immunity." And sure enough: https://en.wikipedia.org/w
239.
▲
by
zwegner
13y ago
Not only that, but "the requested injunction is irreconcilable with the public interest". Irreconcilable. I expected them to say the "public interest" bit, but... wow.
240.
▲
by
zwegner
13y ago
You're being downvoted, but assuming you're talking about small non-weaponized drones, it's not necessarily a horrible idea. If you could do it without the people noticing, then you could learn a lot and not harm them. Of cou
More ›