Live data from Hacker News

Zellij – A Terminal Workspace and Multiplexer

zellij.dev

231–240 of 248 posts

Re: Zellij – A Terminal Workspace and Multiplexer

#231
post #131

Earlier quoted context omitted.

Or, one could embed Chez Scheme, the compiler of which is like 800 kB in size and compiles stuff very quickly.

Or, one could embed Lua, which has simple syntax and built for that exact purpose

Possibly, but the dilemma of having to choose between Lua 5.4, with its portability and language features, and LuaJIT's performance isn't very pleasant. I'm sure that LuaJIT updated to 5.4 version language would be very popular, but it doesn't exist right now.

Re: Zellij – A Terminal Workspace and Multiplexer

#232
post #92

Earlier quoted context omitted.

My trick is all the directory, date, git junk in my prompt is separated by a newline and then $, so when I copy and paste my shell somewhere, I can just drop those lines easily without having to do fine selection.

That seems like a lot of wasted space to me. The benefit of putting it into tmux is it only shows in 1 place. I don't need to see the git branch and folder of the location where I ran my previous commands, I just need to see where I am at right now.

Seeing the old time is useful though because it lets you eyeball how long a command took to run even if you forgot to do `time`.

Re: Zellij – A Terminal Workspace and Multiplexer

#233
post #87

Earlier quoted context omitted.

> It's fashionable to hate XML because it was used in a lot of places it was a bad fit in the 00s, but at least it's a pretty good document language. > YAML though is always a bad fit. If you want machine readable config, use JSON; human readable, use TOML. When does YAML ever fit? https://twitter.com/carlmjohnson/status/1372224080749993988

I never got this stance; JSON sucks for config files, because as a user, if there is anywhere that I need and am more thankful for comments, is in a configuration file. And TOML is maybe a good substitute for INI formats, but it doesn't really support nested data like JSON would, so suggesting to use TOML instead of JSON is misleading except for the simplest and most basic needs. If replacing JSON is the objective, I…

> it doesn't really support nested data like JSON would

This is just plain wrong. It supports exactly the same kind of nesting as JSON.

Re: Zellij – A Terminal Workspace and Multiplexer

#234

Earlier quoted context omitted.

> It's fashionable to hate XML because it was used in a lot of places it was a bad fit in the 00s, but at least it's a pretty good document language. > YAML though is always a bad fit. If you want machine readable config, use JSON; human readable, use TOML. When does YAML ever fit? https://twitter.com/carlmjohnson/status/1372224080749993988

The human readable part is a bit subjective. I find YAML more human readable than TOML.

Readable, maybe? I mean as long as the YAML is correctly quoted, sure, it looks fine. But that's a big if. But writeable, hell no. I have been writing YAML for years and still have no idea how the quoting works, and not for lacking of looking it up in the past.

Re: Zellij – A Terminal Workspace and Multiplexer

#236
post #227

The discoverability of shortcuts in zellij is great! Besides this and tmux you can also try * mtm: https://github.com/deadpixi/mtm * dvtm: https://linuxconfig.org/an-introduction-to-terminal-multiple... * abduco None of these have ever stuck with me because I don't like how they alter the ability to scroll (although I haven't tried the newer tmux mouse/scrolling capabilities). To maintain a session I prefer to use Et…

There's also tab.rs - https://github.com/austinjones/tab-rs

+1

Re: Zellij – A Terminal Workspace and Multiplexer

#237
post #85
post #59

Earlier quoted context omitted.

I'm confused. Zellij uses wasmer and wasmer-wasi. Wasmer may use cranelift for compilation (dont know if Zellij does). "Fast & Safe. Wasmer runs WebAssembly at near-native speed in a fully sandboxed environment." ( https://github.com/wasmerio/wasmer ) But ... "Cranelift does not yet perform mitigations for Specter or related security issues, though it may do so in the future." ( https://github.com/bytecodealliance/wa…

It doesn't, nor does it use seccomp to mitigate against language VM security issues.

seccomp should not be needed for a Wasm VM unless the host calls are unsafe, which is not the case by default (since no host functions are provided) or for WASI (since is alreay designed to be sandboxed).

Also, seccomp only works in the Linux kernel (not in Windows, or macOS)... so it's a no-go for a universal sandboxed VM :)

Re: Zellij – A Terminal Workspace and Multiplexer

#238

You have a problem and you need a configuration language, so you pick YAML. Now you have two problems. Take a leaf out of Rust's book and use something simple and sane like TOML, YAML is a mess. See: https://github.com/cblp/yaml-sucks Otherwise this looks like a great project, please don't ruin it with YAML.

I think YAML works fine if you're mapping it into typed data structures, because if you know the target type, you can coerce where possible and fail with an error message otherwise. It can potentially cause a mess if you're using it in a dynamic language, and aren't explicitly coercing/validating the input.

Re: Zellij – A Terminal Workspace and Multiplexer

#239
post #75

You have a problem and you need a configuration language, so you pick YAML. Now you have two problems. Take a leaf out of Rust's book and use something simple and sane like TOML, YAML is a mess. See: https://github.com/cblp/yaml-sucks Otherwise this looks like a great project, please don't ruin it with YAML.

YAML sucks but so does TOML, especially when it comes to nested data structures like the layout.yaml shown on the front page. There are no good configuration languages in existence and there never will be. We have rejected Lisp/sexp so now we must suffer endlessly.

I agree about sexps, it feels like the right default for storing human readable data. The only place where I think it's a little weak is when used more like markup, since data would need to be in quoted strings.

That definitely seems like a solvable problem though.

Re: Zellij – A Terminal Workspace and Multiplexer

#240
I have messed with tmux in the past, but could never remember all the gibberish sequences to make it useful.

Thought I would take a look at this. Like the presentation of all the actions. TAB control was nice and all that.

But what is with the crazy input character delay? Not much fun for touch typing when I can get ahead of the input buffer by four or five keys (without really trying). I have never noticed that on tmux.

Is anyone else seeing this?

Post reply on HN