Better HN
topnewbestaskshowjobs
Log inSign up

float4

1,221 karma · joined Jun 9, 2020 (6y ago) · 285 submissions

Love all, trust a few, do wrong to none.
Submissions

comment 3y ago · link · parent

I'll cite SWOV.nl (Dutch institute for road safety research):

> The effect of (mandatory) bicycle helmets on bicycle use is not clear. Several international studies show that bicycle use decreases after the introduction of helmet laws, even though most studies do not find such an effect or only find a temporary effect [9] [42] [49]. [...]

> There are two international review studies of the effect of mandatory helmet use on the use of bicycles, both dating from 2018 [9] [42]. The first study [42] shows that the available research results are not unequivocal. It states that mandatory helmet use could indeed result in a decrease of the number of cyclists, but that this need not always be the case and that, if the number of cyclists initially decreases, that need not be of long duration. The second study is a mostly qualitative analysis of the available literature [9]. Based on their findings, the researchers conclude that there is little to no evidence of a substantial decrease of bicycle use due to the introduction of mandatory helmets. They have examined 23 studies/data sets and conclude that 2 of these studies support the hypothesis that mandatory helmets lead to a decrease of cycling, whereas 13 studies do not, and 8 studies show mixed results.

> The abovementioned review studies only concern research done abroad, in particular in Australia and North America.

https://swov.nl/en/fact-sheet/bicycle-helmets (Under "What is the effect of helmet use on the popularity of cycling?")

comment 3y ago · link · parent

There are file systems, like zfs, that support transparent block level compression. This means that you can just copy a normal disk image file to the zfs partition and zfs will handle everything for you. The image can be mounted in r/w mode the way you normally would, because as far as you're concerned the image file is a normal (uncompressed) image file. Why not use that? Sounds way easier and safer.

But oh well, the author works at Red Hat so I'm sure they have their reasons :p

comment 3y ago · link · parent

> US companies would much rather rely on an EU country

Agreed

> US local supply will never be enough.

But you won't just have US supply. You'll have US and Taiwanese supply, and I don't believe that Taiwan will happily let TSMC (the only cutting edge foundry left in the world, when you take Samsungs abysmal yields into account) build foundry redundancy in the western world.

But we'll see, you could definitely end up being right. I just hope we'll invest at least an equal amount of money into chip design.

comment 3y ago · link · parent

Why do we even want cutting edge fabs in Europe? We have no companies that design cutting edge logic chips here. Literally none. Why invest 20 billion dollars (or what is the price of a cutting edge fab these days?) to create supply without demand?

Or do we seriously expect that US companies will generate significant demand even though TSMC and Samsung are already building heavily subsidized fabs in the US?

comment 4y ago · link · parent

@dang theleak.co has never appeared on HN before today. When searching for this news ("zuckerberg resign") on google, top hits are Daily Mail and The Sun.

Not worthy of the front page I think.

comment 4y ago · link · parent

Your own country disagrees with you.

Freedom House researches this exact topic and they're funded by the US Government. Their current chair is a republican but they're non-partisan.

Looking at their most recent data[0], we can see the US scored 14/16 in 2022 on "Freedom of Expression and Belief", meaning that 53 countries were better by scoring 15/16 or 16/16. Of the 27 countries that scored 16/16, 11 were European. Qatar scored 6/16 by the way.

When you look at the total Freedom Index, the US scores 83/100 which is good for place 62 and lower than most of Europe. Qatar scored 25/100. Here is a world map[1].

[0] https://freedomhouse.org/sites/default/files/2022-02/Aggrega...

[1] https://freedomhouse.org/explore-the-map?type=fiw&year=2022

comment 4y ago · link · parent

Can confirm. I took Advanced Functional Programming for my master's. Of the ~15 people who took the class, the majority scored <=65% or gave up, a few people got pretty good grades because they were reasonably intelligent and willing to put in the work (me), and then there were a few people who scored >=95% because the high levels of abstraction genuinely made things easier for them.

That was when I learned that for some people, a monad really just is a monoid in the category of endofunctors.

comment 4y ago · link · parent

> The book 'Invisible women' by Caroline Criado Perez has a section about this, I highly recommend it.

I asked for this book for my birthday and read it. However, I couldn't help but notice that when the author wrote about my field (computers, broadly speaking) the research was often... lacking?

She wrote a solid 3-4 pages on large phones and it was just surreal to read. Paraphrased:

> Phones are very large. This is bad for women; they have smaller hands. Nobody knows why tech companies make large phones. It is very silly, because women actually use their phones more than men. I asked multiple tech journalists for an explanation, they had no idea either. Here I present some theories that can tie this issue to sexism: companies simply design phones with men in mind, companies expect women to carry a handbag all the time so a large phone is no bother, and so on. And sure, women could buy an iPhone SE but that model hasn't been updated in two years.

Nothing about better battery life, nothing about better media consumption. It was so confusing, as every tech journalist, literally every tech journalist, knows that bigger phones have better battery life.

Sadly it made it a bit difficult for me to fully trust the rest of the book.

comment 4y ago · link · parent

I agree that this can be simplified further but at the same time I disagree with the "it needs to be understandable to beginners!" attitude.

Some concepts aren't for beginners. This includes most things that have to do with more advanced type theory or for example category theory.

ELI5 GATs? ELI5 Monads? If we could we would.

comment 4y ago · link · parent

And if you struggle with Xcode claiming large amounts of disk space:

1. Use DevCleaner[0] to remove old/unnecessary device support files.

2. Remove platforms you don't develop for, e.g.

- rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/Watch*

- rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/AppleTV*

DevCleaner freed up 10G+ for me the first time, the two rm commands above free up ~3G each.

[0] https://github.com/vashpan/xcode-dev-cleaner

comment 4y ago · link · parent

Can't answer your question, but here's the law (I was curious myself):

> I claim the following simple experiment supports this depressing claim. Run your favorite set of benchmarks with your favorite state-of-the-art optimizing compiler. Run the benchmarks both with and without optimizations enabled. The ratio of of those numbers represents the entirety of the contribution of compiler optimizations to speeding up those benchmarks. Let's assume that this ratio is about 4X for typical real-world applications, and let's further assume that compiler optimization work has been going on for about 36 years. These assumptions lead to the conclusion that compiler optimization advances double computing power every 18 years. QED.

> This means that while hardware computing horsepower increases at roughly 60%/year, compiler optimizations contribute only 4%. Basically, compiler optimization work makes only marginal contributions.

> Perhaps this means Programming Language Research should be concentrating on something other than optimizations. Perhaps programmer productivity is a more fruitful arena.

https://proebsting.cs.arizona.edu/law.html

comment 4y ago · link · parent

> Apple has rejected these offers. [...] This may be one reason why we reported that the upcoming M2 Pro and the M2 Max for updated MacBook Pro models would be manufactured on the 5nm process instead of 3nm; both entities might not have reached a middle ground for price agreement.

This makes no sense?

M1 / M1 Pro / M1 Max / M1 Ultra were all manufactured on TSMC N5, even though volume production for N5P (improved N5) was already available by the time M1 Pro / Max were released. In fact, A15 (N5P) was released in September '21 whereas M1 Pro / Max (N5) were released in October '21 and Ultra was released in March '22.

M2 is manufactured on N5P, so it makes total sense that M2 Pro / Max / Ultra will also be manufactured on N5P. They're part of the same generation, so it makes sense to produce them on the same node.

This is also most logical from a financial standpoint: the base model M chips and the A chips are the smallest and therefore least expensive to produce on a new node with relatively poor yields and high prices. Once the node has matured a bit more (higher yields / lower prices), you manufacture the bigger chips (Pro / Max), and even later you print the big bois (Ultra)

M2 Pro / Max / Utra were never going to be N3.

comment 4y ago · link · parent

I think the real argument is that the screen size has dramatically increased, making it way more uncomfortable to use compared to an SE (I had/have a 5, 6s and 13 mini so I've experienced this myself). The physical size difference of the object isn't that substantial IMO, but I understand your point of view.

comment 4y ago · link · parent

The 12/13 mini is 9% wider and 6% taller[0], so I don't really think it's unfair to write "marginally bigger".

Also, the second picture is a bit misleading because it compares the SE to a container that itself is larger than the mini (as you can see in the third picture).

[0] Numbers from Mactracker. SE is 4.87" x 2.31" = 11.2497"^2. Mini is 5.18" x 2.53" = 13.1054"^2. That's a 16.5% increase in surface area

comment 4y ago · link · parent

Click "cost" in the nav bar.

comment 4y ago · link · parent

Assume 5% can run a marathon (definitely less) and that 2:50 is 90th percentile (definitely higher) and you're still top 99.5%. How is that not an "incredible feat" as the GP called it?

comment 4y ago · link · parent

Ran it with Little Snitch installed (why bother looking at the code when a malicious actor can just upload a modified binary anyway?) and the claims seem to be legit so far.

comment 4y ago · link · parent

Ah yeah. My monitor cut off the text under the graph so I didn't know they just gave away their predictive algorithm. n=6 obviously works, cool approach!

comment 4y ago · link · parent

This is cool info, thanks.

> Since it looks to follow whichever pattern already exists, and de bruijn sequences minimize existing patterns, it always beats the game.

I'm pretty sure this isn't true though. A de bruin sequence doesn't guarantee that the order of the n-patterns is random, only that the number of unique n-length patterns is maximized.

Indeed, the algorithm you mention puts n-subsequences with many 0's in the front, and subsequences with many 1's in the back. Sure, every n-length subsequence appears only once, but because the order of the subsequences does follow a predictable pattern, your total sequence is still pretty predictable.

This disparity isn't noticeable when n is small (you chose n=6), so you can comfortably beat the game. But pick a large n and your sequence becomes rather predictable.

Try n=20. In that case, the generated sequence S has length |S|=32,768=2^15. In the first half, there are 9098 0's and 7286 1's. In the second half these numbers are exactly the opposite. Throw this sequence into the game, and you end up with a prediction accuracy of 50%. Not worse than random, but you didn't beat the game either.

comment 4y ago · link · parent

> If I were super paranoid, I'd expose them to separate VLANs, and then use my FW to control network traffic

This is exactly what I did initially, but it was indeed a bit of a pain to manage. Eventually I went with something in between, by first compartmentalizing services and then putting them in separate VMs with separate VLANs:

0. Router / FW.

1. WireGuard / reverse proxy.

2. Personal, e.g. file storage, backups.

3. Hosting. My personal site is reverse proxied through Cloudflare and only their IP ranges are whitelisted.

4. Compute, i.e. stuff I want to compile / develop / run on my server. Handy if I want to run a heavy simulation overnight or need more disk space / RAM / CPU power than my M1 MB Air has available.

5. Services. This runs many small tools / services that don't need access to my RAID pool or anything like that. If this gets infected I wouldn't really care.

6. VPN. This VM can only access the internet through a VPN. Doesn't have anything installed ATM, but has been used in the past for urlwatch and torrenting.

7. Test. This is where I try out new software before actually installing it on the correct VM. Once I've concluded testing I rollback this VM to a clean install.

It takes a weekend to install Proxmox and set up the VMs / VLANs, but after that it easy to use.

comment 4y ago · link · parent

> I’ve seen a few studies supporting this in general: people ride with the same intensity but go further or get there faster.

I highly doubt this. I believe it's true for you, but in the Netherlands I always notice how e-bikers generally ride the maximum legal speed (25km/h) but at a preposterously low cadence and while sitting perfectly upright. Non e-bikers on the other hand go slower, have a higher cadence and (if there's a significant head wind) move their torso left and right in accordance with the pedal strokes. No way those intensities match.

I do believe that the area under curve can be similar, because e-bikers can indeed ride further.

comment 4y ago · link · parent

That's why many countries choose to wait until DAB+ has overtaken FM. In the Netherlands FM will at least exist till 2027 and will only be phased out once 70% of radio traffic goes through DAB+.

Also, some ISP's in the Netherlands have already stopped delivering analog radio over coax and most people I know actually did just... buy new radios / DAB+ receivers.

comment 4y ago · link · parent

> why wouldn’t it be some huge thing you hear about everywhere?

I feel like you hear about this all the time though. Both in the context of mindfulness, and in the context of cognitive behavioral therapy.

Also, as far as I know the actual effectiveness of CBT and mindfulness is still up for debate? It certainly works very well for some people, but "this actually works" might be a bit much?

12345
10