REGnosys / rosetta-code-generators

Write code generators for any language, based on the rosetta DSL
Apache License 2.0
17 stars 33 forks source link

Python Generator - Phase 2 #279

Closed dschwartznyc closed 5 months ago

dschwartznyc commented 10 months ago

CloudRIsk, FT Advisory, and TradeHeader are kicking off the second phase of development of the Python code generator.

The goals are:

The plan is to use the 10.2.0 version of the generator codebase.

minesh-s-patel commented 10 months ago

That's great news @dschwartznyc. Please feel free to open a draft PR (even at an early a stage) and ask for some review feedback.

dschwartznyc commented 8 months ago

CloudRisk (@plamen-neykov), TradeHeader (@mgratacos, @manel-martos, @dcarrascosa00), and FT Advisory are looking for feedback (@minesh-s-patel @hugohills-regnosys @SimonCockx) on a proposal to use a not-yet-fully-tested version of this code to resolve the defect identified in PR 2776 . The proposed approach will support an upgraded version of Pydantic (2.x) and include support for the same generator features as the current Python generator. It passes the current and expanded scope of unit tests including the serialization test that currently fails when CDM Is built against the Rosetta version in question. The release also provides support for Rosetta-defined functions and a more comprehensive set of operators but these capabilities need to be tested further. Since the expanded capabilities are not advertised and there is an ongoing commitment to finish the project, we believe that the risk of releasing the additional functionality is minimal versus allowing the defect to persist until the new version is complete or the wasted effort of trying to debug a soon-to-be outdated version of the generator.

Let us know if the approach is supported or if there are concerns or objections.