KindaABigDyl

joined 1 year ago
[–] KindaABigDyl 16 points 1 year ago (1 children)

I use Nix btw

[–] KindaABigDyl 5 points 1 year ago

RHEL is downstream from CentOS Stream which is downstream from Fedora. People are complaining that the changes RHEL makes from CentOS Stream (and thus Fedora) are not public. There is no direct effect on Fedora.

That said some will still not be using Fedora bc they disagree with the ethics of Red-Hat's decision (although I'm surprised they didn't have an issue with Red-Hat before)

[–] KindaABigDyl 2 points 1 year ago* (last edited 1 year ago) (1 children)

That's actually one of its selling points. 80k packages. It's more than the AUR (or any other package manager, for that matter).

I've only had 3 programs not be available so far: a tool someone made for RGB set up on MSI laptops (somewhat niche tool) and Slippi & Project+ which were only available as AppImages that for some reason wouldn't run and need their own environment (other AppImages seem to work fine)

Very rarely will something not be available, and even then, someone has probably already figured out how to install it; it's just not in the main repo, so a quick internet search will remedy it without you having to do any thinking yourself. I didn't solve the Slippi thing myself.

[–] KindaABigDyl 1 points 1 year ago* (last edited 1 year ago)

Oh dang really? What did you do, so I know what not to do? You couldn't even rollback???

[–] KindaABigDyl 1 points 1 year ago

Parser done. Time for Code Generation. I'm going to transpile to C for now

[–] KindaABigDyl 13 points 1 year ago* (last edited 1 year ago)

No. Some applications won't change even if you'd make the PR for them, simply because they don't want to change legacy features.

For instance, the bash maintainers have refused to put .bashrc into .config/ and to even allow the option to move it.

xdg ninja can help move some stuff out of your home dir tho

[–] KindaABigDyl 3 points 1 year ago

Looking nice on my shelf. The internet is a greater tool than any book.

[–] KindaABigDyl 4 points 1 year ago* (last edited 1 year ago) (4 children)

Eh. I mean it's certainly a smaller curve than other "hard" distros like Arch or Gentoo, and there really isn't one at all since the installer does most of the complicated stuff for you.

Would I recommend it to beginners? Probably not as they wouldn't be willing to do any reading, configuring, or time sinking at all.

However, for this use case of building solutions by an experienced Linux user, the 30 min to an hour of learning is really not a lot when it would save a ton of time down the line. It's not like you need to be a nix lang or nixos expert to use it effectively

[–] KindaABigDyl 13 points 1 year ago

Cheating who?

[–] KindaABigDyl 10 points 1 year ago (8 children)

NixOS

Reproducible and unbreakable

[–] KindaABigDyl 2 points 1 year ago (1 children)

Lexer done! On to parser

[–] KindaABigDyl 5 points 1 year ago* (last edited 1 year ago) (1 children)

Poor ChatGPT, it's always so close but so far. This doesn't meet spec :)

It doesn't print the bottom row of ' | | ', and it misses the leading spaces.

Fixing it produces:

def p(n):print('\n'.join(' '*(n-i)+'* '*(i+1)+' '*(n-i-1) for i in range(0,n)));print(' '*(n-1)+'| |')

Which is 102 characters, so longer than before. Like I said, I tried the list comp route. You get rid of some stuff, but you add more unfortunately.

However, both me and ChatGPT made the mistake of printing spaces after, which tbh isn't necessary. That can give a bit of a boost:

def p(n):print('\n'.join(' '*(n-i)+'* '*(i+1) for i in range(0,n)));print(' '*(n-1)+'| |')

Which is 90, but applying it to my og answer:

def a(n):
 for i in range(0,n):
  print(' '*(n-i)+'* '*(i+1))
 print(' '*(n-1)+'| |')

Yields 82.

Putting the loop on one line saves a couple characters though:

def a(n):
 for i in range(0,n):print(' '*(n-i)+'* '*(i+1))
 print(' '*(n-1)+'| |')

Gets it to 80

view more: ‹ prev next ›