Better HN
topnewbestaskshowjobs
Log inSign up

flywheel

16 karma · joined Nov 7, 2010 (16y ago) · 112 submissions

Submissions

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

Prediction: Using the methods of "dorking", this is the only page on the internet among 10 million+ results that is calling this "dorking".

comment 6y ago · link · parent

That's web scraping 101

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

I guess this isn't really "hacker news" then, because I would expect just about any "hacker" would know the difference.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

>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.

comment 6y ago · link · parent

>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).

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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").

comment 6y ago · link · parent

Computers have come so far.

comment 6y ago · link · parent

>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.

1234