Skip to content
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

Try to get this package working again. #9

Merged
merged 2 commits into from
Mar 18, 2019

Conversation

galenhuntington
Copy link
Contributor

Work for #8.

I do not understand the inner workings of this package at all, but I was able to fix the problems preventing it from building. The config.h issue was pretty simple: the working directory Cabal was building from changed (we may need CPP to support older versions). A few other tweaks were needed. With these changes, it kind of works.

I also looked at some forks, and found the changes at abarbu@5094eb0 by @abarbu, which I tried to integrate into the current version. I do not fully understand them, but they seem to help finding modules for the "load" operation.

Current status based on my limited testing:

  1. The "eval" operation seg-faults if you run your code interpreted, or compiled with -dynamic. I tried to figure this out but got nowhere. However, if compiled (statically), it seems to work.

  2. Running load from interpreted code takes about 1-2 seconds. Running it from compiled code takes about 8-9 seconds. I have found compiling with -dynamic recovers the faster behavior. Again, I don't know how this stuff works, so have no explanation or solution.

  3. I haven't worked on any of the Stack, Travis, or deprecation issues, nor tested against versions of GHC other than 8.6.4.

So this is at least a first step. If we put our heads together, perhaps we can bring this package back from the dead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants