bjnw / libft

norme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License

libft

Achievement unlocked!

Ne plus ultra

Collections (iterators included)

Abstract is a base class for iterable collections, that provides common high-order functions and internal iterators (e.g. map(), filter(), reduce(), flatten(), zip(), take(), foreach(), iter(), next()…) for all objects, derived from this class.

include/abstract.h

src/collection/abstract

Vector is a general-purpose cache-friendly data structure. It provides quick random access and updates in effectively constant time, as well as fast append, and automagically resize. Vector provides some utile methods and iterators (e.g stream(), slice(), reversed(), find(), binsearch(), patch(), sort()).

include/collection/vector.h

src/collection/vector

Workqueue

Workqueue is a convenient way for dispatching queue of asynchronous tasks. Group of pre-instantiated, idle threads, which stand ready to work, prevents having to incur the overhead of creating a thread many times for each task.

include/workqueue.h

src/workqueue

Baby’s first garbage collector

This implementation of semi-automatic GC uses information about call stack behavior.

src/core/amalloc.c

BigInt

Unpretentious big integer math library.

include/bigint.h

src/bigint

Épilogue

feel free to free()

About

norme

License:Do What The F*ck You Want To Public License


Languages

Language:C 97.5%Language:Makefile 1.9%Language:Python 0.4%Language:Shell 0.2%