702 karma · joined January 30, 2022
Whenever questions like why are they afraid of progress, it's for common good etc come up (which I feel are based on morality) , it makes sense to imagine yourself in their shoes and see what you would do.
I think majority wouldn't know what hit them when the time comes. My experience with chatgpt has been highly positive changing me from a skeptic to a believer. It takes a bit of skill to tune the prompts but I got it to write frontend, backend, unit test cases, automation test cases, generate test data flawlessly. I have seen and worked with much worse developers than what this current iteration is.
What they would lack in the short and medium term are high tech products like chips, advanced medicine.
Given enough time and drive any energy and food surplus society can reinvent the high tech stuff.
Of course it doesn't mean they would, seeing how corrupt the whole ruling class is. But it is theoretically possible for them to be totally independent of the rest of the world. They are blessed with too many natural resources to not be able to do it.
And the rust ORM libraries are catching up with other languages so there is no additional advantage from picking a gc collected language.
So why are these companies still shedding jobs? I'm starting to wonder if the tech industry is disproportionately impacted similar to dot com bubble from 2000.
I agree it's not an easy language to pickup, but the use case you mentioned is a pretty common one and there are several ways to solve it. For example, any kind of config reading from a file needs it. Similarly, connection pools for DB etc are shared this way so its not an uncommon use case in day to day usage of Rust.
1) Use lazy_static crate 2) Use a arc wrapped rwlock
I'm currently using it for developing rest api using the excellent warp crate and I wish more people use it for this use case as its quite suited for it.
China also does this to ensure home grown tech eco system while at least being more truthful about.
Another thing that works is setting a not so exciting but also not so boring tv series playing on your mobile next to you and do work while it plays on. Again no clue how or why it works. My pet theory is that adhd brains just like multi tasking and keeping a portion of extra bandwidth zoned out is helpful in not getting distracted.