skysight-inc/HackerNews huggingface dataset:
We're talking about Vec's iterator, not simple slice access. That "SAFETY" stuff in slice.rs is just a subscript check. Vec's iterator is in [1]. The iterator which returns a mutable reference is unsafe code, because you can't express that concept in safe code.

To recap: the interesting issue is the thread pool example which spins off a new thread with a mutable reference to each element of an array. That's a rather unusual thing to do. It is only safe if each iteration returns a reference disjoint from all other references. Because Rust at the language level does not understand disjointness within an array, it needs a hack using "unsafe" to make this work. The borrow checker would not allow this in safe code.

chunks_mut uses the same trick, with more unsafe code.

My point in all this is that because the language doesn't have syntax for talking about disjointness of parts of an array, each time this comes up, another hack in unsafe code is required. But enough here; I may say more on the Rust forums.

[1] https://doc.rust-lang.org/src/core/slice/iter.rs.html
Public transport in France is cheap and, as mentioned by another commenter, employers must subsidise 50% of their employees' season ticket. In the Paris area it is extremely developed and used.

I don't think that people who drive now would suddenly use public transport instead if that was free instead of costing 50 euros a month (random example).

My personal take is that making public transport free won't change things much in France, and may not be the best way to spend public money right now.
How bad are the banlieues?
macOS: Zero-Day TCC bypass discovered in XCSSET malware
Are those cops really?

Anyway, those people always act like thugs. I wish there was no need for them.
Scooters are probably a lower risk activity in some ways, but with that come some of the lack of positives you get in the nature of playing. In Skateboarding, you're constantly trying to figure out how to do stuff and how not to hurt yourself too badly doing it. While there are some scummy skaters out there, they aren't going to turn your kid into a junkie any more than anything else will, if you teach them appropriately, but certainly not at that young an age. Skateboarding has some risks, but is a great social activity, teaches perseverance, and is cool.

There's a kid (12) that comes to the park I skate at regularly with his mom (probably hovering a bit much, but she's alright) and has generally positive influences all around, while progressing very quickly.
The program is specifically about non-native predators, not all predators.
> civil dressed cops

They are not cops. The only reason they can demand showing the ticket is because of the terms of service.
That's true, but in the particular case of Paris, the worst thing related to transit is there are next to no "across" lines. Say you're in some suburb and need to get 20 km away in another suburb, you're likely SoL. You'll have to get all the way to Paris center and then back again. Or maybe change 5 buses for an even longer journey time. I had this exact issue when I was in college, 30 km away from my parents'. 25-30 minutes car ride or 1.5 h train ride.

I'm really hopeful for the creation and extension of some metro lines, some of which will circle around Paris, helping with this suburb-to-suburb situation.
> But it probably goes: SF spends a lot of money on services for the homeless, so lots of homeless people keep going there to get those services. Other places don't spend any money on services for the homeless, so the homeless people leave.

That's really not a realistic view of the situation though. Pretty much everywhere in the US, _all_ major cities at the very least, have "services for the homeless".

I think the problem lies a lot in the "progressive" idea that people claiming "homeless" somehow classifies for a privileged status. They setup a "homeless class" of people that don't have to work, and get paid to do so. The worse they act, the bigger the "problem" is according to their "caretakers" and the only outcome they can expect is to get an even _bigger_ payout.

In most major cities, shelters require a certain code of conduct. Those that don't abide by it get ousted, suffer the cold of winter, and buck up and man up and deal with it. In SF, they just camp out in the nicest of areas, people cry "hey there's some victims!" and they get an even bigger reward for their degeneracy. People that think they're helping stop some sort of cycle are literally just working at creating the feedback loop.
There are no independent reporters in China to verify govt claims.
One thing that surprised me last time I was in London were the signs everywhere warning about people in bikes snatching your phone.
I think people forget how good it was compared to both IE and FF. It was fast, responsive, clean and a major upgrade to whatever you were using.

It was not Gmail advertising that pushed people.
This happened to me once and AWS entirely reversed the charges no questions asked. And its really something you don't need to worry about. AWS makes more than enough money off of legitimate traffic they don't need to deny someone asking for a refund for a genuine mistake.

And playing around with Serverless is awesome. Things can be created rapidly and very little maintenance. These days I cannot see myself building an application without at least some element of Serverless infrastructure if not the entire solution.
Compiz used to allow drawing on the screen (either normally, or with fire), but sadly it fell out of maintainence.

This should really be a standard feature of the UI.
In Philadelphia, people do this on the subway. They pay a token to get on (or they ask someone for a token if they can't afford it) and then once they are on no one will ask them to leave. They can just keep riding all day.

I think this points to another problem that needs to be addressed. It is a helluva thing if the best thing you can do with your day is ride the subway all day long, and some homeless people just feel safer on the subway (and I can't blame them).
Not anymore there isn't. All bookings go through one of the travel systems (Amadeus or Sabre). There's no skirting around it unless you fly a private jet and even then, some share passenger manifests with FAA to clear no-fly lists when they file their IFR plans.
PrEP is a cocktail of anti-HIV drugs that prevents infection if taken daily. It’s been combined into convenient single-dose pills called Truvada and Descovy. These drugs have a high price tag, but insurance covers it, and if you don’t have insurance the manufacturer Gilead will reimburse you. Great for people like me in the US. But it’s not widely distributed in developing countries where HIV is killing a lot more people. That’s where a vaccine would have the most benefit.
Documentation takes work too.
In France taxes on car fuels go to the general budget, they are not earmarked for roads.
Does GNOME have gestures? I've been using it since 2009 and never noticed. I googled and found this https://github.com/JoseExposito/gnome-shell-extension-x11ges... plus a tentative design document from 2015.
I’m excited for native context menus on macOS!

This 21 year old bug is fixed in the next version of Firefox!

https://bugzilla.mozilla.org/show_bug.cgi?id=34572
Hey good idea, let me give you some constructive feedback.

I think people need a conversation to define how to build a software project, not a simple Q&A mechanism. Maybe you can add some possibilities to contact devs for further explanation.

Besides, to make it more realistic, your examples could use some basic requirements. Otherwise, people may get the wrong answer, based on a pile of assumptions.
iMac M1 24“ Teardown (iFixit)
To be fair, Jira and Gitlab are just about the two most bloated web apps in existence.
Boost Productivity Through Optimized Azure Storage Management
Lets discuss Azure Storage Explorer and Serverless360’s competencies to enhance productivity with an augmented feature set for managing Azure Storage services.
Ha, thank you. I had no idea. https://en.wikipedia.org/wiki/Evil_bit
> Because there is no evolutionary pressure on viruses towards more severe outcomes - if anything, the opposite is true.

I get this, but it doesn't intuitively follow to me that the incidence of severe strains would be as low as they are. The evolutionary pressure against severe strains shouldn't be enough to stop them from emerging in the short term. And yet, for example, all the severe coronavirus strains seem to be zoonotic, rather than mutations of strains already circulating in humans.

> Higher virulence is occasionally seen though, as was the case with the swine flu some years ago.

I guess higher virulence is also hard to measure. If there's a rhinovirus strain one year that infects twice as many people as normal, who's going to notice that?
It's worth mentioning it is a criminal offense but there is a scale for repeat offenders. The first time the fine is not that much but by repeatedly evading fares you can eventually end up with community service or jail time. There is talk of decriminalizing it due to the overhead of this too and the fact that it hasn't really worked and mostly targets vulnerable people.
Sidebery is a pretty nice extension for that
Overall, I think the new version looks better. The only thing I don't get is why they made the tabs into floating buttons with empty vertical space on both sides. On the one hand, I think it looks nicer than the current tab bar, but I don't see what UI/UX purpose it serves to change such a fundamental affordance. (Maybe someone knows?) I feel like they could modernize the tab bar while still keeping it a tab bar.
I judged the given probability P(crime | guy being chased in the streets & SF) as much higher than chance, which is what led me to yield to instinct.

I realize that I was over my head considering the guy was much bigger than me and I had no way of knowing if he was armed or not, but I sleep better at night knowing I did what I could to act as a decent human being.
In Sweden the fine is 120€..
Not a direct result, more like the banks don’t want/care about international customers (due to the laws), so they don’t bother publishing to different regions of the App Store.
To further this, any systems designed to "replace" these systems must also first talk to these systems and provide identical functionality. This was the case with the old BOSS systems we had to integrate with using term screen scraping and pushing text-based booking codes. The same codes used by agents at the ticking counter when you see them type 500 characters just to look you up in their systems. Only now, they aren't interacting with the BOSS system anymore, it's Amadeus or Sabre they are interacting with.
One of my FF UI/UE headaches is consistent use of a dark theme. If you do not want to feel like a deer between the headlight whenever you open a new tab or click on a new URL at night there is still no way around userChrome.css hacks. And even then it doesn't work 100% of the time.

Hope it will finally be fixed in this release since it has been years that people are complaining.
Linux has the ability of entirely freeing a few CPU cores with isolcpus though, so that you can implement your own real-time loop on it
Analysis: Google's Starline shows promise and perils of 3D chats
I use nightly regularly and was not excited by the new aesthetics, so I would join most of the other commenters here .. but to avoid weighing on the same side of the boat, I'd rather ask what would be a top 10 priority list of features to add / fix in firefox for the HN crowd ?
You contradict yourself. If there's enough surface area, then there's enough for alternative and better engines.

Rust & Wasmtime:
https://mobile.twitter.com/tschneidereit/status/129386814195...

Dev Tools & All of MDN:
https://mobile.twitter.com/SteveALee/status/1293487542382333...
I believe internet explorer introduced the asymmetric navigation buttons with Windows Vista, if I’m not mistaken.
30cm is a perfectly acceptable distance to keep from the car ahead of you. Anything more is wasted space.
Compact mode is hidden and not supported now. Count on them removing it.
While I agree with the simplicity argument, I think providing a free service is very different from giving everyone free money. UBI is likely to have many unintended consequences. For example, what would be stopping land lords from hiking rent prices? And what would happen to addicts who use their UBI to buy drugs instead of food and shelter?
I really don't get why Mozilla keep making disruptive UI changes while a very significant amount of users take the time to ask them to please not do it. At this point it feels almost as an act of aggression, it's honestly incomprehensible to me.
Ask HN: How to get started with audio programming?
I recently picked up 'The Audio Programming Book' [0] and so far, I am really liking it. But I am not sure which resource to pick after reading that. Can you recommend me some audio programming resources which are beginner friendly?

[0] https://mitpress.mit.edu/books/audio-programming-book

Edit: My goal is to make a mini-synth which takes input from the computer keyboard.
My daughter invented something similar. It turns out that a whiteboard marker will draw anywhere on a Linux desktop screen, and it's also completely cross platform.
Except, of course, you cannot leave aside the issue of affordability and sustainability, which is by far the main issue of UBI in terms of public finance.

If you do then, considering the overall cost of actual UBI, the claim that this saves on bureaucracy is like claiming that spending 100 to save 1 (both on a recurring basis to make it worse) is sensible since it saves 1. This 1 in potential savings is simply irrelevant (and in reality would be replaced by another bureaucracy anyway) because it is dwarfed by the overall additional cost. Or, what you call 'UBI' is just a single benefit to replace a number of existing benefits, like the UK did with "universal credit".
just a few bad actors can and will conspire to create between 8 million and 18 million fake identity comments on a single page...

https://arstechnica.com/tech-policy/2021/05/biggest-isps-pai...

or https://www.msn.com/en-us/news/technology/ny-ag-report-finds...

it's conspiracy - not theory at this point.
That’s great. Finally they’ll match the dark mode setting. Hopefully that applies to the window decorations too?
It's said that it's stackoverflow based, so o was expecting a similar UI. But each question has a huge unrelated image on it, which is throwing me off real bad.

I probably wouldn't mind these images if stackoverflow was not mentioned beforehand, but it was and it set expectations of a clean UI, now I can't unsee it.
It actually becomes a self reinforcing cycle if staying in prison makes you an even worse criminal than before. A sensible solution isn't not to incarcerate criminals, but to make prisons a place where people can improve - and not just be punished with terrible conditions that make you more violent.
29” and 27,5” new wheels necessitate longer handlebars in order to have more steering angle at low speed, so larger handles make less useful the bar ends.

Plus the new XC circuits are more nervous and you have less time to put your hands in a more relaxed position on the bars ends, you always need to touch the brakes/gears
> +6 feet guys in uniform that will randomly hop on tramways

I know I'm adding nothing to the discussion, but I couldn't stop myself from giggling at alternative interpretations of this fragment.
My father in law told me of a gopher bounty in Ticino that went exactly twice as well as planned: the Ticinese communes paid 10 cents a tail. The only problem was that in nearby Grisons, the government was paying 10 cents per head...
In some cases, private carriers also share passenger manifests to Sabre along with their approved IFR plan. They call it PNR. Passenger Name Registry.
When did this happen? They hadn't implemented E2E Encryption before 2016.
I'm waiting.
It's not criminal if you call it a pension fund? Idk it baffles me too. I'd be entirely okay with higher taxes if they accomplished a single thing. But they don't. Also:

Step 1. Get elected.

Step 2. Convince a friend that they should really establish an organization to fight homelessness.

Step 3. Impose a gross receipts tax to fund fighting homelessness, structured as financial support for "non-profits" with an aligned charter.

Step 4. Leave office and serve on the board of the organization your "friend" established.

End result: you've essentially elected yourself a salary paid for out of the communal treasury. The "let's just throw money at the problem" type of mindset is especially susceptible to supporting these taxes. They see the problem and obviously want to support solving it but don't follow up on the flow of money.

IMO politicians should be required to be actively performing civic duties to be getting paid by tax money. And all taxes should default to being (or be required to be) repealed after a fixed term. The people must elect to re-impose the tax based on their perception of whether it was effective or not.
I don’t see this as a bad thing. Suburbs have large negative externalities, disincentivizing people from living in them as opposed to dense urban centers seems like a fine policy to me.
Rent seekers? Presumably the vendor gave a ticketing system in exchange for payment, so not sure how that's "rent seeking"? Are there rules that they can be the only provider?
Most musicians use headphones / earplugs in professional settings
There's zero context here, but I'm guessing the wildly unpopular Google Union has exploded into inevitable political mudslinging and drama?

If I were a Google executive, I'd be laughing hysterically.
Use native context menus on Mac OS
Ask HN: How do I get started with building a landing page with a payment option?
I inadvertently stumbled upon a DaaS opportunity when helping a local business set up their tech stack, and since this problem is scalable, I think it's a viable idea as a side business. Unfortunately most of my (admittedly very little) experience is backend, so I haven't got the faintest idea on building a landing page. The last landing page I built was hosted on github and was basically just a rehashed version of another website's template. Can anyone give some advice as to how to do this? I guess integrating Stripe is a pretty straightforward task after the initial build.
I'm always amazed by those "you're doing Xyz validation wrong" posts. This is 2021. There should be libs out there that do this perfectly and we should be using those. Nobody should be writing this kind of thing from scratch, especially not somebody with "precious developer time at a startup". For fun, sure, why not. But doing this from scratch for production software is nonsense. Parsing email adresses, URLs, IPs, OS path names, even parsing common file formats, stack frames or, god forbid, hacking your own crypto. Don't.
Fair, but a lot of the anecdote details you mentioned aren't really attributable to the increase in violent crime. As mentioned elsewhere, Walgreens closing might be caused by economic downturn impacting a business strategy of market saturation (https://news.ycombinator.com/item?id=27273139 and second child post).

The city also feels dead because tourism everywhere in the U.S. is currently dead. SF Chinatown is most definitely not comparable to the state of Oakland Chinatown:

https://abc7news.com/man-shot-killed-in-broad-daylight-oakla...

Oakland's homicide rate is skyrocketing, but so are its housing prices. Goes to show that in the Bay Area as a whole, crime and desirability of living often fail to correlate. SF's problem might simply be people don't want to live in a dense area during a societal shutdown.
Honestly starcraft has taught me the opposite of that. It taught me that paying attention and making things up on the spot works well into 5k MMR (upper 90th percentile of performance).

It taught me that most people overthink. Then go and try to do fancy things without doing basic things correctly first.

I believe a fair amount of that translates into real life. People think too much about non important things and neglect the actually important stuff in the process.
This was 8 years ago, not sure how much it is these days. It could as well be 1 euro, I'd still be very angry, as it's not about the money.
Dupe https://news.ycombinator.com/item?id=27269715
I think this is one of the reason's it's great to let your kids get into it. Teaches them confidence through punishing trial and error. For you, either option is totally viable, but at the beginning on flat ground your probably better off with just learning to fall and get back up.
World would be better place if we don't take sides. Most if not all real world issues comes in shades for grey. In this case the controversy indeed started on Twitter. Twitter clearly took a side, and hence owes explanation on why it thinks it is a case of "manipulated media". Did Govt of India require to send trooper to deliver the notice? Absolutely no. As usual, it overreacted.
So summarizing: its intent isn't clear?

FWIW: Pocket is similar in general design to a number of "read it later" services (the Android app is still identified as "com.ideashower.readitlater.pro"), such as the now-defunct Readability, still-extant Instapaper, Maciej Czeglowski's Pinboard, and the FS/OSS Wallabag. There's a ... (very?) loose kinship with tools like Zotero, Calibre, and Elsevier-owned Mandelay, also knowledge-management / article management tools.

Pocket lets you:

- Save articles for later reading.

- Display many (though not all) of them in a simplified and standardised "reader" view.

- Apply tags. (I abuse this feature horribly.)

- Add highlights. (3 per article for the free version, unlimited for pro.)

- There is of course a social feature allowing shares and recommendations. I avoid this like the plauge.

- There is, inexplicably, no way to share, export, or otherwise save a bibliographic reading list, say, of articles on some topic.

- Exporting the article listing is possible (JSON format). You'll have to re-fetch items individually if you do this.

- Articles are not saved and you're still subject to linkrot, edits, or substitutions at the origin source.

- Saved content is accessible from any device by account, either from a Web client, from Firefox itself, or through Mobile apps (iOS, Android).

The functionality exceeds that of bookmarks, sacrifices local control and storage.
> I hope this is not yet another redesign for a desktop app that tries to make it look like a mobile app by removing features and adding gratuitous amounts of whitespace.

I've got some bad news for you.
What’s wrong with biocontrol using cats?
It's also has way higher median household income vs US
During 2021.
Plenty of couples engage in consensual sex with other people… not always the result is doom and gloom.
You're assuming NZ has significant native predators. But it doesn't have any major native mammalian predator.

https://www.nznatureguy.com/2019/04/10/new-zealands-big-3-pr...

One interesting "proof" of it is the Kiwi bird existing, because it could have not existed with competent predators.
Your anecdote is weird.

I've been paying my Navigo pass and equivalent for ~20 years and rode thousands of times in the metro, bus, tram, Noctilien, Citadin and RER, and I have never encountered such situation. I've lived intramuros (mostly on line 13) and in the suburbs (RER B) which are both renowned as being the worst in Ile de France, I've commuted both as a student and as a worker in almost all directions (Saint Denis, Massy, 13ieme, 18ieme, 20ieme...).