News for hackers. Stuff that matters.

fzort

Re:The coal mine that ate Hambacher forest on Friday July 12, 2019 @08:57AM (#20420333)
> Do you have a clear concept of a viable solution?

Nuclear. Solar farms take 450 times more land than nuclear to produce the same amount of energy (source: https://www.forbes.com/sites/michaelshellenberger/2018/05/08...)

Re:Twitter was down on Thursday July 11, 2019 @03:32PM (#20414851)
This is hilarious, thanks for sharing. I used to work at companies like this, except they weren't worth billions of dollars.
Re:Steve Wozniak's floating point routines for the 6502 on Wednesday July 10, 2019 @10:47AM (#20402461)
You still need to know a bit of assembly to take advantage of SIMD (even when using compiler intrinsics). See for instance https://github.com/lemire/simdjson
> you input N and it will produce the Nth prime

Look for Willans' formula (there's a nice explanation in the book "Hacker's Delight").

Re:Moons of all the planets in our solar system on Monday July 01, 2019 @08:53AM (#20324750)
> If an entire Sci-fi continuity were limited to just Sol and Alpha Centauri, this by itself would constitute an inexhaustible number of potential settings.

"Saturn's Children" by Charles Stross is a good one (unfortunately he had to do away with humans to keep the space opera physically realistic).

Yeah, and with OpenGL ES/OpenAL support it was pretty easy to port C++ games to the iPhone, with just a thin Obj-C wrapper.
As someone living in a third world country, I can't help chuckling every time I see people discussing "poverty in America".
Re:Ask HN: Addicted to HN on Friday October 15, 2010 @06:31PM (#1796584)
iptables -A OUTPUT -p tcp -d news.ycombinator.com -j DROP
Re:Challenge HN: Inspired by greplin's third problem on Friday October 15, 2010 @06:04PM (#1796472)
http://www.fzort.org/mpr/junk/greplin-3.pl.txt

Perl, 7s. Looks like I arrived at the same recurrence that madars used, but I swear I didn't look at his solution...

Memoize magically turns it from exponential to polynomial.