project-ffi-unwind

By rust-lang

Project-ffi-unwind Alternatives

Similar projects and alternatives to project-ffi-unwind

  • glibc

    Unofficial mirror of sourceware glibc repository. Updated daily. (by bminor)

  • druntime

    Discontinued Low level runtime library for the D programming language

  • 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
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better project-ffi-unwind alternative or higher similarity.

project-ffi-unwind reviews and mentions

Posts with mentions or reviews of project-ffi-unwind. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-04.
  • Comparing Exceptions and Errors in D
    3 projects | news.ycombinator.com | 4 Jun 2022
    FWIW, C++'s noexcept specifier turns exceptions into aborts rather than letting them escape [1]:

    > Non-throwing functions are permitted to call potentially-throwing functions. Whenever an exception is thrown and the search for a handler encounters the outermost block of a non-throwing function, the function std::terminate or std::unexpected (until C++17) is called:

    Microsoft's dialect of C++ has a nothrow attribute which is purely advisory, like D's, and is now deprecated in favour of noexcept [2]:

    > We recommend that all new code use the noexcept operator rather than __declspec(nothrow).

    > This attribute tells the compiler that the declared function and the functions it calls never throw an exception. However, it does not enforce the directive. In other words, it never causes std::terminate to be invoked, unlike noexcept, or in std:c++17 mode (Visual Studio 2017 version 15.5 and later), throw().

    Rust has panics, which by default unwind, like exceptions, but can be compiled to abort instead [3]:

    > By default, when a panic occurs, the program starts unwinding, which means Rust walks back up the stack and cleans up the data from each function it encounters. However, this walking back and cleanup is a lot of work. Rust, therefore, allows you to choose the alternative of immediately aborting, which ends the program without cleaning up.

    I don't believe there is any stable or planned way to declare that normal Rust functions cannot panic (so should abort instead of letting the panic escape). But there is some work towards the idea that extern "C" functions should do so [4].

    [1] https://en.cppreference.com/w/cpp/language/noexcept_spec

    [2] https://docs.microsoft.com/en-us/cpp/cpp/nothrow-cpp?view=ms...

    [3] https://doc.rust-lang.org/book/ch09-01-unrecoverable-errors-...

    [4] https://github.com/rust-lang/project-ffi-unwind/blob/master/...

Stats

Basic project-ffi-unwind repo stats
1
37
3.6
8 months ago

rust-lang/project-ffi-unwind is an open source project licensed under Apache License 2.0 which is an OSI approved license.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com