Giter Site home page Giter Site logo

nativelib's Introduction

[WIP] OS Independant Native Library

This is a native library written in C++ for use on multiple platforms [WIP].
The library project files are generated using Premake5, which can generate projects for multiple platforms such as Windows (Visual Studio) and Linux (MAKE).

Python 3.7+ is required for publish.py to run properly. This script copies the final binaries to lib folder. Python is also required to build the library for other platforms than Windows.

Tested platforms

✔️ Windows (Visual Studio 2019 C++17)
✔️ WebAssembly (EMScripten Compiler)

Library features

  • Container classes (Vector, Stack, LinkedStack, Queue, Map)
  • String class
  • Shared and Scoped RAII classes (similar to std shared_ptr and unique_ptr)
  • File I/O abstraction
  • Stream class
  • Assertions
  • JSON interactive objects (Parse, load and generate JSON)
  • Logger abstraction
  • Remote Procedure Calling (RPC) server using Named Pipes (Windows)
  • Exceptions with stack trace
  • Global allocators to trace memory
  • Mathematical vectors (Vector2, Vector3 and Vector4)
  • Token Parsing (Scanner for lexical analysis and such)
  • Threading utilities (ReadWriteLock, Interlocked)
  • System API Layer isolation
  • Platform definitions

Motivation

Provide a core isolated abstraction layer library for use in anything that wants more control of where and how its running. The idea is to not let loose the various system api calls hidden away in STL headers, but to route these to the library user instead, while providing common core functionality to help design a more stable and consistent codebase.

The name NativeLib comes from the idea of slim dependency on other libraries and the system itself, to see it as a native isolation layer where user builds app ontop.

The image below shows a visual idea of what NativeLib is designed for.

alt text

nativelib's People

Contributors

funkynicco avatar

Stargazers

 avatar  avatar XII avatar y11en avatar

Watchers

 avatar

Forkers

fcccode

nativelib's Issues

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.