Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions

Submissions

comment 3y ago · link · parent

It seems that that’s the goal though:

> According to the African Union's website, the African Passport and free movement of people are intended to "remove restrictions on Africans ability to travel, work, and live within their own continent."

> The African Union also established the African Continental Free Trade Area, a free trade area spanning the whole continent with an estimated value of $3.4 trillion. Its goals are to promote economic growth and provide a single, united market for the 1.3 billion people living on the continent.

Sounds like EU.

comment 3y ago · link · parent

You would need to do the same in C++, since the underlying dynamic array is being resized throughout the algorithm, i.e. pointers to its elements are being invalidated. Except C++ won’t warn you about it. You’ll just corrupt memory.

And in garbage collected languages you’d do the same to avoid the cost of GC.

comment 3y ago · link · parent

> Many people do

Geeks who update everything every 15 minutes and actively follow tech news. Just like there exist people who buy a different set of clothes every season. It seems to me that in the past with the slower release cycle MacOS was more polished and people actually could differentiate between releases. Now most people won’t be even able to tell which one they’re using, and which release is more recent than another.

> for the rest, there is debian stable and RHEL.

Last time I checked RHEL is not an LTS version of MacOS.

comment 3y ago · link · parent

FTR it's about en_GB.utf8 vs en_GB.UTF-8. For a moment I thought it's about lang vs LANG which would be expected behaviour IMO.

comment 3y ago · link · parent

> But it is, obviously, not a viable choice for apple.

It's not obvious to me. Apple used to release 1 version of MacOS every 1.5-2.5 years[1]. Now it releases 1 every 11 months. And it's not like the recent versions have some groundbreaking innovations in them. Nobody cares about MacOS upgrades outside of worrying about breakage, or getting a recent enough XCode to target newer iPhones.

[1]: <https://en.wikipedia.org/wiki/MacOS_version_history#Releases>

comment 3y ago · link · parent

> Why are you frequently switching away from the timer after setting it but before starting it?

Example: I boil water in a kettle for tea. I set the timer to the correct steeping time. I open the top of the kettle to let the water cool off for a bit for it to be appropriate for the type of tea I'm making. Before the water gets to the right temperature, I get an SMS or someone calls me. I then get back to the app, but the timer value is wrong.

But really the main failure mode is the lock screen, not switching to another app. I set the timer value to what I want and leave the phone on a tabletop until the time comes to start the timer. But the timer app behaves like an attention-seeking child which punishes me if I don't give it constant attention. So you can replace getting an SMS/getting called in the above with just putting the phone down until it's needed. It's nice to separate those two steps, when you want to be more precise.

Scenario 2: I want to make soft-boiled eggs, so I set the timer value to 3 minutes and put the phone down until water starts boiling. I lower the temperature for the water to simmer. And start the timer.

> This was willfully done this way, probably due to another customer's Feedback submission.

I find it hard to believe that someone would want their timer to reset to a value they used the last time they pressed the Start button, instead of staying at whatever value they've just selected. The previous value is likely to be completely unrelated to what they're doing the next time. Previously you were cooking eggs, now you're making tea, later you're frying steaks, ...

I think tpmx's suggestion that it may be a bug introduced in a SwiftUI rewrite more likely, especially given Jtsummers's observation that all that's needed is switching to another view.

217.

Ask HN: Is there a way to get previous iOS timer behaviour back?

11 points · by yakubin · 3y ago · 6 comments

comment 3y ago · link · parent

What topics? I’ve never heard of it. Any examples of this happening?

comment 3y ago · link · parent

Then it’s a question of annotating this function with ALWAYS_INLINE and letting the compiler optimise it.

comment 3y ago · link · parent

Or you could write an API like set(FOO | BAR) and get the same benefit for comparably basically no cost (+ now you get nice diffs in git).

comment 3y ago · link · parent

Belief in personal growth was one of the pillars of Victorianism. Then there was the American Dream.

comment 3y ago · link · parent

Both are important. I replied to a comment about commutativity, so I focused on that.

comment 3y ago · link · parent

Commutativity is important for e.g. parallel programming. See e.g. <https://youtu.be/dPK6t7echuA>.

In the context of linear algebra, it would also be good for folks to know that matrix multiplication (/linear transformation composition) is not commutative.

comment 3y ago · link · parent

Linux doesn’t have an official libc. Raw syscalls are its only official API.

comment 3y ago · link · parent

The only thing I’ve noticed is that the “ADD POST” text is at a different height than the “+” next to it, which is a bit jarring. It’s also the only button shaped as a rectangle with rounded corners on the page (aside from “Go” which is styled differently as well). Overall, I see 4 different styles of buttons on this page. But other than the buttons, it seems fine to me.

comment 3y ago · link · parent

Lua is pretty much the standard extension language for tools like nmap, wireshark, DarkTable, Hammerspoon, …

I think it’s doing pretty well and am happy with this fact. I think its success is well justified.

So I’m not sure about it being overly-criticised.

comment 3y ago · link · parent

He supports Hamas and Hezbollah: <https://twitter.com/CraigMurrayOrg/status/171333500612114051...>.

comment 3y ago · link · parent

The terseness is useful not just for writing, but also for reading. In maths, the shape of a formula is often more important than what each symbol in a formula “means”. The terse notation allows you to quickly grasp the shape and draw parallels between seemingly distinct areas of mathematics, as well as transform the shapes in your head without being bogged down by whether A is a matrix, a real number, a function or whatever.

When I code, I prefer comments explaining the general idea of what’s happening and why in a given folder/file/section (not explaining each line) combined with terse code.

comment 3y ago · link · parent

/proc appeared in late versions of original Unix. That’s where BSDs inherited it from before ripping it out.

comment 3y ago · link · parent

By default, FreeBSD, just like OpenBSD, doesn’t have a /proc. I’m actually running a server without it.

comment 3y ago · link · parent

The post says that all of December operating profits are donated. I don’t think such an amount could go unnoticed in a public company.

comment 3y ago · link · parent

> If smaller companies like Tarsnap can do it, then what stops others?

Shareholders. Tarsnap enjoys the benefits of being a privately-owned company.

comment 3y ago · link · parent

Fair enough.

comment 3y ago · link · parent

> Add in the adult segment of Generation Z

That would be about half of them.

Baby Boomers + Gen X = 134 million

Millenials + half of Gen Z = 107 million

Young people are outnumbered, and it’s going to get worse.

Numbers from <https://www.statista.com/statistics/797321/us-population-by-...>

comment 3y ago · link · parent

But there’s too few of us. The elderly are always going to outvote us.

comment 3y ago · link · parent

The statement OP put in parentheses is a well-defined statement in mathematics. It means that the Lebesgue measure of the set of the rational numbers is zero in the space of real numbers.

comment 3y ago · link · parent

Second is not bound to the rotation of the Earth. It’s bound to the speed of light (indirectly).

comment 3y ago · link · parent

> A metric minute is broken into 100 seconds.

> A standard minute has 60 seconds. There are 2.4 standard minutes in 1 metric minute.

Surely it should be 1.(6). I hope they didn’t change the definition of a second. It’s an SI unit.

comment 3y ago · link · parent

They weren’t taking it with the intention of creating Israel. They had more selfish reasons. It’s just that after WWI the British Empire was disintegrating, its resources were spread thin, and they had no interest in keeping the mandate, but at the same time didn’t want to allow Russia to extend its sphere of influence (which would happen if they had handed it to Arab states), so they handed it to future Israel. Just realpolitik.

But I have no intention of defending the British Empire. If that’s what you meant, then fair enough. Valid comparison.

comment 3y ago · link · parent

Comparing a major world power taking more land for itself by force and a bunch of refugees creating a new little country for themselves by buying the land is dishonest. Further suggesting that someone seeing something wrong with this comparison is a hypocrite is just further digging the hole. Good day.
1
789
55