HNHacker News
TopNewBestAskShowJobs

hamiltonkibbe

382 karma · joined July 17, 2013

https://hamiltonkibbe.com
submissionscomments
hamiltonkibbe··on C Portability Lessons from Weird Machines
I think in a lot of cases it’s the only tool for the job. I have a hunch that a significant majority of the machine instructions executed in a given second globally came from C source code, and a large portion of that is running on something “weird”. It’s somewhat funny, “commonly portable” C is portable across the most uncommon C execution environments.
hamiltonkibbe··on C Portability Lessons from Weird Machines
16- or 32-bit chars are pretty common on DSPs from any vendor. I’ve found that it’s usually only an issue with some cross-platform serialization libraries that make invalid assumptions about how an array of octets looks in memory.
hamiltonkibbe··on Oceans 'soaking up more heat than estimated'
How does Aragon's effectiveness for this compare to e.g a Google Docs spreadsheet?
hamiltonkibbe··on Signed Integers Are Two’s Complement
If you know a bit about the range you need to support you could use a fixed point representation
hamiltonkibbe··on I built a progressive web app and published it in three app stores
So now there's some awesome PWA api giving you all those native features, and a permissions model, and so you install SUPERPHONE app, and that needs access to your contacts and to make and receive calls, and you say "ok, yeah this is a better phone app so those are reasonable".

Now everything running JS in the context of $SUPERPHONE_DOMAIN or whatever has these new permissions. superphone pwa's calls to window.PwaGetContacts() and window.PwaMakeCall() work and everyone's happy, and your phone really is super now. the app shows a banner ad from google and you're cool with that because it was free, and hey, developers need to eat too.

Someone who makes ads figures out that ads can run JS. So your app pulls down an ad from some ad network and that ad has some cool JS that detects that those functions are available and starts calling all your friends from your phone and telling them that "`window.PwaGetOwnerName()` is really excited about LinkedIn and wants you to be their contact" after uploading your contact list to every 3rd party data broker that would pay for it.

well, that sucks, maybe there's a better way to limit the code that can run on your phone with specific permissions

hamiltonkibbe··on I built a progressive web app and published it in three app stores
Imagine you install $ANYTHING as a PWA. It's now on your homescreen, you launch it. You do $THING. now you switch to twitter. Now the PWA -- in the background -- loads some ad with an autoplaying video and now theres ad audio coming from ... well, you're not sure where, but it doesn't seem like it's coming from twitter. now you have to go find it and stop it. Meanwhile bitcoinminer.js is burning through your battery in the background because those video ads just weren't quite enough revenue.

I'm not sure which one sounds worse.

hamiltonkibbe··on Bitcoin and almost every other cryptocurrency crashed hard today
price is e.g. 1k USD/BTC

Alice has 1 BTC she wants to sell for $1k

Bob has $995 and places an order to buy 1 BTC at $995

Alice could wait around for someone to make a better offer, or maybe she needs $ for christmas presents NOW and lets it go for $995, at which point the price becomes $995

The listed price is the valuation at which the last transaction occured.

hamiltonkibbe··on Comcast is injecting 400+ lines of JavaScript into web pages
I wonder if your customers would be happy enough without the speed upgrade if they weren’t wasting bandwidth downloading code they never wanted to run in the first place
hamiltonkibbe··on Understanding Ethereum Smart Contracts
I think its generally assumed that the unqualified term "floating point" is generally referring to binary floating point, which is not the same as decimal floating point. You don't want to use binary floating point for representing money. Furthermore fixed-point refers to a decimal value with a fixed number of bits for the integral and fractional parts, which is not the same as previously suggested system with an implicit decimal point (e.g. multiplying by 10^N for N places of decimal precision). real fixed-point math can be a better and more accurate system if you're working within a well defined range. Regardless of the system you're using, there are only 2^N unique values that can be represented in N bits, binary floating point distributes them unevenly across a huge range. If you are representing a smaller range with a fixed-point system, it will necessarily give you better precision.
hamiltonkibbe··on Comcast Hints at Plan for Paid Fast Lanes
I think you should limit political campaign website access to subscribers that purchase the ultra-premium $500/mo. package
hamiltonkibbe··on The Mathematical Genius of Auto-Tune
You'd be surprised how quickly those 500 multiply-accumulates per autocorrelation point add up... a 128-tap filter * 500MAC/point * 2 channels(stereo) * 192ksps is already at 24+billion FLOPS for a single track...
hamiltonkibbe··on The Mathematical Genius of Auto-Tune
That's fine, but being able to run multiple audio tracks worth of VST plugins in real time on a modest laptop is very likely more valuable to their target market
hamiltonkibbe··on The Mathematical Genius of Auto-Tune
Polyphase filters maybe? It's an approach used primarily in resampling, and its an easy way to skip a LOT of Multiply-by-zero-and-Accumulate-ing
hamiltonkibbe··on Equifax takes down web page after reports of new hack
Don't worry, we only blindly pull in and execute "good" third-party code in your browser.
hamiltonkibbe··on Sandsifter: find undocumented instructions and bugs on x86 CPU
You'd be hard pressed to find a processor without a WDT
hamiltonkibbe··on Underground Hansa Market taken over and shut down
Added sugar
hamiltonkibbe··on I don't understand Python's Asyncio
Probably because you don't have to worry about context switches in the middle of operations, since they happen at 'await' or 'yield's in coroutines, rather than whenever the OS task timer interrupts
hamiltonkibbe··on The “432 Hz vs. 440 Hz” conspiracy theory
According to NIST It's slightly more arbitrary than that:

The second is the duration of 9 192 631 770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the cesium 133 atom.

Not sure of the numerological significance of 9192631770.

hamiltonkibbe··on Music theory for nerds
I think a lot of the time (in a jazz context) the chords are approached as almost individual elements or as part of a small "local" progression instead of in the context of the global key of the song, since the key could be changing as often as every couple bars. In the case of a common minor progression: B-E7alt-Am7 the major third of the dominant chord is the same note as the major 7 in the harmonic minor scale of the target minor chord, which would be one option for playing straight through that progression, but you'll often find that players will use either A harmonic minor, diminished, E altered, G# whole tone, etc. over the V7 and resolve to dorian or aeolian or something with a b7. It doesn't make much sense to analyze that progression in a classical context since those chords aren't entirely contained within any single key, and you end up something that looks like a key change, or has B as a secondary dominant implying a key change to the E7, where a jazz player would immediately recognize it as a minor 2-5-1
hamiltonkibbe··on Music theory for nerds
In jazz A minor generally implies A Dorian
hamiltonkibbe··on Want to end mass incarceration? Stop blindly reelecting your local prosecutor
I'm fairly certain that the average IQ has remained constant at 100
hamiltonkibbe··on The Myth of RAM (2014)
> The speed of light is actually really damn slow.

I don't think one really appreciates that until they found out that after X hours of place&route they missed timing by some fraction of a nanosecond

hamiltonkibbe··on The Myth of RAM (2014)
Well yeah, I figured that that's implied, the only times that really matter are the rising and falling edges of the clock.
hamiltonkibbe··on The Myth of RAM (2014)
And the signals all need to get there at the same time
hamiltonkibbe··on Memory management in C programs (2014)
I'd wager a significant amount of production C is running on systems without ANY OS
hamiltonkibbe··on Planned GPS outages in southern California
A Rubidium reference gets you down to the 1us/day range, cesium gets you down to a tenth of that. It all depends how much you're willing to pay.
hamiltonkibbe··on Planned GPS outages in southern California
And what do you use to tell it where exactly it is during pre-flight calibration?

They "require" GPS input in the sense that if I handed you an INS that was initialized/calibrated with some precision (Oministar/RTK/P-code GPS/ whatever) reference but had been running in the trunk of my car (or dangling from the collar of a feral cat) for N hours/days, there's no way you'd fly a plane with it without initializing it with some sort of position referene.

(If you came up with "sit it on some previously surveyed datum, and you don't need GPS" on your own, you get an A)

hamiltonkibbe··on Trees in the forest are social beings
From TFA: "Scientific language removes all the emotion, and people don’t understand it anymore."

Right. We need more emotion and less "scientific" (read: precise) language when describing the results of scientific experiments.

In the researcher's defense, they don't provide evidence supporting any of their claims, which means that none of my complaints apply here.

Fortunately for them, the critiques above --while relevant when discussing the results of actual scientific inquiry-- are entirely out of scope when it comes to baseless conjecture.

hamiltonkibbe··on Planned GPS outages in southern California
As part of a larger system yes, but on their own they're only accurate for a while, as they constantly accumulate error. They require input from other sensors (generally GPS) to provide accurate location.
hamiltonkibbe··on Planned GPS outages in southern California
The nice thing about PRN codes is that you can just use a different set of gold codes in the same band, as long as they have low enough cross-correlation
← PreviousPage 2 of 8Next →