smallfunction

Stack allocated and type-erased functors 🐜 (by jcelerier)

Smallfunction Alternatives

Similar projects and alternatives to smallfunction

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better smallfunction alternative or higher similarity.

smallfunction reviews and mentions

Posts with mentions or reviews of smallfunction. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-12.
  • Audio Libraries Considered Challenging
    1 project | /r/programming | 18 May 2022
    However, std::function which can be used for storing multiple closures can indeed heap allocated. Since this is undesirable, I use an equivalent with static fixed storage instead: https://github.com/jcelerier/smallfunction/blob/master/smallfun/include/smallfun.hpp which gives me a compile error if I try to stuff too much data in there.
  • Qt 6.3 Released
    10 projects | news.ycombinator.com | 12 Apr 2022
    and conversely from the engine to the UI thread ; Qt signals do not cut it as emitting them allocate, if only a few bytes. (Doing it naively with std::function doesn't cut it either - I use this instead to store these functions: https://github.com/jcelerier/smallfunction/blob/master/small... ; also, the audio threads feeds back those functions into the main thread after their execution so that any memory owned by the lambda ends up being freed here and not in the audio thread.)

Stats

Basic smallfunction repo stats
2
2
2.4
about 1 year ago

jcelerier/smallfunction is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of smallfunction is C++.


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