Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rapala
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
rapala
12y ago
I think that autocars will actually surpass us in the exceptional situations very soon. Humans are notoriously bad at handling high stress, high speed situations where fast assessment and precise actions are required. Evading an animal on t
62.
▲
by
rapala
12y ago
The semantics of >>= do not depend on the laziness of the language. >>= behaves exactly the same in Scala (although it's called flatMap there) as it does in Haskell. >>= does not execute effects, it only composes th
63.
▲
by
rapala
12y ago
I'm pretty sure C++ (and any language for that matter) has more than enough quirky features to obfuscate any piece of code. No need to read this article for that. But if 20 years of experience makes lazy streams seem unfit for producti
64.
▲
by
rapala
12y ago
So stage is some transformation of the file and a working directory data Stage = Stage (File -> File) Directory If we want to construct chains of Stages where we can still inspect any individual Stage, a monoidal composition wont
65.
▲
by
rapala
13y ago
Mutable fields are really hard to use correctly in any language, and that's why Clojure encourages the use of immutable data. Thus I find it really odd that the article builds a mutable binary tree. The immutable version would have bee
66.
▲
by
rapala
13y ago
The number of arrows is |students x teachers|, every student paired with every teacher. From this you get a^0 = 0, but it also follows that a^b = b^a. This defines multiplication, not exponentiation. The problem is that you cannot illustrat
67.
▲
by
rapala
13y ago
Um, because the stereotype of an engineer is a male, Japan is often associated with engineering and having the engineer be the only one of visually different nationality emphasizes the divide between techinal and non technical. Yes, it is h
68.
▲
by
rapala
13y ago
At first I thought so too. But it's actually easy to come up with cases where N != all. As a radical example, Facebook preserves the accounts of dead users.
69.
▲
by
rapala
13y ago
I agree that contracts don't offer something stronger than unit test. They offer something different. Of course you can't write the unit test that I asked and that was the point. But it would be kind of pointless too to write the
70.
▲
by
rapala
13y ago
How do you write a unit test that tries to assert that no one calls the function sqrt with a negative integer? Because that is precisely the case where pre-conditions can help.
71.
▲
by
rapala
13y ago
During development is probably the best use case I can think of. With editor integration an interpreter is a tremendous help when coding. At least Lisps, Ruby, Python and Haskell have this kind of "development environments' to a s
72.
▲
by
rapala
13y ago
I don't see a reason why a modern language, static or dynamic, could not have both a compiler and an interpreter. Most Lisps have both, Haskell has both. Also, most interpreted languages actually have a compile phase before the actual
73.
▲
by
rapala
13y ago
Most of the time it's not the CPU that is using most of the energy. It's the mobile or wireless connection, the GPS and the screen.
74.
▲
by
rapala
13y ago
It's the classical problem of a standard that nobody actually follows. Every UEFI firmware that I have come across has behaved differently. My current laptop has an UEFI implementation that only boots from a hardcoded path in the EFI p
75.
▲
by
rapala
13y ago
If we were to combine this and the gp's system, won't we get into a situation where it is best to burn your degrees and just claim you know phd's worth of stuff? And then sue if someone with a degree got the job.
76.
▲
by
rapala
13y ago
For secrecy and privacy of course. Do you want to hold the list of undercover operatives in hostile countries? How about making public a list of people who have received social protection? I don't know about the system in USA but how w
77.
▲
by
rapala
13y ago
You came here angry with the world because walking 20 minutes a day doesn't make a dent in the fat and running hurts. Well, here's the response. Of course running hurts if you are overweight. Your bones and tendons are not made to
78.
▲
by
rapala
13y ago
Just a couple of days ago I was having a conversation with my friends about police brutality in the USA. We dug up some articles from US news papers with searches like "police shot" and "shooting". In most cases it seeme
79.
▲
by
rapala
13y ago
This was my first reaction as well. If a call comes in of a bicycling accident, why would the 911 dispatcher send a fire truck and multiple police squads to the scene?
80.
▲
by
rapala
13y ago
Sometimes it seams that people are interested in these technical and highly specific debates on how to eat right to avoid responsibility. They want to "know" that eating right is so difficult and badly understood that it can'
81.
▲
by
rapala
13y ago
Yeah, I agree that not every subject is worth arguing about. But if discussion is what you are after, then you need to know what you are talking about, or against. The nuclear program of Iran is a great example. You have done the research t
82.
▲
by
rapala
13y ago
> Do I need to know the 12 Astrological Houses to reject astrology? Do I need to know the King James Bible to reject Christianity? Do I need to know Mein Kampf to reject Nazism? Do I need to know the Talmud to reject Zionism? Well, that
83.
▲
by
rapala
13y ago
http://www.haskell.org/haskellwiki/Heterogenous_collections lists some solutions
84.
▲
by
rapala
13y ago
But you are doing a merge possibly every time you push to the trunk, are you not? So if I got it right, the difference between branch based and trunk based style is how long you let your branches to develop, both in time and commits. The on
85.
▲
by
rapala
13y ago
It's from a retrospective on Haskell: www.cs.nott.ac.uk/~gmh/appsem-slides/peytonjones.ppt There seems to be two arguments against laziness. Firstly, it makes reasoning about performance hard. Secondly, forcing strict ev
86.
▲
by
rapala
13y ago
Then again, Simon Peyton Jones has said that were he to make a new Haskell, it would have strict evaluation. As far as I know, lazy IO is considered a pain in the butt. That beeing said, laziness does have its merits and some ideas can be e
87.
▲
by
rapala
13y ago
So why do we pass that work from the compiler,the tool, to the programmer? Except that I think I know the reason, as I have looked upon the specification and it was not sane.
88.
▲
by
rapala
13y ago
Yeah, 30 is too much. I think 16 is an upper limit and even then you need to break it into groups of ~4 to actually have small group teaching . Of course the universities never have money for that many assistant teachers for the bigger cou
89.
▲
by
rapala
13y ago
I'm just replying to your comment agumonkey as it has some key points that I want to address. Nothing personal. I work as an assistant teacher every now and then and it is mostly small group teaching and going over the homework exercis
90.
▲
by
rapala
13y ago
The human API also exposes data objects. It also sends extensions (CSS, Javascript) to the client that allow it to present the data and make additional API calls. This idea of extending the client program is part of REST. The machine API a
More ›