KindaABigDyl

joined 2 years ago
[–] KindaABigDyl@programming.dev 1 points 5 months ago

I mean, it's fine. And if you can't find something the NixOS subreddit is usually pretty helpful

[–] KindaABigDyl@programming.dev 10 points 5 months ago

I have another one:

30min of fighting with an LLM can save you 10s of boilerplate

[–] KindaABigDyl@programming.dev 13 points 5 months ago* (last edited 5 months ago) (1 children)

❌ Imperative

❌ Functional

❌ Object-oriented

❌ Stack-oriented

❌ String-replacement

✅ Rat-Oriented

[–] KindaABigDyl@programming.dev 23 points 6 months ago

GLFW is a C library, not a C++ one, and an old one at that, and so the reason is that a long time ago, there was no bool in C. Every library would make their own true and false bc it's handy to have.

Nowadays, the type _Bool has been added to C, and C++ has built-in bool, but you can still see the legacy of no boolean in C as to use the type name "bool" as well as the key words "true" and "false" for 1 and 0, you have to include "stdbool.h," as well as in custom types in these old GL-adjacent libraries.

[–] KindaABigDyl@programming.dev 21 points 6 months ago (1 children)

And that's why I don't use Python for anything more than simple scripts

[–] KindaABigDyl@programming.dev 4 points 7 months ago* (last edited 7 months ago)

Could I do:

signature primes_less_than(x: number) -> [number]
example primes_less_than(2) = []
example primes_less_than(10) = [ 2, 3, 5, 7 ]
primes_less_than(10582319112759318014901241439012831231539517)

?

I don't pay for OpenAI, so I can't try the playground

[–] KindaABigDyl@programming.dev 0 points 9 months ago

This response needs more up votes

[–] KindaABigDyl@programming.dev 2 points 9 months ago (1 children)

What packaging types are there for Rust? Isn't everything just source-based through cargo?

[–] KindaABigDyl@programming.dev 12 points 9 months ago

Rust and Haskell (I think Haskell counts)

[–] KindaABigDyl@programming.dev 30 points 9 months ago* (last edited 9 months ago) (5 children)

Pantheon desktop from elementaryOS.

You can use it on their distro (Ubuntu based with lots of curated apps) or on its own (you can still get access to their curated apps, just not in the store)

EDIT: Sorry, I misunderstood. You want classic Mac. I'd say get Xfce4 and theme it yourself then.

Here's an example: https://www.reddit.com/r/unixporn/comments/4l9tlp/xfce_another_nine_based_os_9_based_theme/

[–] KindaABigDyl@programming.dev 8 points 10 months ago

I find Rust crates generally have pretty good docs. Docs.rs is a major time saver

view more: ‹ prev next ›