Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
supersillyus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
61.
▲
by
supersillyus
15y ago
You make it sound like a conspiracy. I get the impression that this is just a blogger writing an article about a language he likes and some he likes less. I'm sure the Go team and Go enthusiasts would like to see Go be more widely known and
62.
▲
by
supersillyus
15y ago
When you say "switch <value>", it matches the "case" statements based on if the value after "case" is equal to <value>. So, if you say const P = 3.141 switch 3.141 { case P: fmt.Println("This prin
63.
▲
by
supersillyus
15y ago
It's also interesting to note that it looks like he measured LOC with "wc -l", so all includes, comments (including license), whitespace, debug code, and the main are included. LOC isn't a great metric, and the authors of this paper seem t
64.
▲
by
supersillyus
15y ago
Keep in mind, though, that the Go code shown there is not a good example of how idiomatic Go is written.
65.
▲
by
supersillyus
15y ago
C++ can be quite readable, but C can't be particularly magical. If I were Linus and I spent my days reviewing patches from all sorts of folks to a very large codebase, I'd be inclined to prefer a language that can't do anything unless you a
66.
▲
by
supersillyus
15y ago
According to that (an interesting link, thanks), Russ uses Plan 9 from Userspace, which is similar in feel but still counts as running Linux for the purpose of my question, I think.
67.
▲
by
supersillyus
15y ago
Are people using Plan9 for Real Work™? I've always found it inspiring in it's simplicity and orthogonality, but it's easier to be simple and orthogonal when you aren't concerned with the last 10% of performance or compatibility with existin
68.
▲
by
supersillyus
15y ago
Ah, makes sense. I assumed it was intended to be evangelical. Also, the slice backed by inline array is a pretty great thing. It's cache-friendly, avoids extra allocations, and is pretty easy to use safely. Aside from D, I don't know of any
69.
▲
by
supersillyus
15y ago
Couldn't roughly the same thing be done with relative ease in any language that builds it's IO actions in terms of Input/Output streams? It's a nice write-up, but I'm not sure it shows off anything particular to Go.
70.
▲
by
supersillyus
15y ago
I'd have put tinkercad.com on the list. Of course, there are hundreds of good examples missing.
71.
▲
by
supersillyus
15y ago
I found this interesting (regarding Go): "we started off with the idea that all three of us had to be talked into every feature in the language, so there was no extraneous garbage put into the language for any reason". As a fan of minimalis
72.
▲
by
supersillyus
15y ago
Try as I might, I can't convince myself that semicolon insertion is something that I care about. Maybe I already have the One True Format trained into me, but I don't think I've ever had to think about or know the rules for semi-colon inser
73.
▲
by
supersillyus
15y ago
I want a simple language that compiles to native code, has easy concurrency support, is garbage collected, allows me to distinguish between values and references, and has a compiler/standard library that is useable for real tasks. What othe
74.
▲
by
supersillyus
15y ago
Go has generics, but only for the built-in chan, map, and slice types (and the associated operators). Since the majority of uses of generics (at least in my code) are from containers, this results in me not really feeling the lack too much.
75.
▲
by
supersillyus
15y ago
Iteration over strings is rune-by-rune in Go. However, (somewhat counter-intuitively) string indexing/slicing is byte-by-byte, so you can't just go "str[0:10]" and get the first 10 code points. Then again, that's true in utf16 also, if I'm
76.
▲
by
supersillyus
15y ago
I'd be interested in a link to that benchmark if you have it. I assumed that you're talking about http://ziutek.github.com/web_bench/ , but that makes no mention of PyPy (other than a HN comment that PyPy takes 2x the memory) and Go comes
77.
▲
by
supersillyus
15y ago
Goroutines still provide concurrency with a single thread. It's not that useful for CPU-bound stuff, but I'd imagine it should allow multiple concurrent GAE API calls (as they are just IO, and certainly async under the hood), or you could d
78.
▲
by
supersillyus
15y ago
Faster than Python, better memory use for many types of programs. Compared to Java, less memory use and (I assume) much less start-up time, since no VM is needed. Also, since you can use goroutines, it would seem like you'd be able to do co
79.
▲
by
supersillyus
15y ago
At the very end, there's quote from Scala designer Martin Odersky: "I like a lot of the design decisions they made in the language.. Basically I like all of them." Considering how (at least, to my eye) the design principles of Scala
80.
▲
by
supersillyus
15y ago
OCaml delivers better performance? It was my impression that they're currently neck-and-neck, and the current Go compiler does pretty much no optimization. That aside, personal preference is a one reason to choose Go over OCaml. I happen to
81.
▲
by
supersillyus
15y ago
I disagree. Even for the gofix fixes look to be simple "n args to n-1 args" changes, even in a language that supports function overloading I would prefer to have one version of the function, not two. The use of overloading to avoid the pain
82.
▲
by
supersillyus
15y ago
Hm. I'm interested in the "TBA" slots. Will they be announcing new things? Why else would they hold off on the names of the sessions?
83.
▲
by
supersillyus
16y ago
I find the discussion of misfeatures in protocol buffers to be interesting. I'd always found default values and required fields to be superficially appealing but questionable in practice, and it's kinda nice to see that validated by someone
84.
▲
by
supersillyus
16y ago
I've written a few thousand lines. A couple toy VMs/compilers, some web apps, some random graphical tinkering. Nothing big, but enough to feel like I've gotten a sense of the language. I started using it expecting to be annoyed by all of th
85.
▲
by
supersillyus
16y ago
Personally, I'd be surprised if Go replaced Java in academic contexts. Java has inertia, marketability, better cross-platform support, and bundled GUI stuff. That said, were I teaching a general programming and/or data structures course, I
86.
▲
by
supersillyus
16y ago
I think it's pretty neat that they have a tool (gofix) that can walk your code and rewrite it so it works with changes. This is possible in many languages, but it's pretty impressive for one so young to have it. I guess anything that makes
87.
▲
by
supersillyus
16y ago
I don't know that it's accurate to compare C++ exception specifications with Java-style checked exceptions. Exception specifications aren't checked at compile time and typically don't do what you want at runtime.
88.
▲
by
supersillyus
16y ago
As submitter, I mostly agree. Microbenchmarks are the celebrity gossip of the tech world. They are mostly meaningless, but they get more attention and controversy than they deserve. And yet, I submitted it anyway. I saw a link, found it int
89.
▲
by
supersillyus
16y ago
I kinda expected Go to lose. It's HTTP library seems optimized for simplicity, and I get the impression that very little performance tuning has been done on the scheduler. I'd like someone to do a Shootout-style multi-language continuous be
90.
▲
Benchmarking Go and Python Web servers
(ziutek.github.com)
37 points
by
supersillyus
16y ago
|
27 comments
More ›