HNHacker News
TopNewBestAskShowJobs

thehobgoblin

45 karma · joined May 22, 2017

submissionscomments
thehobgoblin··on Automatic Syntax Error Recovery
You wouldn't be running anything that has been repaired, the fact that a repair is done means that a syntax error has occurred and compilation has failed. The repair is just a recovery strategy so that the compiler can work further in order to potentially uncover further errors.

This is what compilers do already, one such strategy is to unwind the state to before the error and skip over the erroneous part. This can be a bit problematic in certain situations, such as a syntax error in a variable definition and the following flood of 'undefined variable' errors.

The repair strategy in the article is trying to optimise the quality of the attempted repair in order to provide better error messages to the user.

thehobgoblin··on Fast Inverse Square Root
I looked at about 20 different "popular" languages and I believe that only 2 (Go and Swift) of them have shifts at a higher precedence than addition.

I think I'm missing a reference/joke =/

thehobgoblin··on Ask HN: How do you deal with chronic illness?
I've had MS for probably about 5 years now. Thankfully my case is relatively mild, but it can still be both disruptive and stressful at times (especially during my first few attacks, prior to formal diagnosis).

I spent a lot of time obsessing over it and the rest of my life was suffering as a result (it really exacerbated my trouble sleeping into a serious problem). In order to combat this I mostly tried to spend my time either being productive or doing whatever recreational activities my condition would allow.

Over time, as I started to eliminate worries (diagnosis, medication, learning what would cause flair-ups and just generally coming to a better understanding of it), it's become more or less routine/normal. Can't say the same will apply to other people, but that's how it has played out for me so far.

Best of luck and apologies that I can't give a more helpful answer.

thehobgoblin··on Intel is changing the future of power supplies with its ATX12VO spec
The nominal voltage of a battery isn't the maximum voltage, 3.7V lithium cells are typically charged to around 4.2V.

A 4S battery (or equivalent) will have a nominal voltage of 14.8V and a maximum voltage of 16.8V, which leaves 2.2V extra, probably to account for losses.

Why 19V ended up being the typical voltage rather than rounding it up to something like 20V or 24V is beyond me (probably a matter of compliance, try checking IEC 60950-1 or related standards).

thehobgoblin··on Intel is changing the future of power supplies with its ATX12VO spec
To me it seems like the ATX12VO specification is more of an endorsement of the direction PC power supplies seem to be moving in rather than a from-scratch redesign. It would be nice to have higher voltage (19V, 24V or perhaps higher) for a single voltage supply, but it would be a far bigger change to the overall PC ecosystem.
thehobgoblin··on High End CPUs – Intel vs. AMD
I remember how excited I was when I heard the announcement that Keller was to work on a new project at AMD a few years back.

And I can certainly relate to the latter point: As an electronic engineer that likes to dabble with IC design, I'd love to consume some of the wisdom that the man could impart.

thehobgoblin··on Linux utils that you might not know
WolframAlpha lists the factors as 2^38 * 5^38, which is just a compact notation for 38 2s and 38 5s, totalling 76 factors. If you count the 2s and 5s in the output of factor, you get the same result of 38 each for a total of 76 factors.