Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dubtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
dc: [ldc-1.29.0]
dc: [ldc-1.30.0]

runs-on: ${{ matrix.os }}
steps:
Expand Down
59 changes: 59 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,62 @@
# Changelog for dutils v0.2.0 as of August 5, 2022

## NEW

### dutils.math

- Created dutils.math.core, dutils.math.def, and dutils.math.number.

- dutils.math.def contains the definitions for the template mathematical type: Mtype, and for the wrappers for the function and operator lists.

- dutils.math.number contains the definition of the Number type, which is currently incomplete and undocumented.
The Number type currently supports four operations: +, -, *, and /.

- dutils.math.core currently only supports registering and validating a function.

## REMOVED

- The entire library is getting a revamp, so I removed everything else.

# Changelog for dutils v0.1.4
### dutils.math

A math library for dutils. Capable of exectuting dstrings as user defined functions, provided that these
are functions that map C (the space of all complex numbers) to C.

The only operations supported are +, -, /, *, and ^^, with ^^ being exponentiation.

The whole math syntax is located in 'MATH SYNTAX.md'.

As of this version, all of the math operations are located in dutils.math.core.

## Add shared configuration

There is now a shared configuration that outputs a shared library as supposed to a dynamic one.

This configuration doesn't build with dmd 2.099.1 (and probably any dmd) due to spewing out a million
linker errors every single time I try. It does build with ldc 1.29.0, and I have no idea about GDC.

## Build Instructions

### Building from the repository (<repo_directory> is a placeholder for whatever directory the repository is copied to):

Requirements: dub 1.28.0 (should work on other dub, but not tested), and git

git clone https://RubyTheRoobster/dutils.git <repo_directory>
cd <repo_directory>

For a static lib build:

dub build --config=standard --build-mode=allAtOnce

For a shared lib build (requires ldc 1.29.0, untested on other ldc):

dub build --compiler=ldc2 --config=shared --build-mode=allAtOnce

### Building just using dub

dub build dutils

# Changelog for dutils v0.1.3
## transform.d
A library that contains all basic transofrmation functions(move, scale, and rotate), including a scale function that you can specify the axis to scale on.
Expand Down
51 changes: 40 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,42 @@
# dutils
A collection of(hopefully)useful modules in the D2 Programming Language.
# Changelog for dutils v0.1.3
## transform.d
A library that contains all basic transofrmation functions(move, scale, and rotate), including a scale function that you can specify the axis to scale on.
## physics.d
Added a frame-specified rotation function and the Plane enumeration.
## skeleton.d
Minor improvements to both Skeleton and Point structs.
### Skeleton struct
Made Skeleton.center the geometric center of the skeleton.
### Point struct
Added many operations, including opBinary, and allowed for these operators to be used with numerical types, not just other Point structs.

## Changelog for dutils v0.1.4:

### dutils.math

A math library for dutils. Capable of exectuting dstrings as user defined functions, provided that these
are functions that map C (the space of all complex numbers) to C.

The only operations supported are +, -, /, *, and ^^, with ^^ being exponentiation.


As of this version, all of the math operations are located in dutils.math.core.

## Add shared configuration

There is now a shared configuration that outputs a shared library as supposed to a dynamic one.

This configuration doesn't build with dmd due to spewing out a million
linker errors every single time I try. It does build with ldc2, and I have no idea about GDC.

## Build Instructions

### Building from the repository (<repo_directory> is a placeholder for whatever directory the repository is copied to):

Requirements: dub and git

git clone https://RubyTheRoobster/dutils.git <repo_directory>
cd <repo_directory>

For a static lib build:

dub build --config=standard --build-mode=allAtOnce

For a shared lib build (requires ldc2):

dub build --compiler=ldc2 --config=shared --build-mode=allAtOnce

### Building just using dub

dub build dutils
69 changes: 29 additions & 40 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,47 +23,36 @@
"importPaths": [
"./source/dutils"
],
"license": "GLP-3.0",
"license": "GPL-3.0",
"name": "dutils",
"sourceFiles": [
"./source/dutils/package.d"
],
"subPackages": [
{
"dependencies": {
"dutils:skeleton": ">=0.0.0"
},
"description": ".spr file format for images because I'm to lazy to use a preexisting one for sprites.",
"importPaths": [
"./source/dutils"
],
"name": "sprite",
"sourceFiles": [
"sprite.d"
],
"targetType": "library"
},
{
"description": "Module for doing some bionomial work in the D Programming Language(why did I make this).",
"importPaths": [
"./source/dutils"
],
"name": "binom",
"sourceFiles": [
"binom.d"
],
"targetType": "library"
},
{
"description": "General D math library.",
"importPaths": [
"./source/dutils/math"
],
"name": "math",
"sourceFiles": [
"package.d"
],
"targetType": "library"
}
]
}
"targetName": "dutils",
"targetPath": "lib",
"targetType": "staticLibrary",
"subPackages": [
{
"name": "math",
"configurations": [
{
"name": "standard",
"targetType": "library"
},
{
"name": "shared",
"targetType": "dynamicLibrary",
"versions": [
"DLL"
]
}
],
"importPaths": [
"./source/dutils/math"
],
"sourceFiles": [
"./source/dutils/math/package.d"
]
}
]
}
40 changes: 40 additions & 0 deletions source/dutils/math/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# dutils:math
The dutils math library.

## Changelog for dutils v0.2.0

### NEW

- Created dutils.math.core, dutils.math.def, and dutils.math.number.

- dutils.math.def contains the definitions for the template mathematical type: Mtype, and for the wrappers for the function and operator lists.

- dutils.math.number contains the definition of the Number type, which is currently incomplete and undocumented.
The Number type currently supports four operations: +, -, *, and /.

- dutils.math.core currently only supports registering and validating a function.

### REMOVED

- Any prexisting math library code due to it sucking.

## Build Instructions

### Building from the repository (<repo_directory> is a placeholder for whatever directory the repository is copied to):

Requirements: dub and git

git clone https://RubyTheRoobster/dutils.git <repo_directory>
cd <repo_directory>

For a static lib build:

dub build dutils:math --config=standard --build-mode=allAtOnce

For a shared lib build (requires ldc2):

dub build dutils:math --compiler=ldc2 --config=shared --build-mode=allAtOnce

### Building just using dub

dub build dutils:math
Loading