-
Notifications
You must be signed in to change notification settings - Fork 221
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
Devices #113
Conversation
of a Nameable before you create it)
with flexible arguments for templates
Conflicts: brian2/codegen/codeobject.py brian2/groups/group.py brian2/monitors/ratemonitor.py brian2/monitors/spikemonitor.py
C++ standalone works! At least, it compiles and runs without error.
done in Updater Updater types include: - CodeObjectUpdater - NetworkOperationUpdater - SynapticPathwayUpdaters
…able objects into the namespace dictionary to a separate method that can be overwritten in subclasses.
…simply use len in the templates
…. For runtime targets, two symbols are inserted into the namespace "array" (underlying array) and "array_object" (the real object). Standalone generates code for each dynamic array.
Related to what we discussed via email, I just made some changes to the way variables are handled. The problem was that Regarding dynamic arrays: These do no longer need to be "faked" as a That's not perfect yet, in particular the What do you think -- should I merge it as it is and you continue to work on the devices part? One small thing: I replace |
Yep, go ahead and merge. Let's deal with the constants issue separately. By the way, does it play nice with your functions work? |
Before you merge, note that in devices the |
I didn't merge it yet, I think I'll do it the other way round, i.e. merge master into finalize_functions after this pull request is merged. But I'm not too worried, anyway :) |
Starting with the devices system for standalone, major changes to the code generation framework
Restored devices2 branch because I'll keep working on it. |
@mstimberg, take a look and maybe do an initial merge if you think it's OK to go into master? May not play nice with the functions branch.