Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
imh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
67 ms
·
631.
▲
by
imh
11y ago
Yeah sure, I'm in the mood to write, but didn't want to cram too much into one post, else risk muddying the message. It turns out that doing (a -> m b) instead of (m a -> m b) can still allow really cool control flow. But fi
632.
▲
by
imh
11y ago
At risk of adding to the pile of half baked pedagogy, here's my take at why they're useful. The operation to chain things together (denoted >>= and pronounced bind) in the Maybe monad has type Maybe a -> (a -> May
633.
▲
by
imh
11y ago
Some things are easier to learn by doing. These exercises ( https://mightybyte.github.io/monad-challenges/ ) are what made it stick for me.
634.
▲
by
imh
11y ago
What are people's thoughts about using constraint kinds in the prelude, so you can make things with class constraints monads? Like making a Set monad. This stack overflow answer shows what I'm talking about http://stack
635.
▲
by
imh
11y ago
I would have thought the opposite. The more attempts I can make, the more I can play the odds, regardless of risk. If I only have a few tries, I'm going to want to take a less risky position.
636.
▲
by
imh
11y ago
>Yet even by the Treasury Department’s own admission, the latest rules will not be enough to completely halt the flow of companies seeking to renounce their American citizenship, just as the two previous rule changes did not. Such a move
637.
▲
by
imh
11y ago
Magic Leap apparently can draw things at more than one distance from you, unlike the hololens's fixed 2m away. That's a massive difference.
638.
▲
by
imh
11y ago
I wonder what it would look like if the videos were stabilized. It could dramatically decrease how wild they seem and make it easier to understand what's going on.
639.
▲
by
imh
11y ago
>“Ninety-five percent of the newsroom probably went to private institutions, they went to four-year institutions, and they went to elite institutions,” said Jeff Selingo... This right here is why. The narrative goes that if you don'
640.
▲
by
imh
11y ago
If the FBI pays a third party to break in, does VEP still apply?
641.
▲
by
imh
11y ago
That seems like a massive failing of our legal system when one party "refusing to spend money on making good arguments and finding evidence" can lead to bad legal precedents. Money should be irrelevant to it, especially because
642.
▲
by
imh
11y ago
Unzipped, the source code for GNU coreutils is 30MB (zipped 4MB). This is a great example of a collection of single purpose functions you should never rewrite yourself. There's only one dependency if you want to use them because they&#
643.
▲
by
imh
11y ago
It should stay n log n. A lazy quicksort can get the min element of a list super fast by only working on the partitions relevant to finding the min. As it requires more elements of the list, it can finish sorting the other partitions. It&#x
644.
▲
by
imh
11y ago
The only required fields are job title and base pay. Round your pay and fudge the title a bit. Only add the other info that won't ID you, slightly changing details as you go (round numbers, nearest metro area, etc)
645.
▲
by
imh
11y ago
I didn't miss it, but neither did I miss when the Apple brand one almost did exactly that to me.
646.
▲
by
imh
11y ago
I stopped buying brand name macbook chargers when the plastic on the cable frayed on my fourth charger. The difference from the other three times was that this time, it started smoking where it frayed. Had I not been paying attention, who k
647.
▲
by
imh
11y ago
This is totally crazy. With a slightly different syntax it's really not so bad: {a:b} for mappings from a to b (a,b) for tuples of a and b [a] for iterables of a a | b for unions of a and b Then factor out that nasty common thing and
648.
▲
by
imh
11y ago
In physics they can do experiments to get highly confident results. In medicine, economics, and any other science dealing with people, data is much harder to collect and there are harder ethics involved. We could learn so much if we simply
649.
▲
by
imh
11y ago
That's terrifying. Making lying obsolete is not worth having everything I do recorded.
650.
▲
by
imh
11y ago
To really put this to the test, could we compare with cities in the bay area with different zoning laws? I know there are tons of places around here where housing prices have gone up like mad. Are the ones with more lax zoning exceptions?
651.
▲
by
imh
11y ago
Not quite. That relates to sample sizes and, as far as interpretation goes, it's dealt with as if the rest were missing at random. In reality, they are probably missing not at random, but in relation to other characteristics, changing
652.
▲
by
imh
11y ago
In addition to the caveats they list, there may be systematic biases as to who includes a profile pic and who doesn't. Even an enormous sample and perfect inferences from the face API can't surmount a bad dataset (bad depending on
653.
▲
by
imh
11y ago
I want to scratch my itch and play some go. I suck, and playing against other players online I get destroyed so quickly I feel like I'm ruining their fun. Where can I find a fun bot with variable difficulty?
654.
▲
by
imh
11y ago
This seems to be part of a larger trend towards controlling the things we own. Cell phones, tractors, cars, and I'm sure tons of other things are moving this way, where they're trying to make it illegal to root/jailbreak/
655.
▲
by
imh
11y ago
Are there any (programming) languages who's important libraries have solid documentation/tutorial coverage in non-english languages? Honest question. Those are a big part of programming for me.
656.
▲
by
imh
11y ago
God I love this forum. Thank you!
657.
▲
by
imh
11y ago
I wish there was some way to speed up the videos.
658.
▲
by
imh
11y ago
I don't see anything on firefox, but chrome works.
659.
▲
by
imh
11y ago
> This applies to everything else governed by a market, why shouldn't it apply to property taxes? Does it apply to anything else you own ? If 2004 Honda Civics suddenly got really popular and I already owned one, I wouldn't su
660.
▲
by
imh
11y ago
I don't understand what you're saying. If you put money under a mattress, doesn't it stay the same in worth? If I put a $20 bill under the mattress 40 years ago, it's still a $20 bill, worth exactly $20 today. What did y
More ›