HNHacker News
TopNewBestAskShowJobs

axylone

117 karma · joined March 13, 2011

acleone ~AT~ gmail . com
submissionscomments
axylone··on How many Devices can you Connect to the I2C Bus?
I wish software packages had data sheets! It would be great to have a concise/standardized format with bullet points and a "typical applications" section on github landing pages.
axylone··on Go best practices, six years in
There's also Goclipse for Eclipse.
axylone··on Are Multiple Personalities Always a Disorder?
For an excellent sci-fi exploration of using multiple personalities to one's advantage, I highly recommend "Blindsight" by Peter Watts.

His recent sequel, "Echopraxia", has an interesting extension of bicameralism as well.

axylone··on Three Optimization Tips for C++
If the branch is predictable, and the cpu guesses correctly, then it is faster than integer arithmetic.

A branch miss on the other hand is much more expensive, about 14 cycles last time I was testing (on a core i5 desktop cpu from a few years ago).

axylone··on My Eclipse experience with Java 8 was so bad, I switched to NetBeans
I use Eclipse as my main IDE for C/C++, python, javascript, go, html, css, etc. I don't understand how some of my office mates don't use IDE's when you have things like:

Show all uses of struct field/function/global variable (ctrl shift h)

Rename struct field/function/global variable (alt shift r)

Jump to definition of anything and back (alt click, alt left, alt right)

Autocomplete for struct fields, etc.

And the best part about it is that I've spent a total of 5 minutes messing with settings, instead of 1 day+ trying to set up ctags and the 50+ vim plugins that would be required to even come close to the same functionality.

It even uses my Makefiles with -j4 so incremental C builds are super fast.

axylone··on Facebook acquires Oculus VR
I'm very interested to see what Carmack does. I hope the whole team moves to Valve or something, and this doesn't set back VR another 10 years.
axylone··on Why was "goto fail;" added without any other change to that part of the code?
Looks like they also introduced a reference leak on allocation failure:

    @@ -198,10 +198,8 @@
            sslDebugLog("SSLEncodeRSAKeyParams: modulus len=%ld, exponent len=%ld\n",
                    modulusLength, exponentLength);
         OSStatus err;
    -    if ((err = SSLAllocBuffer(keyParams, 
    -                       modulusLength + exponentLength + 4)) != 0) {
    -        CFReleaseSafe(exponent);
    -        CFReleaseSafe(modulus);
    +    if ((err = SSLAllocBuffer(keyParams,
    +                       modulusLength + exponentLength + 4, ctx)) != 0) {
             return err;
            }
         uint8_t *charPtr = keyParams->data;

Note the removed CFReleaseSafe(exponent) and modulus. All other return paths in SSLEncodeRSAKeyParams() call CFRelease(exponent) and modulus.

This is why you use goto fail and not early returns.

axylone··on Understanding how killall works using strace
What are the anonymous 4096 byte allocations before every read? I would think that killall would read /proc/{pid}/stat directly into a stack buffer, especially if the reads are only 1024 bytes.
axylone··on Ask HN: Who is hiring? (October 2013)
Seattle, WA - ExtraHop Networks - Software Engineers, Testing Engineers, Support Engineers, Sales Engineers, and more.

ExtraHop is a ~6 year old, fast growing startup building network appliances for application analysis. Think HTTP/DB/memcache/NAS/etc processing times for all the servers in a datacenter, all by passively watching the network.

I'm a software engineer at ExtraHop and here's why I love my job:

1. The team is amazing and everyone makes a difference. The two founders, Jesse and Raja, designed and built BigIP v9 when they were at F5 Networks before founding ExtraHop, and are still very much involved in engineering. It's a great working environment and we have a lot of fun.

2. Hard problems at all levels. We parse a bunch of different protocols at 20Gbps by writing high-performance multithreaded C and our own linux kernel drivers. Our datastore handles 200,000 inserts a second with 10MB/s of data. Our UI has a ton of charts and tables, with data going through django and tornado. We use python, C, javascript, flex (slowly moving to a new UI with html5 + javascript), and a modified yacc+bison for some of our protocol parsers. You can hack anything from C to the front-end design and anywhere in between.

3. Our customers love it. It's awesome to see problems diagnosed and solved with our box.

jobs@extrahop.com

http://www.extrahop.com/company/jobs/

axylone··on In emergency cases a passenger was selected and thrown out of the plane (2004)
oom_adj is depreciated, use oom_score_adj instead.

https://www.kernel.org/doc/Documentation/filesystems/proc.tx...

axylone··on Microsoft offers ad-free Bing for the classroom to battle Google
I'm typing this in chromium on ubuntu/xfce, alongside an Eclipse window open working on some Go code, inside of a crouton chroot, on a $250 Samsung Chromebook that has better battery life than any of my previous laptops. I disagree.
axylone··on Tesla Model S achieves best safety rating of any car ever tested
Here's the video of the Tesla pole test: http://youtu.be/_Al3IUHt9Wc?t=32s

Honda Accord for comparison: http://youtu.be/ycntFFUfGkU?t=30s

axylone··on Russian Proton Rocket crashes Seconds after Launch
It's awesome how simulation games like KSP teach people about rocketry and orbital mechanics - I bet KSP will contribute to the coming resurgence of interest in spaceflight.

Lots of KSP references in the youtube comments: https://www.youtube.com/watch?v=Zl12dXYcUTo&hd=1

axylone··on The New Google Maps
If you set up multiple Chrome users (Settings > Add New User), you can log into multiple google accounts at once.
axylone··on Why is BIND 10 written in C++ and Python?
Sure, but then you can't use the standard library or any other libraries. Even a single exception sneaking into the codebase breaks everything.
axylone··on Why is BIND 10 written in C++ and Python?
Does anyone know of large projects where C++ handles memory allocation failures gracefully? For services that need to stay up and never crash under memory pressure, I would think C is the way to go. It's too hard to reason about control flow with exceptions.
axylone··on I used Google Glass
Just a random idea: A mode where notifications are batched up until the user is standing relatively still.
axylone··on Securing Ubuntu
Source? ubuntu-server has nothing to do with Unity.
axylone··on Ask HN: Who Is Hiring? (June 2012)
Seattle, WA - ExtraHop Networks - Software Engineers, Testing Engineers, Support Engineers, Sales Engineers, and more.

ExtraHop is a ~4 year old, fast growing startup building network appliances for application analysis. Think HTTP/DB/memcache/NAS/etc processing times for all the servers in a datacenter, all by passively watching the network.

I'm a software engineer at ExtraHop and here's why I love my job:

1. The team is amazing and everyone makes a difference. The two founders, Jesse and Raja, designed and built BigIP v9 when they were at F5 Networks before founding ExtraHop, and are still very much involved in engineering. It's a great working environment and we have a lot of fun.

2. Hard problems at all levels. We parse a bunch of different protocols at 10Gbps by writing high-performance multithreaded C and our own linux kernel drivers. Our datastore handles 200,000 inserts a second with 10MB/s of data. Our UI has a ton of charts and tables, with data going through django and tornado. We use python, C, javascript, flex (slowly moving to a new UI with html5 + javascript), and a modified yacc+bison for some of our protocol parsers. You can hack anything from C to the front-end design and anywhere in between.

3. Our customers love it. It's awesome to see problems diagnosed and solved with our box.

jobs@extrahop.com

http://www.extrahop.com/company/jobs/

axylone··on Yahoo Axis
I noticed that too. Especially since chrome already has a "Search google for foobar" in the right click context menu.
axylone··on iPad 3 4G Teardown
I think they mean the model number, LTN097QL01-A02, is a samsung model number. The 1024x768 lcd in the linked document has model number LTN097XL01-A01.
axylone··on Lthread - C coroutine lib with multicore support
Very cool. I'm try to understand the stack handling in lthread_compute.c - Can you explain briefly how this works? What is the memcpy for in _lthread_compute_save_exec_state?
axylone··on How U.S. Lost Out on iPhone Work
With automation, many of the jobs won't come back with the factory. There will be a few highly-technical positions for the engineers that set up the plant and keep it running, but for the most part it's like building a datacenter as mentioned in the article - $500 million for ~100 jobs.
axylone··on Maddox - I hope SOPA passes
This. All this effort into stopping single pieces of legislation could be better directed into fixing the political system. Everyone knows that senators can be bought, but we still play the game and protest the legislation instead of the process causing the legislation.

Why don't http://rootstrikers.org/ and Laurence Lessig get brought up in these discussions more?

axylone··on Ten Ways to Check if an Integer Is a Power Of Two in C
Much better ways to count bits set: http://graphics.stanford.edu/~seander/bithacks.html#CountBit...
axylone··on Chevy Volt: Is This Our Future?
I really hope battery switching stations catch on (see betterplace).
axylone··on Apple R&D (1989): Mousing is faster than keyboarding, but users don't believe it
Ctrl+Shift+R opens files in eclipse.
axylone··on Poll: Do you support software patents?
What if a startup spends ~2 years coming up with an idea, launches it, and gets noticed by a Big Company before the site gets big. What's to stop the Big Company from just implementing the idea themselves in a slightly different form? Would the Big Company still buy the startup/how will the startup be compensated for its work?
axylone··on Google lobbies Nevada to allow driverless cars
This sounds like the history of a company out of a Stephenson or Gibson book. I want to believe...
axylone··on Poll: Do you know C?
I'm about to get out of college, and at my new job I'm using mostly C. Well-written C is surprisingly fun to work with (although you could probably say that about anything).
Page 1 of 2Next →