HNHacker News
TopNewBestAskShowJobs

edmccard

1,301 karma · joined June 6, 2012

[ my public key: https://keybase.io/edmccard; my proof: https://keybase.io/edmccard/sigs/x0Fp4nKEq4vXOFcBoS3b_NwvtHXeLTD8lYyyBcqKIJ0 ]
submissionscomments
edmccard··on Earliest Known Draft of King James Bible Is Found, Scholar Says
In this case, the notebook was long known to be there, but the relevant section had been cataloged as a "verse-by-verse bible commentary". What was discovered was that the verses are part of a draft for a new bible, instead of just being verses copied from an existing bible.
edmccard··on Smaller, Faster, Cheaper, Over: The Future of Computer Chips
>I really have no idea where this crazy idea that 2005 was the pinnacle of consumer CPU power comes from...

As 'tormeh said, single-threaded performance has not improved as much since 2005. For example, the Passmark single-thread rating for the Athlon 64 FX-57[1] is 832 and for the i7-5930K[2] is "only" 2081.

[1] http://www.cpubenchmark.net/cpu.php?cpu=AMD+Athlon+64+FX-57

[2] https://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-5930K...

edmccard··on Keep Out – A WebGL Game
>3d view is though is not. it works on a 2d grid but it gets weird when you move in 90 degrees in a 3d game

From 1980-ish to the mid 1990s this was how "3D" dungeon crawlers worked; anyone who played Wizardry, or the Bard's Tale, or Might and Magic, or the SSI Gold Box RPGs, etc., will feel right at home.

edmccard··on Steve Yegge Grades His Own Predictions
>NBL?

Next Big Language

edmccard··on More Range in Chevy's Volt Means You Hardly Ever Need Gas
>I make it 2 weeks in a 20 year old car.

I used to go for two weeks between fill-ups in a '78 Buick but that was mostly becuase it had a 24-gallon tank (and I only drove about 20 miles a day).

edmccard··on A Synonym-Substitution Based Algorithm for Text Steganography (2012) [pdf]
>I've wondered about doing this before for copy protection

Something similar -- using functionally-equivalent machine language instructions instead of synonyms -- was (is?) used by the shareware A86 assembler[1] to detect unregistered use.

From the A86 manual:

    A86 takes advantage of situations in which more than one set
    of opcodes can be generated for the same instruction. [...]
    A86 adopts an unusual mix of choices in such situations.
    This creates a code-generation "footprint" that ... will
    enable me to tell ... if a non-trivial object file has
    been produced by A86.
[1] http://eji.com/a86/
edmccard··on A month with BadOnions
>Sixteen out of a hundred thousand?

FTA: there were about 1400 exit nodes each tested about 95 times (that's where the 100,000 number comes from). And in addition to the 16 logins, there were a number of page views without login that seem to also have come from exit nodes.

edmccard··on Zero Divided by Zero (2003)
In the J programming language, '%' is the division operator (not the modulus). So the identity is correct
edmccard··on GitFlow considered harmful
>I reflexively ^S every couple of words...

Why not just decrease the autosave interval in your editor :)

>What's the purpose committing more often than logical chunks of code which can be considered in some sense "done"?

There are different degrees of "doneness". For example, (1) code that isn't finished but you don't want to lose it if the power goes out, (2) code that you're not sure if you're going to keep, but you'd like to be able to refer back to it even if you later decide to change it, (3) code that completely accomplishes its purpose in a logical and coherent manner.

I use "Ctrl-S" for (1), "git commit" to a local branch for (2), and "git rebase/git push" for (3). Maybe I'm just a sloppy programmer, but my workflow often involves writing some code, making certain changes, then realizing that what I really need is the previous version but with different changes. So for me, frequent commits on a local branch have replaced frequent saves under different filenames (foo.c, foo_old.c, foo_tried_it_this_way.c)

edmccard··on A beauty contest winner making Japan look at itself
>where mixed race is the norm ... brazil ...the largest japanese population outside of japan is there. i think they might have a concept of hafu there

Yes, but I'd bet that the connotations of "hafu" in a society where mixed race is the norm are very different from those where it is unusual.

So much so that you might consider it to be a different word, even if it happens to be spelled the same.

edmccard··on Three months of Rust
Other comments have mentioned LLVM (and its optimization passes) as a reson for slow compile times; just for comparison, using LDC (the D compiler with LLVM backend) on an older computer (1.6 Ghz Athlon 2650e, 2G ram, spinning rust), for a release build at -O2, it takes about 35 seconds for 10,000 sloc
edmccard··on An X86 Design Flaw Allowing Universal Privilege Escalation
>if you can force the target to e.g. boot from a malicious USB device.

If you can control the boot media, aren't you already past the point where you need further exploits to control the machine?

edmccard··on Waiting for midnight, spike in hungry families on food stamps at Walmart (2011)
The article describes events in Idaho, which is one of only 7 states (Alaska, Idaho, Nevada, New Hampshire, North & South Dakota, and Vermont) that distributes food stamps on the 1st of the month.

In the other 43 states, different people will have different issuance dates depending on last name/SSN/case number.

On the one hand, using the same day for eyeryone gives stores the opportunity to make sure they are fully-stocked before the "surge"; on the other, and from personal experience, having the days spread out usually means you don't have to choose between lining up at midnight, or waiting a few days for the shelves to be restocked.

edmccard··on Git in six hundred words
>When I read your comment, I'm imagining Adventure...

"You run 'git push --force'. You are likely to be eaten by a grue."

edmccard··on Integer Overflow Bug in Boeing 787 Dreamliner
uint64_t thisVariableIncrementsByOneEvery10msSoItWontOverflowForAReallyLongTime

(then you'd know it was safe)

edmccard··on How does D improve on C++17?
>it's looking like the next release will have dmd written in D.

Is that going to make it trickier for GDC/LDC to stay in sync with DMD? (Either way, it's exciting news!)

edmccard··on How does D improve on C++17?
>WalterBright uses it in his compiler.

Ironically, the dmd compiler is written in C++.

edmccard··on How does D improve on C++17?
Facebook uses Warp[1] as a fast replacement for the c/c++ preprocessor.

[1]https://github.com/facebook/warp

edmccard··on SparkFun CryptoShield
>more sane than doing it on an AVR.

Well, the point of using special-purpose chips like the ATAES132, which has a hardware implementation of AES, is so you wouldn't have to implement the algorithm in AVR.

edmccard··on Microsoft .NET CoreCLR is now running on FreeBSD 10.1 (amd64)
>what different did these guys accomplish?

Instead of taking something like Mono that was pre-built to run on their system, they took the CoreClr source that did not have a working build for FreeBsd, and got it to the point that it did.

edmccard··on Call Me Maybe: MongoDB Stale Reads
That link works for me--what's supposed to be missing?
edmccard··on Pharmacy Startup PillPack Could Change the Way America Takes Its Medicine
I take care of my elderly parents, who each have over a dozen different pills to take each day, and this kind of repackaging is really helpful; although I would have thought it's the kind of thing that drugstores already do.

(At least two of the (non-chain, family owned) local drugstores where I live already do this. For example,

http://findleyspharmacy.com/rxmap.html )

edmccard··on Large Hadron Collider restarts after two-year rebuild
Yes, at one point Edward Teller ("father of the H-Bomb") thought that thermonuclear weapons might set off a self-sustaining fusion reaction in the atmospheric nitrogen.

I only know about this because as a kid I read a lot of pre-space-age sci-fi, and there was a story either by Heinlein or Asimov where the solution to this "danger" was to put nuclear fusion plants in orbit.

edmccard··on Show HN: A simple note-taking app built in React
As an extra data point, the typing speed is fine on my old 1.6 Ghz Athlon 2650e, 2G RAM (running FF 36.0.4 under Arch Linux)
edmccard··on GitHub under ongoing DDoS attack
>Did I say anything about software?

Well, you did say:

"Who'd like to sponsor? Or should I just spin up a GitHub repo for the code and a kickstarter for the prize money?"

edmccard··on After Jobs Dry Up, What Then?
>There are 300 billion people in the United States, for them to each get even $1000/year, that's $3 trillion

300 billion? No. There are only around 318 million people in the US.

edmccard··on Nes emulator written in go
>Is there another tutorial that can explain the fundamental of "emulator" first before the NES part kicks in?

>PS: I'm planning to use Java for this side-project.

One place to start might be to try and write an emulator for the DCPU-16. It's a simple made-up computer that Notch (creator of Minecraft) designed for the game 0x10c.

Although the game was never finished, many people wrote emulators based on the DCPU's specifications[1]; search Github for "DCPU Java" to see several examples in that language.

[1] https://raw.githubusercontent.com/gatesphere/demi-16/master/...

edmccard··on Would Rust have prevented Heartbleed? Another look
As to scripting in D: I don't write a lot of D code anymore, but thanks to snappy compile speeds and the 'rdmd' compiler driver (which automatically tracks dependencies), it really does have a sweet spot for writing little programs where you'd like the benefits of 'scripting languages' (no makefile hassle, short edit-run cycles) but need just a bit more runtime performance.
edmccard··on Resume in C
No, it will be supported using -std=c89 or -std=90, unless you also specify -pedantic.
edmccard··on VMWare Taken to Court Over GPL Violation
>those lawyers would write "As you know VMWARE was damaged to the tune of several billion dollars because they didn't use the GPL correctly, and we know that you aren't using GPL correctly either..."

If the GPL is litigated to the point of a published decision, doesn't that give the legal team of the targeted company the ability to say "actually, we know we ARE using it correctly, so buzz off"?

According to the lwn link 'JoshTriplett provided upthread, corporate general counsels often contact the Conservancy to request GPL enforcement: "Their interest, instead, is in a demonstration that the GPL has teeth so that they can be taken seriously when they tell management that the company must comply with the license terms of the code it ships. "

← PreviousPage 6 of 9Next →