Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
implicit
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
61.
▲
by
implicit
12y ago
In a normal ghci repl, you would be able to use the syntax "let name = expr", but this repl doesn't seem to support that. My best guess is that it's because it's implemented as an HTTP service that happens not to re
62.
▲
by
implicit
12y ago
This should be a perfectly fine answer and any interviewer who knows what they're doing should be prepared to roll with it. (by, for instance, pointing at the Sort() function and asking how it works) The goal is never to see if a candi
63.
▲
by
implicit
12y ago
Errors do indeed percolate down to 'e' at the end. Data.Aeson.TH[1] can automatically generate JSON decoders and encoders for data types, if that's what you want. [1] http://hackage.haskell.org/package/ae
64.
▲
by
implicit
12y ago
Meanwhile in Haskell instance FromJSON Person where parseJSON = withObject "Person" $ \o -> do name <- o .: "name" age <- o .: "age" return (Person na
65.
▲
by
implicit
12y ago
If the generated JS were easier to read, js_of_ocaml would be very nearly perfect. I think OCaml's surface syntax is a bit ugly, but the semantics are great. Particularly, I really like their solution to async programming. I'm p
66.
▲
by
implicit
12y ago
Judging by the documentation, Urbit looks to be less about leveraging pre-existing work and more about reinventing computer science and software engineering from the ground up.
67.
▲
by
implicit
12y ago
We haven't hit the insanity limit quite yet. It looks like Alon Zakai is working on something the "Emterpreter," which is a bytecode format that Emscripten could compile to to sacrifice some runtime performance for startup ti
68.
▲
by
implicit
12y ago
My experience is that you can generally skate along on Haskell's type system and get further into a project without hitting the complexity threshold where you need tests to confidently make improvements. Bigger and longer-lived project
69.
▲
by
implicit
12y ago
About 23 minutes in, Mr. Blow says that lambdas has "questionable performance," but the actual cost is relatively predictable. Current C++ compilers will try to inline lambdas. Mr. Blow's specific example will be inlined by
70.
▲
by
implicit
12y ago
A lot of the mines are here for good. I'd love to hear that someone is proposing that JS raise exceptions when you use mathematical operators on non-numeric data. I really hope the Dart team succeeds. Their language has some problems,
71.
▲
by
implicit
12y ago
I'm also really curious about the runtime performance of such a stack. I like Haskell, but it's not what I reach for when I feel the compulsion to hoard memory carefully, and I'm very interested in precisely controlling mem
72.
▲
by
implicit
12y ago
Guess the result of this fragment: ["1", "2", "3"].map(parseInt)
73.
▲
by
implicit
12y ago
Hi. I wrote that article. I've never seen a Java application that hasn't succumbed to an unexpected NullPointerException at least once over its entire development cycle. That doesn't mean that the language isn't a reas
74.
▲
by
implicit
12y ago
I agree that shadowing is bad. Implicitly scoping variables to their lexically-outermost point of use is a terrible solution, though: changing anything in any outer scope can completely change the meaning of code in all nested scopes. That
75.
▲
by
implicit
12y ago
Agreed. I was responding more to the assertion that CoffeeScript doesn't have a problem with variable scoping rules. It does and the consequences are scary.
76.
▲
by
implicit
12y ago
The argument that "you just don't understand" can excuse any flaw in anything. If someone can reasonably choose to formulate something, and for that formulation to pass static verification but do something totally unexpected,
77.
▲
by
implicit
12y ago
It's useful to consider developer maturity in terms of the maximum project complexity they can handle: A junior developer can effectively build a software solution to something, given some advice about the interfaces and algorithms to
78.
▲
by
implicit
12y ago
One of my coworkers wrote a really cool bit of software to do this. I want him to open source it. Basically, you can share a single socket amongst many servers. The OS ensures that just one process accepts each connection. You can therefo
79.
▲
by
implicit
12y ago
It's a huge help to ask a newcomer to start off by make changes to an already-established project that has best practices and idioms already sorted. If you just start with the full language, there are just too many ways to solve every
80.
▲
by
implicit
12y ago
We track Haskell threads. edit: Found the code. :) We rolled our own implementation. Our WAI application action increments a counter and decrements it again whenever an HTTP request is received and completed. It doesn't track threads
81.
▲
by
implicit
12y ago
It looks like you're right. I misspoke. We track total threads, working or not. It works great as an indicator because it tends to stay below the number of CPU cores on the server.
82.
▲
by
implicit
12y ago
I'm the author of the article. This is very true in every language, and doubly so in Haskell. If you just take the language as it is without any context, the language leaves whole classes of problems with a ridiculous overabundance of
83.
▲
by
implicit
12y ago
We deal with Haskell resource leaks the same way you would in C++ or Java. We have production monitors on every host that show basic metrics like memory, disk, and CPU utilization. Atop that, we added a tracker for the number of suspended
84.
▲
by
implicit
12y ago
Author here. We've trained a few people up on Haskell at IMVU now, and I'm starting to think that learning Haskell is at its very hardest when you're building tiny toy applications and all you have for answers are google sear
85.
▲
by
implicit
12y ago
Hi, I'm the author of the article. I think you're right, and I think Haskell delivers on your definition of "better." I chose to try Haskell because I've been through a lot of agonizing maintenance work and I'
86.
▲
by
implicit
12y ago
In practice, I've found space leaks in Haskell code to be a bit analogous to extraneous copies in C++ code or NullPointerExceptions in Java: They're usually not a huge problem, but sometimes you get it wrong even if you're e
87.
▲
Haskell at IMVU
(engineering.imvu.com)
13 points
by
implicit
12y ago
|
0 comments
88.
▲
by
implicit
13y ago
I convinced the company I work at to use Haskell for REST services. The technical leadership team was already interested improving the reliability and rigor of our web backend, but weren't thinking about exploring other programming lan
89.
▲
by
implicit
13y ago
That's not all. This code: foo = do result <- do_first_thing do_second_thing result Kinda sorta roughly desugars into something like this: function foo(cb) { do_first_thing(function(result) { do_secon
90.
▲
by
implicit
13y ago
What we really should be doing is doing away with broken nomenclature. What does the "length" of a string even mean? A database will tell you it has to do with storage. A nontechnical person will say it's the number of symb
More ›