Generate C# bindings via code generation based on the core F# API
還沒有人認領這個 Issue。
評估
研究方向
先檢視過時的 csharp-object-bindings 分支,特別是 src/Plotly.NET.Codegen,並將其以反射為基礎的方法與連結的 Roslyn 增量產生器文件進行比較。此 issue 需要選定一種方法,並在目前的 repository 中實作從核心 F# API 產生 C# bindings 的功能;其確切完成標準尚未定義。
由索引模型根據 Issue 內容生成。
描述
Description
We basically have 2 options here:
(1) Reflection-based F# code generation project
A WIP of this approach can be found on the csharp-object-bindings branch, which is severely out of date, so it might be best to just initialize a new project in the current repo and copy the files over.
The gist is that a well-defined string template for csharp source files is populated based on reflection-based runtime inspection of the F# types, functions and methods.
(2) C# incremental/source generators
here I have no domain knowledge at all, and all tutorials look like pure arcane glyphs to me. I think source generators are now called incremental generators. I think they are aiming to do what we need. I have absolutely no idea how to do this though. If we go this way, we need an experienced C# dev on it.
https://github.com/dotnet/roslyn/blob/main/docs/features/incremental-generators.md
- 主要語言
- F#
- 星號
- 860
- 分支
- 99
- 平均合併
- 22 分鐘
- 30 天內合併 PR
- 1
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/Plotly.NET 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 78/100
plotly/Plotly.NET#498 ·
-
難度 3/5 1-2 天 新手友好度 42/100
plotly/Plotly.NET#495 · 3 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 45/100
plotly/Plotly.NET#494 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
plotly/Plotly.NET#492 ·
-
難度 4/5 3-5 天 新手友好度 38/100
plotly/Plotly.NET#485 · 1 則留言 ·
查看 plotly/Plotly.NET 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
nightscout/nocturne#1424 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success 未關閉area: repo bug perceived difficulty: 2
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 65/100
paritytech/zombienet-sdk#591 ·
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
mruangutai/harness#1897 ·