Hacker News new | past | comments | ask | show | jobs | submit | defap's comments login

I’d be interested to know from someone knowledgeable whether Apple can recognize the revenue from a sale before the product has been delivered to the customer. It’s not clear to me that they can/do.


They charge when the item is shipped so I'd guess they can recognize the revenue then.


FWIW I see the corollary of this fairly often in commit messages, where the author "teaches" the code how to do something.


Incidentally I just noticed that in the Git code and frankly I found it confusing until I remembered this discussion about the tool "learning" stuff.

https://patchwork.kernel.org/patch/11149363/


I just needed one peek at that crazy diagram to agree with your point.


Entrapment by what, reverse psychology? He didn’t walk into a sting set up by FBI agents; he went to a real conference in the real North Korea despite official warnings not to do so.


Why is reverse psychology not an effective method of entrapment. I'd expect it's a standard component actually.


Not really too bizarre. Header files should include or declare everything they need; they should not introduce include-order dependencies. Listing your includes in lexicographic order is a good way to enforce header completeness.


It is by convention that C/C++ headers rely on preprocessor state to determine what blocks to reveal, macros to use, et al.

It is quite common to have an auto-generated configuration header, for instance; or a precompiled header; or optional headers that, when present, mutate the behaviour of other headers.

Every time you run a configure script for a C project there's a good chance you're interacting with code in this way.


Yeah, and if you want to use clang-format include reordering in such a project, you should read the docs for clang-format's "IncludeCategories". It allows you to separate your includes into blocks by providing regexes and associated priorities. Alphabetic sorting is done only within a block.

It's not like clang-format was written by idiots who never used the language before. Maybe read up on what the tool actually does before you get all mad at them?


I'm not mad?

I think it's a harmful anti-feature that's worthy of criticism.


clang-format still allows some ordering when the SortIncludes feature is enabled. Search for IncludeBlocks in https://clang.llvm.org/docs/ClangFormatStyleOptions.html


One other ordering I've encountered which helps remove errors is to list the headers in reverse generic order. Meaning that you go from the most specific header files to the least specific. So <algorithm> and <windows.h> would be getting included last.

This helps ensure that your specific project level header files have all the necessary forward declares and includes to be a fully functioning and complete header.


I also sort my includes this way. The trouble is, determining how generic an include (inclusion?) is is a fuzzy problem. Sometimes I get stuck trying to figure out which header is more abstract, and at times I've run into side effects like this even with reverse generic sorting.


Yeah, this header sorting is only meant to be a tool to help craft header files which are independent. If that's not your project structure then you can use whatever sorting you want.

In the end though you'll have to make a decision on how to sort the projects and which one is more or less specific than another. Kind of like deciding to just sort by pointer address if all else is equal.


He doesn’t know, hence the “probably”. It’s a good guess though, based on the known reliability of the wireless Magic Keyboard.


I doubt many people use a wireless Magic Keyboard outdoors. I've used my last 3 apple laptops outside though... first two had no keyboard problems, the 2018 failed in less than 6 months.


I dunno where you're at but where I'm from, the Magic keyboards are ubiquitous and generally viewed positively. I'm using one right now and I have always really liked the way they feel, and I'm a mech snob.


I believe it's controlled by a sort of dead man's switch, i.e. you must continuously hold down a button for the car to move.


Literally - you stop holding it until after you are dead.

There must be additional safety features in the software to avoid collision with obstacles? Sonar sensors?


Yes, the 'hold the button' is a final liability layer on top of all of the onboard collision avoidance.


The newest version of Summon uses the cameras and I'm guessing the ultrasonic/radar to actually avoid obstacles, but is controlled by the app (you have to be holding the button down in the app)


They are one digital steering knob away from turning the whole thing into an 500 Hp RC car.


Like the car from Tomorrow Never Dies (1997), 22 years later.


Well, there's a cross-promotion I really hope one day happens. Tesla and a 20 year old movie! Yeah!


Er, the entire autopilot sensor and NN stack…


Via an optical sensor that can perform photoplethysmography.


It's alleged that they made misleading claims, but it's not like the whole operation was a complete fabrication. There were plants and machines and whatnot, as can be seen in several articles on tis topic.

So it's plausible that they illegally dumped wastewater as part of whatever it is they're doing that isn't working as advertised.


Fair enough, though at some point it starts becoming a bit hard to distinguish between what OpenAg was doing and what a significant fraction of all demos do.

It's typical for some amount of 'rigging' to exist in demos, particularly because Murphy's law has an ugly way of rearing its head. At a very minimum, almost everyone goes over the demo many times and fix or avoid any issue that causes a failure or questions that can't be easily and decisively answered.

I really did get the impression from the first articles I read on OpenAG that the claim was that they were doing absolutely nothing and that it was 100% faked. The article on the nitrates discharge was surprising to me in light of that.

I'm perhaps a bit jaded also by seeing how much computer science / signal processing academic publication is essentially fake. "The desktop version doesn't really exist but we have a basement version doing stuff" seems like a fairly mild level of deception compared to many other things I've encountered.


According to Snopes [1], Belgium did eventually offer him residency — which he declined — after a ridiculous 7-year impasse where Belgium said he could only retrieve his lost refugee documents in person but France said he couldn’t leave the airport without said documents.

[1] https://www.snopes.com/fact-check/stranded-at-the-airport/


That sounds very Kafkaesque :(

(I hope I'm using the word right, first time xD)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: