1
0
mirror of https://github.com/quinton-ashley/java2js synced 2024-12-29 10:11:54 +01:00
java2js/README.md

18 lines
1.2 KiB
Markdown
Raw Normal View History

2021-09-23 01:41:44 -05:00
# Java to Javascript for QuintOS
2021-10-31 14:16:44 -05:00
I've built on top of the [java-to-javascript](https://github.com/wyattades/java-to-javascript) transpiler by @wyattades and got inspiration from the JDK (Java Development Kit) implementation in [java2javascript](https://github.com/java2script/java2script) by @BobHanson, @zhourenjian, @abego, and others.
2021-09-23 01:41:44 -05:00
2021-10-31 14:16:44 -05:00
My purpose in creating this project is to allow intro level CS students to write Java code but still use my QuintOS library which is web based. Yes, I went to all this trouble just so some teenagers don't have to run their programs in a boring Java console! I made a barebones JDK implementation in modern Javascript to acheive this.
2021-09-23 01:41:44 -05:00
## Known limitations
2021-09-23 23:26:42 -05:00
- casting to int truncation workaround requires parenthesis around the number being cast
2021-09-23 01:41:44 -05:00
2021-09-23 23:26:42 -05:00
- no support for method overloading, though a workaround could be made by making a function with the og name route to each of the variations of the overloaded function
- no support for private/public methods, though this could be done since they are included in modern JavaScript classes
## Contribute
I've only done a barebones implementation of Java 17 JDK, a lot is missing, so if you are interested in adding more please go for it and submit a pull request!