Ilya Bylich
Ilya Bylich
Spoiler: this is a WIP project. By enabling `-O0 -fsanitize=address` and running `./miniruby -v` with `ASAN_OPTIONS=detect_leaks=1:malloc_context_size=100 LSAN_OPTIONS=report_objects=1` I was able to identify 2 memory leaks in prelude. Not even in...
I'm looking at something similar to [mid-rules in bison](https://www.gnu.org/software/bison/manual/html_node/Using-Mid_002dRule-Actions.html), does LALRPOP support anything similar? If not, is there a way to emulate them? I guess it's possible by introducing another...
``` ruby class MSpecEnv end env = MSpecEnv.new env.instance_eval do eval "class ClassSpecsKeywordWithoutSemicolon end" p ClassSpecsKeywordWithoutSemicolon end ``` ``` sh $ ruby test.rb ClassSpecsKeywordWithoutSemicolon $ opal -ropal-parser test.rb Object freezing...
Here's the code I used for testing: ``` ruby class A include Enumerable def each yield :value1 yield :value2 end def method1(&block) map { |a| block.call(a) } end def method2(&block)...
``` ts class Test { public a: number = 1 private b: number = 2 } const t = new Test() oc(t).a oc(t).b(0) ``` gives: ``` Property 'b' does not...
https://github.com/ruby/ruby/commit/e36988450e9e9ccccb41c72135f1e57790920668
https://github.com/ruby/ruby/commit/a850cd1a87bef738c40d9c550fb8823699083f2e
https://github.com/ruby/ruby/commit/0d5b16599a4ad606619228623299b931c48b597b
https://github.com/ruby/ruby/commit/df5ef282337764508a1e1d93459d7a280e46647c
https://github.com/ruby/ruby/commit/9d3dcb86d1c95ceb75089595145bbfbc32a5c77c