frontend
frontend copied to clipboard
Java slang
Description
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Code quality improvements
How to test
The java compiler has not yet been integrated. To run a class file enter code in the editor in the format:
// From JSON
{
"<classname>.class": "<base64 encoded compiled classfile>
}
Compile with javac *.java -target 8 -source 8
The standard library is missing almost all native method implementations so only simple Java programs can run.
Also note that lambda functions are quite slow.
Checklist
- [x] I have tested this code
- [ ] I have updated the documentation