belka
edc3296083
Drop support for dmd 2.073.2, remove deprecations
2017-09-12 06:07:16 +02:00
belka
e8143bd0cc
Fix template constraints style in tanya.math
2017-09-11 06:48:47 +02:00
belka
3eb8618c32
Add range.primitive
2017-09-10 10:35:05 +02:00
belka
3567a6608e
Add generic description for 'meta' package
2017-09-09 11:48:30 +02:00
belka
520bd399a3
Add template-time Set and set-theoretic metafunctions
2017-09-05 05:51:34 +02:00
belka
d38e33593e
Add traits for working with UDAs
2017-09-03 00:00:43 +02:00
belka
34b79ad46e
Update compiler version list in the README
2017-09-02 09:48:28 +02:00
belka
515bf619e8
Add support for dmd 2.076.0
2017-09-01 19:38:44 +02:00
belka
617eaab9a2
tanya.format: Cast lookup array index to size_t
2017-08-30 12:20:42 +02:00
belka
d946b598fd
Add internal sprintf-compatible format function
...
format() has full support for sprintf format but is written completely in D.
It is currently internal, since it is not typesafe and uses GC at one place.
After some work the function can be made public.
2017-08-29 10:38:03 +02:00
belka
e9d7e9eb73
Add documention for newly added metafunctions
...
Docs for:
* ZipWith
* Min
* Max
Unittests for "Instantiate".
2017-08-28 16:07:02 +02:00
belka
4dbfbe9874
Add new metafunctions: Min, Max, ZipWith
...
Documentation follow
2017-08-27 15:32:05 +02:00
belka
25d59ffdda
Remove "static" prefix from metafunctions
2017-08-26 10:37:22 +02:00
belka
2c064eb05b
Add hasElaborate traits
2017-08-25 14:50:15 +02:00
belka
c9a4a2f651
Add "native" configuration and TanyaPhobos version
2017-08-25 00:29:43 +02:00
belka
0e99effaeb
net.inet: Remove htonl/htons based unit tests
2017-08-24 07:45:16 +02:00
belka
0f1e53b4b9
format.conv: Replace loop with copy()
2017-08-22 12:47:13 +02:00
belka
666d59c231
Add traits for checking if class, iface, struct
...
They are useful for compile-time algorithms like Filter, StaticMap and
so on.
2017-08-22 11:12:41 +02:00
belka
ce90b4865b
Make front and popFront for arrays public
...
This commit adds tanya.range.array module which contains functions to make
the arrays act as ranges. These functions don't do any auto-decoding for
strings.
2017-08-21 06:49:02 +02:00
belka
beb5d6963b
Complete tanya.meta.metafunction
2017-08-20 12:29:48 +02:00
belka
a188f8b6e2
Rename traits module to trait
2017-08-19 11:28:08 +02:00
belka
9355c54163
Add metafunctions
2017-08-18 23:38:41 +02:00
belka
e8dd6e3217
Add more traits
2017-08-16 06:45:15 +02:00
belka
afd3c42c5f
Add meta.traits module
2017-08-14 14:21:10 +02:00
belka
1d91bb4df9
Add templates to meta.transform
2017-08-14 14:13:43 +02:00
belka
a5026e48d8
Add meta.transform package
...
Templates in this module applied to a type produce a transformed type.
2017-08-13 19:12:46 +02:00
belka
64f2295d1a
Fix #276
...
Add link to the source file for each module.
2017-08-12 17:01:51 +02:00
belka
dea0eb9a37
Add function for comparing memory regions
...
memory.op.cmp.
2017-08-11 22:15:01 +02:00
belka
7c2abadb90
Add memory.op.copyBackward
...
Added function that can copy memory chunks that can overlap.
2017-08-09 07:01:57 +02:00
belka
2934bb16d7
Rename memory.op.zero into fill
...
- Rename memory.op.zero to fill, which accepts one template parameter: one
byte to fill the memory with.
- Fix bug on x86_64: RAX (register keeping the value to fill with) isn't set if
the pointer was already aligned.
2017-08-06 06:22:28 +02:00
belka
ed92e3993e
Add fast function to zero memory
2017-08-02 06:41:54 +02:00
belka
04864559e2
Respect how Windows passes arrays on x86_64
...
tanya.memory.arch.x86_64:
Linux passes the array length and the data pointer in separate registers.
Windows passes a pointer to the whole array instead (pointer to the
array length practically).
2017-07-31 04:23:21 +02:00
belka
40e43c1465
Add memory.op.copy
2017-07-30 00:08:41 +02:00
belka
5d145f524c
Add fast memory copy function for x86-64
2017-07-29 10:08:44 +02:00
belka
51ade45108
Add internal routing to convert a number to string
...
Add internal routing to write a number to a char buffer.
2017-07-28 09:08:58 +02:00
belka
3afb40e09e
format.conv: Convert string to a boolean
2017-07-27 08:48:44 +02:00
belka
a9cc135318
format.conv: Add conversion from bool to String
2017-07-26 06:49:33 +02:00
belka
1389b03842
memory: Fix parameter name in the documentation
...
Size parameter for "make" was renamed into n, but the function
description wasn't fixed:
size => n
This commit also removes some redundant variables in "make".
2017-07-25 07:40:14 +02:00
belka
a37c9b162e
container.Set: Reduce duplicated code, add tests
2017-07-22 07:40:58 +02:00
belka
922c8bf7a3
Fix assigning a ByCodeUnit to the String slice
...
std.algorithm.mutation copy is unable to copy a char range into a char array slice.
2017-07-19 07:58:48 +02:00
belka
a1f4d2bc1c
If scheme is invalid, parse everything as path
2017-07-18 23:01:57 +02:00
belka
e5fb95ceb0
Fix #254
...
network.url Range violation.
Add a check after parsing "scheme://" whether only the scheme is available.
2017-07-17 04:57:33 +02:00
belka
42146c5e8a
Fix #259
...
Get rid of std.experimental.
2017-07-15 22:25:29 +02:00
belka
e6b91f70cb
Add style checking
...
A lot of tests are disabled. They should be enabled successively.
2017-07-14 00:05:13 +02:00
belka
657f4a60d5
Fix #246
...
Make allocators pure.
* Methods allocating/deallocating memory are pure.
* Allocator.instance is pure (once initialized, it always returns
the same instance).
* defaultAllocator getter property is pure (should be set at the
beginning, and always return the same instance after that).
2017-07-13 16:01:21 +02:00
belka
839c740cb1
Fix mmap flags on linux
2017-07-12 10:04:48 +02:00
belka
2bd612fd19
Make MmapPool allocations pure
2017-07-12 09:30:07 +02:00
belka
fc53779d3f
Fix #245
...
* Remove postcondition for functions calculating alignment
* Put MmapPool invariant into version (none) block
* Check that alignment doesn't overflow
2017-07-11 10:27:24 +02:00
belka
7bdc778390
Fix inserting 3 byte wchar into String
...
* Fix inserting 3 byte wchar into String
* Improve documentation
2017-07-09 15:16:06 +02:00
belka
4834b36271
Finish DList implementation. Fixes #209
...
* removeBack
* insertAfter
* Diverse fixes of insertion logic
* Internal moveFront and moveBack functions
* Internal makeList function
2017-07-08 15:51:17 +02:00