Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
supersillyus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
supersillyus
15y ago
If this qualifies as "evil" to you, you have a much broader definition of evil than I do.
32.
▲
by
supersillyus
15y ago
I'm starting to suspect that Russ Cox is actually a team of people, all contributing under one name.
33.
▲
by
supersillyus
15y ago
For one, GHC gives you M:N threads with the runtime handling the async IO under the hood, making it possible to write code in a simple blocking style while still getting use of all your cores and having fast IO. This is also true for Erlang
34.
▲
by
supersillyus
15y ago
This should be the new "Hello world" for web-oriented languages and frameworks. I'd love to see this ported idiomatically to different languages.
35.
▲
by
supersillyus
15y ago
That seems like a very small and somewhat flawed data point to be drawing any conclusions from.
36.
▲
by
supersillyus
15y ago
I'm a little sad to see that "delete" (a pretty common word) is being used by a builtin that only works on maps and most code doesn't need. I guess it's not a reserved word, so it can still be used, but I was hoping for something a little m
37.
▲
by
supersillyus
15y ago
It's pretty sweet, but I felt weird clicking "Compile" when I wanted to click "Run" (or "Compile+Run" or "Go!"). A minor quibble with an otherwise lovely tutorial.
38.
▲
by
supersillyus
15y ago
FYI, in 1988, Self (a dynamic, prototype-based, garbage-collected language that had a JIT) existed. I'm not sure how it handled concurrency, though.
39.
▲
by
supersillyus
15y ago
Something something Plan 9 something something.
40.
▲
by
supersillyus
15y ago
I'm not sure that your premise is solid. Your citations point to a single program that was somewhat naively written, not well optimized, and designed as a computational benchmark spending much of it's time in GC. That's doesn't necessarily
41.
▲
by
supersillyus
15y ago
Does what he's describing as the Go Way basically equate to generic programming in general, or is there something specific to Go about it?
42.
▲
by
supersillyus
15y ago
Also see the paper "A Concurrent Window System" by Pike (89) which talks about representing keyboard and mouse events as items on a non-finite potentially-blocking channel. And Newsqueak almost certainly isn't the first.
43.
▲
by
supersillyus
15y ago
How could they possibly know with certainty that concurrent request support in Python will lower your costs? For one, you may not be using Python. Or, you may not enable concurrent requests. Or, your app may be structured in such a way that
44.
▲
by
supersillyus
15y ago
So, could you write a (restricted) interpreter that converts a string to a series of reflect method calls? That'd be pretty cool. I don't see a mechanism for calling basic operators or converting, so it looks like it might be _really_ restr
45.
▲
by
supersillyus
15y ago
Maybe I'm thinking of something different, but I've never considered regular expression to be hard to write or hard to write well, and considering that they may be compiled to machine code (either AOT or JIT), they're not _necessarily_ inef
46.
▲
A closer look to Scala's parallel collections
(beust.com)
2 points
by
supersillyus
15y ago
|
0 comments
47.
▲
by
supersillyus
15y ago
These sort of actions always seem to me like, "See, I was able to enter your home at night and punch you in the face. Now you know how bad your police are at defending you. I'm making you aware of this for your own good." Gee. Thanks.
48.
▲
by
supersillyus
15y ago
I'm glad he mentioned the "Silence trumps noise" point. I like to call the idiom "no news is good news". Tell me only when I need to know something (like a failure); "-v" is always there if I need it. It feels uncomfortable to get no output
49.
▲
by
supersillyus
15y ago
asprintf is a GNU extension, I believe.
50.
▲
by
supersillyus
15y ago
In the article he says it is just one byte extra, but that's clearly not the case, since we probably want strings longer than 255 characters. To be practical, even in the sort term, you'd probably need at least two bytes, and that's still a
51.
▲
by
supersillyus
15y ago
It's nice to bring interesting bugs to light, but I hate how posting links to bugs always results in a pile on of useless comments. It evens says "Each comment triggers notification emails. So, please do not post "+1 Me too!". Instead, clic
52.
▲
by
supersillyus
15y ago
Are there any other languages that do error handling like Go? Key features: potential of error value is visible in type signature, errors can have rich information but share a common type, and are returned out of band. I guess Either in Has
53.
▲
by
supersillyus
15y ago
Ah. Ok then. I spent another few minutes with it after I posted that and made it a little nicer, but not particularly faster: http://pastie.org/2202963 May want to use that instead.
54.
▲
by
supersillyus
15y ago
Ah. Looks like he updated the C++ version to have the optimization I spoke of. So, here's the matching Go version: http://pastie.org/2202611 Time: 0m0.796s
55.
▲
by
supersillyus
15y ago
For fun I did a trivial translation of the C++ version to Go. Results (with gcc 4.2 -03 -mtune=native -DNDEBUG, head Go -B, Ocamlopt 3.12.0 -unsafe -rectypes -inline 1000): C++: 0m0.611s OCaml: 0m1.457s Go: 0m1.043s This is on a Macboo
56.
▲
by
supersillyus
15y ago
No syntactically lightweight way of writing anonymous recursive functions? I can't make myself care about that; I just spent 30 seconds trying, and failed. That's just not a use case worth optimizing for in a practical systems language. Als
57.
▲
by
supersillyus
15y ago
With Plan 9's rfork() (and linux's less nice clone()), you can create new processes that share the memory of the old process, which addresses those two answers. Though, I'm not sure if this reinforces OP's point or just indicates that the d
58.
▲
by
supersillyus
15y ago
Very cool. I tried to run the form example in the API documentation, and it complains that js-bidirectional-input is undefined. Am I doing something wrong?
59.
▲
by
supersillyus
15y ago
Nit pick for the title: It's "Don't be evil", not "Do no evil". Very different meaning.
60.
▲
by
supersillyus
15y ago
I think what we're seeing here is people no longer search for Facebook on Google; they have started going straight to Facebook, with no Google in between. For lots of folks, Facebook is the internet.
More ›