skysight-inc/HackerNews huggingface dataset:
I think 2014 unit sales was repeated as the 2015 number in the first chart. 2015 was historically the strongest, the second chart might be correct.

What’s more wrong about the article is the conclusion, that Apple is losing new iPhone users. It does not and cannot follow from the numbers at all.
Work at Google (2006)
I believe it's correct that that can be "said for most languages".

Since you're asking, Rust's ownership/type system, for example, has checks in place that prevent at least some classes of concurrency errors.

For example, you can't directly modify a variable from multiple threads, due to the so-called "move" rules:

let mut myvar = vec![];

thread::spawn(move || {
myvar.push(1);
});

myvar.push(1); // can't do this; variable has been moved
I think there's two related but different fights there.

The "worst offenders" are rich and powerful, and will argue very effectively and brutally to congress that they should be allowed to continue to get richer and more powerful. That's the nature of power. That's a political problem and needs political solutions.

But...

Their arguments are _so_ much more powerful when they can look at the congress members and say "No one cares anyway! Look at all the voters buying SUVs instead of hybrids or electrics! Look at them all flying to Vegas and Paris and Bankok every year! Look at them not installing solar power. They! Dont! Care! The VOTERS don't care!!! (Oh, and speaking of flying to Paris, here's 4 first class tickets, enjoy...)"
If you have the time, I'd love to hear a bit about why you ended up creating D, rather than writing an Ada compiler? (Seeing how you wrote a c++ compiler...).
Hah - not as bad but similar, but hey it’s my name-ish. I get a fairly high amount of password reset attempts on it too. (guess my Gmail address, I got gmail back when it was invite only beta)

Really like your approach at work though, I am apparently signed up to so many various services that I have never heard of, and could probably access lots of PII if I wanted to.
This is nothing but a reincarnation of the Scunthorpe problem. Except this time a nation was considered a swear word due to imperialism

https://en.wikipedia.org/wiki/Scunthorpe_problem
GoPro Warbirds Footage
At the rate of their price increase, buying 2nd hand will soon be the only option left to get Apple devices.

You know something is not right when their own website start to list trade-in prices. I mean, this is a phone, not a car.
Actually there is. You can chose to throttle your cpu by 4x or 6x. Really useful not only for optimizing your sites speed but also for finding subtle race conditions.
...if they arrest a service member

I am not saying that it is not absurd, just that it is not that absurd.
Show HN: GitHub Readme Testimonials
agree on that, the performance are quite impressive, i think i'll have a look
This actually exists

https://www.npr.org/sections/money/2019/03/22/705914833/epis...

I think the problem is that the system has historically obfuscated a lot of the malpractice.

So I think the real reform is more transparency (body cameras and other things) to make sure infractions are actually exposed.
In history class this is what was required on certain questions of my tests. I could have a correct answer without a certain keyword and get a lower grade on that question because of it
Who better to pass judgement on a court than its constituents/subjects? If the people that the court is meant to protect believe the court is illegitimate or lacks authority, then the court has failed.
Java like C++ or Swift uses single-dispatch polymorphism, so only the receiver (the argument before the '.') is used at runtime.

In Java, you can implement your own dispatch table quite easily

Map<Class<?>, Consumer<Fruit>> dispatchTable = Map.of(Apple.class, fruit -> handleFruit((Apple)fruit));
Fruit fruit = basket[0];
dispatchTable.get(fruit.getClass()).accept(fruit);
Maybe I'm dumb but I don't understand the bug. I understand why the main code blocks if no tokens are available in the found channel but why would writing to `found` block the code (and why only in the case when there's a lot of go processes)?
It doesn't really matter, people want 5G. There's also the standard argument that when 5G becomes standard, new applications will arise. I can't think of any off the top of my head, but that's also kind of the point. People in the 90s probably couldn't imagine graphics cards enabling a deep learning either.
lmao totally agree. I once took a operating system course on a whim. Built primitives for an mips system. Absolutely loved it but wouldn't do it again :)
'I came from a third world country where the "education system" is basically just a series of tests on memorization and conformance...'

2x2 is 4... sorry third world you say?
Huge parts of these agencies' activities have been moved off the books or to private entities. It's not as simple a matter as just cutting off their funding anymore.
All Samsung phones (except those bought on carrier in USA) have unlockable bootloaders.

Xiaomi phones have a waiting period, you are required to log in with a Mi account then use the phone connected to the internet for 7 days to be able to unlock it.

Samsung here seems way more user friendly. And with Treble GSI ROMs, you can flash a custom OS on any phone, except Samsung has less problems on average with the kernel (ignoring their security features) compared to Xiaomi which requires a custom kernel in many cases to enen boot a GSI.
>Reductions in all those things will make a difference.

As choices left to the individual? Not likely. Only systemic/legal changes would have any impact...
That's a classic deadlock bug - two producer/consumer relationships in opposite directions.

Have another goroutine receive and output the "found" results, rather than doing it in the first loop. Now you have a proper pipeline.

The big win with goroutines is that they're green threads. They can block, and you can have lots of them. With regular threads, too many will use up resources. With "async", anything that blocks or just takes too long locks up the whole system. Go has the best of both worlds, which is very useful for the case of a server holding open connections to a huge number of human-paced clients.
Is this a fake news?

I could find only the article below on IBM's news section (they created this super computer). Speaking about the results of the 2 day analysis, Jeremy Smith, Governor’s Chair at the University of Tennessee, director of the UT/ORNL Center for Molecular Biophysics, and principal researcher in the study: “Our results don’t mean that we have found a cure or treatment for COVID-19. We are very hopeful, though, that our computational findings will both inform future studies and provide a framework that experimentalists will use to further investigate these compounds. Only then will we know whether any of them exhibit the characteristics needed to mitigate this virus.”

https://newsroom.ibm.com/US-Dept-of-Energy-Brings-the-Worlds...
If enough people (not even everyone, just enough that the single digit percent voting majority a lot of politicians have in their electorates looks potentially like it could swing towards environmentalism), it'd send a message with a huge multiplier potential. Individual actions are important, because corporate and government change will not happen from the top down, it _has_ to be pushed from the bottom up.
Right after Xaiomi's Android One models.

I own both.
it's a glitch. But we decided that it's a glitch that should make for an alternative way to play ... and even an alternative ending.... talk to the dog in the bird's nest up to the left...
Same here. My GF at the time received a couple of the earliest GMail invites from someone she worked with, and I remember thinking, "Wow, this'll be great, nobody will ever forget my email address."

15 years later: https://i.imgur.com/FlCi3xT.png

Almost none of that is actually spam. Mostly list/membership subscriptions, reminders that my $(VEHICLE) is due for service at $(DEALERSHIP), and misdirected personal emails ranging from amusing to upsetting.
i stopped reading ZDNet since years specially due to their useless articles about Linux and Opensource. I think this is another "useless" article.

As you said, its pretty obvious the Smartphone market is full, Apple since years looked for other ways to monetize. Thats why now Apple services have more earnings than iPhones. Apple strategy now is to keep the customer at home buying watches, headphones, tablets, Music etc... etc...

Regarding the sale of iPhones itself it would make sense to compare it per regions and against other competitors like Samsung and Xiaomi. I suspect they sale way more phones smaller and less income markets.
It is not true, all Samsung phones have unlockable bootloaders except those bought in the USA on carrier.
> Not only they are not aligned, they are fundamentally adversarial.

I disagree. I'm aware that that's the general opinion, but no, this isn't strictly true. A company can be interested in treating its employees well, and being upfront with them about pay is, to many, a comparative advantage (especially if the pay is also competitive).

> There's no "objective" criteria possible that can judge someone's salary/pay.

Generally correct, but that doesn't mean that it's impossible. As long as you and the company agree on the method of evaluation in advance, it's fine. That is, given:

1. A predetermined (if fuzzy) algorithm for determining pay

2. Transparency on what other people are being paid

You have approximately full information. You know the game you're playing, you know the rules, and you can verify that the company is being honest.

To some extent this is pushing things down the stack a bit, since the company can lie about performance to favor certain people, but this still limits the effectiveness compared to no transparency.

I de-facto have this where I work now (enough people share their salaries that one can reverse the formulas used to calculate compensation). Empowering people to be able to ask why they were only paid $X, when their performance suggests they should have been paid $>X is valuable, and any manager worth their salt should be able to give an answer if there's a legitimate reason.
I am soecifically creating a hacker news account because I am interested in trying it out. Please put your email in profile. I am doing same thing.
> Surely officers are still able to perform traffic stops

Literally the whole point of what I proposed, is they wouldn't be able to stop for anything less than a major moving traffic violation. Which has a legal definition. They include things like hit and runs and vehicular manslaughter. It's not like a crooked cop can't make up a major traffic violation (DUI could be "made up" by claiming "they were swerving") but the burden of proof is higher, and more importantly the average driver does not commit them in the process of driving.

An incredibly large part of the problem is cops don't have to lie about minor traffic violations, people commit them constantly in the process. Changing lanes during turns, coming to a 1 mph stop at a stop sign, speeding (even well below reckless driving speeds), even touching the tip of the dividing line during a wide turn can be grounds to be pulled over

The kneejerk is to "victim blame" but it's reached the point that if you don't violate them in some cases you can cause accidents. That's exactly what happened with the first SDCs in the wild, humans are so hard wired to do some of these things, when someone follows the rules perfectly people crash into them...

Like I said, it literally turns traffic laws into effective enablement of stop and frisk any time you're in a vehicle. Cops have said it before on record, they know if they follow someone long enough they will commit a traffic violation of some sort, driving laws have all sorts of dense corner cases that a determined cop can use to pull you over.

And they can stretch the definition since the barrier to breaking them is so minor that fighting them is almost impossible. If you say you came to complete stop and the cop says you were rolling, it doesn't mean you were speeding through a stop sign, they can claim you were going at near dead still and are mistaken. That's it. Even if they're wrong, you're already stopped, you're free to try and get recourse from the courts, but the stop has already happened.

> I’d rather solve the actual problems than automate authoritarianism.

I'd rather solve actual problems rather than act like the complete removal of racial bias is going to come about from going rawr rawr about authoritarianism. Pulling people over for speeding isn't authoritarianism, but pulling people over so you can try and impinge upon their rights based on their socioeconomic status or race under the guise of speeding is.

> Cameras are biased. It doesn’t matter to me if they are less biased.

Well that's the core of why we won't agree.

Those weren't hypotheticals, I'm black, I've had a gun unholstered on me because my glovebox wasn't where a cop thought it'd be, I know a speed camera wouldn't do that.

Removing traffic stops for minor traffic violations would leave many fewer people ending up in the legal system over stupid reasons, take cops out of situations where they apparently fear for their lives, take away a powerful tool for biased police forces. That's why they're mortified by the idea besides constantly making noise about how dangerous it is for them and how it justifies their behavior, like what I went through.
For very large heaps, I have had speedups of about 3x due to better cache locality with B-heaps.
And through tac if you want it in reverse!

(...And my axe!)
Apparently it is a superhuman effort -- else those companies wouldn't be using this trick.

Rounding up might be easy. Getting rid through the act of rounding up the instictual psychology that "this is less than the round" is not easy at all, might even be near impossible at the feelings level.
Yikes I had a colleague years ago who was doing this, caused all kinds of fun bugs.
>The Laozi, on the other hand, argues that a good ruler keeps his people poor and stupid

This is a bit different from my understanding of Daodejing. Do you know which chapter? I quickly checked the original text and only the 65th chapter mentioned along the lines "commoners shouldn't be taught to be cunning instead of honesty, otherwise difficult to rule" <excuse crappy translation>
For better or worse, this isn't specific to the current administration. There's a long-standing law (passed with a bipartisan majority) instructing the President not to allow ICC prosecutions of Americans and authorizing these kinds of measures if they try.
Sometimes a little appreciation makes contributing to open-source worth all those hours. I feel like we should wear those commendations from fellow coders as a badge of honour like an award.

That's why I built this little 'widget' for your github readme profile.

I would love any feedback. Please let me know if you use this! :)
Well the security services in the UK, will enter your house and wipe your backups and handdrives whilst you are on holiday and there is nothing you can do about it. They also carry out secret operations on primary school kids phishing for information, speaking from experience and hindsight. Nothing is off limits.
It deadlocks if len(pss) > concurrencyProcesses.
My kids loved reading the graphic novel version of
The Odyssey by Gareth Hinds. They continue to read it once a month or so.
iphone unit sales declining was a well known secret - this is the reason why apple stopped reporting unit sales and bragged about services and average revenue per customer.

This may have interesting consequences with a pending cliff fall especially if some other killer trend comes up.
For some reason I haven’t understood, syncthing would often miss transferring files but mark the entire transfer/sync as complete. No errors in the logs either. I tried it for a few months earlier this year, then gave up and switched to plain rsync in a shell. Based on that sample of one personal experience, I wouldn’t recommend syncthing to anyone.

Note: I was using syncthing for a one way sync all the time, with send-only and receive-only settings on the endpoints.
Heh, that's why we open sourced our platfrom+devops.
Check it out - its totally next-level magical stuff
https://github.com/allegroai/trains
Online classes aren't generally considered any easier to teach. And preparing them in the first place is often completely left to the teacher, who's entire workflow just got thrown out the window.

And the materials provided with the textbook often suck, and require more work to use than creating your own from scratch.
I thought of "how to lie with statistics" when he changed the scale.

Also, as several other posters have said, phones have stagnated a bit. Not as bad as desktop computers, but they're going there.

The last time I changed my iPhone was because the daughter completely ruined hers, and she needed a new hand-me-down.

The last time I changed my iPhone because of a new feature was with the 5S i think. Or whenever they introduced answering phone calls on your laptop.
You should see one of his latest videos. It's definitely not a stunt and also if you follow his YouTube streams you'd know.
For 500Gb or more, aspera soft/ascp. Used by quite a few large bioinformatics institutes for allowing data uploads.

[1] https://www.ibm.com/products/aspera
I have lastname[initial]@gmail.com and it’s not a terribly common name, but I’ve gotten Interac payments (Canada) sent to me for little league practice (emailed back and they apologized).

Most recently I’ve been getting a cell phone bill for a South African person. It had their address so I looked it up on gMaps and it was a small home in a shantytown. I just received an email telling me the service was being cut off for non-payment. No email for me to reply to.
The actor model struggles when you run up against something that is naturally sequential and the order matters.

If you want a 1000 households to visit a set of shops in a repeatable Random order until the shops runs out of stock, that’s a List sort with a seed and a sequential loop

Make the 1000 households concurrent and sending messages and it becomes a major exercise in clocking, scaling and scheduling.
streaming json-lines (for large json array files)
"could" but does it, actually? The breaking changes they did from 2 to 3 caused enough headaches that I think no one wants to go through that again.
Probably. On the other hand, anything that links to Ethiopian music has my vote.
Perhaps if they made physical dual sim phones widely available (and not just in China and Hong Kong) they might be able to lure more users. In my corner of the globe, a significant number of people have more than one SIM so Purchasing an iPhone is not very cost efficient. And even if you do have the means to purchase a second device it will most likely be a cheaper android phone. Eventually you’ll come to realize that android isn’t that bad compared to iOS and at times it even does things better. So your next logical upgrade purchase will be a high end dual sim android phone.
Which part of your comment refers to the verb "sanctions"?
I don't think this is the only reason for that statement. I think Android phones, specially the cheaper brands, are selling way more than iPhones in new and less income markets in Asia and Africa. Apple has very few chances in thoese markets and the rich markets have already many iPhones still working.

Therefore Apple strategy is to sell other hardware complementary to the iPhone and Internet services.
Thinly veiled advertising
There are many ways of sending big files over the Internet, so I will go into the top three, save time. The first one is the shortest, when using Gmail. Click on the drive button instead, rather than just the paper clip button you will be using with regular attachments. It provides an outline of your drive files, from which you can pick the file to import. Just as easy.

You should go to another cloud computing provider if you don't like Google Drive.

My third alternative is even more easy, but it's a little sluggish because it cuts you at two gigs either way. It is a service called WeTransfer, which was almost your only choice 15 years ago if you had to submit a huge file.
try erlang!
Even in that case, wouldn't the main loop block for a short time but then unblock after the goroutine returns (and the defer function is executed)?

I thought the whole point of limitCh is to support the case where len(pss) > concurrencyProcesses but in this case you're telling me that it's breaking things?
We're blocking in `limitCh <- struct{}{}` if we're trying to spawn more goroutines (because `pss` is big, representing there being a lot of processes we're inspecting, not many go processes) than there is room in `limitCh` (used as a semaphore). The newly spawned goroutines never allow the main goroutine to proceed because they never terminate, and they can't terminate because no one is reading from `found` yet, so they're blocking on `found <- P`.
> ended up spending the whole weekend profiling and optimizing

Some games supposedly have been optimised similarly by running parts of it on a C64 or Amiga. I cant recall the game or studio but John Carmack comes to mind.
That C compiler unbundling was probably the largest mistake Sun ever made and very likely the reason Linux rose to relevance and later world domination.

In the early to mid 90s SunOS (prior to Solaris it was SunOS) was in the place where Linux has come to be - it was the default assumed by most software. When one ftp'd any src tarball and typed make, it was almost certain to work on SunOS and very often require extensive tweaking on other platforms. On the nascent early Linux it was a huge pain to get any open source to compile.

Unbundling the C compiler in Solaris changed this dynamic. Suddenly it was no longer a given that everything could be trivially compiled on those SPARC box everyone had.
Looks cool but I find the use of "text selection blue" as the highlight color very off putting. Maybe it's just me.
Resellers sounds like something that would be explicitly against the terms of service.
Mostly gridftp https://en.wikipedia.org/wiki/GridFTP
There is a Decemberists refrain about the reaction to 9/11, the war on terror: "Because America can, and America can't say no." Or at least, I thought it stood for that, at the time.

Part of a solution may be to introduce a "principle of proportionality" like [1] (if one does not already exist), and to aggressively remove the bugs in the US judicial system that prevent ordinary courts from examining the spies, the military and the executive. Like the state secrets privilege [2]. Then the system can prevent itself from backsliding during crises.

Laws are no good if courts take 10 years or more to figure out whether they have jurisdiction over, or are able to subpoena evidence relating to, crass, publicly known, obviously illegal, civil rights violations. If courts take too long, standards shift, are forgotten, then abolished. The normative power of the facts.

Jewel vs NSA has taken 10 years and has gotten nowhere.

[1] https://en.wikipedia.org/wiki/Proportionality_(law)#European...

[2] https://en.wikipedia.org/wiki/State_secrets_privilege
If you did this each device would provide +5V to the same line in the cable and nothing would happen (as there is no load). Same as if you had 2 batteries connected in parallel. If this was an issue than those ‘Y’ shaped USB cables that provide extra power for external HDD enclosures would also cause damage.
Stare decisis isn't a hill our legal system is 100% committed to dying on either.
Precedent can be vacated as public sentiment changes.