Live data from Hacker News

Show HN: Fresh – A new terminal editor built in Rust

sinelaw.github.io

21–30 of 158 posts

Re: Show HN: Fresh – A new terminal editor built in Rust

#22

I'm a little annoyed that for a Rust based tool the recommended installation command is to use npm. Why? Is Cargo not good enough? Cargo seems exceptionally well to me.

I did it because not everybody has cargo installed. I'm using cargo-dist to create this npm package.

consider wget or curl if possible (why not if npm was...)

Re: Show HN: Fresh – A new terminal editor built in Rust

#23
post #20

Earlier quoted context omitted.

That (security ) is something I also worry about. I'd like to get off npm if only for this reason. It's a hack to get started. The other thing it gives you is the ability to easily upgrade and uninstall so just a script to copy stuff is not on par.

Thing is… who is regularly running `npm update` or `cargo update` to keep local software up to date? I wouldn’t, because I might be in a repo and it starts upgrading all my local dependencies, and I’m not gonna add a text editor as a dev dependency. I’ll happily take the binary, or a tar.gz with the binary in it, though. (Btw I love how it’s following the old DOS aesthetic)

The npm distribution here is just the binary, you run npm install again and it upgrades to the latest binary. That's convenient

Re: Show HN: Fresh – A new terminal editor built in Rust

#24

Earlier quoted context omitted.

I did it because not everybody has cargo installed. I'm using cargo-dist to create this npm package.

I've been wanting a generic package manager for a while that is cross-platform. I wonder how one could find funding for such a project. Thinking about users from various OS' installing tools and software from your niche package manager, yeah that bad boy is going to grind to a halt if you have no key funding.

Artifactory exists. It's not hard to store packages and metadata somewhere.

Re: Show HN: Fresh – A new terminal editor built in Rust

#29
> I did a quick benchmark loading a 2GB log file with ANSI color codes... Emacs: Load Time: ~10 seconds | Memory: ~2 GB

Now try opening it in Emacs with vlf [1] ;) Great work overall — looking forward to seeing further development!

[1] https://elpa.gnu.org/packages/vlf.html

Re: Show HN: Fresh – A new terminal editor built in Rust

#30

I'm a little annoyed that for a Rust based tool the recommended installation command is to use npm. Why? Is Cargo not good enough? Cargo seems exceptionally well to me.

I did it because not everybody has cargo installed. I'm using cargo-dist to create this npm package.

Is there a way to install it with cargo instead? I won't install npm on my machine just to install a Rust package
Post reply on HN