345 karma · joined Jul 23, 2013 (13y ago) · 127 submissions
comment 2y ago · link · parent
We wanted a cross-platform C++ layer and native Cocoa front end. Objective C++ wasn’t a thing then, and having built a plain C shim previously I didn’t want to repeat the experience.
We built our own bridge by registering our C++ classes with the Obj-C runtime, generating selectors for all the methods so you could send messages to (carefully constructed) C++ objects using Obj-C syntax, or even subclass from C++ to Obj-C.
It was a pretty neat trick, but would’ve been difficult to port to the Obj-C 2 runtime.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
When you’re in the heart of it it’s so easy to take pride in the technical challenges you’ve overcome, but completely miss the realities of the marketplace.
comment 3y ago · link · parent
There wasn’t a default folder structure in the early days. Your hard drive had a “System” folder with merely a few hundred files in it (in a hierarchy) that you can ignore day-to-day. Otherwise the whole drive was your playground.
comment 3y ago · link · parent
comment 4y ago · link · parent
There were intractable issues with window spanning across displays with different scale factors. Ultimately this was resolved by not allowing window spanning on the platform anymore.
comment 4y ago · link · parent
comment 5y ago · link · parent
https://en.m.wikipedia.org/wiki/Knowledge_Navigator https://youtu.be/umJsITGzXd0
comment 5y ago · link · parent
That said, my insurance covered the cost without a problem and I had my car back in 4 days. I don't know if they took possession of the original battery or negotiated a different rate, but it sounds like Tesla makes bank on this kind of repair. $15k for a new battery pack, a quick turnaround from their service center, and someone gets the old pack which in all likelihood was perfectly fine.
There aren't a lot of shops that know how to repair a battery pack (in most of the country anyway). With less than 2% of cars on the road being EVs that's not surprising, but as more are sold you'll see more come about. The insurance companies will be very motivated to reduce these kinds of claims, and with real competition Tesla will no longer be able to justify the practice.
comment 5y ago · link · parent
comment 5y ago · link · parent
https://electrek.co/wp-content/uploads/sites/3/2016/04/hybri...
The primary advantage is faster refueling. The price is no in-home refueling -- a big win for BEVs, as most trips will not require refueling on the road. There are also real safety concerns about storing and transporting H2 at very high pressure.
comment 5y ago · link · parent
This sounds backwards to me. My understanding of the main benefit of curved sensors is to eliminate complex lens series needed to correct aberrations caused by a flat sensor surface.
comment 5y ago · link · parent
The encoding algorithms are not written in stone, so to speak. If you can optimize motion estimation encoding using Lucas-Kanade, you can just write that into, say, the x264 encoder and so long as the output is complaint you can expect all existing decoders to play back just fine.
Decoding of course may not be so flexible for compatibility reasons, and of course software is much more malleable than hardware.
Are there video codecs which are (accidentally) Turing-complete?comment 5y ago · link · parent
Throttling is essentially determined by three factors: Energy usage, thermal saturation, and cooling. A bath tub analogy comes to mind: Energy usage represented by flow from a faucet, the heat sink is the water level in the tub, and the drain represents the cooling rate. Only energy usage could be plotted instantaneously while the others may have to be modeled and could change based on environmental factors.
comment 5y ago · link · parent
comment 5y ago · link · parent
I'm not sure where the "suddenly" comes from. It's not as if there was a time before the fee where developers could ship apps for iOS. There's been a developer program as long as there has been an App Store. For that matter, there was a much more expensive developer programs for the Mac before iOS was even a thing. I remember paying somewhere between $1500 and $3000 when we were writing Mac software in the early aughts.
comment 5y ago · link · parent
comment 5y ago · link · parent
That said, to get the best performance on vector math it has long been recommended to use Apple's own Accelerate.framework, which has the benefit of enabling use of their proprietary matrix math coprocessor. One can expect the framework to always take maximum advantage of the hardware wherever it runs with no extra development effort required.