headius / bitescript Goto Github PK
View Code? Open in Web Editor NEWThe BiteScript API and language
Home Page: http://kenai.com/projects/jvmscript
License: BSD 3-Clause "New" or "Revised" License
The BiteScript API and language
Home Page: http://kenai.com/projects/jvmscript
License: BSD 3-Clause "New" or "Revised" License
there isn't a tag for the 0.0.8 release.
Using a fresh RVM-installed JRuby on a fresh JDK 1.8 installation on OS X Mavericks, I received this error:
➜ Code mirah fib.mirah
java/lang/reflect/Constructor.java:408:in `newInstance': java.lang.IllegalArgumentException
from /Users/jamie/.rvm/gems/jruby-1.7.13/gems/bitescript-0.1.4/lib/bitescript/mirror.rb:208:in `load'
Full backtrace here. I'm posting it here rather than on the Mirah project because the exception happened from within a bitescript file; I hope that's okay.
The contents of fib.mirah
don't matter — it gave the same exception regardless of what it had in it. It didn't even work with -e
.
Relevant versions:
➜ Code uname -a
Darwin husker.home 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
➜ Code java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
➜ Code jruby -v
jruby 1.7.13 (1.9.3p392) 2014-06-24 43f133c on Java HotSpot(TM) 64-Bit Server VM 1.8.0_05-b13 +indy [darwin-x86_64]
➜ Code mirah -v
Mirah v0.1.2
http://groups.google.com/group/mirah/browse_thread/thread/acaa776a926cb3b0
$ jruby -S mirah -e 'puts "Hello, Mirah!"'
RuntimeError: Unknown opcode: MH_INVOKESPECIAL
Bytecode at G:/dev_d/ruby/downloads/jruby/lib/ruby/gems/1.8/gems/
bitescript-0.0.8/lib/bitescript/bytecode.rb:313
...
I compiled the example code successfully using jruby, but when running the class SimpleLoop, some exceptions are thrown out :
Exception in thread "main" java.lang.ClassFormatError: Illegal UTF8 string in co
nstant pool in class file SimpleLoop
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.