correnos | 1 year ago | on: Sol-Ark manufacturer reportedly disables all Deye inverters in the US
correnos's comments
correnos | 1 year ago | on: Org Mode Syntax Cheat Sheet (2017)
correnos | 1 year ago | on: Async hazard: MMAP is blocking IO
correnos | 2 years ago | on: The right to use adblockers
correnos | 2 years ago | on: Csexp: S-Expressions over the Network
correnos | 2 years ago | on: Csexp: S-Expressions over the Network
correnos | 2 years ago | on: Csexp: S-Expressions over the Network
correnos | 5 years ago | on: A man who can read letters but not numbers exposes roots of consciousness
It's like any of our instinctual responses. Sometimes it helps, sometimes it's in the way.
correnos | 5 years ago | on: Rust: Dropping heavy things in another thread can make your code 10000x faster
One of them was unburdened by any thought of freeing stuff, and relied entirely on the application exiting for cleanup. This was very convenient to work with, and never ended up posing an issue.
Another used a series of allocation arenas, where certain arenas would be cleared at certain points in the compiler pipeline. This made for both speedy alloc/freeing and avoided leaks, since you weren't at risk of "forgetting" a data structure. It was also a major headache to keep track of exactly what the longest lifetime of a long-lived datastructure might be, and to pick an arena that won't be cleared in the meantime. Unfortunately the programs compiled with this compiler were large enough that we certainly couldn't have gotten away with just leaking memory; we sometimes OOMed as-is!
The third used standard C++ memory management. This compiler was quite simple, and the vast majority of its data used stack-based lifetimes. For a more complex compiler this would've become a headache.
I think that all of these compilers chose the correct allocation strategy for what they were doing. "Good practices" aren't as universal as we might like to believe, they depend entirely on the context in which a tool is designed to operate. And yes, we can guard to some extent against that context changing, but for the most part that's why we keep getting paid.
correnos | 7 years ago | on: GPS Flaw: Security Expert Says He Won't Fly April 6
Though if we're feeling pessimistic, we can guess at how a failure might occur. Let's say that your GPS receiver is poorly written enough that it just starts returning wrong location data on week rollover. Let's also say that that receiver is the aircraft's main time provider. Since the inertial navigation system also needs an accurate time source, it could be hooked up to this same time source. Hopefully it wouldn't be, but we're assuming the aircraft in question here is all-around subtly defective. The INS doesnt't include handling for bogus time jumps, so its speed and location tracking is also corrupted. So, you and your unfortunate copilot could find yourselves without your two main navigation sources a few hours into a trans-pacific flight, and assumedly the GPS-coupled autopilot had pointed you well off course before you'd noticed. In this situation you'd have to get yourselves reoriented based off your compass and best guess of a location. Hopefully you have enough fuel reserves after you little diversion to find land search for an airfield.
So that would be a pretty bad situation. I wouldn't worry though, aircraft systems are generally better isolated than that.
correnos | 8 years ago | on: Airplanes that fly on electricity debut at Fresno’s Chandler Airport
correnos | 8 years ago | on: Qatar's F-15s Will Feature New 'Low Profile' Heads Up Display and New Cockpit
edit: That said, you could probably make a decent aviation touchscreen. The main issue with off-the-shelf screens is it's easy to brush the wrong thing. A screen that takes significant pressure to register a touch would probably be usable, and for all I know this system might do that.
correnos | 8 years ago | on: United Airlines piloting technology to manage the problem of oversold flights
Scammy? Ehhh. People get way more than their money back for switching flights, which I consider enough to make it un-scammy. Others might reasonably disagree.
correnos | 9 years ago | on: DHL pilot alleges poor labor practices that are spreading throughout industry
[1]: https://en.wikipedia.org/wiki/Aviation_accidents_and_inciden...
correnos | 9 years ago | on: If-statements in Smalltalk (2008)
Now hold on. The most successful sprog of nature is humanity[citation needed] and we're a case study in the fact that raw intelligence is more effective than fitness for any particular niche. So: as in nature, there may be a bunch of niche languages, but in time they'll find themselves with a conservation status while a smart language rules the earth.
correnos | 9 years ago | on: Monads are a class of hard drugs
correnos | 9 years ago | on: Testing GCC
But that's hard, so every compiler I've used leaves it to human engineering instead.
correnos | 9 years ago | on: Vancouver house prices are falling
correnos | 9 years ago | on: Toxic fluorinated compounds found in drinking water of 33 states
correnos | 9 years ago | on: Why I'll never abbreviate a variable as long as I live