Avatar
techfeudalist
98a386c766ac9250f4ce1b500662fd08e4d464a1915743eedc83bd50521decac
Blessed by tech; working to bring the benefits to everyone. Freedom, incorruptible money, privacy.

I built a entire app in rust without needing to use (manually define) lifetimes. I suspect it’s one of rust’s parts that can be learned later (when you need to use it).

Don’t worry. You’ll hate rust until you love it. Get ChatGPT to explain and illustrate by writing code snippets for you.

Rust forces you to understand how to build thread safe and memory safe code.

ChatGPT… 😀

…In Rust, a Mutex (short for mutual exclusion) is a concurrency primitive used to protect shared data from simultaneous access by multiple threads. It allows only one thread at a time to access the data it protects, ensuring that no two threads modify the same piece of data at the same time, which could cause data races.

Here is a basic example of a Mutex use in Rust:

```rust

use std::sync::{Arc, Mutex};

use std::thread;

fn main() {

let counter = Arc::new(Mutex::new(0));

let mut handles = vec![];

for _ in 0..10 {

let counter = Arc::clone(&counter);

let handle = thread::spawn(move || {

let mut num = counter.lock().unwrap();

*num += 1;

});

handles.push(handle);

}

for handle in handles {

handle.join().unwrap();

}

println!("Result: {}", *counter.lock().unwrap());

}

```

This program creates a Mutex-protected counter shared among ten threads, each of which increments the counter once. Note that `Arc` is used to enable shared ownership of the Mutex across multiple threads. The `lock` method locks the Mutex and returns a guard, `MutexGuard`, that dereferences into the protected data. The guard also automatically releases the lock when it's dropped.

If a thread can't lock a Mutex because it's already locked by another thread, it'll block until the Mutex is unlocked. The `unwrap()` method is used here to handle potential lock poisoning: if a thread panics while holding the lock, subsequent lock attempts will fail with an error. By calling `unwrap()`, we choose to panic in such cases.

Yes, it takes a bit to get comfortable, but for me, I found my velocity increase. I wasn’t fighting bugs as much.

Ever wondered why bitcoiners try to eliminate seed oils from their diet?

Seed oils are extracted from the seeds of plants like soybeans, sunflowers, corn, and canola. You’ll find them everywhere in processed foods and in restaurants.

These oils are predominantly polyunsaturated fatty acids (PUFAs) which are particularly prone to oxidization. This is a reaction that produces harmful compounds known as free radicals that degrade celular function. Oxidized PUFAs play a role in many chronic diseases like heart disease, cancer, and neurodegenerative diseases.

So, what do I do?

I avoid seed oils, particularly in cooked or fried foods because heating accelerates oxidation.

I cook with saturated or monounsaturated fats like coconut, ghee or avocado because heat doesn’t oxidize these oils as quickly.

I prioritize consuming fats from fresh foods (saturated fats from red meat) and monounsaturated fats from avocados (plus olive oil). Fresh food lowers the oxidation of these oils.

I also supplement with fish oils in my diet. These are a special type of PUFAs (omega-3s with EPA and DHA) which might reduce inflammation and offset the seed oils I can’t avoid consuming. I worry about these being old and oxidized but I don’t like eating fish. 🤷‍♂️

I feel for these students. They were sold an expensive, in many cases worthless, education by their parents and counselors relying on lies told by academia.

Ultimately the big winners here are the universities who will just increase tuition even faster knowing the taxpayers will pay the bill using more debt.

https://www.cnbc.com/2023/07/14/biden-forgives-39-billion-in-student-debt-for-some-800000-borrowers.html

Watch how ChatGPT “knows” that its leftist programming is not rational.

Echoing what I said below. Messed up ruling.

https://prestonbyrne.com/2023/07/13/ripple-labs-ruling-throws-u-s-crypto-token-regulation-into-disarray/ nostr:note1u5wlfsn38ldm4f2nxv0jxjzqn5n02r7kewpuqdwe9aqvdzhrfuqqu97r5z

Thinking about that XRP court ruling. From what I can tell, the SEC has some good arguments on appeal. So it likely heads there next.

The court basically found that sometimes a crypto isn’t a security when the same crypto is a security to other people.

Not a decision I expected. Let’s see what happens on appeal.

If that decision is allowed to stand, I suspect the SEC (or congress) will be forced to provide more detailed guidance and the older shitcoins will be beneficiaries. That might extend the crypto wars a while longer.

It’s very close to the Park.

Also, make sure you head down to Broadway one night when they close off the street. Awesome party. Great energy and live music pouring out of every venue. You might not want to leave. 😀

In the good ol’ days, I could arrive about 10 mins before boarding and still make my flight.

It’s interesting to watch the decline in all our social systems. Once we fix the world, we’ll make things function again.