Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adambard
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
181.
▲
by
adambard
13y ago
"Eschew surplusage", in the words of Mark Twain.
182.
▲
by
adambard
13y ago
I'm not at all sure about it, but I wonder if you could combine multimethods with core.typed's `cf` to accomplish this.
183.
▲
by
adambard
13y ago
There's the repl, and then there's nREPL. I do like ghci, but I can't execute arbitrary chunks of Haskell directly from Vim.
184.
▲
by
adambard
13y ago
Ditto for me, although I'd also probably write it in OCaml or some other new-to-me language just for fun.
185.
▲
by
adambard
13y ago
> I seriously don't care that's he comparing core.type [sic] Well then I'm afraid the article has nothing to offer for you.
186.
▲
by
adambard
13y ago
That would be the reason, yeah. I had forgotten that Clojure tends to use Longs for everything.
187.
▲
by
adambard
13y ago
You could shave off a precious few characters using the function reader syntax: (defn euler1 [n] (reduce + (filter #(or (div-by 3 %) (div-by 5 %)))) (range n))) Or if you're into comprehensions: (defn euler1 [n] (reduce
188.
▲
by
adambard
13y ago
> Nah, Coq, Agda, Idris and any dependently typed language have Haskell beat I just knew someone was going to correct me on that statement, hence my "mainstream-ish" qualification. > why draw that comparison when competing w
189.
▲
by
adambard
13y ago
Ambrose pointed me at this link for documentation of core.typed's convenience type wrappers (Vec, Seq, List etc.): http://clojure.github.io/core.typed/#clojure.core.typed/Seq
190.
▲
by
adambard
13y ago
Really, the post is about Clojure; these toy problems represent the breadth of my experience with Haskell, so I'm not really qualified to go into more depth. Certainly Haskell is said to have the most powerful type system going, and I
191.
▲
by
adambard
13y ago
"Steambox" works well enough.
192.
▲
by
adambard
13y ago
I find myself often using vim to write new code, and IDEs to perform routine adjustments like this one (or to do anything in Java). But, if I have to do really routine stuff, I bounce back to vim for the macro system, which truely blows a
193.
▲
by
adambard
13y ago
It's more of a scientific koan. Interesting to consider, but of little practical consequence (unless, of course, the missing positrons could be located).
194.
▲
by
adambard
13y ago
Can I be the first non-US citizen in this thread express my incredulity that anything less than universal health care is tolerated? "Barbaric" is the term that seems to strike me whenever I hear of it, hyperbolic though it may be.
195.
▲
by
adambard
13y ago
There is definitely a basic set of commands to remember, but the real power of vim is that it forms a succinct and consistent text-editing language where complex operations can very often be synthesized from what you already know about it.
196.
▲
by
adambard
13y ago
I shaved half of my hair and half of my beard so that I'd have an interesting driver's license, and posted the photos on Reddit. So I can't really complain about someone else appropriating my image. But it did get big in a wa
197.
▲
by
adambard
13y ago
For anyone that hasn't seen it, the Google Maps view of the situation is quite impressive: https://www.google.com/maps/preview#!q=costa+concordia&data=...
198.
▲
by
adambard
13y ago
I've also been sort of feeling like titles get rewritten just for the sake of being rewritten these days. I understand the need to combat sensationalism, but this sort of edit really takes away the writer's voice.
199.
▲
by
adambard
13y ago
https://github.com/clojure/core.async/blob/master/examples/w... seems to be the only "documentation" I've found.
200.
▲
by
adambard
13y ago
I've had great success using Lamina for in-process message queues in lieu of futures, although this does nothing towards making your system distributed.
201.
▲
by
adambard
13y ago
I'm surprised nobody has mentioned so far that the 3rd most popular name in the US is "Shamwow"
202.
▲
by
adambard
13y ago
I think it's a symptom of being a member of an in-demand profession. I don't know of many other professions that employ as many recruiters as this one. It's easy not to fear unemployment with this many unsolicited offers in y
203.
▲
by
adambard
13y ago
The animation here is worse than useless, it's confusing. Better if it just flashed instantly from one view to the next without things flying about everywhere. Edit: That said, to say something nice, the animation is technically done v
204.
▲
by
adambard
13y ago
If the answer was "yes", they'd have no need to make the headline a question.
205.
▲
by
adambard
13y ago
I as well would like to subscribe to imperialdrive's newsletter.
206.
▲
by
adambard
13y ago
I assumed it was meant to be read in Sean Connery's voice.
207.
▲
by
adambard
13y ago
The top languages today all existed by 2000 -- many well before that. C: 1972 C++: 1983 Objective-C: 1983 Python: 1992 PHP: 1995 JavaScript: 1995 Ruby: 1995 Java: 1995 C#: 2000 Of course, these rankings are skewed by existing codebases, but
208.
▲
by
adambard
13y ago
I presume https://en.wikipedia.org/wiki/Restructured_text
209.
▲
by
adambard
13y ago
I switched to a static site generator from Posterous when it was acquired (and ultimately shut down), and I definitely do find myself writing more posts on the blog. Writing a post is as easy as creating a new markdown file, writing in it,
210.
▲
by
adambard
13y ago
Actually, vice-versa. Spinning is the act of creating threads. You might have said, "You can't make a thread without spinning yarn".
More ›