![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/170721ad-9010-470f-a4a4-ead95f51f13b.png)
Technically this is also possible with for loops, like with OpenMP
Technically this is also possible with for loops, like with OpenMP
Compiler optimizations like function inlining are your friend.
Especially in functional languages, there are a lot of tricks a compiler can use to output more efficient code due to not needing to worry about possible side effects.
Also, in a lot of cases the performance difference does not matter.
Also surely a lot of people would know tar -Create Ze Vucking File and/or tar -Xtract Ze Vucking File
Funny story actually. After year 1 I was in peak condition, year 2 was normal, year 3 I gained weight. Year 1 I worked slowest and year 3 fastest. I just became way more efficient :p
I was garbage collector for 3 years as student job.
Not a single person in the company has done such a thing. We did dumb shit all the time but that wasn’t even close. I feel sorry that you decided that 1 person represents a whole industry
As long as you use proper lifting form it’s not that hard on your back. Without it you won’t last long though.
Also here in belgium all garbage collectors I know earn more than the teachers I know.
You get most of the day off after having worked a full day + still need a full and thorough shower + have low energy because it’s a physically demanding job
Src: did it for 3 years as student job
Running is not as extreme as you think, a lot of it is just carrying on the momentum of the truck after you jump off, other tham that it’s mostly just brisk walking.
The heavy stuff depends, regulations typically impose a limit on weight but a lot of people don’t follow it. You learn to use proper lifting form quite quickly though or you’ll get a hernia
Src: did it for 3years as student job
It’s honestly not that shitty of a job (see my earlier comment https://programming.dev/comment/8949488 )
Source: did it as student job for 3 years.
Fun fact: the main reason garbage collection is unhealthy is because you spend all day in the fumes of public roads & the truck you’re hanging behind.
Source: was garbage collector for 3 years as student job & we got a small hourly bonus for it.
Did it as a student job for 3 years. I was paid roughly 50% more than with all other student jobs.
Honestly collecting garbage is not even that bad. I got paid to do fitness all day, spending time outside while chatting with my coworker. The people sorting the trash, that was who we felt bad for. They had all the downsides of the job with none of the benefits.
You mean that instead of having a binary blob you have a generator for the data?
Depends on how deep down the rabbit hole you want to go :p
Dogmatic statements like this lead to bad, messy code. I’m a firm believer that you should use whatever style fits the problem most.
Although I agree most code would be better if people followed this dogma, sometimes mutability is just more clean/idiomatic/efficient/…
In functional programming, everything is seen as a mathematical function, which means for a given input there is a given output and there can be no side effects. Changing a variable’s value is considered a side effect and is thus not possible in pure functional programming. To work around this, you typically see a lot of recursive and higher order functions.
Declaring all values as const values is something you would do if you’re a diehard functional programmer, as you won’t mutate any values anyway.
Reed hucks = redux Heather net = ethernet
Oh no, strangers on the internet know I had sex and there were dog-like noises! That’s the exact same as people who know me IRL such as family or coworkers! I shall now sink through the ground in shame!
Is that just like the shared memory model of parallel computing or are there any added complications? Have you done this before? Please do share your experiences if so cause now I’m interested :p
FreeRTOS tasks are basically processes, IIRC other rtoses have similar mechanics too
While you do have a fair point, I was referring to the case where one is basically implementing a map operation as a for loop.