[-] b_van_b@programming.dev 3 points 4 months ago* (last edited 4 months ago)

This setting appears to work for me. It shows up as blocked in the logs. I've also blocked it in NoScript for good measure.

[-] b_van_b@programming.dev 14 points 4 months ago

I assume it's because many people outside the USA are accustomed to taking off their shoes when entering a house or apartment.

[-] b_van_b@programming.dev 1 points 5 months ago

According to GitHub, development of DevToys predates it-tools by a year. If anything, I'd say they're both inspired by CyberChef.

[-] b_van_b@programming.dev 1 points 5 months ago

Dart for web just transpiles to JavaScript, doesn't it?

[-] b_van_b@programming.dev 5 points 5 months ago

What's the image? I just get an error message.

[-] b_van_b@programming.dev 1 points 5 months ago

How big is the context window for the free version? I haven't found any information about it.

[-] b_van_b@programming.dev 21 points 1 year ago

I use stars to keep a list of repositories I'm interested in. You can even put them in different categories, like browser bookmarks.

[-] b_van_b@programming.dev 5 points 1 year ago

Why did deno fade?

[-] b_van_b@programming.dev 5 points 1 year ago

Click on the star next to the share icon.

-3
[-] b_van_b@programming.dev 1 points 1 year ago

Thanks for the detailed explanation! I guess the main takeaway is that a reference can never be converted back into an owned value. Later content in the book also gave more information about when you have the right to transfer ownership.

18

I'm going through the interactive version of The Book, and I'm confused by the results of an exercise in Ch 4.3 - Fixing Ownership Errors.

The following code does not work, and they say it's because it would result in the same heap space being deallocated twice:

fn main() {
    let s = String::from("Hello world");
    let s_ref = &s; // reference s
    let s2 = *s_ref; // dereference s_ref
    println!("{s2}");
}

But in my mind, this should be equivalent to the following compilable code, which transfers ownership of s to s2 :

fn main() {
    let s = String::from("Hello world");
    let s_ref = &s; // reference s
    let s2 = s; // move s directly
    println!("{s2}");
}

If s_ref is a reference to s, then dereferencing s_ref should return the String s, shouldn't it? Why can't s be moved to s2 with either the above code or let s2 = *&s;, which fails in the same way?

view more: next ›

b_van_b

joined 1 year ago