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

A good tip build tends to be more stable then 1.0.3 and has hugely improved performance (most importantly for large application in garbage collection and generation).

To select a suitable tip build we use http://build.golang.org/ and https://groups.google.com/forum/?fromgroups#!forum/golang-de... . My recommendation would be to find a one or two week old build that passed all checks, do a quick skim of the mailing list to make sure there weren't any other issues and use that revision. Also, you will see some the the builders are broken-

Of course if your application has automated unit tests and load tests, run those too before a full deployment.

comment 13y ago · link · parent

Webgo... I'll stick with "net/http" and Gorilla thanks.

Also, They used Go 1.0.3... I hope they update to 1.1 next month. Most everyone using Go for intensive production uses is using Go tip (which is the branch due to become 1.1 RC next month)

comment 13y ago · link · parent

Systems Software (OS, VMs, Compilers, etc)

comment 13y ago · link · parent

At second thought, I noticed this until I disabled desktop effects, you might want to make sure that wasn't the delay you noticed as that delay is configurable and artificial.

comment 13y ago · link · parent

I've been using Cinnamon 1.6.7-0ubuntu1~precise1 on 12.04 LTS and it seems very fast.

comment 13y ago · link · parent

You do realize that you can get a Masters degree in Software Engineering, right?

This normally means broadening your C-S background (think of all the electives you didn't take as an undergrad) and learning skills like formal verification and analysis, project planning, managing quality assurance, formal documentation and designing complex and scalable systems.

comment 13y ago · link · parent

So in Canada say I have a B.S. in Computer Science and a Masters in Software Engineering- I can't call myself an Software Engineer? Talk about ridiculous...

comment 13y ago · link · parent

I use Gnome3 but with Cinnamon simply because its one of the few ways to be both using a newer desktop environment and have an experience (after a little bit of moving things around) that looks like what I am used to, like and want. I love tablet UIs... on my tablet. I realize designers/developers of UIs want the elegance of one UI paradigm to rule them all, but content production on a desktop and content consumption on a mobile devices are not at all alike.

comment 13y ago · link · parent

Interesting. It is pretty amazing and unfortunate after all these years (18?) Sun/Oracle hasn't made the default JVM memory allocation more adaptive/intelligent. Could the JVM -Xms option be used to try to mitigate this defect?

One note, Scala uses more memory than Java does, so it appears not all of this usage can be blamed on the JVM itself: http://benchmarksgame.alioth.debian.org/u32q/benchmark.php?t...

comment 13y ago · link · parent

"I would expect the numbers should be better than Scala, for example"

Maybe once 1.1 is out and the language game switches to it, that will be the case (the benchmark is using the current stable release of Go 1.0.3).

Also, I assume you are talking about execution time, Go destroys Scala in your linked comparison in terms of memory usage.

comment 13y ago · link · parent

True, but it is worth pointing out because this discussion is about 1.1 and people might not realize those are 1.0.3 benchmarks.

1062.

Go 1.1 RC due next month; Go 1.1 Release Notes:(tip.golang.org ↗)

2 points · by voidlogic · 13y ago · discuss

comment 13y ago · link · parent

Cool, it seems like this package might work very well with this one: https://news.ycombinator.com/item?id=5443107

1064.

Mitosis: Hot swapping Go code while maintaining application state (golang)(github.com ↗)

2 points · by voidlogic · 13y ago · discuss

1065.

Redistore: A session store backend for Go's gorilla web toolkit(github.com ↗)

1 points · by voidlogic · 13y ago · discuss

comment 13y ago · link · parent

The article indicates that the temperature fluctuations and wind speed are much more extreme as you go higher. Maybe it would still work by selected well-suited plants? But those well-suited plants are probably not going to be the kind of plants the articles author was complaining about using in their renderings.

comment 13y ago · link · parent

Very cool, but that building at 3 stories is no sky-scrapper and having plants grow on it is actually reasonable.

comment 13y ago · link · parent

Graphene superconductors are compost-able.... we will know more in time, but as a sheet of pure carbon graphene has an intuitively low risk of being carcinogenic. Graphene is also produced every time you write with a traditional pencil, so tons of graphene exposure starting at a very early age has occurred, with no known side affects.

comment 13y ago · link · parent

"It's all a tradeoff, you lose some expressiveness for performance."

Not only do you gain performance but I think you gain maintainability and clarity. I value that when you read Go the run-time complexity of operations is very clear. In many other languages you often find O(n) or worse operations that appear to many programs in such a way the uninformed assume they are O(1) operations. In Go that does not happen- almost always what you see is what you get. I will gladly write a few more lines of simple code to gain clarity.

comment 13y ago · link · parent

You find it unlikely that a compiled language might be 15x faster than a interpreted language doing a compute-bound workload, when said compiled language is often 30x faster in posted synthetic benchmarks... I think you are extremely skeptical...

I have ported node.js applications to Go and seen similar substantial speedups. In my cases though I was running in a multi-threading enviroment. not GAE and the performance difference (improvement) was much greater under concurrent load versus single request latency. But that seems reasonable since node.js is closer to Go in performance than Python is.

I guess I just believe it because I have seen it. :)

comment 13y ago · link · parent

True, but it would help average request latency under load. I am hoping with Go 1.1 RC coming out next month that Google might enable multi-threading on the GAE.

Note: Even with Go only given a single core a developer can still write a Go program so they are concurrent. That way when one goroutine blocks on IO, another can use the CPU to make progress; furthermore, when multi-threading is enabled the performance upgrade will be substantial and seamless.

comment 13y ago · link · parent

"Such difference is not impossible between languages" You are correct in wanted to make sure the algorithms and data-structures used still have the same run-time complexity. But saying this is impossible is not accurate.

This kind of difference is not uncommon when BOTH the before and after program optimally handle IO (network,file,db,etc), BUT the before program is from the interpreted performance tier (PHP,Perl,Ruby,Python) and the after program is from the compiler tier (C/C++,Java,C#,Go,Scala,Haskell).

These micro-benchmarks, while not proving anything, at least suggest that you could be wrong as well: http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...

comment 13y ago · link · parent

Very cool! Thanks for making this.

1074.

Migrated WordGap from Python to Go 1(blog.zmxv.com ↗)

50 points · by voidlogic · 13y ago · 40 comments

comment 13y ago · link · parent

While not sexy and hip, remember 35 percent of web traffic is handled by PHP... PHP is still a player. I'm not a huge fan of either PHP or Ruby, but with HipHop PHP apps seems to have a path to higher scalability. All languages eventually decline and die, and while PHP might be declining (and as of this year maybe Ruby too) PHP's death is going to be extremely slow, probably decades. In 30 years I would not be surprised if PHP is the COBOL of web development.

comment 13y ago · link · parent

Without evidence to the contrary that claim seems reasonable: http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...

We all know CPU performance is much less important than IO performance (file, DB, network), but assuming a large Ruby site and large .NET site both got that part right, and CPU performance does start to matter, what he says sounds reasonable.

Rather than being noticeably faster (lower latency) for a single user, the compiled tier (Java,C#,Go,Haskell,Scala,etc)'s better performance often just allows for far fewer (or cheaper) servers than the interpreted tier (PHP,Perl,Ruby,Python) to be thrown at the problem.

comment 13y ago · link · parent

I wouldn't use it, but I know people have had great success with Mono + .NET MVC + nHibernate/PostgreSQL on Linux. Now I personally would rather use Go/Java/Haskell, but I would take the above stack over Ruby any day.

comment 13y ago · link · parent

It sounds like they are just building on cgroups etc, which are already part of the Linux kernel.

I would argue that virtual machines at a hypervisor/hardware level were just a hack for OSs not living up to their isolation promises/obligations. Strong OS level isolation implementations (cgroups, namespaces etc) allow people to put isolation back where it belongs, the OS.

The job of the OS is to control the hardware, wrapping the OS is software to emulate hardware is ridiculous and VMs generally have much more performance overhead than isolation containers.

comment 13y ago · link · parent

I don't think that is fair; I did say "so much depends on what exactly you need."

Maybe you don't need to whole kitchen sink. Also its not as though there are not other Go libraries to get other functionality from such as DB/ORM functionality.

comment 13y ago · link · parent

To rails? Thousands- so much depends on what exactly you need.

  Python? Django, Tornado, Twisted, etc
  Go? "net/http" + Gorilla (http://www.gorillatoolkit.org/)
  Java? JSF 2.0, GWT, Spring, Tapestry, etc etc
  C#? ASP.NET MVC
This list could be almost infinite... or at least could be discussed infinity :)
1
353637
40