frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Java slang

Open Chang-CH opened this issue 1 year ago • 1 comments

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. image

Checklist

  • [x] I have tested this code
  • [ ] I have updated the documentation

Chang-CH avatar Apr 01 '24 05:04 Chang-CH