Open up Chat GPT, paste your functions and ask it to convert them to rust. Go through them 1 by 1, see if you understand and ask questions about anything you don't recognise. Don't expect the output to be perfectly logically correct, you will have to ensure that yourself.
I've found Chat GPT to be really excellent for quickly getting myself up to speed with languages that I'm not familiar with.
Yes, that’s my advice as well. Set up vscode with rust analyzer and paste any errors it shows back into the same ChatGPT conversation and it will debug everything for you.
The syntax isn’t really the hard part, it’s the rules around memory ownership and when you need to clone variables. There are lots of gotchas and the compiler is very unforgiving. If you want to convert your 5 functions into rust in a reasonable time instead of spending weeks grappling with the differences, just use ChatGPT and iterate by pasting in the errors from rust analyzer and the compiler.
If you actually want to learn rust then that’s a different story and you should probably check out Steve Klabnik‘s book or something like that (or just look at the sample code I linked to in my other comment from my own recent rust library for python).
I've never understood that check. Anyone attempting to steal something just wouldn't put an item they didn't scan in the bagging area. It's almost certainly always a false-positive, which is confirmed by most store employees just clearing the error without checking.
And then there's the other check that if you do scan something, it needs to go in the bagging area. So if I go into a store and grab a single item, and just scan it and hold it, the machine will freak out that I didn't put it in the bagging area. If I don't put it there quick enough it'll lock up and need an employee to intervene. Ugh.
In my experience, Target is the only store that has consistently implemented a good self-checkout experience.
Home Depot is the only store that has a great self-checkout experience. They give you fast responsive terminals with wireless barcode scanners, just like the employees have. You can line up your goods in your cart and then checkout faster than with an employee helping.
Afaicr, HD began modernizing their self-checkout terminals ~4 years ago? I remember because it was rolling out and then pandemic happened.
People also underappreciate the internal effort (and cost) required to ship new terminals in a national chain and the drag of running a heterogeneous operation during the transition period.
It feels like 90% of UX issues could be solved with shipping over-engineered (from performance and robustness perspectives) hardware, at additional cost. Which seems like what HD did with the latest terminals.
It is probably quite common for people to put items in the bag after failing to scan them by mistake. But I guess an "a new item check" which is not very weight sensitive would be enough to counter that.
Self-checkout works best in Home Depot type of places in my experience. There are just so many items to keep track of in grocery stores.
The worst ones make it really difficult to use your own bag — no option to tell it, complains when you put your bag in the bagging area, etc. This is one of the main reasons I still go to the checkouts with human operators.
It's not even just the "unexpected item in bagging area" factor, it's that there's often way to little staff around so you spend >5 minutes waiting on any issue, sometimes more than once ("unexpected item" and then later alcohol/age check). They have exactly the same machines in Ireland and New Zealand (just with a different colour scheme, depending on the store) and while they're still crap, they're significantly less frustrating to use than Tesco or Asda in the UK because there's usually enough staff. That's been my experience with it anyway.
Do you live in a first world Western country and is your social circle comprised of people who do the same? In my experience when you go outside of that circle you start finding people who have personally experienced loss from COVID very quickly.
Covid seems to be, physically and emotionally, a primarily Western disease. And as bad as the fallout has been where I live, it seems to have been particularly damaging in the US (on both of those counts).
Seriously, the Indian variant (I forget which letter they gave it) was pretty devastating over there. I have many colleagues and they all know people who died, if not in their own family.
The official statistics on Covid deaths in India showed a mortality rate 1/10th that of the US. There would need to be more than an order of magnitude error in reporting for their death rate to exceed that of the US.
FWIW, calling it the "Indian variant" is apparently not ok. Do you mean Delta?
> More than 4.7 million people in India - nearly 10 times higher than official records suggest - are thought to have died because of Covid-19, according to a new World Health Organization (WHO) report.
> Three large peer-reviewed studies had found that India's deaths from the pandemic by September 2021 were "six to seven times higher than reported officially". A paper in The Lancet by the Institute for Health Metrics and Evaluation (IHME), an independent global health research centre, uses subnational all-cause mortality data from 12 Indian states. They come close to the WHO's estimation.
I'm aware of that, which is why I made the point that it would only bring India's Covid death rate to around the same as the US and other Western countries. It is also of no help to the discussion around my original point, which is the idea that a very large number of people don't personally know anyone who died unexpectedly of Covid.
Statistically, a social circle comprised of first world, Western, overweight and inactive and generally older folk should have the most susceptibility to death from Covid.
If that’s really the case then that’s extremely regrettable. Again I’d need hard evidence to be convinced, but I’m not going to except theft even for a cultural occasion.
They should be raising the money voluntarily and collecting donations without coercion. Otherwise they aren’t helping their cause.
I still remember the surprise when I got my first salary raise and it bumped me from the 20% bracket to the 27.5% bracket and realized I was making less money.
As far as I remember (I used to be Brazilian) the tax is applied to the difference, so 20% is discounted from the maximum for the 20% bracket, and 27.5% (and, boy, I wish I only paid 27.5% tax here) is applied to the difference.
Or am I misremembering? Maybe it's taken from the payslip, but returned with the yearly adjustment (which could make sense)
> And yeah, I also miss 27.5% tax. Ireland’s 52% marginal tax rate makes me sad every time.
OTOH, we don't have to walk through someone's living room when going to work, or buy candy from kids on traffic lights.
Equality has a price I'm more than happy to pay. I still remember how rare a sight kids selling candy on traffic lights was in the mid 2000's and it crushes my soul to see that again when I visit my family down there.
It was always progressive. A lot of people think it isn't and I have no idea where that came from. You probably misinterpreted your _holerites_ back then.
It is only in the difference between the brackets, technically you should never make less money by going into a higher bracket, just less then you expected.
Brazilian here: you are probably misremembering it, or there was some other kind of deduction happening in your payslip.
And I say this with confidence, because Brazilian tax brackets work progressively, and have worked like that since always, just like every other sane country out there.