Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
agentS
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
agentS
14y ago
> You have to read the comment to get the error types (isn't compiler accessible), it doesn't list what all the possible error types are (doesn't say the ones documented are exhaustive) You're absolutely right. People should be able to
62.
▲
by
agentS
14y ago
Maybe its just me, but I like the fact that adding exponential backoff to an HTTP request goes from http://play.golang.org/p/8WQ8XXrKw0 to http://play.golang.org/p/3tCiNhAfo3 , in no small part due to the explicit error-handling style of
63.
▲
by
agentS
14y ago
I guess you are super lucky: https://developers.google.com/appengine/docs/go/datastore/re... or even https://developers.google.com/appengine/docs/go/datastore/re... err := datastore.Get(c, key, record) if err == ErrNoSuchEntity {
64.
▲
by
agentS
14y ago
> Basically, an exception will be raised and a 404 will be shown. I understand your point in general, but have to disagree with the example you chose. A 404 implies Page Not Found. The Python framework I use ( http://bottlepy.org/docs/0
65.
▲
by
agentS
14y ago
> What exactly are they planning to put in the headers to make them so big they need to be compressed? Normal headers are not large. Compressing headers is not for handling large headers. They are for handling repeated headers. For exam
66.
▲
by
agentS
14y ago
Not sure why the difference in performance between function and non-function, particularly considering this looks inline-able. 2 theories on why gcc is doing better. Maybe its unrolling the loop, and avoids a bunch of jumps. Alternatively,
67.
▲
by
agentS
14y ago
Again, I'm not disagreeing that exceptions tend to be more terse. Exceptions optimize for writability at the expense of readability. Reading linear code that uses if statements and loops is easier than code that uses try-catches. Especially
68.
▲
by
agentS
14y ago
Why is it rare for RPC/filesystem failures to not be handled at the level of the call? I think its much more natural for a memcache API to return an error if the server is not reachable, and I can continue to execute the current function. S
69.
▲
by
agentS
14y ago
One of the creator of SPDY's responses to that proposal. http://www.belshe.com/2012/03/29/comments-on-microsofts-spdy...
70.
▲
by
agentS
14y ago
It strips symbol table information. Relevant docs: http://golang.org/cmd/ld/ http://plan9.bell-labs.com/magic/man2html/1/2l
71.
▲
by
agentS
14y ago
From scanning the source, if a websocket connection is backlogged, messages sent to it are dropped. So I'd imagine it'd handle it fine :)
72.
▲
by
agentS
14y ago
When you're working with streaming JSON like this (or in a web app), it might be easier to use a decoder/encoder. See http://play.golang.org/p/TLNORK2WK9 for an example. Also fwiw, it has never been my experience that json decoding/encodi
73.
▲
by
agentS
14y ago
Are all of those plugins active all the time? I doubt it. This discussion is getting a little off track. I'm simply saying that dismissing Go for not supporting plugins is rather illogical, as there are a lot of use cases that have no need
74.
▲
by
agentS
14y ago
Evidence of this memory explosion? Keep in mind that Go processes tend to take significantly less memory than Java processes, especially when dealing with IO related code, i.e. sockets ( http://shootout.alioth.debian.org/u64q/benchmark.php?
75.
▲
by
agentS
14y ago
Apologies. I misread your post because you were comparing Go to Java and C++, and I erroneously assumed the entire post was talking about those languages.
76.
▲
by
agentS
14y ago
People who write data structures just give up type-safety when doing so. They don't copy-paste code or write template processors, afaik. A Left-leaning Red-Black Tree, for example: http://gopkgdoc.appspot.com/pkg/github.com/petar/GoLLRB/ll
77.
▲
by
agentS
15y ago
Appengine+Youtube+<everyone-using-Go-in-production> isn't exactly one data point. Each independently is probably a ton of datapoints as services tend not to use one machine. While it is a bummer, I'd argue that the OP is the one tha
78.
▲
by
agentS
15y ago
- It has a more general analogue to enumerations, one that does not add a lot of verbiage to the language spec. ( http://play.golang.org/p/HSh4Ke3pCJ ) - It has an "exception" mechanism that is rarely used, in favour of error-valued return
79.
▲
by
agentS
15y ago
An answer, by way of analogy. When referring to a friend named "Edward" in a text to another friend planning Edward's surprise birthday party, you can probably refer to him as "Ed" or "Edward". You definitely don't need to refer to him as "
80.
▲
by
agentS
15y ago
I don't think Russ denied it was a problem, so I don't think this is a "pattern of denial". I think you're incorrectly interpreting that statement as his "fix" for this bug. The fix is well-known (a precise GC), just implementing it hasn't
81.
▲
by
agentS
15y ago
This is impossible. I don't like to make absolute statements, but I'll stand by this one. In order to pull of an attack, you'd need to know what address range the program in question has been allocated, then figure out the smaller range tha
82.
▲
by
agentS
15y ago
This is realistically not an issue. First, on a 64 bit machine, the range of actually mapped addresses is small relative to all the possible values that can fit into 64 bits. Second, from an attacker's perspective, the values corresponding
83.
▲
by
agentS
15y ago
From experience, development in Go can definitely be classified as rapid. The type system stays out of your way, and compile times are insignificant. Try compiling on play.golang.org, or tour.golang.org to see what I mean. About this issue:
84.
▲
by
agentS
15y ago
It may not be a victory across the board, but it certainly isn't a loss across the board. That's all I'm saying. Let me answer some of your points more specifically: NUMA is a concern, but with some work on the schedular to give goroutines
85.
▲
by
agentS
15y ago
> What's changed in the last decade? The nature of the problems we are trying to solve, and the hardware we are solving them on. > But yeah in general the C interop is very simple in most languages. You're not taking into account th
86.
▲
by
agentS
15y ago
> I think you should read the M:N scheduling links. I'll leave it at that. Of the links in that list, 2 worked for me, and both were from 2002. Not exactly up to date information. Also, Erlang, does something similar w.r.t. to multiplex
87.
▲
by
agentS
15y ago
> A browser using Spdy could indicate it supports deflate to enable compression. This would cause everything on the connection to be compressed. Including things like images and videos, which are already compressed, and likely as not,
88.
▲
by
agentS
15y ago
I was under the impression that even though TLS has the idea of built-in compression, in practice, that is never actually used. Otherwise why would browsers include Accept-Encoding headers, and servers include Content-Encoding headers, wh
89.
▲
by
agentS
15y ago
Chromium and Chrome Dev Channel has (off by default) pipelining. Pipelining can only be done for idempotent requests, (ie GET only), has head of line blocking problems, and can break proxies. Also, its very difficult to handle errors in a p