FYI: Defeating Java Class Loaders

Stefan Reich stefan.reich.maker.of.eye at googlemail.com
Thu Nov 29 07:38:43 UTC 2018


Hi fellas. Here's something I've been working on for just about 5 years (or
more).

*Java is great*, but its need for class loaders means it's somewhat hard to
add code at runtime.

*JavaX* <http://javax.tinybrain.de> comes to the solution! I have
implemented an arsenal of tricks that turn Java into something just about
as flexible as JavaScript—while retaining the full power and speed of the
Java VM.

In fact, in JavaX, we write and ship only source code; all compilation is
done on the fly.

We can pretty much do the "holy trinity": maximum speed, complete freedom
of assembly and compact code size—all at once.

Also, JavaX has "zero deployment": Every new line of code you write
anywhere is available everywhere immediately. (If you want that.)

As proof for JavaX's elegance, here's the 27 lines source code
<http://tinybrain.de/1016081> of the module below.

!7 <http://tinybrain.de/7>
sS html = [[
  <br>
  <img src="#1101435 <http://tinybrain.de/1101435>">
  <br><br>
  <font size="6">
  Hi. I am a <b>new kind</b> of open-source operating system.
  <br>
  You can <b>talk</b> to me!
  </font>]];
module WelcomeScreen > DynModule
<http://tinybrain.de:8080/tb/show-snippet.php?id=1015892> {
  visualize {
    ret centerAndSouthWithMargins
<http://tinybrain.de:8080/tb/show-snippet.php?id=1015772>(
      jscroll_trackWidth
<http://tinybrain.de:8080/tb/show-snippet.php?id=1016114>(jCenteredHTMLLabel_alignTop
<http://tinybrain.de:8080/tb/show-snippet.php?id=1019859>(jlabel_fixImages
<http://tinybrain.de:8080/tb/show-snippet.php?id=1016070>(html))),
    vstackWithSpacing <http://tinybrain.de:8080/tb/show-snippet.php?id=1006626>(
      verticalStrut
<http://tinybrain.de:8080/tb/show-snippet.php?id=1019860>(15),
      fontSize <http://tinybrain.de:8080/tb/show-snippet.php?id=1010316>(18,
jCenteredLabel <http://tinybrain.de:8080/tb/show-snippet.php?id=1006175>("What
would you like to do?")),
      fontSize <http://tinybrain.de:8080/tb/show-snippet.php?id=1010316>(20,
jCenteredTextField
<http://tinybrain.de:8080/tb/show-snippet.php?id=1005321>("Eat some
cake")),
      verticalStrut
<http://tinybrain.de:8080/tb/show-snippet.php?id=1019860>(5),
      jrightalignedline
<http://tinybrain.de:8080/tb/show-snippet.php?id=1010541>(jVisitBotCompanyButton
<http://tinybrain.de:8080/tb/show-snippet.php?id=1019842>())));
  }

  enhanceFrame { minFrameSize
<http://tinybrain.de:8080/tb/show-snippet.php?id=1019843>(f, 450,
450); }
}

Looking to fund this now. Please forward, too.

Cheers,
Stefan


-- 
Stefan Reich
BotCompany.de // Java-based operating systems


More information about the zgc-dev mailing list