Skip to content

lni-dev/LUtils

Repository files navigation

LUtils

A Utils Library for my other Projects

Installation

Add it as implementation to your build.gradle.

repositories {
    mavenCentral()
}

dependencies {
    implementation 'de.linusdev:lutils:1.1.3'
}

Contents

  • LLinkedList: A thread safe linked list
  • SGR: ANSI "Select Graphic Rendition" control sequence
  • Color: Color class (RGBA and HSVA)
  • Bitfield: Bitfield classes
  • Async Framework: Async classes
  • Structure: classes to create C-structures in Java
  • VMath: Vector and matrix math. Buffer backed or array backed.
  • HTTP: HTTPRequest, HTTPResponse, Header and more.
  • Code Generator: Generate Java Code. WIP!

Todo

  • Replacement for nio.DirectByteBuffer:
    • DirectByteBuffer.allocatedDirect() is slow and bad for GC: see https://blog.lwjgl.org/memory-management-in-lwjgl-3/
    • Replace it with a custom buffer, which uses Unsafe for allocation
    • Middleware interface between the buffer and Unsafe, so Unsafe could be easily replaced with native functions, that call malloc and free.

About

A Utils Library for my other Projects

Topics

Resources

License

Stars

Watchers

Forks

Languages