Better HN
topnewbestaskshowjobs
Log inSign up

thehobgoblin

45 karma · joined May 22, 2017 (9y ago) · 7 submissions

Submissions

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.