cargo-call-stack VS asyncly

Compare cargo-call-stack vs asyncly and see what are their differences.

cargo-call-stack

Whole program static stack analysis (by japaric)

asyncly

C++ concurrent programming library (by goto-opensource)
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
cargo-call-stack asyncly
5 2
555 27
- -
0.0 5.0
2 months ago 19 days ago
Rust C++
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cargo-call-stack

Posts with mentions or reviews of cargo-call-stack. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-25.
  • Why choose async/await over threads?
    11 projects | news.ycombinator.com | 25 Mar 2024
    Yes, it's what I wrote about in the last paragraph. If you can compute maximum stack size of a function, then you can avoid dynamic allocation with fibers as well. You are right that such implementations do not exist in right now, but I think it's technically possible as demonstrated by tools such as https://github.com/japaric/cargo-call-stack The main stumbling block here is FFI, historically shared libraries do not have any annotations about stack usage, so functions with bounded stack usage would not be able to use even libc.
  • Ask not what the compiler can do for you
    5 projects | news.ycombinator.com | 5 May 2023
    For rust code, I have found https://github.com/japaric/cargo-call-stack to be the best available option, as it does take advantage of how Rust types are implemented in LLVM-IR to handle function pointers / dynamic dispatch a little better. An even better solution would try to use MIR type information as well to further narrow down targets of dynamic calls in a Rust-specific way, but no such tool exists that I know of.
  • Debugging and profiling embedded applications.
    8 projects | /r/rust | 30 Mar 2023
    cargo-call-stack Static stack analysis!
  • In defense of complicated programming languages
    3 projects | /r/rust | 25 Jan 2022
    Generators can just dump stuff on the stack. They have additional their own stack for storing their state. If you can prove an upper amount of creation of generators in the call graph, that would however work. There is for example this nice tool for Rust doing the overapproximation.
  • Understanding thread stack sizes and how alpine is different
    3 projects | news.ycombinator.com | 26 Jun 2021
    Not easy at all.

    I know that in the small-embedded world, people do work on such things.

    Eg https://github.com/japaric/cargo-call-stack

asyncly

Posts with mentions or reviews of asyncly. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-25.
  • Why choose async/await over threads?
    11 projects | news.ycombinator.com | 25 Mar 2024
    One of the main benefits of async/await in Rust is that it can work in situations where you don't even have threads or dynamic memory. You can absolutely use it to write very concise code that's waiting on an interrupt on your microcontroller to have read some data coming in over I2C from some buffer. It's a higher level abstraction that allows your code to use concurrency (mostly) without having tons of interactions with the underlying runtime.

    Every major piece of software that I have worked on has implemented this in one form or another (even in non-modern C++ where you don't have any coroutine concepts, Apple's grand central dispatch,). If you don't then your business logic will either be very imperformantly block on IO, have a gazillion of threads that make development/debugging a living hell, or be littered with implementation details of the underlying runtime or a combination of all 3.

    If you don't use existing abstractions in the language (or through some library), you will end up building them yourselves, which is hard and probably overall inferior to widely used ones (if there are any). I have done so in the past, see https://github.com/goto-opensource/asyncly.

  • David Mazieres' tutorial and take on C++20 coroutines
    5 projects | news.ycombinator.com | 22 Feb 2021
    Keep in mind that these is a really basic building block where you can bring your own runtime and hook coroutines into it, not something that is at all usable out of the box. This is exacerbated by the fact that the C++ standard library is still lacking support for non-blocking futures/promises.

    To see how it can be used for actual asynchronous operations on a thread pool, take a look at asyncly, which I co-authored:

    https://github.com/LogMeIn/asyncly/blob/master/Test/Unit/fut...

What are some alternatives?

When comparing cargo-call-stack and asyncly you can also consider the following projects:

hyperswitch - An open source payments switch written in Rust to make payments fast, reliable and affordable

C-Coroutines - Coroutines for C.

itm - ARMv7-M ITM packet protocol decoder library crate and CLI tool.

cppcoro - A library of C++ coroutine abstractions for the coroutines TS

coro-chat - Playing with the C++17 Coroutines TS to implement a simple chat server