Skip to content

Instantly share code, notes, and snippets.

module A
refine(A) {}
using A
end
#a.rb:3: stack level too deep (SystemStackError)
@baroquebobcat
baroquebobcat / batsu.java
Created October 25, 2012 03:47
Playing w/ Java constants
// complains that you can't have the inner class w/ same name
public class Blargh {
public static class Blargh{}
}
@baroquebobcat
baroquebobcat / quiz-1.md
Created September 27, 2012 23:44 — forked from ahoward/quiz-1.md
quiz-1.md
So you think you wanna be a web developer...

Fork this, update your copy with answers.

They don't need to be precise - pseudo-code is fine in most cases.

Some questions don't have correct answers.

@baroquebobcat
baroquebobcat / notes.md
Created September 21, 2012 01:55
Mirah Code Reading Notes
@baroquebobcat
baroquebobcat / plans.md
Created August 19, 2012 20:46
Mirah Office Hours: August 19th 2012

things that don't work in master

  • closures
  • array casting
  • some error throwing bits.
  • random things like getting java.lang.String[] and trying to call all? on them.

Readings

@baroquebobcat
baroquebobcat / plans.md
Created August 12, 2012 19:46
Mirah Office Hours: August 12th 2012

Plans

  • varargs transform / code generation I've got code for matching varargs methods, but the calls to them blow up because the args aren't right.
  • fixing tests on 1.6.7
  • fixing tests on 1.7.0.preview2
  • issue triage. There's stuff that only applies to 0-0-stable, which isn't going to be used going forward.

other thoughts

@baroquebobcat
baroquebobcat / test_failures
Created July 29, 2012 21:37
Mirah master: Outstanding test failures
Core Tests
========================
37 tests, 89 assertions, 1 failures, 0 errors
1) Failure:
test_rescue_w_different_type_raises_inference_error_when_expression(TyperTest)
[/<...>/mirah/test/core/typer_test.rb:253:in `test_rescue_w_different_type_raises_inference_error_when_expression'
org/jruby/RubyKernel.java:2076:in `send'
> maybe in `src/org/mirah/typer/typer.mirah.
Index: core/src/main/scala/kafka/consumer/TopicCount.scala
===================================================================
--- core/src/main/scala/kafka/consumer/TopicCount.scala (revision 1355144)
+++ core/src/main/scala/kafka/consumer/TopicCount.scala (working copy)
@@ -18,12 +18,37 @@
package kafka.consumer
import scala.collection._
-import scala.util.parsing.json.JSON
+import scala.util.parsing.json._
@baroquebobcat
baroquebobcat / notes.md
Created July 24, 2012 17:35
Mirah Office Hours: July 29th 2012

Mirah Plans

  • move current master to 0-0-stable branch, drop newast on master

  • add method lookup for varargs methods

  • add varargs method creation support.

  • setup mirah.github.com moreso

Off Topic Plans

test/core/macros_test.rb
MacrosTest
ERROR (0:00:00.437) test_macro_helper
argument type mismatch
@ sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)