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 get the frustration, but I think the npm option actually makes sense here. A lot of users who’d benefit from a fast Rust tool aren’t Rust developers and won’t have Cargo installed. Shipping it through npm lowers the barrier while still giving everyone the performance benefits. It’s not a knock on Cargo, just a way to make the tool more accessible.
Show HN: Fresh – A new terminal editor built in Rust
81–90 of 158 posts
Re: Show HN: Fresh – A new terminal editor built in Rust
#82Dear Santa, this year I don’t need gadgets - all I want is a Borland Turbo Vision–style console text editor with windows, tabs, and syntax highlighting. I promise to be good and keep my code compiling.
Re: Show HN: Fresh – A new terminal editor built in Rust
#83I've found https://github.com/gphalkes/tilde to work quite well, it also supports the system clipboard. Nice to see a Rust alternative.
Re: Show HN: Fresh – A new terminal editor built in Rust
#84Earlier 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.
That would be Nix. Runs on any Linux distro and OSX. Also particularly useful for NixOS and NixBSD.
Re: Show HN: Fresh – A new terminal editor built in Rust
#852. Thank you for running builds on ubuntu 22.04 so it's compatible with it. You might want to compile with cross or zig to support even older operating systems.
Re: Show HN: Fresh – A new terminal editor built in Rust
#86I feel like thats the opposite behavior. For example, I use https://github.com/zyedidia/micro as my main editor in terminal, where it says `Save changes to filename before closing? (y,n,esc)”` when you try to quit.
Re: Show HN: Fresh – A new terminal editor built in Rust
#87I'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.
strange thinking!
Re: Show HN: Fresh – A new terminal editor built in Rust
#88I searched for that desperately until I discovered micro[1].
Here's a quick comparison between micro and fresh:
- Fresh implements more standard keyboard shortcuts, like Ctrl+ArrowLeft and Ctrl+ArrowRight to skip to the next and previous word, Ctrl+Backspace to delete the previous word and Ctrl+Delete to delete the next one.
- Fresh is extensible in typescript, Micro in lua.
- Fresh is able to open the wikidata json dump (1.7T).
- Micro is included in most repos, so if you rent a new VPS you can immidiately dnf install it.
Re: Show HN: Fresh – A new terminal editor built in Rust
#89Re: Show HN: Fresh – A new terminal editor built in Rust
#90Earlier quoted context omitted.
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
But I totally get the idea behind this, it's greatly combined with the cargo toolchain and is widely installed than cargo (which by the way npm is much easier to install than cargo with my personal experience), npm handles update nicely, and it can handle multiple arch too. I would still prefer npm install because I have installed a lot recently so it's ok.