Better HN
topnewbestaskshowjobs
Log inSign up

fzort

14 karma · joined Oct 15, 2010 (16y ago) · 13 submissions

Submissions

comment 7y ago · link · parent

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

comment 7y ago · link · parent

This is hilarious, thanks for sharing. I used to work at companies like this, except they weren't worth billions of dollars.

comment 7y ago · link · parent

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

comment 7y ago · link · parent

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

comment 7y ago · link · parent

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

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

As someone living in a third world country, I can't help chuckling every time I see people discussing "poverty in America".

comment 16y ago · link · parent

iptables -A OUTPUT -p tcp -d news.ycombinator.com -j DROP

comment 16y ago · link · parent

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.