← Back to context

Comment by thomasahle

12 hours ago

I'm always surprised that Python doesn't have as good TUI libraries as Javascript or Rust. With the amount of CLI tooling written in Python, you'd think it had better libraries than any other language.

it has, but python being single threaded (until recently) didn't make it an attractive choice for CLI tools.

example: `ranger` is written in python and it's freaking slow. in comparison, `yazi` (Rust) has been a breeze.

Edit: Sorry, I meant GIL, not single thread.

  • > it has, but python being single threaded (until recently) didn't make it an attractive choice for CLI tools.

    You probably mean GIL, as python has supported multi threading for like 20 years.

    Idk if ranger is slow because it is written in python. Probably it is the specific implementation.

    • > You probably mean GIL

      They also probably mean TUIs, as CLIs don't do the whole "Draw every X" thing (and usually aren't interactive), that's basically what sets them apart from CLIs.