Better HN
topnewbestaskshowjobs
Log inSign up

mhansen

1,616 karma · joined Jun 20, 2009 (17y ago) · 472 submissions

Submissions

comment 5y ago · link · parent

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-...

comment 5y ago · link · parent

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

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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...

comment 11y ago · link · parent

You can donate at http://www.cureblindness.org/

comment 13y ago · link · parent

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...

comment 14y ago · link · parent

Have a look in Google Earth. It has street view from generations of rovers ;)

comment 14y ago · link · parent

For Google Apps paid users: http://googleenterprise.blogspot.com.au/2011/11/24-x-7-phone...

comment 14y ago · link · parent

Nowhere are abbreviations forbidden by the Google Style Guide.

comment 14y ago · link · parent

Yeoman was launched today at Google IO.

comment 14y ago · link · parent

Yes.

comment 14y ago · link · parent

Feature request: RTL. :)

comment 14y ago · link · parent

Angular doesn't include JSON parsing any more.

comment 14y ago · link · parent

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)

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

[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.

comment 14y ago · link · parent

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/.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

Override Backbone.Sync, and you should be sweet.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

I don't believe that browsers let uploads be gzipped, as it can't be sure that the server supports gzipped requests.

comment 14y ago · link · parent

pygame works well for this.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

Thanks for the very enlightening reply. :)

comment 14y ago · link · parent

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"

comment 14y ago · link · parent

  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.

comment 14y ago · link · parent

They're reimplementing it because Firebug is an unmaintained mess.
12345
16