top | item 46700370

(no title)

ashirviskas | 1 month ago

> 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.

discuss

order

embedding-shape|1 month ago

> 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.

behnamoh|1 month ago

Even my CC status line script enjoyed a 20x speed improvement when I rewrote it from python to rust.

foltik|1 month ago

It’s surprising how quickly the bottleneck starts to become python itself in any nontrivial application, unless you’re very careful to write a thin layer that mostly shells out to C modules.