New features!
This version brings new concepts and new features: the possibility to get the real date and time, the possibility to control exactly who runs which function, many optimizations and more.
Changelog
Global
-
subdomains divided into separate modules
-
core renamed to private
-
added a module manager
-
shared enum and const values are in the module manager
-
Separation and rewriting of the doc
-
addition of full IMP-doc
-
hidden private files with DHP
-
Updated credit request
-
Updated license
dplib.math
-
added functions with binary search algorithm, a bit slower but extremely accurate:
- sin_bsa
- cos_bsa
- tan_bsa
-
added lcg random generators:
- random_binary_lcg
- random_range_lcg
- random_lcg
-
added lcm
-
fsin, fcos, have been replaced by sin, cos
-
ftan, tan have been replaced by tan_bsa
-
sin, cos have been replaced by sin_bsa, cos_bsa
-
sin, cos anti overflow scaling
-
sqrt optimized, 1250 times faster
-
cbrt optimized, 19 times faster
-
gcd optimized, 0.3 times faster
-
clamp optimized
-
comb optimized
-
random fixed, it could not mathematically give -2147483648
-
some parameters have been unified:
- copysign:
$number
becomes$in1
,$source
becomes$in2
- pow:
$number
becomes$in1
,$exponent
becomes$in2
- copysign:
dplib.threading
added a threading module to control the execution of functions
- thread/new
- thread/kill
- hierarchy/set_child_of
- hierarchy/set_parent_of
- scheduler
- dplib.threading:child (predicate)
- dplib.threading:parent (predicate)
dplib.datetime
Added a module to get the real world date and time
- get unix timestamp
- get UTC datetime
- get local time
- conversion/timestamp_to_datetime
- uninstallation warn
dplib.benchmark
added a benchmark module for datapack development
- start