microsoft / microsoft/Power-Fx

Use built-in functions in a custom Engine, without instantiating RecalcEngine

Open
#799 3 comments 0 reactions 1 assignee View on GitHub

@MikeStall is already working on this.

Since Mar 2, 2023.

Dominant language
C#
Stars
3.4k
Forks
358
Avg merge
10h 34m
Merged PRs (30d)
3

Description

We want to create our own custom Engine instead of using RecalcEngine, but we'd still like to use some of the built-in functions provided in the internal library:

https://github.com/microsoft/Power-Fx/blob/2a82bc542d94d9ffd9e5bc81ce46c30dca53e8dd/src/libraries/Microsoft.PowerFx.Interpreter/RecalcEngine.cs#L51

Can we provide something like ReadOnlySymbolTable.NewDefault() to allow us to obtain the functions without creating RecalcEngine as a throwaway, intermediate resource?

Or even better, perhaps something like SymbolTable.NewDefault(), so we can modify the set without having to call GetMutableCopyOfFunctions first to selectively remove the ones we don't want.

If there's a problem with it because SymbolTable is in Core and the library is in Interpreter... then maybe a CreateNewDefaultSymbolTable() in PowerFxConfigExtensions.cs

Thanks :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.