16 Commits
Author SHA1 Message Date
zeekay 7aa527e883 feat: add heap, linked, sorting, zero - remove utils dependency
- Add Zero[T any]() generic function for zero values
- Add IsSortedBytes for byte slice sorting checks
- Add heap/queue.go with priority Queue[T] implementation
- Add heap/map.go with indexed Map[K,V] for heap operations
- Add linked/list.go with doubly-linked List[T]
- Add linked/hashmap.go with ordered HashMap[K,V]
- Update sampleable_set.go to use local luxmath.Zero[T]()
- Update averager_heap.go to use github.com/luxfi/math/heap
- Update safe_math.go to use luxmath.Zero[T]()
- Remove github.com/luxfi/utils dependency entirely
v1.2.0
2025-12-24 15:06:41 -08:00
zeekay f68e2e7ec9 refactor: remove node dependency, use extracted packages
- Replace github.com/luxfi/node/utils with github.com/luxfi/utils
- Replace github.com/luxfi/node/utils/sampler with github.com/luxfi/sampler
- Replace github.com/luxfi/node/utils/wrappers with github.com/luxfi/utils/wrappers
- Replace github.com/luxfi/node/utils/json with github.com/luxfi/utils/json
v1.0.5
2025-12-24 14:12:00 -08:00
zeekay 9f1a663519 deps: upgrade crypto to v1.17.25 v1.1.1 2025-12-21 11:11:46 -08:00
zeekay e6468fe6da Add generic safe math operations
Provides overflow/underflow protected Add, Sub, Mul operations
with generic constraints for all unsigned integer types.
v1.1.0
2025-12-19 08:45:58 -08:00
zeekay 412f691d17 Update dependencies to latest versions v1.0.2 2025-12-13 10:42:20 +00:00
zeekay aea7bc31f9 Remove local replace, update to latest luxfi versions
- Remove local replace directive for luxfi/utils
- Use published github.com/luxfi/utils v1.0.0
- Update github.com/luxfi/geth: v1.16.34 -> v1.16.43
- Update github.com/luxfi/ids: v1.0.2 -> v1.1.4
- Update github.com/luxfi/crypto: v1.2.9 -> v1.17.15
- Update Go version to 1.25.5
- All tests pass
v1.0.1
2025-12-11 05:44:25 +00:00
zeekay 078a174346 Release v1.0.0 v1.0.0 2025-12-04 08:38:47 -08:00
zeekay bdd591802f feat: math v0.1.5 - set improvements and documentation
- Add clear method to Set type
- Add documentation site structure
- Update Go module version
v0.1.5
2025-12-03 23:58:07 -08:00
zeekay 62ab32e55f Add Peek method to Set v0.1.4 2025-10-30 12:33:06 -07:00
zeekay 9d12d0325b Update go.mod v0.1.3 2025-10-30 12:12:02 -07:00
zeekay 87d0f7d75a Add missing Set methods and fix tests
- Make Add() variadic to accept multiple elements
- Add Overlaps() method to check for common elements
- Add Pop() method to remove and return an element
- Add NewSet() constructor with optional initial capacity
- Implement MarshalJSON/UnmarshalJSON for JSON serialization
- Fix test to use return values from Union/Difference

All tests now passing.
2025-10-28 09:59:35 -07:00
zeekay 2ce2f6b6a8 Update set implementation and add documentation 2025-10-28 09:59:35 -07:00
zeekay de63cb1a34 Update go.mod dependencies 2025-09-24 02:39:13 +00:00
zeekay bf3ff16e0b chore: standardize on Go 1.25.1 2025-09-21 08:44:30 +00:00
zeekay 7e5fa35ba8 fix: set Go version to 1.22.8 for compatibility v0.1.1 2025-09-21 07:58:55 +00:00
zeekay a60905ab45 Initial commit: Lux math library v0.1.0 2025-08-18 13:18:19 -05:00