Skip to content

Accessing task field of Libtask TapedTask #113

@willtebbutt

Description

@willtebbutt

In the extension for Libtask, AdvancedPS often accesses the task field of a Libtask TapedTask. I would like to know why this is done, and whether it is strictly necessary? See e.g.

AdvancedPS.addreference!(newtrace.model.ctask.task, newtrace)
and
AdvancedPS.addreference!(trace.model.ctask.task, trace) # Do we need it here ?
.

For context, I'm looking at reimplementing the TapedTask -- see TuringLang/Libtask.jl#179 -- and my proposal doesn't actually contain a Julia Task object anymore. I obviously need it to be compatible with this library, so if for some reason it's actually necessary to have a Julia Task, I'll have to rethink my design, and officially make the task field part of the public interface (I don't believe that it currently is).

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions