Code Monkey home page Code Monkey logo

toolgal's Introduction

ToolGal Tool Manager

This is the C++ source to a tool management program I wrote for George Brown. It's a Win64 checkin/checkout application with some general database operations built in. The code was intentionally architected in a data-oriented fashion, because the program this was tasked to replace used SQL databases and object-oriented code, which reduced performance.

To ensure that performance was totally controllable, no garbage collector or managed runtime was used for the GUI or other subsystems. UI, input, and rendering are completely custom, built on the SDL2 platform layer.

Of potential engineering interest in this project is a simple stack-based linear "temporary" allocator which allows for O(1) effective automatic memory management. It's not identical to a generational garbage collector, because it doesn't track object lifetimes, but the code is written with the knowledge that the lifetime of an object allocated by the temporary allocator will end at the frame boundary. (The GUI is what some call an "immediate mode GUI", and it renders at a consistent interval in order to draw smooth animations.)

The source contains a few bits of hacky code, but I've presented it as-is.

Building

Visual Studio 2017 is required.

To build:

C:\toolgal>project build

To build in release mode:

C:\toolgal>project build release

Take note that the output executable name will be that of the surrounding folder, and will be located in bin\.

License

Copyright 2017-2019 Phillip Trudeau-Tavara. All rights reserved.

toolgal's People

Contributors

pmttavara avatar

Stargazers

Ryan McQuen 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.