ade-ma / LibRedio

DSP abstractions
GNU General Public License v3.0
24 stars 2 forks source link

figure out argument passing for DAG instantiation #17

Closed itdaniher closed 10 years ago

itdaniher commented 10 years ago

possibly just use a closure to anonymize a function that takes N extra parameters, hardcoded?

itdaniher commented 10 years ago

how does this mesh with current approach of "pack everything in a struct and copy it to each task on spawning?"

itdaniher commented 10 years ago

Closure doesn't seem to be a great solution - the function prototypes currently used in instant.rs/parts are for extern rust-abi functions, not closures. I ran into lifetime issues trying to modify the enum to also support closures. Possibly build a function accepting a four argument function and a variable and returning a three argument function? Grasping at straws.

itdaniher commented 10 years ago

we have a clearly workable solution for the immediate future, so putting this off till v2.0.

itdaniher commented 10 years ago

handled via ratpak