Skip to content

Cool project! Check out my effort to make nim 3 compile to TS, could eventually be useful here #11

@evelant

Description

@evelant

Out of curiosity and to learn more about nim and compilers I started an effort to add typescript output to nimony (nim 3.0). Similar to the js output of nim 2, but fully typed TS. It is far from complete or correct yet, but I thought you might find it interesting.

My eventual goal if I could get it to work well is to write Nim and emit readable TS that could be used in a react native app (or anywhere else that needs js/ts) rather than going the C or wasm route. Not really sure if it's worth pursuing further given improvements in react native binding to C (nitro-modules) and wasm in the browser, but the start of it is there if you're curious.

https://github.com/evelant/nimony/tree/feat/tsgen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions