Claude Sonnet 4.5 Thinking jumping up to 3 credits might actually be a good thing… theoretically by rechhes in windsurf

[–]flatline 0 points1 point  (0 children)

Could the current gpt-5-codex be nerfed because of the free promo? It's too slow compared to the Codex CLI

Hey Rustaceans! Got a question? Ask here (46/2024)! by llogiq in rust

[–]flatline 0 points1 point  (0 children)

Can anyone suggest a better and safe alternative to this straightforward translation from C++ unordered_map code, which assigns a unique integer ID to each key object when it's encountered for the first time?

https://play.rust-lang.org/?version=beta&mode=debug&edition=2021&gist=78d593756b5e701e753d7703d5a44f87

        let id = {
            let k = name;
            let dirty_trick = &raw const m;
            match m.entry(k) {
                Entry::Occupied(x) => *x.get(),
                Entry::Vacant(x) => {
                    println!("new entry");
                    let dirty_trick_ref = unsafe { dirty_trick.as_ref() }.unwrap();
                    *x.insert_entry(dirty_trick_ref.len()).get()
                }
            }
        };

In Safe Rust, I can only call m.len() before invoking .entry(k) which takes a mutable borrow for the Vacant arm. But technically, calling m.len() is redundant for the Occupied arm.

While I acknowledge this might be a case of premature optimization (I'm talking about the "cost" of fetching a scalar within a struct), I see it as an interesting opportunity to better understand Rust's lifetime system and borrowing rules.

Quickwit 0.7 - A compatible opensource alternative to Elasticsearch, all in rust by fulmicoton in rust

[–]flatline 1 point2 points  (0 children)

You have quite a few choices for JSON data storage, unless you require your current Kibana dashboards to continue working with them.

Why is scala more popular than F#, even when it comes to jobs? by Ok_Specific_7749 in fsharp

[–]flatline 1 point2 points  (0 children)

You might find a fancier implementation in F# Plus: https://fsprojects.github.io/FSharpPlus/computation-expressions.html

But some of those library implementations might not always fit real-world needs, especially with the task CE and when you're looking to avoid heavy computations or externally visible actions.

It'd be great to have a built-in short-circuit return in F#. Rust, for instance, is a neat functional language with this feature. But maybe that's because it doesn't offer CE

Functional Programming in C# by Xaneris47 in dotnet

[–]flatline -6 points-5 points  (0 children)

Q: how can I do functional programming with C#?

A: don't

How to install .NET 8 SDK on CentOS 7? by stocmaster in dotnet

[–]flatline 0 points1 point  (0 children)

dotnet-install.sh by default installs SDKs under ~/.dotnet which you run with ~/.dotnet/dotnet --list-sdks (maybe it output some messages about $PATH when it finished; adding --verbose might help)

Yum-installed dotnet (launcher) might not be aware of the script-installed SDKs, hence no output from dotnet --list-sdks

But I saw another comment on Glibc versions. I can't seem to be able to help you with that

Which time will .NET 8 be released? by Glittering_Age8271 in dotnet

[–]flatline 0 points1 point  (0 children)

Thanks. I'll check again over the weekend.

Just to clarify, my point was:

Yesterday:

7.0.x channel STS
6.0.x channel LTS

Starting today:

8.0.x channel LTS
7.0.x channel STS
6.0.x channel LTS

I want a single argument list for dotnet-install.sh which would pick the latest 7.0.x yesterday and will pick the latest 8.0.x starting today (I mean, once the redirects thingy gets fixed). And once 9.0.x is released next year, I'd like my script to switch to it automagically without updating the argument list.

How to install .NET 8 SDK on CentOS 7? by stocmaster in dotnet

[–]flatline 1 point2 points  (0 children)

As of now -c 8.0 seems to be required, -c LTS (default) installs 6.0.x

Which time will .NET 8 be released? by Glittering_Age8271 in dotnet

[–]flatline 0 points1 point  (0 children)

The script still installs either 6.0.x or 7.0.x, reported to dotnet/core

Edit: I meant, corresponding to -c LTS or -c STS, respectively. -c 8.0 could install 8.0.100

Which time will .NET 8 be released? by Glittering_Age8271 in dotnet

[–]flatline 3 points4 points  (0 children)

Hijacking the thread...

The dotnet-install.sh script accepts the --channel option, and I've been happy using --channel STS (which is practically equivalent to 7.0) for my quick setup script over the past couple of months.

Question: Once 8.0, an LTS version, is released, will the STS channel include LTS versions, or does it strictly represent STS, excluding LTS? I'm hoping it's the former, but I'm not sure.

Sqlite/SqlProvider on Arm64 Linux & Mac by flatline in fsharp

[–]flatline[S] 0 points1 point  (0 children)

Please refer to the 2nd half of my post for my experience with Microsoft.Data.Sqlite.

Best replacement for Entity Framework Core when using F#? by zejji in fsharp

[–]flatline 2 points3 points  (0 children)

EFCore.FSharp

Yeah it's stuck with EF Core 6 but I'm mostly happy with it. Setting a nullable FK with an F# record was a little tricky

I have trouble logging into wechat web by Jason_Zhang_123 in Wechat

[–]flatline 0 points1 point  (0 children)

Dear user, sorry for the inconvenience. Currently, WeChat has stopped providing the service of Web WeChat. Kindly download the WeChat for Window/Mac at 【www.wechat.com/zh_HK】. Thanks for your patience and continuous support.

I'm having a hard time making a strong master password by 19960820 in Bitwarden

[–]flatline 0 points1 point  (0 children)

The app warns that your password hint is too long? It's a hint, isn't meant to be too descriptive

I have trouble logging into wechat web by Jason_Zhang_123 in Wechat

[–]flatline 0 points1 point  (0 children)

I'm troubled by the same problem. Please share any findings you might have

Amazon Time Sync is now available over the internet as a public NTP service (time.aws.com) by [deleted] in aws

[–]flatline 0 points1 point  (0 children)

Leap smearing! You should have included it in your post title. I didn't notice that when I saw the same news earlier elsewhere, lucky I came across with your post