GithubHelp home page GithubHelp logo

Comments (5)

thesamovar avatar thesamovar commented on May 18, 2024

I started writing this document on the wiki.

from brian2.

mstimberg avatar mstimberg commented on May 18, 2024

Regarding saving the arrays and the specifier system: I see two ways of implementing this:

  1. Specifiers themselves are device dependent, e.g. to create a new array variable you would do something along the lines of device.create_array_variable('v', unit, len(self), ...)
  2. Specifiers are device independent, but delegate array access to a device-dependent object, so creating a specifier would pass a device: ArrayVariable('v', unit, len(self), device, ...)

With the first option you have re-implement all specifiers for each device, but maybe we need the flexibility that comes with it? The classes are basically simple data container, anyway.

from brian2.

thesamovar avatar thesamovar commented on May 18, 2024

I slightly prefer option (2) but only very slightly so let's see what seems more convenient as we start implementing stuff?

from brian2.

thesamovar avatar thesamovar commented on May 18, 2024

Oh, and let's keep the discussion on issue #49.

from brian2.

thesamovar avatar thesamovar commented on May 18, 2024

OK I've updated the wiki page on devices, we should work from this now. It's not very detailed, but it has the core ideas. I think now we need to actually implement C++ standalone mode and then people can use that as a reference when implementing other modes.

from brian2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.