b_van_b

joined 1 year ago
[–] b_van_b@programming.dev 10 points 1 month ago

I only know about the developers of Slay the Spire switching to Godot. Not the biggest name, but still well-known.

https://www.pcgamer.com/games/card-games/slay-the-spire-2-ditched-unity-for-open-source-engine-godot-after-2-years-of-development/

[–] b_van_b@programming.dev 4 points 2 months ago

I assume that left joystick up/down is axis 1, correct?

[–] b_van_b@programming.dev 4 points 4 months ago (2 children)

What would you suggest as an alternative?

[–] 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 (4 children)

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 (1 children)

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 7 points 5 months ago (1 children)

The Godot engine GUI is also made in Godot.

[–] b_van_b@programming.dev 1 points 5 months ago (1 children)

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

[–] b_van_b@programming.dev 3 points 6 months ago (4 children)

Is there anyone that you would recommend instead?

[–] b_van_b@programming.dev 21 points 1 year ago (1 children)

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

 

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 ›