Giter VIP home page Giter VIP logo

niknaks's Introduction

Niknaks

DUB DUB DUB D Coverage Status

Helpful niknaks or "things" that you may grasp for now and then

Usage

To add the package to your project use the following:

dub add niknaks

Now read the DOCS!

Modules

Below is a short description of what each module provides, the list is expected to grow over time.

  • niknaks.functional
    • Predicates
    • Optionals
  • niknaks.arrays
    • Unique element generation
    • Prescence checking
  • niknaks.bits
    • Integral to byte conversions
    • Byte ordering functions
  • niknaks.debugging
    • Automagic dumping of arrays to textual representation
      • Supports arrays-of-arrays-of...
    • Some textual manipulation routines as well
  • niknaks.containers
    • Some useful container types
    • Things such as CacheMap

License

LGPL 3.0

Contributing

If there is something let me know or open a pull request for it. Try to keep the implementation generic as in by using parameterized types via D's templating capabilities.

Only make use of exceptions where it is absolutely necessary, normally go for an exception-less implementation and have an exception-based one which re-uses the former.

For more information please see CONTRIBUTING.

niknaks's People

Contributors

deavmi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

niknaks's Issues

Unique ID generation status check

Purpose

The unique ID generation should place the result into a ref parameter and then return a bool stating whether we found a unique ID or not.

  • Implement ref-based argument
    • If we loop again from start then return false, else true and set the ref int parameter

Predicates with delegate support

Purpose

If we just have plain-old function pointer support then we just store a pointer ptr to the function's first instruction. However, many times we want to actually have a function that is a delegate meaning its instructions are comprised of references that can refer to a address base, known as the "context" (this is .ptr and the function code is funcptr then).

This helps in cases where the function can reach to its parameters, its local stack but then the catch it to outside variables by the context.ptr.

Todo

  • Delegate detection?
  • Unit testing

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.