Removing APIs is not a great practice though. Look at AWS, they version their APIs, they don't just remove them, and removing them should be unnecessary if your underlying tech isn't brittle and badly written. "Depreciated" is a far better term to use, with a far better outcome in my opinion. Companies that remove old versions of APIs and break existing client apps (that possibly can't be udpated) really suck.
HN user
flywheel
Yeah, nope yourself. It seems like a lot of people aren't really thinking this through very much.
And that is absolutely the wrong way to approach API development. An API that is being sun-setted should never be removed, because older clients could still use it but sometimes can't be upgraded to newer clients. Removing a v1 API breaks those clients and it's a shitty thing to do to users. Yeah, people should be building NEW things with it, but there's no reason to look at the v1 API with "disgust" as "deprecated" implies - It's simply an older version that should remain functional, if your system is worth half a shit. AWS doesn't terminate older API versions, they just create new versions. Or you can be like Facebook and "deprecate" stuff and just shut it down before your official shutdown date, or not give any notice at all - that's REALLY a fun culture to work in, I guess, for them. "deprecated" is a really negative word, and doesn't even really translate to anything good in terms of software development. It's my opinion that "depreciated" is a far better word and far better outcome when used in software development instead of "deprecated". YMMV.
Whoever the first developer was that used "deprecated" got it kind of wrong, the word should have been "depreciated".
Deprecate: "express disapproval of."
Depreciate: "diminish in value over a period of time."
I kind of cringe when other developers say "deprecated".
Edit: Versioning and not removing APIs is kind of the way to go, so you don't break client apps that possibly can't be updated easily or at all. "Depreciated" is a far better word to use with a far better outcome. AWS versions their APIs, they don't remove old ones. "I disapprove of using this API and we're taking it away at some random date" vs "this isn't the latest API, use the current one for new development" seems like a pretty stark difference in thinking to me. YMMV.
Prediction: Using the methods of "dorking", this is the only page on the internet among 10 million+ results that is calling this "dorking".
That's web scraping 101
Thanks for posting this - I've been down that road. I regularly have to parse about 20GB of JSON split up into 8MB JSON files - tried this library but was sad that it didn't help. I'm currently using threading in nodejs and that has helped quite a bit though, parsing up to 8 of those files at a time has given me quite a performance boost - but I always want to do it faster. Switching to using C just isn't really a viable option though.
I guess this isn't really "hacker news" then, because I would expect just about any "hacker" would know the difference.
Amazing how nerds can be so focused on if it was 1 kiloton, 2 kilotons, or 3 kilotons - and they are arguing about it like it really matters.
Your comment seems a bit disingenuous - how much time passed between when you got the i7 and when you got the i5? Today's i5's can be faster than long-ago's i7's but todays i7's are still far faster than today's i5's.
Maybe you missed the part where the program tells the user it's running in "CPU Mode" and may be slower, "Try running on a GPU" is another message that would make it clear.
So many comments here make it seem like we're dealing with people with a negative IQ.
Just show an appropriate message and let the user run the software. It's GREAT that there is a simple CPU fallback and it's enabled by default.
It's really an edge-case where a user would want to run the code and have it fail if there isn't a GPU - that is mostly an edge case of 1 user, the developer, except in very specialized situations where nobody would want to run it without a GPU, again an edge-case.
Prediction: someone deploys this and doesn't notice it's incredibly slow for mysterious reasons, and then spends several hours to figure out that the right version of CUDA wasn't installed.
Why not just print out a message "Running in CPU mode" or "Running in GPU mode". There's no reason it has to be a mystery.
The comments here tell me that programmers have a narrow idea of what other programmers should/would/could do with their software.
This is a bad thing, not a happy thing to be advertised. Software fallback was of the most frustrating parts of working with OpenGL circa 2010.
If you're making a hardware accelerated library, stop trying to make it "gracefully" fail. Just fail! That way people can address the root problem.
No. I want my code to run locally sometimes (possibly with a GPU), and sometimes I run the same code across hundreds of EC2 instances or just 1 instance, and I have good reasons for that. Sometimes a machine doesn't have a GPU, but I still want that code to run on it.
The "bad thing" is imagining you know every possible use of javascript, and then telling other people about how they should be running javascript (or any language).
Her "data" is mostly liking cute dog videos. China can have that data for all I care. Meta data about my network, devices? If China really wants to know that I'm on Spectrum internet, and have a few other devices connected, sure, go ahead. I monitor my network and haven't seen any suspicious traffic that would worry me.
AREXX was around in 1987. It was amazing. Pretty much every application had an "AREXX port" to allow scripting. And I used it extensively. The closest I've seen to anything like it is OLE on Windows, but it's not very accessible or pervasive like AREXX was in every application.
What inputs? You mean the fact that she follows cute dog videos? I'm sure China is going to use that against her somehow /s
My wife is on TikTok for at least an hour a night if not more - I've never once seen or heard anything pro-china or anything that would otherwise influence her opinion about China. Not once. It's all content from US social media whores.
That isn't really "high tech", it's organic chemistry. We can split hairs about the meaning of "high tech" but that would be pointless.
If you enjoy this kind of thing, check out the wizardry/madness over at https://www.dwitter.net/ - javascript animations in 140 bytes (the size of a tweet, hence the name, "dwitter").
Computers have come so far.
I’m pretty sure nothing from Samsung, Motorola or HTC that's 4 or 5 years-old can run this year's Android release. Or even last year's.
At least android phones can still download apps from the google app store, older iOS devices are just cut off. I have a perfectly good original iPad that's basically useless. The iPad 4 is similarly useless.
My last machine was a 10-year old 27-inch iMac that I still use as a server.
My current workstation is 10 years old, running Windows 10 like a champ. It's got one of the first 6-core CPUs in it, a recent graphics card, and 32GB of RAM which I may upgrade to 64GB because it's cheap - I have no real reason to get a new workstation, this thing is still running circles around most recent quad-core systems. Your 10 year old mac wishes it were this capable.
I feel really sorry for anyone buying a mac now, since they will be obsolete as soon as the ARM macs are out.
They often last for many more years than competitors' products
Apple products are often obsolete in a few years, especially iPads and iPhones. Their entire line of laptops and desktops is now practically obsolete with the move to ARM. Apple products are luxury products for people who can afford to simply throw away a device when Apple decides it's stopping support. I have several Apple devices that still boot up just fine, have capable CPUs inside, but are completely useless because Apple just decided they weren't interested in supporting them anymore.
A solution in search of a problem.
The expandability of the original Amiga platform is what kept the ecosystem so vibrant that there almost wasn't a need to update the platform for so long - so many expansions that the Mac people could only dream about. Video Toaster, to name but one. I started with an A1000 that I hacked a 20MB hard drive into, along with the usual RAM expansions. I moved on to a fully-loaded A2000 system with a 68030 CPU, 1GB of hard drive space, 64MB of RAM, ethernet card (coax), an Apple Mac emulator card, a PC card that ran PC software on the card, a PBX card to hook up to interface with the phone line, and just so much more - while the Mac was still pushing black and white graphics and 512KB RAM (and very, very difficult to expand the RAM).
I later got an A1200, and then an A4000 as well. While the platform updates were great, those weren't what really made the Amiga shine - it was the multitasking OS that the Mac and PC didn't really have - they were nowhere near Amiga OS, which was pretty amazing. Through AREXX any application could control any other application, which is something Windows and OSX still don't really do. I mean to some extent it's sort of possible now, but not as easily as it was with Amiga OS.
If Commodore was still around and had not gone out of business, I'd absolutely be using Amigas today. (yes, I know it sort of still exists, but it isn't really funded or widely used)
Say Grandma bought that house in 1960 for $100,000 (it's a really nice house). With inflation, that $100,000 is $870,935 today. Maybe that's still a return on investment, but not really that much. If Grandma had put even 1/10th of that into Apple stock, she'd be a billionaire today. I don't know where I'm going with this.
I used to work at a porn company in early/mid 2000s, when IE was the dominant browser - the office breathed a sigh of relief when I coded a pixelation filter for IE using directshow effects or something, I forget it's been so long since I did anything for IE - but IE was fairly advanced for the time in what you could do with some CSS. The pixelation filter was for employee use only, of course. No longer did we have to actually watch clowns having sex to debug a problem with a specific movie depicting clown sex. Or any other porno, for that matter. It got kind of exhausting/distracting having to code when the data was porn.
The Republicans have always been the problem. They are rat-fucking the country and laughing about it - McConnell laughed when asked about unemployment assistance - he has no intention of helping Americans. He is a ghoul. We are doomed as long as the Republicans have power.
Surprised Array.sort wasn't mentioned.
[1,2,3,4,5,6,7,8,9,0].sort(()=>Math.random()*2-1)
Apple was having Intel attempt to build modem chips for iPhones so that Apple could have an option other than Qualcomm. That didn't pan out.
It didn't pan out? Well Apple buying Intel's modem chip business seems like the opposite of it not panning out, at least for Apple.
https://www.theverge.com/2019/7/25/8909671/apple-intel-5g-sm...
LSD is not something Mexican cartels would be interested in. It is far, far more difficult to manufacture than growing plants (marijuana, cocaine, heroin). And the demand is nowhere near as much as the drugs they typically sell. LSD is also not addictive and thus not nearly profitable enough for them to consider.
Many prove to be true.
Which ones? Most conspiracy theories are over-thought, under-researched, pure horseshit. Out of the most well-known, "the moon landing was faked" - false, based on no real evidence and a whole lot of denying reality. "The earth is flat" - absolutely false. "5G towers cause COVID" - it's really not difficult to understand how ridiculous this one is. And the conspiracies just keep getting crazier from there...
Sorry, no, "many prove true" is just not workable.