-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Migration to vector #147
Conversation
P.S. diff shows realy huuuuge changeset because of hindent (default setup). If a special profile is used in Arithmoi, please, point me at so i can reduce the number of changed lines. |
@tau3 when you run
This goes for any other GHC option(s) you may wish to pass to a GHCi session. |
I do not use |
@Bodigrim thanks for advices, but unfortunatelly also i encountered some weird vector bounds errors during debug (debugging itself was kinda stressing due to inability to work with unboxed code in interpreter mode). probably this refactoring attempt should be considered as unseccessful. @rockbmb thank you and good luck with yours!) |
@tau3 don't call it unsuccessful just yet! You don't have to do everything at once. You can just pick a module that is all four of:
and make the necessary refactoring. It won't be too difficult, and remember that after it compiles you have a friend in |
+1 to @rockbmb |
well, there is an option to contain methods for both arrays and vectors in Unsafe module, so the issue could be solved step-by-step. |
Closing due to the lack of activity. Anyway thanks for you efforts! |
Hello!
Here is the initial implementation of migration from arrays to vectors (#79) It compiles but fails against some of unit tests. To figure out the root cause, i recompiled sources with enabled
check-bounds
Yep, seems like most of exceptions were 'index of bounds'. I wanted to debug incabal-repl
, but it failed to load due toError: bytecode compiler can't handle unboxed tuples and sums.
Cabal suggested to specify-fobject-code
, but i couldn't google anything about that flag.So, some assistance is required :)