HNHacker News
TopNewBestAskShowJobs

mhansen

1,616 karma · joined June 20, 2009

submissionscomments
mhansen··on Profilerpedia: A Map of the Software Profiling Ecosystem
Thanks, I've gone through and added these HPC tools to the spreadsheet.

FYI I'd consider py-spy for profiling Python+C extensions: https://github.com/benfred/py-spy#can-py-spy-profile-native-...

mhansen··on Profilerpedia: A Map of the Software Profiling Ecosystem
Author here; thanks for sharing, the HPC world is a real blindspot for me and I think we're probably missing some of their insights when profiling regular applications. I'll research these and add them to the database
mhansen··on Profilerpedia: A Map of the Software Profiling Ecosystem
Author here. You're probably already aware of this, but you can convert the `perf record` format to a format Clang understands: https://clang.llvm.org/docs/UsersManual.html#using-sampling-...

I expect the problem is somewhat political; profiler and compiler teams release different features, at different frequencies and don't want to be tied together.

mhansen··on Profilerpedia: A Map of the Software Profiling Ecosystem
Author here. Yeah, Chrome Trace Format + Perfetto is great and so easy to output. Anyone wanting to trace software could get some very quick wins by outputting Chrome Trace Format.

For converters, I'm trying to map those too, here's the tab of the spreadsheet tracking converters: https://docs.google.com/spreadsheets/d/1cVcHofphkQqk1yGeuBPV...

mhansen··on In 5 Minutes, He Lets the Blind See
You can donate at http://www.cureblindness.org/
mhansen··on Gender Bias 101 For Mathematicians
You might be interested that this is such a common way to derail conversations about privilege that it's made part of 'Derailing for Dummies'.

http://birdofparadox.wordpress.com/derailing-for-dummies-goo...

mhansen··on Mars 360-degree panoramic view from Curiosity
Have a look in Google Earth. It has street view from generations of rovers ;)
mhansen··on Yes, I was hacked. Hard.
For Google Apps paid users: http://googleenterprise.blogspot.com.au/2011/11/24-x-7-phone...
mhansen··on Treating JavaScript like a 30 year old language
Nowhere are abbreviations forbidden by the Google Style Guide.
mhansen··on Yeoman.io - Quickly build beautiful web applications
Yeoman was launched today at Google IO.
mhansen··on Blazing fast node.js: performance tips from LinkedIn
Yes.
mhansen··on Bacon Ipsum, because Unicode is hard
Feature request: RTL. :)
mhansen··on AngularJS 1.0 released
Angular doesn't include JSON parsing any more.
mhansen··on AngularJS 1.0 released
Sorry, what I meant is that when the application rerenders (digesting changes that have been made) it will re-evaluate the function to check if the result has changed.

Polling the function for changes, contrast with how e.g. knockout.js pushes changes. (I could be wrong, please let me know if my understanding's not reality)

mhansen··on AngularJS 1.0 released
Yes, it polls. Most functions are quite fast, and fine to just poll, and it's quite convenient to be able to bind to functions when needed.

But it's all tradeoffs - in our app we have a few that aren't - for those, we profiled to find them, and added a bit of code to the functions to cache the return value.

mhansen··on AngularJS 1.0 released
[Googler here]

There's little overlap between Closure Library and Angular.

Closure Library is a grab bag library full of useful functions that you can pick and choose from and integrate into your own code. Kind of like a standard library.

Angular is a client-side MVC framework that gives you two-way databinding and custom views and dependency injection.

Indeed, in our angular project, we use both - Closure Library for useful functions and advanced compilations, and angular for MVC.

mhansen··on AngularJS 1.0 released
Angular's agnostic to which testing framework you use. We test our angular app with a headless v8 running http://code.google.com/p/google-js-test/.
mhansen··on AngularJS 1.0 released
I work at Google, but not on the Angular team. Our team has deployed angular.js: places.google.com/manage. Angular's also used extensively in internal projects.
mhansen··on MsgPack vs. JSON: Cut your client-server exchange traffic by 50%
Override Backbone.Sync, and you should be sweet.
mhansen··on Fish: Finally, a command line shell for the 90s
I use fish (http://fishshell.com/), and it's amazing. However, they're missing the most important feature from their front page: Syntax highlighting!

Valid executables are colored green, as you type. Invalid commands are red, as you type. Valid files are underlined, as you type.

Like the carpenter who can feels the feedback of the grain of the wood through the handle of his plane can adjust his technique as he planes, fish shell lets me 'feel' the programs and files I'm working with through the shell.

And that makes me happy.

mhansen··on RJSON: compress JSON to JSON
I don't believe that browsers let uploads be gzipped, as it can't be sure that the server supports gzipped requests.
mhansen··on Python vs. Processing as a First Language
pygame works well for this.
mhansen··on Firefox 15 now supports in-content preferences
I daresay by now users are more familiar with web-based UI paradigms than traditional OS paradigms.

I think they'd spend more time interacting with web-based applications than traditional OS applications.

If that's the case, then Firefox is actually adapting to people's expectation of the UI.

mhansen··on Firefox 15 now supports in-content preferences
It makes it easier for contributors to hack on if the code is HTML/JS/CSS.

It'll let them iterate faster - just change code and reload. No recompilation needed.

mhansen··on Log Everything as JSON. Make Your Life Easier.
Thanks for the very enlightening reply. :)
mhansen··on Log Everything as JSON. Make Your Life Easier.
I like jsonpipe better - then you don't have to remember all the command line flags, and you can compose pipes with your familiar unix tools.

https://github.com/dvxhouse/jsonpipe

  $ echo '{"a": 1, "b": 2}' | jsonpipe
  /   {}
  /a  1
  /b  2
  $ echo '["foo", "bar", "baz"]' | jsonpipe
  /   []
  /0  "foo"
  /1  "bar"
  /2  "baz"
mhansen··on Modern Web Development

  Android, instead of making the web a first-class citizen,
  has in fact set the mobile web back by years.
I don't know how you can come to this conclusion. Android has made an excellent mobile web browser available to over a quarter of a billion people.

And how is the web not first-class? Google even started Web Intents to interoperate web apps with native apps.

mhansen··on Modern Web Development
They're reimplementing it because Firebug is an unmaintained mess.
mhansen··on Learn to read the source, Luke
Windows Research Kernel. It's an almost-complete source code of Windows ~2003. There's a few omissions, like the TCP/IP stack.

https://www.facultyresourcecenter.com/curriculum/pfv.aspx?ID...

mhansen··on Show HN: Meteor, a realtime JavaScript framework
It would be more helpful for people reading this comment if you gave reasons beyond "It's taboo".

I'm sure you have good reasons, I just can't see them here.

Page 1 of 15Next →