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.
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.
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
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.
It’s all learned behaviour. If you grew up with F that makes total sense and C sounds ridiculous. If you grew up with C that’s totally intuitive for anyone, just as much as F, so using a scale that has no point outside of the weather sounds dumb. Neither system is more intuitive by any means. Both systems ave benefits and downsides.
Whenever I talk to americans and they use F I need to convert it because I grew up with C and that just makes more sense to me, even if I know the “0-100 F is according to human experience” thing. Like sure, 80F is hot, but how hot is it? Oh 27C that’s hot but not extreme.
Arguing one or the other is superior is not only pointless but also just silly
Tar Xtract Ze Vucking File
Edit: apparently someone else already mentioned this, oops
Reed hucks = redux Heather net = ethernet
You clearly don’t use this one, don’t you know lemmy instances automatically censor your ********?
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
if(condition) statement; Is valid in typical C-style syntax.
if condition { … }
Is invalid in typical C-style syntax
Is there any reason why you didn’t just switch the keyboard layout to US if that’s what you’re used to?
I switched to US at some point because many if the keys for programming were just so much easier to access. If I have to use a pc for any decent amount of time, I just switch the OS layout to US now regardless of the layout that’s printed on the keyboard.
But it would work
max width of utf8 is 32 bits from my extensive research (1 minute of googling) so it should work, right?
arxiv.org is a thing