Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
swdunlop
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
swdunlop
14y ago
The _, err cascade is a nuisance when refactoring; I have gotten into the habit of throwing a var err error at the top of any function with a number of possible error results -- it also makes a handy notation that "here there be glue code."
92.
▲
by
swdunlop
14y ago
I'm all for compilers that cudgel coders, as long as they cudgel indiscriminately. It's the coddling ones that club you in the quiet moments of the night because you weren't minding your results that I despise.
93.
▲
by
swdunlop
14y ago
fmt.Println has better support for slices, interfaces and pointers; println is deliberately more minimal since it is a builtin.
94.
▲
by
swdunlop
14y ago
The OP offers up Python as an example of "weightlessness", which I take as meaning "it will execute any code it can parse." Languages with this kind of tolerance require exhausting levels of diligence to verify assumptions and ensure consi
95.
▲
by
swdunlop
14y ago
Seconded; GoSublime gives you a nice REPL for Go's build and test commands, package completion and linting. It is the second Sublime Package I install, after Package Control and before my own Antiki.
96.
▲
by
swdunlop
14y ago
That's probably because they are still trying to figure out if Scientology can sue them for breach of contract. Org lawyers are less stable than old dynamite.
97.
▲
by
swdunlop
14y ago
I wanted something relative to ANSI C, which has no closures, no concurrency, no garbage collection, and a standard library consisting of stone tools, without invoking the horrible term "Very High Level Language", which implies Visual Basic
98.
▲
by
swdunlop
14y ago
Interesting. It appears that cgocall has improved from the last time I went down this rabbit hole. Previously, it used a pthread_create to construct a C stack and context on each runtime.cgocall and then waited on a mutex for it to return
99.
▲
by
swdunlop
14y ago
You can, but Go doesn't really have a good way to link in the product at runtime. Maybe something like a Go version of GNU Lightning would be a fun project -- http://www.gnu.org/software/lightning/ You can't wrap Lightning itself, otherw
100.
▲
by
swdunlop
14y ago
Off the top of my head, I can think of a few why Go is better than Python or other high level languages for writing an emulator: - Go makes it easy to write a process for your emulator, instead of a state machine. - Go's slice types makes p
101.
▲
by
swdunlop
14y ago
Slide 14 is particularly important for new Go programmers. Go's garbage collector does not have access to certain optimizations because of the requirement to support pointers to internal members of structures and arrays. The loss of these
102.
▲
by
swdunlop
14y ago
Actually, the following is valid syntax in Go 1.0 and later: var i = 0 The use of "var" without a type is a common idiom when binding global variables, such as: var ErrTooLarge = errors.New("bytes.Buffer: too large") Oddly
103.
▲
by
swdunlop
14y ago
Looking at the code referenced in the bug? I agree, this is a horrible slight to lobotomy victims.
104.
▲
by
swdunlop
14y ago
Agreed. The guilty party, here, is either Samsung's lawyers for failing to convince the foreman of the law and its applicability to their case, the judge for refusing to permit prior art to be presented, or the laws themselves which were in
105.
▲
by
swdunlop
14y ago
Not sure what's less impressive. A pricing model based on browser headers, or a 10,000 word article on "hacking gogo inflight" based on changing a browser header.
106.
▲
by
swdunlop
14y ago
Or fly naked. http://articles.cnn.com/2012-04-18/travel/travel_oregon-airp...
107.
▲
by
swdunlop
14y ago
Wearing a sarcastic t-shirt is equivalent to the Westboro Baptist Church protestors trying to shout down a funeral?
108.
▲
by
swdunlop
14y ago
As a frequent interviewer, I regarded it as a sign that the interviewee had read a few articles somewhere and paid it almost no attention.
109.
▲
by
swdunlop
14y ago
That is a lot of excitement for something that was available at http://xquartz.macosforge.org/ on release day. I didn't even notice or care until I realized that libpng's headers were considered part of X11. When Apple introduced X11.app,
110.
▲
by
swdunlop
14y ago
It was the first thing I thought. "Hah! Good luck getting Google to answer a phone.." Then I thought, "wait, was that a joke?"
111.
▲
by
swdunlop
14y ago
While I agree with the article in many of its finer points, the hyperbole ruins its effectiveness. For example, I don't find it frequently necessary to "log on to github and issue a pull request" to commit changes. Additionally, github !=
112.
▲
by
swdunlop
14y ago
False positive with impending loss of market placement, reviews and app presence with their customers. No recourse for flagging Google's attention except for appealing to the court of public opinion? Perhaps it is a "repeating scenario" be
113.
▲
by
swdunlop
14y ago
It's not an apology, it's a rationalization and a disclosure that Twitter has erected a classic legal fiction -- a Chinese Wall. In this case, Twitter has revealed two distinct groups that are not permitted to interact directly for reasons
114.
▲
by
swdunlop
14y ago
While it may be wrong in theory, changing it meant that all muscle memory developed by users thus far was thrown out of whack. What was the gain for disorienting the users by introducing a new default? An improvement in acceptance by users
115.
▲
by
swdunlop
14y ago
So was unilaterally setting it to the 10.7 standard. I think we should have the script flip a coin so people are annoyed evenly.
116.
▲
by
swdunlop
14y ago
Go has a smaller, narrower standard library that is more tightly maintained and governed than Python. Python's original slogan, "batteries included" could be amended after 20 years of use to "bitrot included." Some libraries have partiall
117.
▲
by
swdunlop
14y ago
It is hard to get excited about concurrency in vanilla Python while the Global Interpreter Lock still chokes everything down internally. (Vanilla, here, should be read "not Stackless.") For more effective use of lightweight processes, I'd
118.
▲
by
swdunlop
14y ago
Finally sorted itself out this evening. I just went back to Lion for the day and waiting for the #xcode rage to die down on twitter. :)
119.
▲
by
swdunlop
14y ago
Looking at my inbox? Because they are too busy declaring that they can't reproduce it.
120.
▲
by
swdunlop
14y ago
Same here; the late July update is only installable on 10.7. Looks like we're still stuck waiting for Apple to sort out the 403 error for XCode 4.4 on Mountain Lion.
More ›