Lifetime Annotations for C++

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
  • llvm-project

    The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

  • This reminds me of the -Wlifetime proposal, which provides similar checks but requires annotation of ownership at struct level (hence the check only applies to new structs):

    An example: https://github.com/llvm/llvm-project/blob/main/clang/test/Se...

    More details can be found at https://herbsutter.com/2018/09/20/lifetime-profile-v1-0-post...

    Unfortunately it was never upstreamed according to https://github.com/mgehre/llvm-project/issues/98

  • llvm-project

    The home of the clang-based implementation of lifetime safety warnings. (by mgehre)

  • This reminds me of the -Wlifetime proposal, which provides similar checks but requires annotation of ownership at struct level (hence the check only applies to new structs):

    An example: https://github.com/llvm/llvm-project/blob/main/clang/test/Se...

    More details can be found at https://herbsutter.com/2018/09/20/lifetime-profile-v1-0-post...

    Unfortunately it was never upstreamed according to https://github.com/mgehre/llvm-project/issues/98

  • 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
  • cxx

    Safe interop between Rust and C++

  • FWIW the Rust-C FFI is very solid. Binding to more complex languages is in various degrees of progress. For C++ I have heard really good things about https://cxx.rs/ (but never had the need to try it). wasm_bindgen is already very good for binding to JS and I have heard people having lots of success writing Python and Ruby libraries in Rust (with some manual glue on the scripted side).

  • PyO3

    Rust bindings for the Python interpreter

  • > Rust is probably a rock-solid FFI story away from being a serious part of my kit (pybind11 good, not like anything we have now).

    Check out PyO3: https://github.com/PyO3/PyO3

  • rust

    Empowering everyone to build reliable and efficient software.

  • > If you can mutate through a shared reference, then there is no need to alias `&mut T`s in the first place!

    Unfortunately that is not true. See [1] as an example is core where mutable aliasing is needed (async generators). In this case they just added to compiler hack [2][3], but this really needs proper support in rust. Something like “AliasCell”.

    [1] https://github.com/rust-lang/rust/issues/63818

    [2] https://github.com/rust-lang/rust/pull/82834

    [3] https://github.com/tokio-rs/tokio/pull/3654

  • tokio

    A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

  • > If you can mutate through a shared reference, then there is no need to alias `&mut T`s in the first place!

    Unfortunately that is not true. See [1] as an example is core where mutable aliasing is needed (async generators). In this case they just added to compiler hack [2][3], but this really needs proper support in rust. Something like “AliasCell”.

    [1] https://github.com/rust-lang/rust/issues/63818

    [2] https://github.com/rust-lang/rust/pull/82834

    [3] https://github.com/tokio-rs/tokio/pull/3654

  • edgesearch

    Serverless full-text search with Cloudflare Workers, WebAssembly, and Roaring Bitmaps

  • From https://westurner.github.io/hnlog/#comment-30603322 re https://en.wikipedia-on-ipfs.org/wiki/Database_index :

    https://github.com/wilsonzlin/edgesearch :

    > * Serverless full-text search with Cloudflare Workers, WebAssembly, and Roaring Bitmaps *

    > "Edgesearch builds a reverse index by mapping terms to a compressed bit set (using Roaring Bitmaps) of IDs of documents containing the term, and creates a custom worker script and data to upload to Cloudflare Workers"

    WASM or [C++] to WASM?

    TIL about Roaring Bitmaps: /?q=roaring+bitmap https://medium.com/@amit.desai03/roaring-bitmaps-fast-data-s...

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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

  • Encapsulation in Rust and Python

    4 projects | dev.to | 5 Apr 2024
  • Rust Bindings for the Python Interpreter

    1 project | news.ycombinator.com | 20 Feb 2024
  • Calling Rust from Python

    2 projects | news.ycombinator.com | 8 Oct 2023
  • Bytewax: Stream processing library built using Python and Rust

    2 projects | news.ycombinator.com | 25 Jul 2023
  • 🚀 GoRules Zen Engine: Rules Engine for Node.js

    3 projects | /r/node | 20 Jun 2023