Live data from Hacker News

Show HN: Shpool, a Lightweight Tmux Alternative

github.com

31–40 of 201 posts

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#31
post #19

A lightweight tmux alternative? Tmux is already an incredibly lightweight C program in terms of binary size and resource usage.

I assumed they meant “lightweight” in the sense that tmux can take quite a bit of setup and practice to get comfortable in, when using for the very first time. I love tmux but it’s definitely not “n00b” friendly.

$ tmux

# run your command in it

# Ctrl+b D to detatch

later, to attach back to it

$ tmux a -t 0

That probably covers 50% of usage. The rest would be naming the sessions, splitting the window panes. Anything else?

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#33

How could this be a tmux alternative if it only provides session persistence? I use tmux mostly for layout (tiles, multiple windows, etc.) and not for session persistence necessarily. I don't know if this is why other people also use tmux, but I am not sure if "alternative" is the right word here.

[deleted]

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#35
post #22

There's also the longstanding option dtach, which similarly seems to be a lightweight re-attachable way to run a program. https://github.com/crigler/dtach For a while I was running neovim on dtach, which let me host all the terminals I might want. It has long felt weird that we have so recursively many layers of management and navigation: the OS juggling multiple terminals, tmux juggling multiple shells, and neovim j…

> It has long felt weird that we have so recursively many layers of management and navigation: the OS juggling multiple terminals, tmux juggling multiple shells, and neovim juggling multiple windows Tbh that's why I'm not a fan of tmux or terminals with fancy internal window management. I suppose it makes sense if your OS level window management is crap (macos...) but otherwise it feels like poor solution

But tmux on server survives the laptop sleeping. That's the key value.

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#36

How could this be a tmux alternative if it only provides session persistence? I use tmux mostly for layout (tiles, multiple windows, etc.) and not for session persistence necessarily. I don't know if this is why other people also use tmux, but I am not sure if "alternative" is the right word here.

I use it the same way because I use it locally 100% of the time. I would probably care about persistence more if I used tmux on remote machines.

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#37
post #19

Earlier quoted context omitted.

I assumed they meant “lightweight” in the sense that tmux can take quite a bit of setup and practice to get comfortable in, when using for the very first time. I love tmux but it’s definitely not “n00b” friendly.

$ tmux # run your command in it # Ctrl+b D to detatch later, to attach back to it $ tmux a -t 0 That probably covers 50% of usage. The rest would be naming the sessions, splitting the window panes. Anything else?

Scrolling.

That's a key feature when you don't reflexively use less and ] isn't a natural keybind for "let me scroll please".

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#38

How could this be a tmux alternative if it only provides session persistence? I use tmux mostly for layout (tiles, multiple windows, etc.) and not for session persistence necessarily. I don't know if this is why other people also use tmux, but I am not sure if "alternative" is the right word here.

There are a bunch of minimalist session persistence solutions, including now shpool. If you want layout, there's a minimalist program called `dvtm` that provides those capabilities.

The suggestion usually is to run dvtm inside of dtach/shpool/abduco/diss for layout, and separating the concerns that way.

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#39
post #19

Earlier quoted context omitted.

I assumed they meant “lightweight” in the sense that tmux can take quite a bit of setup and practice to get comfortable in, when using for the very first time. I love tmux but it’s definitely not “n00b” friendly.

$ tmux # run your command in it # Ctrl+b D to detatch later, to attach back to it $ tmux a -t 0 That probably covers 50% of usage. The rest would be naming the sessions, splitting the window panes. Anything else?

[deleted]

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#40

A lightweight tmux alternative? Tmux is already an incredibly lightweight C program in terms of binary size and resource usage.

Yeah that's a good point, "lightweight" was probably not the best term. I meant lightweight in terms of the cognitive overhead of picking up a new tool, not really in terms of performance. I would expect that shpool will perform better on some workloads and tmux will perform better on others (though in both cases they are probably good enough). The main difference is that tmux is a power user tool that you generally…

Interesting thanks. I interpreted "lightweight" to mean available features. i.e. just the persistent connection, none of the other bloat[1].

[1]: to be clear, I don't mean "bloat" in a negative way. I'm a long time tmux user and I love it, absolutely love it, and won't be giving it up anytime soon. I don't personally think it has any bloat. But, I use the features. If one only wanted persistent connections, then all of tmux is quite a bit of bloat. It's all perspective.

Post reply on HN