aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Nested
Commit message (Collapse)AuthorAge
* Eliminate all QuantifiedConstraints extensions from the codeMikolaj Konarski7 days
|
* Use shxDropSSX instead of shxSplitApp, etc.Mikolaj Konarski7 days
|
* Add pragmas to functions that -fprof-late-overloaded-calls reportsMikolaj Konarski7 days
| | | | | | | as breaking the chain of specialization (but it's currently broken, so these may be false positives, but these pragmas may be handy in the future anyway and they can't do much harm in theory and in practice they are right now neutral performance-wise).
* Remove ixsFromIxR' and simplify ixsFromIxRMikolaj Konarski7 days
|
* Make List?, except ListH, less generalMikolaj Konarski7 days
|
* De-triplicate ix?ToLinearMikolaj Konarski7 days
|
* De-triplicate sh?EnumMikolaj Konarski7 days
|
* Define ix?FromLinear without THMikolaj Konarski7 days
|
* Implement index conversions as unsafeCoerceMikolaj Konarski7 days
| | | | until maybe we make shaped and ranked newtypes over mixed?
* Optimize slightly sh?FromList and sh?ToListmild-tweaks-repackagedMikolaj Konarski7 days
|
* Implement ranked shape conversions as newtype coercesMikolaj Konarski7 days
|
* Make ShR a newtype over ShXMikolaj Konarski7 days
|
* Add the trivial Eq and Ord instances also for StaticShXMikolaj Konarski7 days
|
* Prefer newtype deriving over Generic deriving for simplicityMikolaj Konarski7 days
|
* Temporarily remove the UNPACK, until GHC is fixed not to crash with itMikolaj Konarski7 days
|
* Optimize the representation of ListHMikolaj Konarski7 days
|
* Inline SMayNat in ListHMikolaj Konarski7 days
|
* Clone ListX into ListHMikolaj Konarski7 days
|
* Simplify the signature of fooIndexMikolaj Konarski7 days
|
* Implement shxFromShS and shsFromShX as a newtype coerceMikolaj Konarski7 days
|
* Make ShS a newtype over ShXMikolaj Konarski7 days
| | | | TODO: use lemmas in place of the unsafeCoerceRefl
* Work around the following GHC bug in GHC 9.10.3:Mikolaj Konarski7 days
| | | | | | | | | | | | | | | | src/Data/Array/Nested/Mixed.hs:1045:13: error: [GHC-83865] • Couldn't match type ‘i0’ with ‘Int’ Expected: ShX sh i0 Actual: ShX sh1 Int ‘i0’ is untouchable inside the constraints: (n1 : sh1) ~ (AddMaybe (AddMaybe i n) k : sh) bound by UnkSkol (please report this as a bug) Call stack: CallStack (from HasCallStack): unkSkolAnon, called at compiler/GHC/Tc/Types/Origin.hs:331:42 in ghc-9.10.3-b4c3:GHC.Tc.Types.Origin unkSkol, called at compiler/GHC/Tc/Gen/Pat.hs:1275:49 in ghc-9.10.3-b4c3:GHC.Tc.Gen.Pat at src/Data/Array/Nested/Mixed.hs:1045:7-14
* Add a precautionary INLINEABLE to the now polymorphic shsTakeIxMikolaj Konarski8 days
|
* Add mtoListPrimLinear and friendsMikolaj Konarski8 days
|
* Add mslice to be typing-wise a counterpart of mappendMikolaj Konarski8 days
|
* Save some toVector by using toVectorListTMikolaj Konarski8 days
|
* Let X.fromListOuterSN and ravelOuterN take NonEmptyMikolaj Konarski8 days
|
* Don't force a list of identical elementsMikolaj Konarski8 days
| | | | | | | | | This makes a big difference when a pair of lists is attempted to be streamed and the first one is of trivial primitive elements (e.g., when implementing a fold as a special case of mapAccum with the output list containing only ()). Forcing the first trivial list would cause the second non-trivial list to be represented as nested thunks, burdening GC greatly.
* Variable naming and doc commentsTom Smeding8 days
|
* Simplify and slightly speed up internal fromList functionsMikolaj Konarski2026-02-12
|
* Inline most lifting wrappersMikolaj Konarski2026-02-12
| | | | | | | This results in only marginal performance gain, probably because they are already small enough to be specialized and/or inlined automatically, but these pragmas ensure it remains so regardless of changes in GHC heuristics.
* Add a potentialy helpful bang for consistencyMikolaj Konarski2026-02-12
|
* Document that mshapeTree is partialMikolaj Konarski2026-02-12
|
* Add a few more GHC warnings and fix all offendersMikolaj Konarski2026-01-31
|
* Improve the implementation of fromSNat'Mikolaj Konarski2026-01-31
| | | | leading to 6% lower allocation in Det.hs primal test.
* Fix f in SMayNat to always be SNat and UNPACK itMikolaj Konarski2026-01-31
|
* Implement Tom's ixsFromIxSMikolaj Konarski2026-01-31
| | | | | | that really helps in processing indexes using list functions and getting back to the same type of index now that KnownNat is removed from IxS and so the type information is harder to preserve.
* Make type variables consistent between shaped and mixed listsMikolaj Konarski2026-01-31
|
* Generalize shsTakeIxMikolaj Konarski2026-01-31
|
* Speed up the bad case of mvecsReplicate using mvecsWriteLinearMikolaj Konarski2026-01-31
|
* Express mvecsWrite and mvecsWritePartial using the new methodsMikolaj Konarski2026-01-31
| | | | | | | and change the type of the latter to make it possible. This slightly improves performance of horde-ad tests, before horde-ad even starts using the Linear methods, which improves performance even more.
* Add mvecsWriteLinear and mvecsWritePartialLinear (unused yet)Mikolaj Konarski2026-01-31
|
* Add mvecsReplicateMikolaj Konarski2026-01-31
|
* Remove the preposterous shsFromListS and shsFromIxSMikolaj Konarski2026-01-31
|
* Generalize ix?ToLinear and speed it up a bitMikolaj Konarski2026-01-31
|
* Add INLINEABLE to ixxToLinear ahead of generalization, to benchmarkMikolaj Konarski2026-01-31
| | | | No horde-ad test speedup noticed.
* Improve haddocks of mvecsUnsafeFreezeTom Smeding2026-01-31
|
* Add method mvecsUnsafeFreeze and use itMikolaj Konarski2026-01-31
|
* Inlining magicTom Smeding2025-12-03
|
* Restore suffixes sharing in *FromLinearTom Smeding2025-12-03
| | | | Thanks Mikolaj for spotting it's broken