HNHacker News
TopNewBestAskShowJobs

cyrusand

52 karma · joined November 15, 2014

submissionscomments
cyrusand··on Show HN: chrome-page-graph – Chrome extension to generate page dependency graphs
Thanks! There's a link to a live demo in the README, after the embedded D3.js bundle you'll find the actual graph code. Or you can just take a look at: https://github.com/cyrus-and/chrome-page-graph/blob/master/e...
cyrusand··on Show HN: Share your Unix shell with people you trust
The poor man solution: https://gist.github.com/cyrus-and/713391cbc342f069c149
cyrusand··on [dead]
[-Hacker-]{+Pope+} News
cyrusand··on Show HN: Chrome Remote Debugging Protocol interface
I see, well I've never performed any benchmark but it's quite possible that an ad hoc headless browser performs better for what concerns repeated tests. On the other hand, in this case you're instrumenting a real (really employed by the final user) browser. Possibly things will improve with this new headless mode for Chrome.

In any case this JavaScript module should not introduce any performance degradation, but if it does and you happen to give it a try in the future, feel free to open an issue.

cyrusand··on Show HN: Chrome Remote Debugging Protocol interface
Actually I didn't notice such thing when I used it extensively around 2013 for instrumenting some page loads. Which part was slow in your experience?
cyrusand··on Is this prime?
Or just:

    setInterval(function() {game.check(is_prime(game.current_n) === 'prime')}, 0);
cyrusand··on Partially evaluating a bytecode interpreter using C++ templates
I'm just throwing this here:

http://blog.mattbierner.com/stupid-template-tricks-template-...

cyrusand··on GDB Dashboard
Thanks! This is a good advice, I'll surely do it, if it will ever be enough demand.
cyrusand··on GDB Dashboard
Glad to hear that! I'm the guy who wrote that thing. You can change the syntax with the built-in GDB command `set disassembly-flavor intel`.
cyrusand··on Gdb-dashboard
You can simply disable it by default with `dashboard -enabled off` in, say, `~/.gdbinit.d/my-init` then just `dashboard` to show it on demand.
cyrusand··on Show HN: Prof – Self-contained C/C++ profiler library for Linux
Yes, including "prof.h" is enough, but you can try using different events, by default Prof uses `PERF_COUNT_HW_REF_CPU_CYCLES`. For example try defining before #include "prof.h":

#define PROF_EVENT_LIST PROF_EVENT_HW(CPU_CYCLES)

or

#define PROF_EVENT_LIST PROF_EVENT_SW(CPU_CLOCK)

Which kernel version are you running? Are you running this from a virtual machine?

Feel free to open an issue (https://github.com/cyrus-and/prof/issues) with these information if you can't manage to make it work.

cyrusand··on Tfman – textual file manager
alias dired='emacs -Q -nw .'