HNHacker News
TopNewBestAskShowJobs

planteen

2,242 karma · joined May 9, 2015

submissionscomments
planteen··on Ask HN: What are the best resources for learning modern 3D graphics?
Keep in mind that GPUs are asynchronous. So with WebGL, you send a series of draw calls to the GPU and don't have a way of pulling a result out early. Some extensions for OpenGL ES let you preempt for another rendering task, but not sure if that would help you.

Your clockwise idea doesn't make a ton of sense to me. You typically have a depth buffer enabled in 3D and draw your scene in a front to back fashion. This lets you save on evaluations of the fragment shader for meshes that are occluded.

I guess you could sort draws in your clockwise spiral and synchronize after each one, but that is going to be a massive performance drag since the GPU can't pipeline draws anymore.

planteen··on Man Underpaid Property Tax by $8.41 County Seized Home, Sold It-Kept Profits
Yeah exactly. I remember when I was a kid with my dad going to the court house to pay property taxes. I was asking about property taxes and he said something along the lines of "You don't own land, you rent it from the government." It was a good explanation for a child. The internet is full of crackpot legal theories (sovereign citizen, etc) that contest this idea. None hold up in court.
planteen··on Man Underpaid Property Tax by $8.41 County Seized Home, Sold It-Kept Profits
It was good luck nobody was killed - he was not trying to spare lives. I see him as a mentally ill man who was upset when he didn't get his way. The zoning on an adjacent lot to his business changed in a way he opposed. He then said God told him in a hot tub to exact revenge on those on the wrong side of this ruling.

It's akin to something like the Oklahoma City bombing if the terrorists had blown themselves up in the process. But people think it was "cool" that he built his own tank and ignore the rest.

planteen··on Man Underpaid Property Tax by $8.41 County Seized Home, Sold It-Kept Profits
It typically is. The mortgage company sends a check to the county when annual property taxes are due. Does your mortgage escrow work different than that?
planteen··on Man Underpaid Property Tax by $8.41 County Seized Home, Sold It-Kept Profits
That isn't how it works in tax lien states. The amount of money owed is irrelevant in the eyes of the county, only that you did not pay money owed in the time allotted. And as I said, they are quite clear (at least in my state) about the amount owed.

A property with a tax lien does not go to auction. The property tax lien holder is more senior to all other liens, except a federal tax lien. This includes being senior to mortgages, which is why mortgage companies typically keep your property taxes in escrow (to ensure they are paid).

Once a tax deed is issued, no compensation is paid to the previous owner. The title is not marketable for a period of 7 years. That is, a title company will not issue a warranted deed on a tax deed transfer. To resolve this, the deed holder needs to wait or bring a quiet title suit. The previous owner may get compensated in a quiet title action to sign a quit claim deed or similar to rectify the quiet title suit.

planteen··on Man Underpaid Property Tax by $8.41 County Seized Home, Sold It-Kept Profits
What part do you think is unconstitutional? I think it would be very difficult to frame an argument that property tax is unconstitutional. All 50 states collect property taxes.

The owner in the article had unpaid property taxes for over 3 years and apparently underpaid the amount due right before a deed sale because he miscalculated interest. It's hard to know exactly what happened from reading the article alone. A court judgement would state the facts of the case more clearly. If the miscalculation was the fault of the county, it seems like they were in error and the deed should be invalidated. If the county gave him a quote and he intentionally underpaid (for whatever reason he justified it with), I wouldn't expect him to have recourse under the law.

States are broadly divided into tax deed and tax lien states. Michigan is a tax deed state and I am not familiar with the particulars of their law. I live in a tax lien state (Colorado). When you don't pay your property taxes, a lien is sold at auction. If you don't pay after 3 years, the lien holder can apply for a tax deed. This process takes 6 months. The owner is attempted to be served and notices are published in the local newspaper. You need to contact the county for the payoff amount, but the interest in general on the lien accrues monthly computed on simple interest (non compounding). The rate this year is 12%, so 1% per month.

There needs to be a consequence for not paying your property taxes or few would pay them.

planteen··on Man Underpaid Property Tax by $8.41 County Seized Home, Sold It-Kept Profits
I think you are referring to Marvin Heemeyer in Granby, Colorado and he was absolutely wrong. I can't believe you think he was somehow justified in an attempted mass murder.

A concrete plant was being constructed on vacant land adjacent to his shop. He originally agreed to sell his land, but then backed out. He was angry the concrete plant cut off his shortcut access through their vacant land (he had no easement). So he decided to try to murder anyone who he viewed as standing in his way. It is very lucky that he got stuck before he could fully execute his plan.

"Investigators later found Heemeyer's handwritten list of targets. According to the police, it included the buildings he destroyed, the local Catholic church (which he did not damage), and the names of various people who had sided against him in past disputes."

https://en.wikipedia.org/wiki/Marvin_Heemeyer

"He drove the machine out of his shop through the wall, then plowed through the concrete plant, the Town Hall, a newspaper office, a former judge’s widow’s home, a hardware store, and other homes. Authorities realized that every business or home that had been bulldozed had some connection to Heemeyer and his plight against the zoning committee."

https://allthatsinteresting.com/marvin-heemeyer-killdozer

planteen··on Robinhood Traders Discovered a Glitch That Gave Them ‘Infinite Leverage’
Outside of tracking error and expense fees, there is a more fundamental issue. When the market goes down X%, you need it to go back up Y = 1/(1-x)-1 to break even. So the market goes down 10.0% one day and then up 11.1% the next, an investor in the normal 1x is back to where they started. A 2x investor is still down and a 3x investor is down even more. So the average daily noise of the market kills you.
planteen··on Hellvetica.ttf – Kern in Hell
A rasterized (imaged) font is not copyright-able. However the vector control points are considered a creative work and therefore subject to copyright. This was established in Adobe v. Southern Software:

https://en.wikipedia.org/wiki/Adobe_Systems,_Inc._v._Souther....

So even stripping out the hinting and OTF shaping "computer code" would still presumably leave you in violation of a font copyright.

planteen··on SQLite is easy to compile
Is that much of a problem though? For SBCs like the Raspberry Pi you can do builds on the SBC itself. While this is neat, it is far from optimal because builds are very slow. It's much more typical for embedded systems to do you build on a host PC with a cross-compiler.
planteen··on SQLite is easy to compile
It's not common, but there are other projects like this for easy integration, especially on embedded systems. You see some C++ libraries that are a single header file include. And here is a collection of single file headers for graphics tasks, like loading images, resizing images, rendering font glyphs, etc:

https://github.com/nothings/stb

planteen··on My own private Iceland
Yep. Your eyes lose there ability to resolve color in low light. Which is why you see the northern lights looking more like grey smoke rather than the colorful display your camera captures.
planteen··on AWS Customers Rack Up Hefty Bills for Moving Data
Are you doing this to replace a CDN? There are already 3rd party CDNs like CloudFlare.

If you are doing it as a replacement for traffic within an AWS region and availability zone, it seems like you will be both more expensive and have much higher latency.

Or is the application something else entirely?

planteen··on The Brains of the Voyager Spacecraft: Command, Data, and Attitude Control (2017)
B612 has been trying to do this for a long time, but is not yet successful. Their mission is to defend Earth against asteroid threads, starting with a telescope to detect them.

https://en.wikipedia.org/wiki/B612_Foundation

planteen··on Mispredicted branches can multiply your running times
I can't tell if you are trying to troll here. So you reject the notion of branchless coding as a premature optimization because you think it is going to be made irrelevant by a potential future microcode update? Or are you saying that a C++ interpreter/JIT would have made this branchless at run-time, but that optimization isn't made at compile time?
planteen··on Mispredicted branches can multiply your running times
The article is C++, so not sure why you are bringing up AOT/JIT since it doesn't apply here. And clearly there is a large gain possible by doing a calculation rather than a conditional with a high entropy result, otherwise, the article's mentioned speedup wouldn't have happened. A PGO feedback loop isn't going to do anything on a high entropy conditional. I saw a great talk at CppCon 2019 by Andrei Alexandrescu about speeding up std::sort. He does this same trick among others to speed up the C++ std library sort routine.

https://www.youtube.com/watch?v=FJJTYQYB1JQ

planteen··on Mispredicted branches can multiply your running times
Oh this takes me back to a horrible time in my life when I was tracking down a terrible intermittent crash on a LEON (SPARC) processor. I was down at the assembly level, stepping over instructions. It was a bit mind bending to always have an instruction execute AFTER the branch (you wouldn't know if the branch was taken or not until AFTER the delay slot instruction). Often the delay instruction was a NOP, showing the difficulty in filling the delay slots as you mentioned. If you were really lucky, your branch would also result in a register window overflow. By the time handling that was done, you lost your mental context of what was going on. shudder
planteen··on Flash Memory Wear Killing Older Teslas Due to Excessive Data Logging: Report
I'm not sure exactly what eMMC part they are using, but the SDHC spec doesn't explicitly require wear leveling. A part could implement it, but it's not a given.
planteen··on Costco gained a cult following by breaking every rule of retail
I don't understand all the love for Costco here. I recently rejoined and now remember why I canceled in the first place. I recently had a baby, so I joined for the diapers. Well, on my first trip, I learned they don't carry P or N sizes. Now that my baby is big enough for size 1, of course they are out of Huggies in size 1. But they have the Kirkland brand, which is a crapshoot in general.

I used to love some canned mushrooms they had, then they just stopped carrying them. I loved calzones they stopped carrying 5 years ago. Sometimes you can get Tide or kombucha there, sometimes not. Kirkland products can be great, then they suddenly change them. And nothing makes my blood boil like a line to leave the store for the receipt check while you have to fight off the Lennox, phone, and solar sales people.

At least my neighborhood King Soopers is consistent with stocking products and keeping their store brands the same.

planteen··on The IBM Pentium 4 64-Bit CPU
Today I learned... That's awesome, I'd love to try one out in the cloud sometime and get benchmarks.
planteen··on Combining GNAT with LLVM
My experience with Ada is you have legacy code bases and yes, forking these will continue for the next 30 years for similar products. But would anyone in 2019 really choose Ada for a design start in a DoD/aerospace realtime embedded system or cybersecurity application? I doubt it. It's hard enough to find developers in "common" languages.

I think its very telling that real-world JOVIAL code bases are being converted to C, not Ada. Ada was supposed to replace JOVIAL. http://www.semdesigns.com/Products/MigrationTools/JOVIAL2C.h...

There are also tools to convert Ada to C/C++/Java: https://www.mapusoft.com/ada-to-c-changer/

I'd start any new embedded system in C or C++ with an appropriate coding standard, static analysis checks, and perhaps run-time ones. No way I would consider Ada. Maybe someday Rust will penetrate more, but it has a ways to go.

planteen··on The IBM Pentium 4 64-Bit CPU
I agree hardware quad is more useful. The big int problem I was talking about would benefit from hardware quad but not hardware 128-bit ALU. The big int problem I have a bit of knowledge of is squaring for the Lucas-Lehmer algorithm to find huge primes (Mersenne primes). The best algorithm in this space is the IBDWT (irrational base discrete weighted transform). You perform an autoconvolution (compute the FFT, square each term in the frequency domain, and then take the IFFT). You want the FFT lengths to be as short as possible, since FFT is an O(N log N) algorithm. Quads would let you use shorter FFTs since you have more bits available for each element.

Even though it is a big int problem, floating point is used. Their are integer FFT algoritms that are usable (NTTs), but they are much slower than floating point FFTs on modern CPUs.

planteen··on The IBM Pentium 4 64-Bit CPU
It's not just a detail if you are looking for hardware acceleration on floating point operations on quads (float128 type). AFAIK, nobody has a hardware quad FPU, but there are certainly applications for one. I know that things like big integer arithmetic could greatly be accelerated by a 128-bit computer.
planteen··on The IBM Pentium 4 64-Bit CPU
I've had Intel engineering samples from work (we got them under NDA and such). They were tossing some Sandy Bridge engineering samples at some point and let us take them home. The hardware was buggy and didn't get microcode updates IIRC. The case and mobo was leaf blower loud and very unwieldy. I could run Linux for a few hours before it would segfault. I ended up trashing it. So I don't think an Intel engineering sample is better, I think it is worse.
planteen··on Combining GNAT with LLVM
I think that is exactly what OP meant, as in, no new projects or further Ada marketshare. I think the same can be said for Lisp and Smalltalk.
planteen··on Japanese pagers to issue last beeps on Tuesday, ending 50-year run
Sure, you could get the equipment for next to nothing. But without a spectrum license it's useless.
planteen··on Time to Get Serious about Tick-Borne Diseases
95% of cases come from 14 states, none of which are western. Mountain and Pacific (WA, OR, CA, ID, NV, AZ, MT, UT, NM, CO, WY) states together are around 0.6% of lyme cases nationwide. Many people in these states contract the disease out east, come home, and then visit a doctor in a western state. New Mexico had 3 confirmed cases in 2017, out of nearly 30,000 in the entire US. So no, Lynne disease does not even close to equality abound in New Mexico or the West.

https://www.cdc.gov/lyme/datasurveillance/tables-recent.html

planteen··on Rising rural BMI is the main driver of the global obesity epidemic in adults
I mean a bowl of Cheerios, whole wheat toast, orange juice, and a banana is what I had every morning before school. I would consider it a pretty healthy breakfast, even by today's standards. I guarantee you most people eat much worse than that.
planteen··on Why Const Doesn't Make C Code Faster
I find that I can sometimes get significant speedups by changing data access patterns when considering cache. I have found this to be the first and most valuable thing to tune, before attempting SIMD.
planteen··on Wavelets (1994) [pdf]
A wavelet naturally gives a spectrogram. The Fourier transform taken on a signal will give you only frequency content, but no idea in time where this frequency occurred. A wavelet naturally gives both time and frequency information. Of course, if you take the Fourier transform at discrete time intervals in blocks, you can also construct a spectrogram.
← PreviousPage 2 of 29Next →