Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
quchen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
301.
▲
by
quchen
13y ago
That is not true. In C++ you can always retrieve the current time, store parameters in a database, print to stdout, or retrieve a global variable without changing the interface. Merely announcing purity to other programmers does not solve t
302.
▲
by
quchen
13y ago
Yes. oneTwo = 1 : 2 : oneTwo is a circular singly-linked list containing 1 and 2. If you wanted to change the 1 to a 4 though, you would not be able to do so without creating an entire new list. You can use Vector or Array (i.e. fixe
303.
▲
by
quchen
13y ago
You can't have monads in Scheme due to the lack of a type system. What you can have are instances of monads, but the point of using the concept of a monad is to abstract over it, and to have functions that work with any possible instan
304.
▲
by
quchen
13y ago
This requires two passes over the data via scanr/scanl though. I wonder how this can be unified to one only.
305.
▲
by
quchen
13y ago
(I posted this same answer in the r/Haskell crosspost, I think it may be useful here as well.) I'm the "David" the article talks about. The backstory is this: I spent a year abroad, but we were regularly talking over XMP
306.
▲
PHP's mt_rand() cracked
(openwall.com)
25 points
by
quchen
13y ago
|
3 comments
307.
▲
by
quchen
13y ago
This requies only Applicative, not Monad. Furthermore, this does not allow mixing licences without explicit conversion functions (liftGPL). Conceptually a nicer interface would be having a datatype unifying licences such as data Licence
308.
▲
by
quchen
13y ago
Single CPUs don't, but the number of cores does grow. GPUs are also worth considering here. What does not get faster is programs written for old architectures. 20 years ago the best way to optimize a program was waiting a decade. That
309.
▲
by
quchen
13y ago
One of the cited papers is a really nice read to solve an even harder version of the problem using only two questions. The reasoning behind the solution is explained in a pretty clear and detailed, but not overly verbose, way. For those who
310.
▲
The Hardest Logic Puzzle Ever
(en.wikipedia.org)
4 points
by
quchen
13y ago
|
1 comments
311.
▲
by
quchen
13y ago
[-][[This reminds me of Brainfuck, where a similar hack can be used to write comments with arbitrary contents -- even containing "]" if you ba- lance them right.]
312.
▲
by
quchen
13y ago
Does the author make any point besides "I don't understand it therefore it's stupid"? (I wrote more but then deleted it because this article is trash. And I might wanna add that I'm not a mathematician.)
313.
▲
by
quchen
13y ago
Python is dying! Anyone offended and feels like writing lots of blog posts about that statement? That's ridiculous and doesn't deserve a comment, I hear you say? Well, that would exactly be the right (non-) response to such a stat
314.
▲
by
quchen
13y ago
Very rarely is a picture or painting interesting just by looking at it, but the story behind an image is much harder to sell on the street. As to "people don't recognize art when they see it" type of posts, there are plenty o
315.
▲
by
quchen
13y ago
Is there an overview of all the icons included somewhere?
316.
▲
by
quchen
13y ago
Yes, there are languages that also have these features, the puzzling part is why not all of them do (except those that may have good design reasons not to).
317.
▲
by
quchen
13y ago
Haskell has multiple concepts that are so compelling that I do not understand why most of the new languages make no use of them. Very handwavy, here are a couple of them. - Type inference: strong typing at the convenience of weak typing. (S
318.
▲
by
quchen
13y ago
Agreed. Often times things that sound useful are posted here, but I don't really feel like I need them (not necessarily the case here). A screenshot could create that need :-)
319.
▲
by
quchen
13y ago
I like the idea of having your private Github. Relying on some company far away to keep their servers running (while having a bullseye for DDoS painted on itself it seems) for larger commercial projects always turned me off a bit.
320.
▲
by
quchen
13y ago
I stopped reading when he said "TIOBE"; nothing invalidates an opinion on programming languages more clearly. There should be a law like Godwin's you can freely yell on the internet every time you see it, resulting in general
321.
▲
by
quchen
13y ago
There's the Creationist "missing link", and then there's the one used by sane people. A biological missing link would for example be if we didn't have Archaeopteryx. It's true that this of course creates two ne
322.
▲
by
quchen
13y ago
When I click on cancel one of the most annoying things that can happen is a confirmation dialog. Having one of the buttons open my email client is one of the few things that could make it worse.
323.
▲
by
quchen
13y ago
I find it astonishing how goalposts are moved all of a sudden. Two days ago the fingerprint reader was hyped as a great unbreakable feature ahead of its time and about to replace passwords. Now, after the release of this video (nobody saw
324.
▲
by
quchen
13y ago
Combinatorical problems tend to grow in the amount of effort to try out all possible elements quite quickly, and quickly growing things in turns often hit physical limits. The following post on Security.Stackexchange explains it quite nicel
325.
▲
by
quchen
13y ago
Initially my comment was longer, but I quickly realized that it was all redundant.
326.
▲
by
quchen
13y ago
Wat.
327.
▲
by
quchen
13y ago
> we for once just be excited about a new piece of technology instead of hypothesizing how the government will misuse it? Not this year at least, no.
328.
▲
by
quchen
13y ago
Sounds like public tracking device to me. Put such a beacon in every street light and you've got something the guys at CSI would be jealous of - only that it's also public, so everyone who wants can track you if he just installs
329.
▲
by
quchen
13y ago
In what way is practice useful here? Determining the correct height to get good spheres, having a steady hand when dropping it?
330.
▲
by
quchen
13y ago
Maybe I was too fast saying "easiest", arc-length works as well. My approach generalizes to arbitrary dimension though. As for why it's uniform, recall that when X and Y are independent, then P(X and Y) = P(x)P(Y) ~ e^{-x^2-y
More ›