Commit Graph
17 Commits
Author SHA1 Message Date
Zach Kelling 8e13df0a8b chore: update go.mod 2025-12-31 22:21:37 -08:00
Zach Kelling 107c43637e 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
Zach Kelling 086468c3ca 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
Zach Kelling 5675cd73a6 deps: upgrade crypto to v1.17.25 v1.1.1 2025-12-21 11:11:46 -08:00
Zach Kelling 83bf9799d5 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
Zach Kelling 8015ec9f82 Update dependencies to latest versions v1.0.2 2025-12-13 10:42:20 +00:00
Zach Kelling 9cf2d96eec 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
Hanzo Dev 7ec590f9f9 Release v1.0.0 v1.0.0 2025-12-04 08:38:47 -08:00
Hanzo Dev 7fbb28a575 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
Hanzo Dev 84ce29ae02 Add Peek method to Set v0.1.4 2025-10-30 12:33:06 -07:00
Hanzo Dev c25b6e7f89 Update go.mod v0.1.3 2025-10-30 12:12:02 -07:00
Hanzo Dev a154081bc1 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
Hanzo Dev 93e59bf1d4 Update set implementation and add documentation 2025-10-28 09:59:35 -07:00
Zach Kelling bd2d8bed31 Update go.mod dependencies 2025-09-24 02:39:13 +00:00
Zach Kelling 2a3a7e8a14 chore: standardize on Go 1.25.1 2025-09-21 08:44:30 +00:00
Zach Kelling 4ba63b8a06 fix: set Go version to 1.22.8 for compatibility v0.1.1 2025-09-21 07:58:55 +00:00
Hanzo Dev f271a0362b Initial commit: Lux math library v0.1.0 2025-08-18 13:18:19 -05:00