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

Reorganize modules #99

Merged
merged 1 commit into from
Aug 20, 2021
Merged

Reorganize modules #99

merged 1 commit into from
Aug 20, 2021

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Aug 20, 2021

This moves two of the standard library modules, math and time, into the
modules directory. They have previously been split out as the modules
directory acted both as a source and output location of actonc
compilation. That changed when we introduced the dist directory, to
which we write output - it then acts as the working directory of actonc.

The modules directory in the source git repository is now used for
source files and is not a working directory for actonc. Thus, we move
our standard library modules in there.

numpy is currently an exception as it consists of many files and is
inevitably much more compliated to compile, thus it remains as a
separate directory. I suspect most modules will follow the simpler
pattern of time and math, where .act, .h and .c file all have the same
prefix. Let's wait and see, if this turns into crap will come up with
some other structure.

Closes #97.

This moves two of the standard library modules, math and time, into the
modules directory. They have previously been split out as the modules
directory acted both as a source and output location of actonc
compilation. That changed when we introduced the dist directory, to
which we write output - it then acts as the working directory of actonc.

The modules directory in the source git repository is now used for
source files and is not a working directory for actonc. Thus, we move
our standard library modules in there.

numpy is currently an exception as it consists of many files and is
inevitably much more compliated to compile, thus it remains as a
separate directory. I suspect most modules will follow the simpler
pattern of time and math, where .act, .h and .c file all have the same
prefix. Let's wait and see, if this turns into crap will come up with
some other structure.
@plajjan plajjan merged commit 22ad684 into main Aug 20, 2021
@plajjan plajjan deleted the 97-reorganize-modules branch August 20, 2021 09:54
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.

Move modules to modules/ directory
1 participant