Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Laremere
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
331.
▲
by
Laremere
12y ago
The []int{1,2,3} method for initializing slices was missed: http://play.golang.org/p/FEXc1sxVLK
332.
▲
by
Laremere
12y ago
All of these take advantage of Lagrangian points, which aren't present in KSP: http://en.wikipedia.org/wiki/List_of_objects_at_Lagrangian_p... Not really applicable to this discussion, but one instance which is hi
333.
▲
by
Laremere
12y ago
Re nil: He said he rarely sees code fail because of nil dereferences, not that he rarely sees it. "if err != nil {" is probably the most commonly written line of Go code by a large margin. Nil fits well with the language's
334.
▲
by
Laremere
12y ago
I don't think your criticisms of Go are all wrong, but I do think they miss the point of Go. Go is designed to be a "best hits" sort of language. It doesn't try to do anything fancy or new (though several of its featur
335.
▲
by
Laremere
12y ago
Immutable values will complicate a type system and implementation. The Go creators are very strict about adding features to the language without enough justification, which is one of the biggest features of the language imo. There are more
336.
▲
by
Laremere
12y ago
I think it's a mater of the priorities of the language developers. <I've removed my thoughts on regex here because others have posted with more knowledge on the subject> As for runtime reflection, it's a very handy too
337.
▲
by
Laremere
12y ago
It's slightly more complicated than that: In addition to the init() function, variables on the package level can be initialized during initialization too. For example: http://play.golang.org/p/tvlX7cqaaB This is
338.
▲
by
Laremere
12y ago
The purpose was to not allow defining types which satisfy the interface outside the package. In this case they still want others to be able to use the values of the interface. It's an uncommon thing to need to do, but this example sho
339.
▲
by
Laremere
13y ago
As a note of feedback, I didn't notice the button at all. (Only knowing about its existence after looking at HN comments.) You do need to take a little bit a the viewer's attention for them to know about the feature.
340.
▲
by
Laremere
13y ago
I don't think it's commonly made by beginner modelers the way helloworld is with programmers. As I understand it, the teapot is more so useful as a pre-built model which you can use to test out different textures, materials, and
341.
▲
by
Laremere
13y ago
If it's anything like 1.2's c++ support, you have to write a wrapper in pure c, because that's what Go supports. So Go includes the C header files using Cgo, and you separately compile (and tell cgo to link) your c code whic
342.
▲
by
Laremere
13y ago
I think they just need more than two sources since there's more to program language popularity than they can two sources can show. Stack overflow naturally biases towards languages with worse documentation and those which cater to new
343.
▲
by
Laremere
13y ago
Yes, the halting problem can be solved for any programs which can only exist in a finite number of states, but most common definitions of a program would include things such turning machines, which can hold an infinite number of states. Re
344.
▲
by
Laremere
13y ago
Such a regex cannot exist: 1. Take an existing solution to finding the shortest regex given a list of inclusions an exclusions. 2. Take another unrelated arbitrary program. 3. Combine the two, when the arbitrary program terminates, use the
345.
▲
by
Laremere
13y ago
Seems to be an inter-site promotion link. If you follow it, it goes to an article on microsoft, which has a link randomly in the middle linking to the Iron Maiden article.
346.
▲
by
Laremere
13y ago
It's always easy to forget how ordinary extraordinary people are, and likewise how extraordinary ordinary people are.
347.
▲
by
Laremere
13y ago
I disagree. I interned twice at a telco, and while I had access to a bunch of information in databases as a developer, I had no access to call records, and in general you didn't have access to it unless you needed it for work. The p
348.
▲
by
Laremere
13y ago
I managed to modify yours to make a full sphere with a bad hack: http://vicapow.github.io/equation-plot-webgl/index.html#0.5%... There's probably a better way to choose which points go above and below than rando
349.
▲
by
Laremere
13y ago
> One of regulators' biggest worries about virtual currencies, like Bitcoin, is that they're susceptible to fraud, counterfeiting, and manipulation. Well, two people in Germany apparently just proved this was possible. The prob
350.
▲
by
Laremere
13y ago
The worst common day offender being .io.
351.
▲
by
Laremere
13y ago
Assuming that the person doesn't necessarily need to know their answer (which is important for babies anyways) the answer is trivial. The first question would be "Given that we ordered all humans in order of the time of their bir
352.
▲
by
Laremere
13y ago
Depending on the logic in the site, that may be true. However you can't use the technique used here verbatim, as it relies on being able to use the last element and the nth element together to determine the number of elements and whet
353.
▲
by
Laremere
13y ago
Farbs tweeted a partially working pacman in puzzle script: http://www.puzzlescript.net/play.html?p=6847686
354.
▲
by
Laremere
13y ago
> go/build: support including C++ code with cgo (CL 8248043). As someone who spent all of yesterday trying to figure out the best workaround for the lack of this functionality, I'm very happy to see this change.
355.
▲
by
Laremere
13y ago
If there is a break or panic in the iterator, not the loop using the iterator. If the loop using the iterator closes the channel, the program will crash.
356.
▲
by
Laremere
13y ago
It's very important when looking at the channel method to realise that goroutines are NOT garbage collected. If there is any chance of the loop calling break or panicking, there is a chance of leaking goroutines. Since you might not
357.
▲
by
Laremere
13y ago
Each package does not need to be in its own repo. You can put packages inside subdirectories. The standard library is full of these, such as the net library. There is the net library itself, and there are subdirectories, including http,
358.
▲
by
Laremere
13y ago
Google Wave failed quite horribly. However the resulting technology developed has been rolled into Docs, revolutionizing how Docs is used for collaboration. There was a good image I saw on reddit awhile back that I can't find off hand
359.
▲
by
Laremere
13y ago
From the article linked on the page: http://html5hub.com/using-webgl-to-add-3d-effects-to-your-we... "Note that, in this demo, I assume the visitor is using a WebGL-enabled browser. A better practice would have been t
360.
▲
by
Laremere
13y ago
I was going to start reading the article, but the TL;DR dissuaded me. The article look to be a long one, and if I just committed to reading every long article on the internet I'd never get anything done. The beginning of the articl
More ›