Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Peaker
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
129 ms
·
811.
▲
by
Peaker
14y ago
How so? Inferring which implementation of "read" to use based on the types is exactly the same spirit of inferring which implementation of "length" to use. Haskell can maintain consistency in both, but dynamically typed languages must rever
812.
▲
by
Peaker
14y ago
Experience comes into it too, but as I mentioned earlier, they mostly fixed the "butteryfly problem" by avoiding spurious reinstalls. The butterfly problem was the source of at least 90% of the pain relating to cabal installations. They are
813.
▲
by
Peaker
14y ago
Well, it isn't the case here, is it?
814.
▲
by
Peaker
14y ago
I am not saying cabal is perfect, but the situation has dramatically improved since the prevention of spurious reinstalls. It also seems that hackage uploaders are playing nicer these days, and I just generally get far less breakage. Lots o
815.
▲
by
Peaker
14y ago
In the case of Java, the simplicity of language leads to complexity of programs. The extra difficult-to-learn parts of Haskell makes for programs that are more practical, shorter and easier to work with. There's a trade-off between simplici
816.
▲
by
Peaker
14y ago
I still didn't take the time to learn CT (after 4-5 years of Haskell). It might be time to do so, though, because I keep seeing the awesome things people with a CT background apply it to. However, you can get very very far in Haskell withou
817.
▲
by
Peaker
14y ago
It is only ironic until you realize static typing can often save you from writing code, and not just require more code.
818.
▲
by
Peaker
14y ago
Aren't Rust "type-classes" also limited and use single-dispatch?
819.
▲
by
Peaker
14y ago
unsafePerformIO for an IO action that is not actually pure is considered a bug, and the compiler makes sure you can't abuse unsafePerformIO without being bitten very very hard.
820.
▲
by
Peaker
14y ago
Optional laziness is not good enough -- read the blog post I linked to. You can't re-use and compose existing functions from the standard library if they all tend to be strict.
821.
▲
by
Peaker
14y ago
Serving my real needs both for a professional job: * Debug information processing and analysis * Concurrent execution of tests * Build systems * Various automation/scripting needs and other auxiliary projects Also, in a different context, a
822.
▲
by
Peaker
14y ago
Two years ago the situation was far worse, dependency-hell-wise. About hooking up the process for some profiling information, take a look at: http://ocharles.org.uk/blog/posts/2012-12-11-24-day-of-hacka...
823.
▲
by
Peaker
14y ago
Why not define a type alias? type AppForm a = Html -> MForm Blog Blog (FormResult a, Widget) And then you get: newPostForm :: AppForm (Text, Text, Text)
824.
▲
by
Peaker
14y ago
I personally find the "universe of knowledge" to attain an attraction, not a repellent.
825.
▲
by
Peaker
14y ago
I haven't seen much functional code in elisp, which is the Lisp I most commonly read. Some Common Lisp code I saw was also very imperative. Scheme seems to be a more functional language, but I don't really see why people consider other Lisp
826.
▲
by
Peaker
14y ago
When did you use Haskell? The dependency hell situation has vastly improved (and there are plans to make it much better still). I agree that a downside of Haskell's very high level nature is difficulty to predict some runtime characteristic
827.
▲
by
Peaker
14y ago
I disagree. Threads and green threads are not different in any way that is related to purity. Haskell makes threads much more pleasant due to Haskell code generally being much more orthogonal. But even in C, it would make more sense to crea
828.
▲
by
Peaker
14y ago
I don't know OCaml very well, but I do know that without laziness, it does not support as much high-level/reusability[1]. Also, it lacks much of the mind-expanding stuff in Haskell (The class hierarchy explained by the Typeclassopedia). AFA
829.
▲
by
Peaker
14y ago
The guy behind "Embedded in Academia" knows quite a bit about the memory models supported by C, and had done some marvelous work regarding the testing of C compilers, C code and undefined behavior. If he claims it is possible to improve th
830.
▲
by
Peaker
14y ago
Haskellers are aware of various downsides and disadvantages to using Haskell and are actively working to improve on those. Also, the FP complete company was created to answer that exact question and cater to commercial companies who want to
831.
▲
by
Peaker
14y ago
You could use green threads in C but you'd also need asynchronous io to work with these green threads, and an ecosystem of libraries around it. Ghc has it therefore it makes sense to use its by default green threads. In c there is no standa
832.
▲
by
Peaker
14y ago
I don't think other languages have the same benefits of Haskell. They have other benefits but not Haskell's. Python/Ruby: very easy to learn and be productive quickly. C: high level of control over resources and easy to get good performance
833.
▲
by
Peaker
14y ago
When you find a tool that in many ways is far better than every other tool used by the mainstream (and of course in some ways worse) you might get excited about it so you want to share the knowledge you found. Or maybe you prefer the tool y
834.
▲
by
Peaker
14y ago
My Asus UX31A died after 2 months for no reason. Lots of others with same issue on forums. Asus refused to give it international warranty so I had to ship it back to the states from Israel, and now awaiting repair.
835.
▲
by
Peaker
14y ago
It definitely wasn't a "hack", though I wouldn't call it a prank either.
836.
▲
by
Peaker
14y ago
What's to minimize, when the only potential victim of his actions said that were not harmed (and indeed they were not)? What conflation? Do you think criminal charges for violating a website's terms are not ridiculous? Do you use adblock? I
837.
▲
by
Peaker
14y ago
The frivolous prosecution was after he was arrested, not before.
838.
▲
by
Peaker
14y ago
He didn't harm anyone in his violation of the website's terms. Should the user of adblock be facing multiple criminal charges if they visit a website whose terms disallow its use? It's absolutely ridiculous to allow these terms to be used f
839.
▲
by
Peaker
14y ago
It is about extremely accomplished "young white men" deciding that unjust restrictions (not even rules, but terms of use of a website) should not be obeyed.
840.
▲
by
Peaker
14y ago
Why would someone buy them from you at half price, when they can illegally download them for free?
More ›