Coder Social home page Coder Social logo

jbl's Introduction

Jeff's Base Library (JBL)

A base library for C++11 and beyond.

Build Status

Operating System Compiler Status
Windows MSVC 2015/2017 Build status
Linux Clang BuildStatus
Linux GCC BuildStatus
MacOS Clang BuildStatus

Motivations

  1. Portability - Sticking to C++98 headers from the STL, while using C++11,C++14,C++17 features allow us to use a front end that accepts new modern C++ language features, while still being able to target the standard library to an older version. This is specifically useful when targeting MacOSX 10.6 or lower, because I can use C++11 language features and use libstdc++ as libc++ requires MacOSX 10.7 or higher.

  2. Consistency - The lot of implementations of the STL are implementation defined. I want a toolbox that I can use across multiple toolchains and be the same. For example, Small String Optimization inside of my String library.

  3. Less Bloat - The STL is a huge toolbox. I doubt that I have ever even used half of what is available in the STL, and it keeps growing. Look at the bloat with streams...

  4. Control - I like to have control over fixing bugs instead of relying on compiler vendors to hopefully fix the bugs (Some of the STL had regressions going from Visual studio 2010 and haven't been fixed just until the latest update to VS2015, or take the whole std::chrono debacle where the high precision timer wasn't being used for a long time)

  5. Performance - Take std::unordered_map and how many different heap allocations it does. Sure, I could go out of my way to write a custom allocator. Also, there are quite a few inefficiencies between standard libraries versions. For example, small string optimization is implemented in some versions of the STL while others are not. I want consistency in performance.

  6. Debug times in some implementations are extremely slow because of error checking and exceptions. I realize that debug is supposed to be slower, but in my own opinion it was sometimes excessive.

  7. Personal Learning - I wanted to practice writing data structures and understand the work that the STL hides from the programmer.

Compilers tested:

  • MSVC Community Edition 2015 (Latest Update) (CI)
  • MSVC Community Edition 2017 (Latest Update) (CI)
  • Apple XCode 8.3.3 with Clang (CI)
  • Clang 3.5 (CI)
  • GCC 4.8.4 (CI)

License

This library has been relicensed under the MIT License, from the 3 Clause BSD License. See LICENSE for more information.

jbl's People

Contributors

jeffprogrammer avatar

Watchers

James Cloos avatar  avatar

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.