Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seanf/hello-ceylon-jjs
Proof of concept: Running Ceylon under Nashorn jjs
https://github.com/seanf/hello-ceylon-jjs
Last synced: 1 day ago
JSON representation
Proof of concept: Running Ceylon under Nashorn jjs
- Host: GitHub
- URL: https://github.com/seanf/hello-ceylon-jjs
- Owner: seanf
- License: apache-2.0
- Created: 2015-11-11T13:38:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-19T01:43:26.000Z (almost 9 years ago)
- Last Synced: 2023-03-11T12:33:21.277Z (over 1 year ago)
- Language: JavaScript
- Size: 816 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Proof of concept: Running Ceylon under Nashorn jjs
### ceylon-users discussion:
https://groups.google.com/d/msg/ceylon-users/W9FA-7lQUEc/wvl6oTgFEAAJ
## To compile:
$ ceylon compile-js
## To run:
$ jjs main.js
## Or to do both:
$ ./buildrun.sh
~~This probably requires a pretty recent version of Java 8/Nashorn. Tested with JRE 1.8.0_60 on Windows 8.1 64-bit.~~
Nashorn currently (1.8.0.65) crashes when loading the full JSON model for `` `function print` ``.
See https://github.com/ceylon/ceylon-js/issues/316#issuecomment-42464517 and
https://groups.google.com/d/msg/ceylon-users/W9FA-7lQUEc/nALYkkXLAAAJ$ ./buildrun.sh
Note: Created module hello/1.0.0
Hello from Ceylon running in Nashorn jjs
ceylon.language::List
lib/rhino-require.js:48 TypeError: java.lang.RuntimeException: Method code too large! has no such function "toSource"Rhino-Require runs the modules from the directory `rhino_modules`.
If you update the hello module, you must copy the compiled module from
`modules` to `rhino_modules`.The directory `rhino_modules` also contains the ceylon.language JS files
which were copied from ${ceylon.home}/repo/## Links:
* Rhino-Require: https://github.com/micmath/Rhino-Require
* Ceylon: http://ceylon-lang.org/