Live data from Hacker News

Show HN: Marmite – Zero-config static site generator

github.com

41–50 of 69 posts

Re: Show HN: Marmite – Zero-config static site generator

#42
> cargo install marmite

I'm not the only one (1) that believes this is wrong direction for cargo, and is abusing it's intent and purpose.

If you want to distribute an application, there are lots of ways to do that. If it's a developer tools, for developers, `cargo install` might be suitable, sure... but I think there's a fair argument to be made that if you want a tool:

    git clone foo
    cd foo
    cargo install --path .
Is an explicit, safe and less error prone way of doing it.

...and one that doesn't walk us down the road of (see the linked thread) the obvious desire people are going to have sooner or later to cache binary builds instead of building locally, and turn `cargo install` into some kind of binary application distribution application or app store.

If you don't believe me, read that thread, and the linked thread.

[1] - https://github.com/rust-lang/cargo/issues/13994#issuecomment...

Re: Show HN: Marmite – Zero-config static site generator

#43

> cargo install marmite I'm not the only one (1) that believes this is wrong direction for cargo, and is abusing it's intent and purpose. If you want to distribute an application, there are lots of ways to do that. If it's a developer tools, for developers, `cargo install` might be suitable, sure... but I think there's a fair argument to be made that if you want a tool: git clone foo cd foo cargo install --path . Is…

I don't understand why your suggested version is more explicit, safer, or less error prone. You'll have to justify that to me!

'cargo install ripgrep' has worked on every machine I've run it on. It's also easy for me to send to other people I work with.

Your suggestion requires me go and find the repository. If I just clone the repository it's going to get the current master branch, not the most recent release (which sounds less safe and more error prone to me!)

Re: Show HN: Marmite – Zero-config static site generator

#44

> cargo install marmite I'm not the only one (1) that believes this is wrong direction for cargo, and is abusing it's intent and purpose. If you want to distribute an application, there are lots of ways to do that. If it's a developer tools, for developers, `cargo install` might be suitable, sure... but I think there's a fair argument to be made that if you want a tool: git clone foo cd foo cargo install --path . Is…

I don't understand why your suggested version is more explicit, safer, or less error prone. You'll have to justify that to me! 'cargo install ripgrep' has worked on every machine I've run it on. It's also easy for me to send to other people I work with. Your suggestion requires me go and find the repository. If I just clone the repository it's going to get the current master branch, not the most recent release (which…

Crates.io is a flat namespace.

If you have to lookup the exact crate name (and you do, because otherwise you’re installing who-knows-what) what difference does it make?

It’s just a lazy tool for lazy installs that only works when there are a) not that many people using it (easy memorable names that aren’t easy to mess up still exist), and b) no bad actors squatting on typo names.

You can’t be more explicit than “build and install this folder I have”.

/shrug

Re: Show HN: Marmite – Zero-config static site generator

#45

> cargo install marmite I'm not the only one (1) that believes this is wrong direction for cargo, and is abusing it's intent and purpose. If you want to distribute an application, there are lots of ways to do that. If it's a developer tools, for developers, `cargo install` might be suitable, sure... but I think there's a fair argument to be made that if you want a tool: git clone foo cd foo cargo install --path . Is…

The own thread you linked is clear as day: cargo install is good and should continue to be used as way to install binaries _by building them_

Your objection then or thinking invoking cargo install at all is abuse is highly questionable. In fact, I would wager that vast, vast majority of the Rust community vehemently disagrees with you.

In the own thread you linked there is community support for binary installs with cargo bininstall

Re: Show HN: Marmite – Zero-config static site generator

#46
post #45

> cargo install marmite I'm not the only one (1) that believes this is wrong direction for cargo, and is abusing it's intent and purpose. If you want to distribute an application, there are lots of ways to do that. If it's a developer tools, for developers, `cargo install` might be suitable, sure... but I think there's a fair argument to be made that if you want a tool: git clone foo cd foo cargo install --path . Is…

The own thread you linked is clear as day: cargo install is good and should continue to be used as way to install binaries _by building them_ Your objection then or thinking invoking cargo install at all is abuse is highly questionable. In fact, I would wager that vast, vast majority of the Rust community vehemently disagrees with you. In the own thread you linked there is community support for binary installs with c…

bininstall is a third party project.

There’s nothing wrong with building an app store in rust; I’m just saying that it shouldn’t be part of cargo.

> brew install cargo-binstall

…and it is not. It’s a great project, and if you want to use it, you can.

Using rust does not opt you into using it, just like it doesn’t opt you into using brew.

Re: Show HN: Marmite – Zero-config static site generator

#47
post #28

I really like it. I have been on a quest to find very simple ssgs such as this. I have been trying to out Zola, as mentioned in the readme, but I really want to make sure there aren't things like telemetry or other random features injected in or getting added (as seems to be the case with jekyll with ai-folio or academic pages) so it takes a while to go through everything. Ai-folio or academic pages is basically my u…

You can start a new theme with marmite and remove the little JS it has to switch white/dark modes.

Re: Show HN: Marmite – Zero-config static site generator

#48

any chance of this supporting wikilinks and back references?

Wikilinks is possible, already a feature of comrak parser, just have to enable it.

Need to think about back references.

In any case if the implementation is simple I would take a PR.

Re: Show HN: Marmite – Zero-config static site generator

#49

> cargo install marmite I'm not the only one (1) that believes this is wrong direction for cargo, and is abusing it's intent and purpose. If you want to distribute an application, there are lots of ways to do that. If it's a developer tools, for developers, `cargo install` might be suitable, sure... but I think there's a fair argument to be made that if you want a tool: git clone foo cd foo cargo install --path . Is…

My goal is to build binaries and have it distributed to the most used package indexes out there, I didn't get there yet.

Re: Show HN: Marmite – Zero-config static site generator

#50

I did something similar a few months ago in python. One notable difference is that I got rid of the frontmatter, instead I use the commits history to find the creation and update dates of posts. https://github.com/HenriTEL/gitblog2

Interesting, it would nice to have it as optional feature, I don't want it to be dependent on git, but if git is already there would be an option.
Post reply on HN