News for hackers. Stuff that matters.
Re:Pymux: a tmux clone in pure Python by ymse on Sunday January 03, 2016 @02:54PM (#10832037)
You could say the same about screen vs tmux (or endless other software clones). Projects like these help drive innovation on both sides. Competition, if you like.

Besides, Pymux is Python while tmux is C. I'm sure you can appreciate that adding a Python API to tmux would be non-trivial, both code-wise and politically.

Re:Pymux: a tmux clone in pure Python by git-pull on Sunday January 03, 2016 @05:54PM (#10832974)
Author of tmuxp here, a python API and config manager on top of tmux(1).

You can see the quickstart at https://tmuxp.readthedocs.org/en/latest/quickstart_python.ht... and the API documentation at https://tmuxp.readthedocs.org/en/latest/api.html.

You can see the testcases we cover use real tmux sessions and monitor the state of the session / window / panes to assert the API functions correctly. https://github.com/tony/tmuxp/tree/master/tmuxp/testsuite

As for pymux, Jonathan Slenders' work on ptpython [1] and prompt_toolkit have been quite nice when working with shell_plus in django or debugging python projects. He's good in this area. Agreed that it's a nice thing to have pymux there.

And agreed that adding native language extensions (python, ruby, etc.) to tmux would be complicated code-wise and perhaps not in the spirit of what it aspires to be. That said, on the tmuxp side of things, a lot could be improved. For example, switching tmuxp to use control mode (-C) and filing smaller patches to expand control mode's events in tmux(1).

[1] https://github.com/jonathanslenders/ptpython

Re:Pymux: a tmux clone in pure Python by DannoHung on Sunday January 03, 2016 @03:34PM (#10832211)
In my experience, Screen is a crashy piece of garbage.

tmux is comparatively rock solid.

Re:Pymux: a tmux clone in pure Python by JustSomeNobody on Sunday January 03, 2016 @03:15PM (#10832134)
But what's the innovation? Adding the python API?
Re:Pymux: a tmux clone in pure Python by toolz on Sunday January 03, 2016 @04:22PM (#10832469)
Not everything has to innovate. I understand it would be more useful to you and I if it did innovate, but there isn't some prereq for posting to hacker news that your project has to be innovative.

I personally find this project interesting to see, although I won't be using it.

Re:Pymux: a tmux clone in pure Python by JustSomeNobody on Sunday January 03, 2016 @05:06PM (#10832729)
The comment I was replying to specifically mentioned it.
Re:Pymux: a tmux clone in pure Python by hueving on Sunday January 03, 2016 @05:57PM (#10832992)
Spend the 30 seconds required to read the ancestor comment explaining what it has enabled WRT prompt toolkit.
Re:Pymux: a tmux clone in pure Python by gnuvince on Sunday January 03, 2016 @06:01PM (#10833003)
Look at the list of features that pymux has that tmux doesn't.
Re:Pymux: a tmux clone in pure Python by JustSomeNobody on Sunday January 03, 2016 @08:49PM (#10833593)
That's innovative? Ok, for some loose def of innovation.
Re:Pymux: a tmux clone in pure Python by ta0967 on Tuesday January 05, 2016 @08:35AM (#10843141)
you seem to have confused innovation with invention. but that's beside the point. you seem to think that software needs to be either to deserve existance. looks like you're in the minority with that opinion, the rest of us is quite happy with iterative, gradual improvement. we consider it better than sticking with whatever the first shot at an implementation managed to hit.