Giter Site home page Giter Site logo

cons-cat / libcat Goto Github PK

View Code? Open in Web Editor NEW
61.0 5.0 4.0 2.63 MB

๐Ÿˆโ€โฌ› A runtime for C++26 w/out libC or POSIX. Smaller binaries, only arena allocators, SIMD, stronger type safety than STL, and value-based errors!

License: Mozilla Public License 2.0

C++ 98.45% CMake 1.32% GDB 0.03% Emacs Lisp 0.01% Python 0.19%
linux simd allocators threads cpp20

libcat's Introduction

libCat ๐Ÿˆโ€โฌ›

libCat is a non-POSIX compliant C++26 runtime. It has no pthreads nor malloc(), and by extension no exceptions. It has type-safe arithmetic, SIMD, fast syscalls, interfaces (also known as facades), hierarchical memory allocators, and value-based error-handling, among many other features.

http://wgoo.ch/overflow.html

https://youtu.be/BrBb0mqoIAc

More essays and videos will come in the future.

Building

libCat requires a development version of GCC 15 from the trunk branch. Compiling libCat is only tested using ninja. Configuring the build requires CMake 3.29.

$ cmake -B build/ -G 'Ninja Multi-Config' # or: cmake -B build -GNinja
$ cmake --build build/  # or: ninja -C build/
$ ./build/tests/Debug/unit_tests

The .clang-format and .clang-tidy configurations are only compatible with recent builds of clang-tools from the main branch.

libcat's People

Contributors

cons-cat avatar electronicsarchiver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libcat's Issues

How about less restrictive license?

Hi,

I'm considering development of my next Commodore Amiga game using C++, but unfortunately the prominent distribution of bleeding edge GCC in our community lacks STL and most of stdlib. So, I'm looking for a replacement, and this one looks like it could do the job! If it works with reasonable performance, which I think it will, I'd probably end up endorsing this library to be used in tandem with my Amiga gamedev library/framework, which I'm developing for 10 years now.

Unfortunately, linking with GPL (or Affero GPL) requires making the remaining code on similar license, which is kinda no no for me - I'm all for open source, but forcing such license discourages some commercial scenarios, unfortunately - speaking plainly, you can't keep your game closed source while using open code, which is something some of my users prefer doing.

So, how about using some lightweight, less viral license with less text and caveats? If you want people to share their modifications back, MPL2 could be a good choice. If you just prefer attribution, MIT/BSD would be just fine. Or is it GPL because your code borrowed something GPLy from other source?

Thanks for considering it!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.