tern 0.2.12
General-purpose and diverse library intended to expand upon Phobos
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Tern
<p align="center"> <a href="https://code.dlang.org/packages/tern"> <img src="https://img.shields.io/dub/v/tern"/> </a> <a href="https://github.com/cetio/tern"><img src="https://img.shields.io/github/repo-size/cetio/tern.svg" alt="GitHub repo size"/></a> <a href="https://github.com/cetio/tern"><img src="https://img.shields.io/github/languages/code-size/cetio/tern.svg" alt="GitHub code size"/></a> <a href="https://github.com/cetio/tern"><img src="https://img.shields.io/github/commit-activity/t/cetio/tern" alt="GitHub commits"/></a> <a href="https://raw.githubusercontent.com/cetio/tern/main/LICENSE.txt"><img src="https://img.shields.io/github/license/cetio/tern.svg" alt="GitHub repo license"/></a> </p>
GET JOLLY
Functional programming
tern.algorithmalgorithms, lazy ranges, and common range functionality.tern.algorithm.iterationtern.algorithm.lazy_filtertern.algorithm.lazy_maptern.algorithm.lazy_substitutetern.algorithm.mutationtern.algorithm.rangetern.algorithm.searchingtern.functionalvarious implementations for functional programming and iteration.planefor arbitrary iteration with a predicate across a range.tern.lambdautilities for working with lambdas, specialized for range lambdas.- provides support for invoking lambdas dynamically based on arguments, ie:
(ref index, element, sum) => ...and everything in-between.
Meta programming
tern.typecons.variant.VadTypefor partial mocking and arbitrary field modification/addition.tern.accessorsautomatic accessor/property generation with support for any flags that are present.tern.blitutilities for type data blitting and dynamically getting information from ranges.tern.ctrandcomptime random number generation.- inherently very flawed beyond articulation.
tern.lambdalambda specialized template instantiation and invocation.tern.meldfunction map generation and custom inheritance.tern.metatiny algorithms and comparisons forAliasSeq.tern.traitsexpansion onstd.traits.- more comparisons, better comparisons, and generation of signatures of type members.
Threading
tern.atomicimproved atomic operations, built uponcore.atomic.tern.concurrencyarbitrary threaded function execution and parallel processingawaitandasyncfor calling a function on a new thread.tern.typecons.security.Atomicfor wrapping any type to be thread-safe (not accounting for statics.)tern.experimental.monitorcreating and deleting object monitors.
Math
tern.evalequation evaluator.tern.integerarbitrary sized integers.tern.matrixmatrix implementation backed bytern.vector.tern.tensortensor implementation backed bytern.matrix.tern.vectorvector implementation backed by SIMD vectors.
Memory
tern.experimental.constexprdata segment allocated type wrapper.tern.experimental.ds_allocatordata segment allocator.tern.experimental.heap_allocatorfast slab-based heap allocator with optional thread-safety.tern.stream.memory_streamsimple, fast memory stream.tern.memoryvarious general-purpose memory utilities.- hardware-accelerated
copyandmemset. makeEndianfor making data be of an endianness.tern.serializationserialization for arbitrarily typed data.
Data
tern.streamvarious different performant stream implementations.tern.stream.atomic_streamtern.stream.binary_streamtern.stream.memory_streamtern.stream.file_streamtern.algorithmalgorithms, lazy ranges, and common range functionalitytern.algorithm.iterationtern.algorithm.lazy_filtertern.algorithm.lazy_maptern.algorithm.lazy_substitutetern.algorithm.mutationtern.algorithm.rangetern.algorithm.searchingtern.stringalgorithms and utilities for working with strings.tern.serializationserialization for arbitrarily typed data.tern.stateenum flags and mask interactions.tern.hresultWindows HResult implementation.
Cryptography
tern.digestdigest implementation and crypto algorithms.tern.digest.adler32tern.digest.anuraAnura256Anura1024
tern.digest.berustern.digest.chacha20tern.digest.cipherimports all ciphers.tern.digest.circetern.digest.cityhashtern.digest.crc32tern.digest.djb2tern.digest.elfhashtern.digest.fnv1tern.digest.gimlitern.digest.hashimplements all hashes.tern.digest.highttern.digest.md5tern.digest.miraMira256Mira512
tern.digest.murmurhashtern.digest.rc4tern.digest.ripemdtern.digest.salsa20tern.digest.shaSHA1SHA256SHA512SHA224SHA384
tern.digest.superfasthashtern.digest.teaTEAXTEAXXTEA
tern.digest.xxhashtern.typecons.security.Blindtiming/power attack protected type wrapper.tern.typecons.security.Opaqueauto-encrypted type wrapper.
Typecons
tern.typecons.automemtern.typecons.automem.Uniquescope-disposed non-reassignable/copyable pointer.tern.typecons.automem.Scopedscope-disposed reassignable/copyable pointer.tern.typecons.automem.RefCountedref-counted reassignable/copyable pointer.tern.typecons.automem.Trackedcache -> free based pointer.tern.typecons.automem.Disposablescope-disposed type wrapper.tern.typecons.commontern.typecons.common.BlackHoletern.typecons.common.WhiteHoletern.typecons.common.Nullable(yes it's actually nullable)tern.typecons.common.Singletontern.typecons.common.Enumerablecopy-based un-immutable range wrapper.tern.typecons.common.Enumerablecopy-based un-immutable type wrapper.tern.typecons.securitytern.typecons.security.Atomictern.typecons.security.Blindtiming/power attack protected type wrapper.tern.typecons.security.Opaqueauto-encrypted type wrapper.tern.typecons.varianttern.typecons.variant.VadType
Other
tern.experimental.assemblyassembly shenannigans and ABI support.tern.hardwarehardware identification and features.tern.exceptionparser oriented throwing with highlighting.tern.benchmarkconfigurable parameterized benchmarking with global benchmark keeping.tern.exectern.regex
- 0.2.12 released a year ago
- cetio/tern
- AGPL-3.0-only
- Copyright © 2024, cet
- Authors:
- Dependencies:
- intel-intrinsics, tanya
- Versions:
-
Show all 31 versions0.2.27 2025-Mar-31 0.2.26 2024-Aug-26 0.2.25 2024-Aug-26 0.2.24 2024-Aug-14 0.2.23 2024-Aug-07 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
3 downloads this month
-
355 downloads total
-
- Score:
- 0.9
- Short URL:
- tern.dub.pm