axylone

Joined 15 years ago

Karma
117
Submissions
35
Member since
Mar 13
acleone ~AT~ gmail . com
View on Hacker News

Recent submissions

Comment · 5 years ago
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.
Comment · 10 years ago
There's also Goclipse for Eclipse.
Comment · 11 years ago
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.

Comment · 12 years ago
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).

Comment · 12 years ago
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.

Comment · 12 years ago
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.
Comment · 12 years ago
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.

Comment · 13 years ago
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.
Comment · 13 years ago
Comment · 13 years ago
Comment · 13 years ago
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.
Comment · 13 years ago
Comment · 13 years ago
Comment · 13 years ago
If you set up multiple Chrome users (Settings > Add New User), you can log into multiple google accounts at once.
Comment · 13 years ago
Sure, but then you can't use the standard library or any other libraries. Even a single exception sneaking into the codebase breaks everything.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton