Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Switch to bootstrapping using the new compiler #233

Merged
merged 51 commits into from Jun 16, 2014

Conversation

Projects
None yet
2 participants
Contributor

ribrdb commented Aug 30, 2013

mirahc.jar is now fully able to self-bootstrap.
By switching over to it we can now use macros anywhere in the codebase.
And things compile much faster - on my machine it takes 22 seconds to compile everything, it was several minutes with the old compiler.
We'll need somewhere to download a pre-built mirahc.jar for this to work.

ribrdb added some commits Aug 30, 2013

@ribrdb ribrdb Use real macros in org.mirah.macros.* ee560c4
@ribrdb ribrdb Clean up compilation using the new compiler. be3324f
@ribrdb ribrdb Add todo to download compiler. 58d8305
@ribrdb ribrdb Fix lub of raw and generic type. dac8dc1
@ribrdb ribrdb Fix subtyping for NullType. de4bbe7
@ribrdb ribrdb Make sure UnreachableType doesn't leak out of method return values. fc30632
@ribrdb ribrdb Fix macro classpath. aa97f2f
@ribrdb ribrdb Support compiling a directory, ab3569f
@ribrdb ribrdb Fix block arguments in macros. a0c92d5
@ribrdb ribrdb Add cast helper method for macros to use. c35bb64
@ribrdb ribrdb Patch bad bytecode in mirah.lang.ast.Unquote 0d6675e
@ribrdb ribrdb Support Noops inside ClassDefinition 9b468e7
@ribrdb ribrdb Methods shouldn't return NullType e4ea7d7
@ribrdb ribrdb Fix vmofule -- loggers get garbage collected if no one retains them. 01cefa7
@ribrdb ribrdb Test for nil methods. 41e6233
@ribrdb ribrdb Improve debug output for type futures. f3837aa
@ribrdb ribrdb Add intrinsics to NullType ea578b3
@ribrdb ribrdb Implement unary minus operator. 6b47ed4
@ribrdb ribrdb Fix inference for rescue body. 3fec7e0
@ribrdb ribrdb Fix classloader used for loading macros. 21ce0df
@ribrdb ribrdb Fix 'raise ex' where 'ex' is an exception object. 066fa56
@ribrdb ribrdb Fix negated comparisons with NaN. 0460f68
@ribrdb ribrdb Change test_findMethod failure to pending. e916083
@ribrdb ribrdb Fix lub test. d3b3697
@ribrdb ribrdb Fix constructors test. aaa033e
@ribrdb ribrdb Download bootstrap mirahc from mirah.googlecode.com. b858825
@ribrdb ribrdb Add --jvm option to mirahc.jar 5a44329
@ribrdb ribrdb Add dependency on mirahc-1.1.2-dev.jar 3858e40
@ribrdb ribrdb Fix jvm version flag. 0d6f12d
@ribrdb ribrdb Fix for test_method_def_after_macro_def_with_same_name_raises_error. e91515e
@ribrdb ribrdb Fix classfile version of java classes. 9dd9287
@ribrdb ribrdb Fix typo in bootstrap mirahc.jar version. 2622fa5
@ribrdb ribrdb Fix a couple bugs in conflicting method/macro detection. 56df34f
@ribrdb ribrdb Add dependency on jruby-complete.jar 6c393f1
Contributor

ribrdb commented Sep 18, 2013

Hmm. I don't know what's going on with the errors on travis ci.
I really would hope switching jvm versions should not break the new compiler. But travis has different errors for java 6 vs java 7.
I have a different version of java 7, and everything builds fine for me from a clean checkout.

ribrdb-macbookpro:mirah ribrdb$ java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

Owner

baroquebobcat commented Sep 18, 2013

weird. Travis has a more constrained environment, so part of it might be
due to a dependency being unavailable or something. Earlier there were
problems because the new build was relying on being able to introspect the
JRuby jar which it isn't allowed to do in Travis' security model

On Tue, Sep 17, 2013 at 9:03 PM, ribrdb notifications@github.com wrote:

Hmm. I don't know what's going on with the errors on travis ci.
I really would hope switching jvm versions should not break the new
compiler. But travis has different errors for java 6 vs java 7.
I have a different version of java 7, and everything builds fine for me
from a clean checkout.

ribrdb-macbookpro:mirah ribrdb$ java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)


Reply to this email directly or view it on GitHubhttps://github.com/mirah/mirah/pull/233#issuecomment-24638063
.

-Nick Howard
http://blog.baroquebobcat.com/

@baroquebobcat baroquebobcat merged commit 4ade702 into mirah:master Jun 16, 2014

1 check failed

default The Travis CI build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment