The Solution of Foundationallib

By G.C.

# foundationallib

Finally, a cross-platform, portable, well-designed, secure, robust, maximally-efficient C foundational library — Making Engineering And Computing Fast, Secure, Responsive And Easy.


Library Uses - What It Does, What It Is, And What It Is A Solution For


Foundationallib Features

Functional Programming Features - map, reduce, filter, List Comprehensions in C and much more!

Expands C's Primitives for easy manipulation of data types such as Arrays, Strings, Dict, Set, FrozenDict, FrozenSet - and enables easy manipulation, modification, alteration, comparison, sorting, counting, IO (printing) and duplication of these at a very comfortable level - something very, very rare in C or C++, all without any overhead.

More comfortable IO - read and write entire files with ease, and convert complex types into strings or print them on the screen with ease.

A powerful general purpose Foundational Library - which has anything and everything you need - from replace_all() to replace_memory() to find_last_of() to to list_comprehension() to shellescape() to read_file_into_string() to string_to_json() to string_to_uppercase() to to_title_case() to read_file_into_array() to read_files_into_array() to map() to reduce() to filter() to list_comprehension_multithreaded() to frozen_dict_new_instance() to backticks() - everything you would want to make quick and optimally efficient C programs, this has it.

Helps to make programs hundreds of times faster than other languages with similar ease of creation.


Easily take advantage of CPU cores with list_comprehension_multithreaded().

You can specify the number of threads, the transform and the filter functions, and this will transform your data - all in parallel. Don't have a multithreaded environment? Then disable it (set the flag).


You don't want to be reinventing the wheel and hoping that your memory allocation is secure enough - and then failing. Security Is Paramount.

You don't want to be waiting a day for an operation to complete when it could take less than an hour.


This library is founded on very strong and unequivocal goals and philosophy. In fact, I have written many articles about the foundation of this library and more relevantly the broader context. See the Articles folder - for some of the foundation of this library.


This library is an ideal and a dream - not just a Software Library. As such, I would highly suggest that you support me in this mission. Even if it's different from the status quo.
Are you a Rust or Zig fan? Then make a Rust or Zig version of this ideal. Let's go. Give me an email.


No Copyright - Public Domain - 2023, Gregory Cohen DONATION REQUEST: If this free software has helped you and you find it valuable, please consider making a donation to support the ongoing development and maintenance of this project. Your contribution helps ensure the availability of this library to the community and encourages further improvements. Donations can be made at: https://www.paypal.com/paypalme/cfoundationallib Note: The best way to contact me is through email, not social media. Please feel very free to email me if you want to express feedback, suggest an improvement, desire to collaborate on this free and open source project, want to support me, or want to create something great. Complacency and obstructionism and whining are not tolerated. I desire to make this library the best theoretically possible, so please, let us connect.

This code is in the public domain, fully. You can do whatever you want with it. See docs.html for API reference.

Here's some examples of some things you can do easily with Foundationallib.

Use it for scripting purposes...

Take control of the Web - in C.

Previous article Next article