philm

joined 1 year ago
[–] [email protected] 3 points 1 year ago (33 children)

Rookie numbers, it's probably 15% on my screen, There's space for a lot more rainbows

[–] [email protected] 4 points 1 year ago (1 children)

"easily" solve it.

FTFY

[–] [email protected] 4 points 1 year ago (40 children)

And we're about to enter the fourth rainbow dimension in the next comment...

[–] [email protected] 4 points 1 year ago (42 children)

We're in the third rainbow, keep building more stripes lol

[–] [email protected] 1 points 1 year ago

Depends on what trait bound error messages you have had yet, I had 1000 lines long already, where it's not obvious at all what is meant (and is often a very simple fix). But I'm sure this will get better over time, there's already a bigger ongoing redesign of the type system solver, so maybe it will be integrated into stable rust soon.

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (16 children)

but effectively it's bash, I think /bin/sh is a symlink to bash on every system I know of...

Edit: I feel corrected, thanks for the information, all the systems I used, had a symlink to bash. Also it was not intended to recommend using bash functionality when having a shebang !#/bin/sh. As someone other pointed out, recommendation would be #!/usr/bin/env bash, or !#/bin/sh if you know that you're not using bash specific functionality.

[–] [email protected] 8 points 1 year ago

That only really works, if the method is self-contained, and written in a language that GPT has seen often (such as python). I stopped using it, because for 1 in 10 successful tries I waste time for the other 9 tries...

[–] [email protected] 4 points 1 year ago (2 children)

This.

If I'm writing something slightly more complex, ChatGPT(4) is mostly failing.

If I'm writing complex code, I don't even get the idea of using ChatGPT, because I'm only getting disappointed, and in the end waste more time trying to "engineer" the prompt, only to get disappointed again.

I currently cannot imagine using ChatGPT for coding, I was excited in the beginning, and it's sometimes useful, but mostly not really for coding...

[–] [email protected] 3 points 1 year ago (1 children)

Has it though?

AFAIK it has like 4k tokens which roughly translate to 3k words or something like that.

The API has 8k or even 32k (this model should be interesting for something like that, unfortunately still don't have access to it...)

So the docs have to be rather short, that it gets all the relevant stuff, or am I missing something?

[–] [email protected] 3 points 1 year ago

I mean yeah, dynamic libraries are great if used correctly (via something like Nix), but the unfortunate truth is, that they are not used correctly most of the time (the majority of the Unix and Windows landscape is just a mess with dynamic libraries).

With modern systems programming (Rust) the disadvantages of static compilation slowly fade away though via e.g. incremental compilation.

That said dynamic libraries are still a lot faster to link and can e.g. be hot-swapped.

[–] [email protected] 2 points 1 year ago (1 children)

Is this a hard error? Like it doesn't compile at all?

Isn't there something like #[allow(unused)] in Rust you can put over the declaration?

view more: ‹ prev next ›