Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codygman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
361.
▲
by
codygman
11y ago
Why: go h = let m = put h "0" >> put h "1" >> m in m Rather than: go h = put h "0" >> put h "1" Oh, recursion...
362.
▲
by
codygman
11y ago
It looks like the Yesod websockets version fixed the issue?
363.
▲
by
codygman
11y ago
Good job! I made something similar in Haskell as a CLI application... Yours is much more complete and featureful though.
364.
▲
by
codygman
11y ago
Example: http://tryhaskell.org/ source: https://github.com/chrisdone/tryhaskell For those that just want to see the sandboxing part, I think most of the magic is in mueval but I could be wrong: https:
365.
▲
by
codygman
11y ago
> I can be more specific if needed. Please do! Can you give some specific examples, preferably in order of those with the most effect on performance.
366.
▲
by
codygman
11y ago
I see what you are getting at with Haskell, but it's so easy to refactor. Are you taking that into account while you pose that question to yourself?
367.
▲
by
codygman
11y ago
> Both languages discourage the use of these constructs, but they exist for good reasons. Curious, what are your good reasons for fromJust in Haskell?
368.
▲
by
codygman
11y ago
The definition in Rust's documentation[0] was this: let x: Option<&str> = None; assert_eq!(x.unwrap(), "air"); // fails The equivalent Haskell if unwrap throws a panic as the docs[0] seem to i
369.
▲
by
codygman
11y ago
> Yes, you should never use `undefined`. Now replace `undefined` with `null` and it becomes apparent that Maybe and Optional have exactly the same amount of power. Null is encouraged and pervasive in Java, undefined is sometimes used as
370.
▲
by
codygman
11y ago
Attempted to sort by reach/relevance: http://reddit.com/r/haskell https://mail.haskell.org/mailman/listinfo/haskell-cafe http://www.haskellers.com/jobs http://
371.
▲
by
codygman
11y ago
Don't forget: https://hackage.haskell.org/package/tls
372.
▲
by
codygman
11y ago
Now I know to ask about goroutine leaks next time my colleague who loves Go talks about how bad space leaks are in Haskell :P
373.
▲
by
codygman
11y ago
> Even for someone reasonably experienced in functional programming, there are tons of new concepts you need to master to be minimally productive in the language. Mostly agree, but it does depend on how you define minimally productive. I
374.
▲
by
codygman
11y ago
> The whole it's amazing that you can "encode business logic in types" thing I really don't get. That's basically the selling point of object oriented code. With OOP languages those are mostly runtime errors rath
375.
▲
by
codygman
11y ago
Before trying to answer this question, it might be useful to see the reasons for using Monads along with examples in Phillip Wadler's Monads For Functional Programming[0]. From there I like to go to "You could have invented monads
376.
▲
by
codygman
11y ago
https://news.ycombinator.com/item?id=10271527
377.
▲
by
codygman
11y ago
> "spooky action at a distance." I don't know about spooky, it makes more sense if you think in terms of "call by need".
378.
▲
by
codygman
11y ago
> Even SPJ (one of the designers of the language) admits laziness should retire now (it was a good experiment to develop purely functional ways, but now the disadvantages outweigh the advantages) Do you have a source for this? I recall h
379.
▲
by
codygman
11y ago
Hm, I took away this: tldr: functional languages were the future for Facebook's new spam fighting tool, they weren't for a startup owner who has previous professional Haskell experience. Consider for your next project and possibly
380.
▲
by
codygman
11y ago
If you want to attract Haskell programmers, simply allow working remotely.
381.
▲
by
codygman
11y ago
> Someone should really make a comprehensive list of programming languages beyond reproach here on HN so users don't inadvertently anger the mob. Obviously Haskell would be at the top I don't think you'll get any arguments
382.
▲
by
codygman
11y ago
> The fact that Lisps don't normally come with ADTs (incl. clojure) is a real shame. Was going to say Shen does, but then again I only see pattern matching. Anyway, you might want to check it out: http://www.shenlanguage.
383.
▲
by
codygman
11y ago
from that post: > Bad idea? Sure. But once you know the enemy you can deal with it Why surround yourself with more enemies than those that inherently exist in your business logic/problem domain? The problem with PHP is all of those
384.
▲
by
codygman
11y ago
Using a framework built on top of wsgi such as flask you do get that though.
385.
▲
by
codygman
11y ago
A lot of really great stories in there. From Tikhon Jelvis' answer: "I personally rank languages on three largely orthogonal axes: productivity, maintainability and performance. That is: how quickly, comfortably and efficiently I
386.
▲
by
codygman
11y ago
Great tutorial with lots of examples, these are the kind of Haskell learning resources we need more of.
387.
▲
by
codygman
11y ago
> Concerning Haskel it still lacks some pragmatism to solve some pratical problems such as install and cabal hell. I'd argue stack pretty much solves those: https://github.com/commercialhaskell/stack
388.
▲
by
codygman
11y ago
Haskell (using function composition): map process . filter notNone $ child
389.
▲
by
codygman
11y ago
Amazing article, I'm a white male who grew up in rural north central Texas as well and can understand where the author is coming from.
390.
▲
by
codygman
11y ago
Well anyone can be discriminated against, though some argue only those with institutional power can be racist. I tend to go by these definitions: http://racismschool.tumblr.com/Racism:Definitions
More ›