Facebook and Google are the customers that use this feature.
Apparently. Does anyone know what they use it for?
Facebook and Google are the customers that use this feature.
Apparently. Does anyone know what they use it for?
Yeah the main reason is performance. In some languages if you use a value "linearly" (i.e. there's only ever one copy) then functional style updates can get transformed to mutable in-place updates under the hood, but usually it's seen as a performance optimisation, whereas you often want a performance guarantee.
Koka is kind of an exception, but even there they say:
Note. FBIP is still active research. In particular we'd like to add ways to add annotations to ensure reuse is taking place.
From that point of view it's quite similar to tail recursion. It's often viewed as an optional optimisation but often you want it to be guaranteed so some languages have a keyword like become to do that.
Also it's sometimes easier to write code that uses mutation. It doesn't always make code icky and hard to debug. I'd say it's more of a very mild code smell. A code musk, if you like.
You only need to check half of the string, so I think a technically optimal solution would have some take_while and maybe char_indices in there...
It's a Settlers 2 clone. It's deliberate.
Ooo Oracle loves legal battles!
LLMs don't usually make trivial language mistakes like supposively.
I think this is just a really inexperienced or unskilled developer. Or possibly a very dedicated troll.
Isn't Elixer dynamically typed?
Almost everyone uses Cargo. I think the only people that don't are Google and Facebook who will probably be using Bazel or Buck2. I think you're a bit confused about what Cargo is.
Well, in fairness imagine if Guido did become a racist sexist arsehole. I don't think he should be immune.
But clearly this situation is not right.
Nonsense, there are tons of systems like that now. I've been playing with Deno & Fresh, it's great. Trivial to install, a pretty great language, Fresh doesn't force everything to be client side - you can easily write old school completely server side rendered sites if you want but you get to use TSX which is waaaaay superior to the old text based templating systems we used to use (Handlebars, Jinja, etc.).
It also has built in hot reloading by default so even faster than PHP. Literally hit save and you see the results.
What would you use instead?
Hardware not working as well. Poor battery life. Worse game compatibility. Worse stability (yeah really). More bugs (yeah really; at this point Windows is quite a bit less buggy than Linux in my experience). More annoying to configure things / set things up usually.
Those are all only on average. Obviously there are times when Windows has bugs or sends you to the command line or fails to connect to WiFi or whatever... But by this point they're pretty rare.
I use Windows and Linux regularly and for Windows my complaints are:
For Linux:
There's definitely more that I've forgotten.
In fairness this is Linux running on a shitty Dell laptop vs Windows running on a normal desktop. Still...