[-] Andy@programming.dev 2 points 2 years ago

The window shade problem is keeping me from Wayland. AFAIU there's currently no commitment to ever fix it on Wayland, it's only a maybe.

For anyone interested, it's being tracked here.

[-] Andy@programming.dev 2 points 2 years ago

This link doesn't work for me. Do you have an alternative/original? I'd like to read some context and explanation.

[-] Andy@programming.dev 2 points 2 years ago

Factor!

It's incredible and elegant and defies some common categorization.

I've put some of my favorite resources in the sidebar of https://programming.dev/c/concatenative and I'm happy to walk through any particular challenges/examples -- I've done about the first week of Advent of Code with it this year, and the most recent handful of Perl Weekly Challenges, and some basic Euler problems.

[-] Andy@programming.dev 2 points 2 years ago

Plasma may not ever implement window shading for Wayland, but I'm hopeful. That's probably my last blocker.

[-] Andy@programming.dev 2 points 2 years ago

FWIW, Alpine Linux has a nice world file, too. And I am continually impressed by the selection of up to date packages in their Edge repos.

[-] Andy@programming.dev 2 points 2 years ago

Any thoughts on the alternative I mentioned, DYN, described here?

[-] Andy@programming.dev 2 points 2 years ago* (last edited 2 years ago)

Factor on github (with comments and imports):

I didn't use any math smarts.

: input>data ( -- races )
  "vocab:aoc-2023/day06/input.txt" utf8 file-lines     
  [ ": " split harvest rest [ string>number ] map ] map
  first2 zip                                           
;

: go ( press-ms total-time -- distance )
  over - *
;

: beats-record? ( press-ms race -- ? )
  [ first go ] [ last ] bi >
;

: ways-to-beat ( race -- n )
  dup first [1..b)          
  [                         
    over beats-record?      
  ] map [ ] count nip       
;

: part1 ( -- )
  input>data [ ways-to-beat ] map-product .
;

: input>big-race ( -- race )
  "vocab:aoc-2023/day06/input.txt" utf8 file-lines             
  [ ":" split1 nip " " without string>number ] map
;

: part2 ( -- )
  input>big-race ways-to-beat .
;
[-] Andy@programming.dev 2 points 2 years ago

Well I'm not experiencing the bug, so can't provide proper information. If you are, it would be helpful to report it.

[-] Andy@programming.dev 2 points 2 years ago
[-] Andy@programming.dev 2 points 3 years ago

meld really is my favorite, but there's also mcdiff from mc, in combination with your editor of choice (use_internal_edit=false). If you can like the internal editor, though, that's got to be a better experience.

I find a bunch of the themes are unreadable, so am rotating and eliminating with this Zsh function:

mcdiff () {
  emulate -L zsh

  local skins=(
    gotar
    gray-green-purple256
    modarin256-defbg
    modarin256
    modarin256root-defbg
    modarin256root
    sand256
    seasons-autumn16M
    seasons-spring16M
    seasons-summer16M
    seasons-winter16M
    xoria256
    yadt256-defbg
    yadt256
  )

  local skin=${skins[RANDOM % $#skins + 1]}

  print -rl -- "Using skin: $skin:t:r"
  =mcdiff -c -S $skin $@
}

For a non-interactive diff viewer I find riff's output pretty legible.

Other than that, I've used a combination of tools with a broot config to browse and manage the diffs...

[-] Andy@programming.dev 2 points 3 years ago

Is anyone supporting my old Nexus 9 tablet? I'd love to flash anything supported there.

[-] Andy@programming.dev 2 points 3 years ago

AFAIU, asdf uses pyenv for its Python plugin, but rtx does it all just a little better.

view more: ‹ prev next ›

Andy

0 post score
0 comment score
joined 3 years ago
MODERATOR OF