1,487 karma · joined December 5, 2016
Only money
Bullshit, they could've done it anywhere else, it just happened to be there. The idea that "San Francisco" empowered anything is just complete delusion, it was the people that did it.
It's not just lifetimes, a basic Rust function can expose the ideas of exclusive and non-exclusive ownership, traits, generics with and without trait bounds, algebraic data types, closures, closures that move, async, async blocks, smart pointers, macros, trait objects, etc etc.
There is absolutely a learning curve and it makes me understand why Golang is the way it is. The language authors of Golang saw the business needs of Google, realized that they need to get domain experts that are not programming savants to write code and created a language that would allow the largest number of non programmer domain experts be productive coders.
That being said, the Golang developers went too far and let too many of their biased ideas for what is "simple" infect the language. In what way is it simple for a language to not be null safe. I have a bunch of other complaints too.
But anyway, I don't think Rust is going to be a revolution in writing software unfortunately. I don't think enough people will be able to learn it for companies to be able to hire for Rust positions.
So to use the foot gun analogy, if you don't know the stuff in the article you wont even be able to pull the trigger.
An actual footgun is something like monkeypatching in python or ruby. Or running for_each with an async callback in javascript.
You can replicate iter() with `(&x).into_iter()` and you can replicate iter_mut() with `(&mut x).into_iter()` and obviously `x.into_iter()` consumes the contents.
Skip the whole weak rc nonsense and jump directly to using an allocator (like slotmap) when dealing with cyclic data structures. Wrap the allocator in a a struct to allow for easy access and all the difficulty from rust cyclic datastructures disappears.
When I first started using react I loved it compared to what existed at the time, the ease of composing everything and the fact that it just used JS instead of a DSL for templating and it didn't mandate all these cargo-culted framework patterns.
But the warts are really starting to show up, writing React today with useEffect hooks everywhere reminds me of writing VHDL in college to simulate an automated train controller and now I'm reaching for things like XState to handle almost all state management (I have a feeling this complexity ends up appearing for all complex UI interactions though).
Also we are taking on a type system (which is good) but not seeing any of the performance benefits that could bring. Why is golang more than 100% faster than typescript? Both are statically typed languages but TS doesn't get any compiler optimizations because of the JS baggage.
That being said, I'll take JS with React + React Native if it means I can write apps once and ship to all three major platforms. It's exciting that ui frameworks like Tamagui allow for close to 90% code sharing.
What citations are needed? This is obviously materially different than you finding some vhs that you can only watch at specific times when your parents aren't home. Children have unlimited access to every single type of pornography and can watch it whenever they are left alone in their room with a computer or phone.
edit: "Citations needed" is an extremely lazy way to respond to an argument that is extremely counterproductive and almost every time it's used it's done in bad faith to derail the conversation.
Hm, so you think it's better for the world for poor people to not have access to information via tools like Google?
I think the fact that you need to use emotionally loaded language like spyware to make your argument really detracts from it.
Ha sure. Ok, which brand of socialism do you support and why? Socialism is a sad joke, socialists group under a banner that does not even exist in reality.
Socialism: social control of the means of production
What does that even mean in practice? Nobody knows. This is why socialists and communists always end up killing each other.
//
//
//
edit: because I'm getting rate limited because socialists like to flag posts they disagree with, my response to the post below:
> Yes, worker cooperatives exist and are successful. Mondragon[1] is probably the biggest and most well known
Small private corporations that are worker run under capitalism is a very unique definition of socialism. Socialism under the silly wikipedia definition you provided mandates social ownership of the means of production. For something to be considered socialist, property rights need to be abolished and "control" needs to be redistributed in some manner. Of course "control" is in quotes because under socialism nobody owns anything, "society" owns it. Workers don't really have control either because they can't choose to sell their control, that would obviously just be capitalism with extra steps.
Nobody ever actually explains the details of any of this. The communist manifesto gets close because Marx clearly understood that to steal from people you need to kill them but he never actually prescribes the details of running the damn thing after killing all the property owners.
> In other words, there are any number of ways social control can be constructed, and has been constructed. Some more successful than others
In other words you did not contradict anything I said.
> Social control through the state of large segments of the economy has been perfectly successful both in the US and in Europe.
Perfectly successful under what definition? Neither the US or Europe have complete social control of the means of production and the little control they do exert is widely known to be extremely wasteful and inefficient.
> Driven on a road? Congrats, you've benefited from social control of infrastructure
The roads are terrible and filled with pot holes in San Francisco. The sidewalks are covered in shit. The storm drains did not function when a small storm passed the city. Please don't tell me they need more money to fix those problems.
Capitalism means literally everything to everyone, it's absurd at this point.