Better HN
topnewbestaskshowjobs
Log inSign up

voidlogic

3,297 karma · joined Nov 15, 2012 (14y ago) · 1,171 submissions

Submissions

comment 13y ago · link · parent

>>Wait, where does "bag" rhyme with "vague"?

Wisconsin/Minnesota

comment 13y ago · link · parent

This is another fun map: http://1.bp.blogspot.com/_7wbbZeG9jwI/S1uUPYQCImI/AAAAAAAAAF...

comment 13y ago · link · parent

I don't think the "general liberal-arts undergrad education" is as effective if students still live at home. Living in very new environment helps students be more open to new ideas. I think this especially true where the students home environment is anti-science or bigoted.

comment 13y ago · link · parent

This is important as one of the motivations behind Go is fast compilation.

comment 13y ago · link · parent

Not only that, but I have heard people say that for compute (code generation) bound tests that are single threaded GCCGO does better; however, if you run code with many goroutines (which most Go programs have) the standard Go compiler is faster.

As of 1.1 Go code generation is also drastic improved. I would love to see Go 1.0.3 vs Go 1.1 vs GCCGO tests with a wide sample of programs.

comment 13y ago · link · parent

>>But is vocational training adequate for a "career" that spans 40 or 50 years?

Not only that, but is vocational training adequate to create citizens equipped with the skills and knowledge to make them capable of analyzing the policy decisions voters in a modern democracy must consider? Some people will claim the traditional college system has failed in this regard, but they are confusing failure with lack of perfection. I'm sure not every citizen needs to go to college to have these skills, but I think most do, and this is especially important in regressive regions of the country.

comment 13y ago · link · parent

Care to backup your Mono claims with evidence?

I have a friend who went to a Mono talk at MS MIX where a Mono developer was speaking. The Mono developer said that while Mono is a little slower than .NET (and he was talking a couple percent) Mono often ends up being faster on the same hardware because the Linux system calls the runtime uses are faster. There were a few ROFLs in the audience.

I also agree with you that investing in a .NET (Windows) test isn't good bang for the buck here.

comment 13y ago · link · parent

>>Still: I do appreciate a demo that even kinda-sorta works on gnu/linux.

I'm using Firefox 20 on Ubuntu 12.04/amd64 and everything works flawlessly.

comment 13y ago · link · parent

This. Java is almost as fast as C++ safer for the average bear, and IMHO easier in the maintenance phase.

I make that last point because I think new people coming into large C++ projects often take longer to ramp up and understand the code than in large Java code bases. But that is purely anecdotal.

comment 13y ago · link · parent

If its just-in-time compiled you can't really call it a non-compiled language...

comment 13y ago · link · parent

gzipped source size in generally considered a better measure of effort than actual LOC. The reason for this is that the languages with a lot of boiler plate usually have tooling, IDE's etc to make that pain go away, and gzipped source, while still counting repeated boiler plate end up weighing it less than unique lines of code.

comment 13y ago · link · parent

You should link quad 64 rather than uni 32 as it is much more real-world applicable. That being said, it doesn't change the fact you are stating here.

comment 13y ago · link · parent

>>I don't consider the Go size pretty small.

You realize that Go implements the new template test right? Your linked ones do not (at least the ones I spot checked).

Also, Go is statically typed = win

comment 13y ago · link · parent

Not to mention that he assumes all the faster langs take more effort. What if you could have a lang that is a best performance and be highly productive- he assume this is not possible.

The Go code size is pretty small, in fact it might be smaller than the Rails code... I'm still trying to find all the Ruby files, Go is in one file...

comment 13y ago · link · parent

>>I've read about the limitation of Go in terms of third party libs

Must not be looking on github... Yes its new, but in a majority of cases I have not had any trouble finding third party libraries and the std ones are wide and excellent.

comment 13y ago · link · parent

Java does well with C, Haskell and Go competitors in these results...

comment 13y ago · link · parent

>>didn't make the cut

Did you submit a pull request for it and it was denied?

comment 13y ago · link · parent

They were not tested because no one has submitted a pull request for them.

comment 13y ago · link · parent

Linux amd64 is the dominate internet serving platform; supporting a non-free OS for the benefit of a single test entry seems dumb. I'm all for a Mono entry however.

comment 13y ago · link · parent

I wish it talked more about their DB hardware, I would believe MariaDB is more performant for scale out, whereas the MySQL improvement have been targeting scale up (something Oracle is very good at).

comment 13y ago · link · parent

Because that is what someone/blog/article told them one time (or less commonly they remember 1998 Java performance). Java is one of the faster languages out there and has been since 1.4+: http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...

comment 13y ago · link · parent

>>A goroutine count doesn't seem like it'd be useful for diagnosing this in a non-trivial program.

Sure it is, if you are leaking goroutines you will see an every increasing count, even when your app is idle if the count doesn't return to the proper baseline then you know you have a problem.

If you start a goroutine should should have a plan for terminating it. If you don't have a natural way like the life cycle of handling a request then you need to use channels (defer/close are your friends), waitgroups, condition vars etc. I work on some fairly large Go applications and this hasn't been a pain point.

comment 13y ago · link · parent

That is a pretty serious bug, that is not at all as easy to miss as something like a memory leak is in C/C++.

It is also pretty easy to detect by this (or something better), which might be handy in a big program: http://play.golang.org/p/XmKfgQ4TmS

comment 13y ago · link · parent

Outside of using cgo or working on the Go runtime (written in C), how are you leaking memory in a garbage collected language? Your code either has a reference to something, or it doesn't. If your code has a reference to something, how is a tool going to know you don't mean too have that reference?

Outside of the "dangling reference" issue above "leaking" in a GCd language is non-trivial. Here is a related Java discussion: http://stackoverflow.com/questions/6470651/creating-a-memory... . Also note Go doesn't have ClassLoader or class static fields.

comment 13y ago · link · parent

Is MariaDB still substantially slower than MySQL?

http://dimitrik.free.fr/blog/archives/2013/02/mysql-performa...

comment 13y ago · link · parent

I'm pretty sure that was fixed in both previous betas and tip for some time before that.

comment 13y ago · link · parent

If there is a way to consistently inject the input to the program (to lead to the same state), I would be OK with editing a Go program to cause (behind the scenes):

  1. moving a break point 
  2. recompile
  3. run
  4. stopping at new break point
I think that happening behind the scenes could be made to appear like live editing in other languages. Go is fast enough compiling and fast enough executing that I think it could be pulled off as not appear laggy as well. But maybe I'm wrong and I don't understand well enough how LT handles other langs.

comment 13y ago · link · parent

Go compiles so fast you can just pretend there is dynamic eval. People sometimes use the "go run" command to compile and run Go source in one operation, that is not really too different from just invoking an interpreter. Go provides a lot of tools to parse Go source, I imagine between that, Go's fast compiler and GDB support it wouldn't be as hard as many compiled langs to support.

Also if I am figuring out something OBO (off by one) prone sometimes I use this to double check myself: http://play.golang.org/

1
303132
40