Skip to content

Sketch: compile auto mark to explicit marks#1373

Closed
tophtucker wants to merge 14 commits into
mainfrom
toph/auto-compile
Closed

Sketch: compile auto mark to explicit marks#1373
tophtucker wants to merge 14 commits into
mainfrom
toph/auto-compile

Conversation

@tophtucker

Copy link
Copy Markdown
Member

To satisfy my curiosity, just looking into what it would take.

The easy problem: it should have the accessor in the options, not the materialized array.

The hard problem: I wasn't thinking about this before, but obviously Plot doesn't know the name of the data that was passed in (or rather, it doesn't know the literal expression), so this couldn't really work. And the compiler can't actually execute the code. So… I don't know where this would live. It's both dynamic and needs "reflection". It'd have to be something wild like: editor asks the worker, worker calls this, this returns a function that takes the literal data expression, worker passes that back to editor, editor calls compiler with the returned function, compiler passes in the data source expression, that returns a string which we insert as a new cell…

@tophtucker tophtucker mentioned this pull request Mar 23, 2023
13 tasks
Base automatically changed from toph/never-rect to main March 23, 2023 14:00
@tophtucker

Copy link
Copy Markdown
Member Author

Superseded by #1504

@tophtucker tophtucker closed this Aug 24, 2023
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.

1 participant