HNHacker News
TopNewBestAskShowJobs

desertrider12

207 karma · joined August 5, 2017

submissionscomments
desertrider12··on Show HN: Make your site’s pages instant in one minute
I thought chrome already did this. Somebody else here pointed out that's impossible in general because even regular GET requests can have side effects. I wonder what it's doing with 1.6 GB of memory then...
desertrider12··on 9cc: A Small C Compiler
It looks like by default, the GNU libc won't return pages to the OS until 128 KiB are free at the top of the heap segment. The compiler has to make many small allocations, so even if it freed memory at every opportunity I doubt the heap trimming would happen very often.

Source: https://code.woboq.org/userspace/glibc/malloc/malloc.c.html#...

desertrider12··on 42 percent of new cancer patients lose their life savings
You're right, using the PPP to GDP ratio says the pound has 1.11x the purchasing power of an equivalent amount of dollars. (equivalent meaning by foreign exchange rates)
desertrider12··on 42 percent of new cancer patients lose their life savings
If your gross income is $80,000, overall federal income tax is 17%. There's also the 12.4% social security tax and the 2.4% Medicare tax, so the overall rate is 32%. State income tax varies (in CA it's 6% on the $80000, in TX it's 0%).

The equivalent UK income is 61200 GBP. Income tax is is 21%, and National Insurance is 8% for 29%. This doesn't include the 20% VAT on most goods and services, but that also doesn't apply to all your income (doesn't apply to savings, housing, utilities).

Sources: https://www.irs.com/articles/2018-federal-tax-rates-personal... https://www.fidelity.com/viewpoints/personal-finance/new-med... https://www.gov.uk/vat-rates https://www.gov.uk/national-insurance/how-much-you-pay https://www.gov.uk/income-tax-rates

desertrider12··on 42 percent of new cancer patients lose their life savings
I agree with low safety net, but an average income is taxed about as heavily as the UK or Germany.
desertrider12··on Interface Hall of Shame – QuickTime 4.0 Player (1999)
The iOS music app has gone downhill just as much as desktop iTunes. Open it and the screen is filled with options I have never and will never use, except "Playlists". Then you open that and it only fits 4 playlists on the screen at a time, so you have to scroll very far to find the one you want.

Ugh, just give me back the iOS 5 music app.

desertrider12··on Business networking for nerds (2017)
Me too. I know I'm a nerd now...
desertrider12··on Let’s write a Kernel with keyboard and screen support (2014)
If anyone wants to try this, on x86 getting a regular interrupt for preemptive multitasking is pretty easy, you can write an interrupt handler for the [real-time clock](https://wiki.osdev.org/RTC). This will work on any PC and takes about 15 lines of code to set up. Every 1ms, whatever's running will be paused and your scheduling code can run. Actually writing the scheduler is the hard part ;)
desertrider12··on Medieval Fantasy City Generator
Nice! This reminds me a lot of "City" by David Macaulay (https://www.amazon.com/City-Story-Roman-Planning-Constructio...). Absolutely loved that book.
desertrider12··on Intel Begins EOL Plan for Xeon Phi 7200-Series ‘Knights Landing’ Host Processors
Yep, I missed that one.
desertrider12··on Intel Begins EOL Plan for Xeon Phi 7200-Series ‘Knights Landing’ Host Processors
NERSC's Cori machine is the biggest machine of Knight's Landing (10,000 nodes), 10th on TOP500. Don't know of any planned Knight's Mill machines.

Generally, Xeon Phis get fewer FLOPs than GPUs but are better at certain tasks, e.g. graph algorithms with lots of divergent control flow. Also it's possible to run pure MPI programs on them and get decent performance, and there's a lot of pure-MPI HPC software out there.

desertrider12··on John Carmack: My Steve Jobs Stories
Was it Jennifer Lawrence meeting Jack Nicholson?
desertrider12··on 'My £1,000 Macbook Air was stolen at airport security and no one cares'
That's like when Buster Keaton asked a lady to describe a dollar bill.
desertrider12··on A sketch of string unescaping on GPGPU
Doing the "wrong things" in parallel for a net benefit is already a very common theme in all parallel computing, especially in GPUs. All interesting parallel algorithms (more than just a parallel-for over tasks) do more total work than their serial versions, but have shorter critical sections.

I found Feynman's lecture and it's a good analogy for the differences between GPUs and CPUs. The GPU has thousands of dumb clerks who are fast at using their scratch paper and doing a few different arithmetic operations, but there's only one boss giving the whole group their instructions.

https://youtu.be/EKWGGDXe5MA?t=6m

desertrider12··on Project from Hell (2008)
C++ is only "fast" because people who care about performance use it and a lot of people who are good at compilers work on gcc/intel/llvm. If the LLVM team decided to spend 5 years making python "fast", I bet they could make it benchmark just as well as C++.
desertrider12··on Generating $32,000 in 30 days selling a crypto-filled USB stick
They are, and nothing. Nothing is preventing them from keeping every single private key and then emptying all the wallets after a month.
desertrider12··on Elon Musk Deletes Own, SpaceX and Tesla Facebook Pages After #deletefacebook
Boycotts aren't going to be effective against companies that make basic commodities, because those companies don't interact directly with their consumers. Facebook deals directly with its users and advertising clients. I think consumer-facing companies are a lot more careful to maintain good PR and avoid boycotts in the first place.
desertrider12··on What I learned from watching my iPad's slow death
The complaint in the article is that it shouldn't be obsolete. An iPad is touchscreen, SoC, wifi/bluetooth, battery. Quantitative improvements in hardware don't mean that the capabilities of old devices should be taken away.
desertrider12··on What I learned from watching my iPad's slow death
Software is moving backwards (alarmingly quickly). In 2009 my 2nd generation ipod touch was able to browse the internet, run complex 3D games and stream videos with no issues. It still works and still does all those things because I never "upgraded" it. Taking away features for a given piece of hardware is a regression. Give new software features to the people who have hardware to run them.
desertrider12··on SpaceX’s Falcon Heavy successfully launches
Yes, in a carefully controlled way
desertrider12··on The Follower Factory
I was wondering about that. It magically sets up an event handler and callback with the next statement? Yes please.
desertrider12··on Zstandard – Real-time data compression algorithm
Aha, he actually addressed zstd in a post. tldr is zstd usually lower ratio and lower speed than mermaid but sometimes better ratio for text.
desertrider12··on Zstandard – Real-time data compression algorithm
I wonder how the RAD Game Tools compressors would fit into that benchmark list. In their benchmarks Oodle Selkie has roughly the same ratio as Zlib but is 3-4x faster at decompression than Zstd (not the same benchmark though). http://www.radgametools.com/oodle.htm
desertrider12··on The State of Atom's Performance
If you don’t care about native look and feel, you just need std lib, POSIX/win32 library (threads/sockets), SDL and IMGUI. Do a handmade hero-style platform layer for the system stuff and you’re portablr.
desertrider12··on The State of Atom's Performance
At this point, they would have saved themselves time by implementing it in C from the beginning.
desertrider12··on This 15-foot tall mech weighs 8,000 lbs and can run 20 mph
I don't get it, the end was not live action. Is it really an ad for a video game that features this thing?
desertrider12··on The Most Expensive Mile of Subway Track
If the tunnels have a 20 ft diameter, that's $2100 per cubic foot of material removed. Give me a jackhammer and shovel and I'll happily do it for 50% off.
desertrider12··on Layman's Guide to Elliptic-Curve Digital Signatures (2014)
Any time the line is tangent to the curve, you treat that one point as a double intersection. You can show this by setting the line equation equal to the elliptic curve and solving for the x coordinates of the 3 intersections. The double intersection's x coordinate is a double root, just like x=0 in x^2 = 0.

A vertical line is perfectly valid (could be tangent or not), and in this case the "sum" is the "infinity point", which isn't any specific location in the grid but is a useful idea to make the math work. The infinity point is the additive identity: P + inf = P. For the amount of detail in this article, it should have mentioned this.

desertrider12··on A decentralised Universal Basic Income platform based on personal currencies
To be fair, a lot of the UBI supporters commenting above are making similar assumptions. They think of the freedom that UBI would create for them as generally well educated, smart, creative people. In reality I'm willing to bet we would end up with Idiocracy after a generation or two, not a creative utopia.
desertrider12··on Concerns about Bitcoin's energy use are overblown
The computation has nothing to do with minting. The computation allows every Bitcoin user to “vote” on the correct sequence of transactions in the last block, and the reward for solving a block is just to make sure that people keep hashing. You can’t have a blockchain without a large number of people doing some kind of easily verifiable computation.
← PreviousPage 4 of 5Next →