Comments (6)
@yebai I won't be able to pick that up in the near future unfortunately
from libtask.jl.
After #129 is complete, we can depreciate all T
* data structures, and create a switch for enabling _binding_copy
for all Julia types.
from libtask.jl.
@rikhuijzer would you like to give it another go to depreciate all the TArray
and TRef
data structures? The new tape_copy
API now allows us to copy objects of any user-specified types.
from libtask.jl.
@KDr2 let's create a PR to depreciate all the TArray
/ TRef
APIs, and suggest to the user to use Array
and Ref
as a replacement. Then we can switch on deep-copying behaviour for Array
and Ref
types by default.
from libtask.jl.
Then we can switch on deep-copying behavior for Array and Ref types by default.
For backward compatibility, e.g. this example in README, maybe we can consider a keyword argument to the TapedTask
constructor, i.e.
# Default option: when `deepcopy` is empty, then we don't perform deep copy for any types
TapedTask(...; deepcopy=[])
# Switch on deep copy behavior for Array, Dict, Ref
# Need to update AdvancedPS to explicitly specify `deepcopy`
TapedTask(...; deepcopy=[Array, Dict, Ref])
# In order to implement `tape_copy` for this design, we might need to
# dispatch on `TapedTask` instances, e.g.
tape_copy(Val{tapedtask}, ...)
from libtask.jl.
a keyword argument to the
TapedTask
constructor
If we do this, we should add the same argument to TapedFunction
and tape_copy
? if so, it's not very clean I think.
tape_copy(Val{tapedtask}, ...)
I don't understand this, now we only tape_copy
values in bindings.
from libtask.jl.
Related Issues (20)
- `Fusing` instructions on tape between `produce` statements HOT 1
- Depreciate `Libtask.consume` in favour of `Base.iterate`? HOT 2
- Replace `IRTools` with `CodeInfoTools` HOT 3
- Remove the dependency on `MacroTools`
- Lazy copy of entries in `TapedFunction.bindings::Dict` HOT 2
- Add standalone benchmarks for `TapedFunction`
- The performance issue HOT 10
- Mention `tape_copy` in doc or expose a deepcopy flag ?
- Issue with copy and new `TapedTask` HOT 3
- Copy args HOT 10
- Track AdvancedPS master branch in Integration Test HOT 3
- Widen Julia compat entry for 1.6 HOT 2
- Unused `arg` in `TapedTask`
- Improve `TapedTask` constructor
- Cache key in tapedfunction HOT 2
- `TypeError` in `tape_copy` for newer versions of Julia HOT 1
- Support for multiple nested `produce` HOT 1
- Redundant Code? HOT 1
- Cannot Precompile `Libtask.jl` on Julia Nightly (1.12.0-DEV.81) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libtask.jl.