Skip to content

New arch#11

Draft
ThimotheeV wants to merge 15 commits into
treeppl:mainfrom
ThimotheeV:new_arch
Draft

New arch#11
ThimotheeV wants to merge 15 commits into
treeppl:mainfrom
ThimotheeV:new_arch

Conversation

@ThimotheeV

@ThimotheeV ThimotheeV commented Jun 9, 2026

Copy link
Copy Markdown
Member

This PR present the new architecture for the package. It seems to not have changed the previous pipeline.

model <- tp_compile("crbd", "smc-apf", particles = 5000)\
data_path <- tp_data("crbd")\
output_list <- tp_run(model, data_path, sweeps = 4)

More detailed model is now a RefObject (a modifiable object that can't be copied but which is always passed by reference). This object contains the following fields:

exe_list : Map (Set Option) Executable -- Mutable, but is just an optimization to not have to recompile so often
path : String -- Path to model source code
default_options : Dict -- Defaults options for this model

Based on PR 9, PR it corrected and expend.

To see what still need to be improved see TODO on the wiki

This is a draft because this PR needs a new compatible self-contained tpplc to work.

@maribraga

Copy link
Copy Markdown
Member

Waiting for the new self-contained tpplc version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants