Searching We.Love.Privacy.Club

Twts matching #lang
Sort by: Newest, Oldest, Most Relevant

Accord entre l’UE et les États-Unis: le nĂ©gociateur du Parlement est aussi un ami du secteur automobile 
Les eurodĂ©putĂ©s voteront dĂ©finitivement, mardi 16 juin, sur la partie tarifaire du deal passĂ© entre la prĂ©sidente de la Commission europĂ©enne, Ursula von der Leyen, et le prĂ©sident Ă©tats-unien, Donald Trump. La version finale du texte doit beaucoup Ă  Bernd Lange, social-dĂ©mocrate allemand fĂ©ru de libre-Ă©change. ⌘ Read more

​ Read More

‘A Surreal Thing’: Avengers: Doomsday’s Paul Rudd Discusses Reprising Ant-Man Role
Paul Rudd has revealed his ‘surreal’ feelings on returning as Ant-Man with Avengers: Doomsday. The acclaimed actor first played the fan-favorite role of Scott Lang in 2015’s movie Ant-Man, followed by two more installments in the trilogy. What did Paul Rudd say about Avengers: Doomsday? Paul Rudd recently spoke with Variety and discussed his experience [
]

The 
 ⌘ Read more

​ Read More

Avengers: Doomsday Will Give Paul Rudd’s Ant-Man a Shocking Role
Paul Rudd’s Ant-Man is shifting from comedic relief to a surprising role in Avengers: Doomsday. Rudd will reprise the role of Scott Lang three years after he was last seen in Ant-Man and the Wasp: Quantumania. At the end of that film, Lang was shell-shocked by the impending arrival of the Council of Kangs. The [
]

The post [Avengers: Doomsday Will Give Paul Rudd’s Ant-Man a Shocking Role](htt 
 ⌘ Read more

​ Read More

Ikone zwischen Glamour und Rebellion
Norma Jeane Baker, besser bekannt als Marilyn Monroe, gilt als Ikone des 20. Jahrhunderts. Dass die Faszination mehr als 60 Jahre nach ihrem frĂŒhen Tod ungebrochen ist, liegt an der Vielschichtigkeit der Person und des PhĂ€nomens Monroe: Lange auf ihr Image als Sexsymbol reduziert, war sie zugleich Pionierin, die gegen Studios kĂ€mpfte, Hollywoods Regeln fĂŒr Frauen neu schrieb – und als Intellektuelle unterschĂ€tzt wurde. Am 1. Juni 2026 wĂ€re sie 100 Jahre alt geworden. ⌘ Read more

​ Read More
In-reply-to » @movq Thanks. I noticed the <updated> of the feed, too. But for some reason, some articles were suddenly marked as new.

Aha, yesterday’s newly added support for LC_TIME to render localized timestamps also broke the feed parsing with my LANG=de_DE.UTF-8 and LC_CTYPE=de_DE.UTF-8 environment. :-)

Atom feeds make use of RFC 3339 timestamps. They are first converted into RFC 882 timestamp representation, which is the one that RSS feeds use. However, this conversion now results in localized RFC 882 timestamps, which cannot be parsed into Unix timestamp numbers via curl_getdate(
). I bet that it doesn’t know about the localization at all and expects English month and weekday names. Looking at its docs, I reckon that function was selected because of its myriad of supported timestamp formats: https://curl.se/libcurl/c/curl_getdate.html RFC 3339 is not included, though, hence the transformation up front.

The intermediate Item objects in the parser domain use std::string for the timestamp representation. This isn’t all that silly, because Newsboat supports all sorts of different feed formats with different timestamp formats. These RFC 883 timestamps are centrally parsed into time_t.

Speaking of time: It’s time to go to bed after this late bug hunting fun. :-)

​ Read More

Taiwan als Spielball der Interessen
Die Themenliste fĂŒr die am Donnerstag geplanten GesprĂ€che zwischen US-PrĂ€sident Donald Trump und seinem chinesischen Amtskollegen Xi Jinping in Peking ist lang. Ein zentraler Punkt auf der Tagesordnung wird Taiwan sein. Die demokratisch regierte Insel gilt als besonders heikler Punkt in den Beziehungen zwischen China und den USA. Beobachter fĂŒrchten, dass Trump etwa in der Frage der US-WaffenverkĂ€ufe an Taiwan einknicken könnte. ⌘ Read more

​ Read More
In-reply-to » Trying an experiment. Created a Github repo for mu over at https://github.com/prologic/mu as a social experiment to see if we can maintain a tailored Github docs-only repo of a project, see if it gets any interest đŸ€”

@prologic@twtxt.net (While browsing through that, I noticed that https://mu-lang.dev/ itself doesn’t really mention the source code repo, does it? đŸ€” Like, the quickstart guide begins with “Build the host: go build ./cmd/mu”, but where’s the git clone 
 command? 😅)

I’m not really sure what the goal is. đŸ€” Do you want to get pull requests for the docs? Or bug reports for mu itself? đŸ€”

​ Read More

Okay, here’s a thing I like about Rust: Returning things as Option and error handling. (Or the more complex Result, but it’s easier to explain with Option.)

fn mydiv(num: f64, denom: f64) -> Option<f64> {
    // (Let’s ignore precision issues for a second.)
    if denom == 0.0 {
        return None;
    } else {
        return Some(num / denom);
    }
}

fn main() {
    // Explicit, verbose version:
    let num: f64 = 123.0;
    let denom: f64 = 456.0;
    let wrapped_res = mydiv(num, denom);
    if wrapped_res.is_some() {
        println!("Unwrapped result: {}", wrapped_res.unwrap());
    }

    // Shorter version using "if let":
    if let Some(res) = mydiv(123.0, 456.0) {
        println!("Here’s a result: {}", res);
    }

    if let Some(res) = mydiv(123.0, 0.0) {
        println!("Huh, we divided by zero? This never happens. {}", res);
    }
}

You can’t divide by zero, so the function returns an “error” in that case. (Option isn’t really used for errors, IIUC, but the basic idea is the same for Result.)

Option is an enum. It can have the value Some or None. In the case of Some, you can attach additional data to the enum. In this case, we are attaching a floating point value.

The caller then has to decide: Is the value None or Some? Did the function succeed or not? If it is Some, the caller can do .unwrap() on this enum to get the inner value (the floating point value). If you do .unwrap() on a None value, the program will panic and die.

The if let version using destructuring is much shorter and, once you got used to it, actually quite nice.

Now the trick is that you must somehow handle these two cases. You must either call something like .unwrap() or do destructuring or something, otherwise you can’t access the attached value at all. As I understand it, it is impossible to just completely ignore error cases. And the compiler enforces it.

(In case of Result, the compiler would warn you if you ignore the return value entirely. So something like doing write() and then ignoring the return value would be caught as well.)

​ Read More

fn sub(foo: &String) {
    println!("We got this string: [{}]", foo);
}

fn main() {
    // "Hello", 0x00, 0x00, "!"
    let buf: [u8; 8] = [0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x00, 0x00, 0x21];

    // Create a string from the byte array above, interpret as UTF-8, ignore decoding errors.
    let lossy_unicode = String::from_utf8_lossy(&buf).to_string();

    sub(&lossy_unicode);
}

Create a string from a byte array, but the result isn’t a string, it’s a cow 🐼, so you need another to_string() to convert your “string” into a string.

I still have a lot to learn.

(into_owned() instead of to_string() also works and makes more sense to me, it’s just that the compiler suggested to_string() first, which led to this funny example.)

​ Read More
In-reply-to » So I was using this function in Rust:

@lyse@lyse.isobeef.org Rust is so different and, at the same time, so complex – it’s not far fetched to assume that I simply don’t understand what’s going on here. The docs appear to be clear, but alas 
 is it a bugs in the docs? Is it a lack of experience on my part? Who knows.

By the way, looks like there was a bit of a discussion regarding that name:

https://github.com/rust-lang/rust/issues/120048

​ Read More

So I was using this function in Rust:

https://doc.rust-lang.org/std/path/struct.Path.html#method.display

Note the little 1.0.0 in the top right corner, which means that this function has been “stable since Rust version 1.0.0”. We’re at 1.87 now, so we’re good.

Then I compiled my program on OpenBSD with Rust 1.86, i.e. just one version behind, but well ahead of 1.0.0.

The compiler said that I was using an unstable library feature.

Turns out, that function internally uses this:

https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.display

And that is only available since Rust 1.87.

How was I supposed to know this? đŸ€šđŸ«©

​ Read More

**(#jwfdkuq) “`

default_lang = en discovery_url = https://example.com/discovery/ follow = alice https://example.com/alice.txt ABCDEF12 fo 
**

”`

default_lang = en discovery_url = https://example.com/discovery/ follow = alice https://example.com/alice.txt ABCDEF12 follow = alice gemini://example.com/alice.txt avatar =

Image

avatar = gemini://example.com/avatar/alice.png

1 2025-03-03T15:00:00-04:00 {lang=en} Hello, world! Welcome to my twtxt feed. UTF-8 check: Ă©, ö, ĂŒ.
2 2025-03-03T15:05: 
 ⌘ Read more

​ Read More

cli/q: đŸŒ± A simple programming language. - q - Projects I really like this little q lang that Ed has created ❀ Really nice and simpler, g 

cli/q: đŸŒ± A simple programming language. - q - Projects I really like this little q lang that Ed has created ❀ Really nice and simpler, great design and implementation and really lovely cross-platform compiler supporting DOS, Windows, Darwin and Linux on AMD64 and ARM64 đŸ’Ș ⌘ Read more

​ Read More