A blog that is a single executable binary

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • rs-bindata

    A stable channel rust macro to embed static assets into your binary at compile time.

  • The bindata package that samhw linked goes further by walking a whole directory and embedding it all, supplying a function that maps from pathname to file contents. Looks like it returns an Option> though [1] which means it must be copying the file contents each time. I don't know why they didn't just return a &'static [u8] instead.

    There's another crate includedir which looks more popular. It also supports compression. But if the file is stored in compressed form, looks like it also will (decompress/)copy into a fresh Vec, whether you request the uncompressed or compressed forms. [2] That's not what I would like.

    I could use a high-quality implementation of this same idea. Personally I don't get using it for a personal blog (I'd rather be able to change the content without recompiling/restarting), but on my todo list is producing a zero-dependency, single-binary form of software I'm working on, including its web interface. I might end up writing my own.

    [1] https://github.com/glassbearInc/rs-bindata/blob/93f61807b206...

    [2] lines 59 and 80, respectively. https://github.com/tilpner/includedir/blob/6a81c906e233649af...

  • go-bindata

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • includedir

    Include a whole directory tree at compile time

  • The bindata package that samhw linked goes further by walking a whole directory and embedding it all, supplying a function that maps from pathname to file contents. Looks like it returns an Option> though [1] which means it must be copying the file contents each time. I don't know why they didn't just return a &'static [u8] instead.

    There's another crate includedir which looks more popular. It also supports compression. But if the file is stored in compressed form, looks like it also will (decompress/)copy into a fresh Vec, whether you request the uncompressed or compressed forms. [2] That's not what I would like.

    I could use a high-quality implementation of this same idea. Personally I don't get using it for a personal blog (I'd rather be able to change the content without recompiling/restarting), but on my todo list is producing a zero-dependency, single-binary form of software I'm working on, including its web interface. I might end up writing my own.

    [1] https://github.com/glassbearInc/rs-bindata/blob/93f61807b206...

    [2] lines 59 and 80, respectively. https://github.com/tilpner/includedir/blob/6a81c906e233649af...

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Zed Decoded: Linux When? – Zed Blog

    2 projects | news.ycombinator.com | 7 May 2024
  • Show HN: Fire-ninja-bot a telegram bot fight censorship

    1 project | news.ycombinator.com | 7 May 2024
  • Rust to .NET compiler – Progress update

    2 projects | news.ycombinator.com | 3 May 2024
  • uv: An fast Python package installer and resolver, written in Rust

    1 project | news.ycombinator.com | 7 May 2024
  • Ruff: The Extensible Python Linter

    1 project | dev.to | 7 May 2024