tracyspcy

joined 3 years ago
MODERATOR OF
[–] [email protected] 1 points 1 month ago* (last edited 1 month ago)

yeah, I agree that there are definitely valid uses for clone(). I included it at the top of my table with a bit of humor, hence the smile. Thanks for pointing it out! ^_^

 

Rust ownership is a fundamental part of the language.

I’ve summarized the basic concepts here as a learning exercise for myself.

I’m sharing this to gather feedback, corrections, and suggestions.

Feel free to offer improvements wherever needed!

[–] [email protected] 3 points 7 months ago

Looks great!

[–] [email protected] 4 points 7 months ago (1 children)

I took some cpp examples as guidance. As for geek for geeks agree, one shouldn't blindly trust it and better use several sources. Adding more reliable sources is definitely point of improvement. I also used introduction to algorithms paperback book, but was lazy to add it as a source ^_^

 

Rust is beautiful and at the same time pretty hard language to learn. While mastering it and digging deeper, I decided to play around basic data structures and algorithms. I put a repo with some theory, implementations and examples on github mainly for myself, but maybe someone will find it helpful, or share more effective solutions. For now, just a few topics are covered, and I'm going to update it from time to time.

repo: https://github.com/tracyspacy/algos_data_structures_rust

 

I made it for myself as the simplest way to keep track of positive routines. The concept is simple: Track the activities that make up your perfect day and monitor your daily progress effortlessly. Here is also a github link for those who interested : https://github.com/tracyspacy/yacht

[–] [email protected] 8 points 10 months ago (1 children)

They didn't interact with people at all. They are wild species and just did their migration through the city to another place, as far as I understood :)

[–] [email protected] 32 points 1 year ago* (last edited 1 year ago)

one thing amazes me for sure: there is still bunch of people loudly protecting their masters' right to exploit and rob them.

And they are doing this while are already living in the world destroyed and robbed by capital, where COVID showed how vulnerable and under-financed our healthcare system is, where due to the global competition and sinking profits of corporations countries are building alliances, and preparing a new big imperialistic war for us, where crisis goes after crisis together with high inflation globally, and where quality of life is sinking monthly.

[–] [email protected] 2 points 1 year ago (1 children)

You’d just swap profit for influence instead. Look at the USSR, they had issues feeding their population, yet the people in power largely got whatever they wanted. See the famous trip Boris Yeltsin took to a Texas grocery store. At least in those days, capitalism handily beat communism in providing a variety of foods to the average person.

I cannot accept your argument since variety of brands for similar product in the store doesn't mean society can feed itself. It is wrong angle to see on the object. Since there is various of factors which could easily destroy such logic from quality of food to affordability (simple a lot of product in store, but people cannot buy it). Much better metric is satisfying the need, in our case in food. So in our case we should look at calories consumption and nutritional value. Look at cia document where conclusion is "American and Soviet citizens eat about the same amount of food each day but the Soviet diet may be more nutritious".

[–] [email protected] 2 points 1 year ago

Countries which prevent markets from operating efficiently tend to do really poorly over time. The more authoritarian, the worse they perform.

In general it means less government control over the markets. And less means libertarian concept (see article again). If you mean something in between , there is need in very detailed scale to find difference between current regulated markets, non regulated markets (libertarian nonsense) and balance that you want.

[–] [email protected] 2 points 1 year ago (4 children)

hehe considering market propaganda in education, on every media it is hard for me to not challenge my "belief" on a daily basis.

unfortunately in your comment you repeating neoliberal propaganda, please check guardian article on "free market zone libertarian experiment" tldr it led to low wage sweatshops and workers repression (and spoiler even this libertarian experiment relied on governmental support)

[–] [email protected] -1 points 1 year ago (7 children)

for sure, there are many essential needs beyond housing and food. I cannot agree that it works well with food either, starving still exist even in "developed" countries. It looks you are trying to a patch something that really flawed. Unfortunately it is not a way. We should move away from profit oriented society and away from human exploitation.

[–] [email protected] 25 points 1 year ago* (last edited 1 year ago) (6 children)

depends on problem you are going to solve, if you want to provide people with affordable housing, then challenge your beliefs in almighty market.

view more: next ›