The user enters a function name, and the JVM executes a sequence synthesized by reflection directly from the symbolic reference, instead of from the kind of byte-code object file that javac produces. Silk can also construct new Java classes, access Java variables, and execute Java functions through its naming convention. The . appended to the end of the String class name tells the Silk interpreter to construct a new class instance by invoking the String constructor. String takes a string variable as its argument. The . prefixed to length signals the Silk interpreter to execute the Java method length with the argument str .
Silk handles user-defined classes with equal facility.
Silk in Java All Scheme functions can be accessed within Java by using Scheme handlers. Because the entire Silk interpreter takes up only 50 KB, it's practical to represent Scheme source as Java applets embedded in Webpages. In this example, the Scheme source is in the filename HelloWorld.silk local to the server. It receives SchemeApplet as a parameter. Ken Anderson, Tim Hickey, and Peter Norvig.