HNHacker News
TopNewBestAskShowJobs

nickpresta

521 karma · joined November 4, 2011

submissionscomments
nickpresta··on Go vs C++: Ray tracer (part 3)

  go build -gcflags
If you run `go help build`, you will see:

  -gcflags 'arg list'
		arguments to pass on each 5g, 6g, or 8g compiler invocation.
Then you can run:

  go tool 6g
And see:

  -m	print optimization decisions
nickpresta··on Get Startup Tools
I think you have something wrong with your browser -- I tried in both Firefox Nightly and Chrome Dev and I don't have this problem on two different computers.
nickpresta··on Get Startup Tools
Not sure what you mean? Each offer opens in a new tab and the homepage itself doesn't seem to hijack anything...
nickpresta··on Golang Object Oriented Design
http://golang.org/pkg/sort/#example_Interface
nickpresta··on Node.js incorrectly parses HTTP methods
Built-in Go HTTP Server:

https://gist.github.com/NickPresta/6276195

It seems to pass the correct method to the application.

nickpresta··on How to build a large Angular.js application
9K LOC (not including comments) may not be "large" but it is quite sizeable and in a framework like Angular, probably does quite a bit.

For comparison, I work on a Backbone.js app that has the following distribution.

  --------------------------------------------------------------------------------
  Language                      files          blank        comment           code
  --------------------------------------------------------------------------------
  Javascript                      282           4348           7356          27860
  CoffeeScript                    336           4953           1687          17939
Obviously Backbone.js has much less "batteries" included.

The tips in the article were good and well thought out. I appreciate the effort the author made.

nickpresta··on Nexus 7
It is funny that in Canada, I cannot buy the N72013 from the Play Store but I can walk into Staples, The Source, Best Buy, Future Shop, etc, and pick one up for $249.

In fact, I bought my N72013 on the 31st of July and have been playing with it for a week. WTF Google?

nickpresta··on Impressions of Go
Agreed. There is an awesome project that provides this: https://github.com/deckarep/golang-set
nickpresta··on Impressions of Go
You should actually be using a `struct{}` as the value, as it takes no space (opposed to a bool).

http://play.golang.org/p/KK1ymLzd_e

nickpresta··on Plug: the brain of your devices
Awesome idea and it seems very ambitious. I wish it supported USB3 and gigabit ethernet though, especially when you're talking about several Terabytes of files and streaming movies, etc.
nickpresta··on Show HN: Google Glass + Tesla Model S = GlassTesla
Yes, holding, which takes a hand (or two) off the wheel. Wearing Glass does no such thing.
nickpresta··on Learn Python in minutes
Responded in the ticket, but yeah, totally your call (obviously :D)
nickpresta··on Learn Python in minutes
The bit about exceptions, using a comma instead of as, should just be left out. I don't imagine anyone starting out today is using Python < 2.6, and having both in the document is confusing.
nickpresta··on Tiedot - Your NoSQL document database engine powered by Go
Looks pretty interesting. I like the embedded use. I submitted a PR to enhance your software: https://github.com/HouzuoGuo/tiedot/pull/6
nickpresta··on Show HN – Apptimize: A/B testing for native Android, iOS apps
You're more than likely using the Android Marketplace, with a Google account, with credit card details associated. What don't you trust?

In general, apps that "phone home" suck, but let's not lump GA or crash reporting (like BugSense, etc) in that same group.

nickpresta··on RethinkDB 1.5 released: secondary indexes, soft durability, perf improvements
I like Homebrew as well and I don't want to detract from how awesome it is, but dpkg + aptitude is much better in my opinion and I find I actually miss aptitude on OSX.
nickpresta··on Web Framework Benchmarks Round 4
(I know what Gorilla is, I've contributed to it :D)

The OP, to which I was replying, said: "see the gorilla test which is a Go framework."

I asked about the Gorilla benchmark itself, since OP seemed to say that adding something like Gorilla would slow down the Go benchmarks, which I don't agree with.

nickpresta··on Web Framework Benchmarks Round 4
Where are the Gorilla benchmarks? I only see raw Go for all 4 benchmarks.
nickpresta··on Go 1.1 RC1 is out
I disagree with your use of named returned values for something like that.

https://plus.google.com/106356964679457436995/posts/LmnDfgeh...

EDIT: Sorry, let me explain (I'm not an asshole, really!). I disagree with using named returned for things outside of signaling error/ok states (as explained by Andrew). I feel that our signatures should be written concisely for users of our API, not for our convenience.

nickpresta··on ZenPayroll launches modern payroll service for accountants and bookkeepers
Full disclosure: I work at Wave, but not on Payroll.

Wave does Payroll in US and Canada: https://www.waveapps.com/payroll/

Our support team would be more than happy to answer any questions you or anyone might have: https://support.waveapps.com/forums

nickpresta··on Never Lock Your Cell Phone
I have my name, my email address, and an alternate land line phone number with an answering machine.
nickpresta··on Saying Goodbye to a Sister
My story is almost the same as yours - I lost him in my last year, not my first year post-graduation. There isn't a day that goes by where I don't think about him, or miss him.

However, I notice a lot now, almost 2 years later, that some of him lives on in me; the jokes that I tell, the reactions to some events, are from him.

I hope you find peace and remember that they aren't really gone if you let them live on in their own special way.

nickpresta··on The same app 4 times: PHP vs Python vs Ruby vs Clojure
Heh. Our solutions came out very similar. I clearly did something wrong, as I thought backreferences didn't work in Go's Regexp package. Oh well. I'll remember for next time.

https://github.com/nickpresta/nurblizer

nickpresta··on The same app 4 times: PHP vs Python vs Ruby vs Clojure
Here is my submission (written in standard Go): http://nurble.nickpresta.ca/

Source is available here: https://github.com/NickPresta/nurblizer

There are some minor differences (due to Go lacking backreferences with it's Regexp package, as far as I can tell) that I don't care to fix. Still, in ~74 lines of code, you get something pretty decent (and no external web server required, either).

nickpresta··on Google Drive was down
It just seems the list page is slow. I can open up documents directly and they load instantly as normal.

shrug

nickpresta··on The 3-year old "Implement RSS natively in Chrome" bug just changed to "WontFix"
Such as?
nickpresta··on Why I'm switching back to Firefox
http://caniuse.com/#compare=firefox+21,chrome+27

I'm not sure how they're calculating 87% -- do unknowns count towards supported? It looks like, from that list, that Chrome supports more.

nickpresta··on WebGL Terrain Flyover Demo
Chrome Beta (26.0.1410.29) on Nexus 4 (Android 4.2.1) gets about 18 - 22 FPS: http://i.imgur.com/KUEx3uD.png
nickpresta··on WebGL Terrain Flyover Demo
Retina MBP with 16GB of RAM. All system updates, Chrome Dev Channel.
nickpresta··on WebGL Terrain Flyover Demo
A solid 60fps here with the GUI hidden.

http://i.imgur.com/F04X6D8.jpg

← PreviousPage 2 of 5Next →