Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proof-Of-Concept #1

Open
simonseyock opened this issue Aug 9, 2023 · 2 comments
Open

Proof-Of-Concept #1

simonseyock opened this issue Aug 9, 2023 · 2 comments

Comments

@simonseyock
Copy link
Member

This is a proof of concept for a program that converts Java programs to TypeScript.

It includes a setup for fast TDD but still will be much work to be able to fully translate JTS.

Also it will soon run into problems with dependent libraries/utilities (for example java.util.PriorityQueue). I would look into java2estree for inspiration.

@bjornharrtell, @marcjansen

@bjornharrtell
Copy link

Note that for Java builtins I've actually manually ported what JTS uses so that those APIs are available after transpilation. See fx https://github.com/bjornharrtell/jsts/blob/master/src/java/util/PriorityQueue.js.

@bjornharrtell
Copy link

That is to say, I would suggest not to try and transpile dependencies and instead assume those APIs exists as I do today and then manually port those classes to TypeScript.

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

No branches or pull requests

2 participants