Show enters and exits. Hide enters and exits.
| 00:02:30 | Zoxc | well my guess was correct :) |
| 00:07:50 | maharg | how so? out = ""; ... out.append sep; out.append elem; ... return out |
| 00:08:28 | Zoxc | out is a string, no? |
| 00:09:22 | maharg | what else would it be? |
| 10:11:15 | boyscout | Speed up Array#inspect - f9dc712 - Ivan Samsonov |
| 10:16:33 | boyscout | CI: rubinius: f9dc712 successful: 3037 files, 11914 examples, 36156 expectations, 0 failures, 0 errors |
| 16:42:23 | be9 | hi ppl. tried to build latest git, get this: http://pastie.org/832910 . this is gcc 4.4.3 and llvm 2.6 |
| 16:57:17 | somebody | be9, I think for now is better to use prebuilt llvm |
| 16:58:17 | be9 | somebody_, what do ya mean by prebuilt? I've installed llvm package in archlinux |
| 16:58:56 | somebody | be9, ./configure --skip-system |
| 17:01:02 | be9 | actually I could workaround it by stuffing -fpermissive into CXXFLAGS |
| 17:02:43 | be9 | too bad CXXFLAGS gets into C compiler cmdline too |
| 17:13:51 | be9 | something worse: vm/llvm/passes.cpp:277: error: 'sadd_with_overflow' is not a member of 'llvm::Intrinsic' ( http://pastie.org/832969 ) |
| 17:37:36 | brixen | be9: gist me ./configure --show |
| 17:37:52 | brixen | be9: you have to use a specific version of llvm |
| 17:39:23 | slava | hi brixen |
| 17:39:27 | brixen | hi slava |
| 17:53:02 | be9 | brixen: http://gist.github.com/308978 |
| 18:11:17 | brixen | hmm |
| 18:44:40 | be9 | so, the problem was stale llvm tree. everything works now |
| 18:44:50 | brixen | cool |
| 19:11:46 | be9 | I've just tried to install and run a request-log-analyzer gem against a big Rails production.log. "no method 'divide' on an instance of Rational. (NoMethodError)" |
| 19:13:32 | brixen | ok |
| 19:13:46 | brixen | you can file a ticket with backtrace and steps to repor |
| 19:13:51 | brixen | er repro |
| 19:13:56 | brixen | or try tracking it down |
| 19:14:28 | be9 | I wonder what's a Rational#divide method |
| 19:14:55 | brixen | sounds like something got compiled with the kernel flags when it should not have |
| 19:15:19 | brixen | we have a kernel divide method to get around mathn redefining Float#/ incompatibly |
| 19:15:51 | brixen | but I can't figure anything out with a one-line error ;) |
| 19:17:46 | be9 | sure :) http://gist.github.com/309063 |
| 19:22:47 | brixen | hmm yeah |
| 19:22:57 | brixen | evan fixed some coercion issues recently |
| 19:25:44 | be9 | easy reproducible: a=1094; b=Rational(8485609, 43200); a/b |
| 19:25:55 | evan | on line 41 of bootstrap/fixnum.rb |
| 19:25:58 | be9 | raises NoMethodError |
| 19:26:10 | evan | that should probably be redo_coerced :/, o |
| 19:26:12 | evan | not :divide |
| 19:26:33 | evan | someone else will have to test that though |
| 19:26:39 | evan | i'm headed out |
| 19:26:41 | be9 | i'll test now |
| 19:28:23 | be9 | it works :) |
| 19:31:44 | brixen | hmm |
| 19:32:38 | brixen | not sure that will be correct though |
| 19:33:01 | be9 | log analyzer actually worked now (~3 times slower that latest REE) |
| 19:38:56 | brixen | should be ok, because fixnum div will succeed through the primitive and everthing else would coerce anyway |
| 19:41:03 | be9 | cool |
| 19:41:15 | boyscout | Fix Fixnum#/ coercion from #divide method (from Evan). - d29c664 - Brian Ford |
| 19:46:31 | boyscout | CI: rubinius: d29c664 successful: 3037 files, 11914 examples, 36156 expectations, 0 failures, 0 errors |
| 19:49:43 | saywatmang | is there any convention for testing segfault in rubyspec ? |
| 19:49:52 | saywatmang | eg. fork |
| 19:49:52 | saywatmang | ? |
| 19:51:17 | brixen | saywatmang: what do you mean by "testing segfault" |
| 19:51:36 | saywatmang | like |
| 19:51:39 | brixen | we do not write specs that say: it "segfault when you do blah" |
| 19:51:40 | saywatmang | something segfaults |
| 19:51:44 | brixen | that's a bug |
| 19:51:46 | saywatmang | so i want to write a test that passes if it doesnt segfault |
| 19:51:46 | brixen | not a spec |
| 19:51:49 | saywatmang | ic |
| 19:51:52 | saywatmang | bugs dont go in the spec ? |
| 19:51:57 | brixen | huh? |
| 19:52:08 | brixen | show me what you are looking at |
| 19:52:48 | saywatmang | http://gist.github.com/301174 segfaults 187-p174+ |
| 19:53:11 | saywatmang | i just did the fix i wanted to write a spec for it, but i guess ur saying regression specs dont belong in rubyspec ? |
| 19:53:24 | saywatmang | brixen, ^ |
| 19:53:50 | brixen | no, that's not what I'm saying |
| 19:53:58 | brixen | so in this case, you use ruby_bug guard |
| 19:54:03 | saywatmang | ah ok cool |
| 19:54:08 | saywatmang | and then is forking ok ? |
| 19:54:19 | saywatmang | i recall in the past you being against forking or something |
| 19:54:56 | brixen | http://rubyspec.org/wiki/rubyspec/Guards |
| 19:55:08 | saywatmang | great thx |
| 19:55:08 | brixen | there's no point in forking |
| 19:55:35 | brixen | see under 3. Bugs |
| 19:55:54 | brixen | saywatmang: do you understand how to use it? |
| 19:56:02 | saywatmang | looking |
| 19:56:33 | saywatmang | ic, so it wont run unless its a ruby version where its known to be fixed |
| 19:57:26 | brixen | right |
| 19:57:30 | saywatmang | sweet, thx |
| 19:57:41 | brixen | it will run on all alternative implementations regardless of version |
| 19:57:57 | brixen | it will run on MRI only for versions greater than the ruby_bug guard |
| 19:58:17 | saywatmang | hrm, what if the fixed version isnt released yet :) |
| 19:58:33 | saywatmang | ah right |
| 19:58:38 | saywatmang | that works |
| 20:16:39 | saywatmang | brixen, does that look correct? http://rubyspec.org/projects/rubyspec/issues/show?id=208 |
| 20:22:15 | brixen | saywatmang: no, it needs some work |
| 20:22:25 | brixen | why are you defining the method on Object? |
| 20:24:05 | brixen | saywatmang: I'll just comment on your ticket |
| 20:25:45 | saywatmang | yea thats fine thanks |
| 20:27:22 | Ecco | Hi :-) |
| 20:27:30 | Ecco | Simple question : why Rubinius ? |
| 20:27:55 | Ecco | Is it faster than MRI ? And than the "default" JIT Ruby interpreter of 1.9 ? |
| 20:28:33 | brixen | it is faster than MRI in some cases, slower in others |
| 20:28:40 | brixen | but it will get faster |
| 20:28:45 | brixen | 1.9 is not a JIT |
| 20:28:54 | brixen | it's a bytecode vm |
| 20:29:09 | brixen | rubinius, on the other hand, does have a JIT |
| 20:29:12 | Ecco | Oh, ok. I thought i was |
| 20:29:33 | saywatmang | brixen, it doesn't matetr where that method is defined, should i create a new class fixutre for it under fixtures ? |
| 20:29:50 | brixen | saywatmang: could you not just use a mock? |
| 20:30:15 | saywatmang | a mock class ? |
| 20:30:34 | brixen | sec... |
| 20:30:36 | saywatmang | ah yea duh i could just create a new class |
| 20:30:39 | saywatmang | nm about that |
| 20:30:47 | saywatmang | passing in nil doesnt matter, i just have to pass in something |
| 20:31:17 | brixen | the method is defined with a block taking no arguments |
| 20:31:22 | brixen | why do you have to pass something? |
| 20:32:01 | saywatmang | brixen, its the nature of the bug |
| 20:32:07 | brixen | ok |
| 20:32:08 | saywatmang | http://coderrr.wordpress.com/2009/03/29/ruby-18-define_method-scope-bug/ if ur curious |
| 20:33:04 | brixen | ahh gotcha |
| 20:33:17 | brixen | this spec will need a comment describing these points |
| 20:33:38 | brixen | because there's really no way to infer from the spec why you are passing an argument |
| 20:34:48 | brixen | Ecco: I'm curious why you are asking "why rubinius", are you new to ruby? |
| 20:34:49 | saywatmang | well actually i can add an argument to define_method, the bug will still happen |
| 20:34:55 | saywatmang | if that makes it clearer |
| 20:34:57 | Ecco | Not at all |
| 20:35:06 | Ecco | I've been using Ruby for quite a while now |
| 20:35:12 | Ecco | I really love it |
| 20:35:13 | brixen | saywatmang: well, it really doesn't make it clearer |
| 20:35:15 | Ecco | But I find it slow |
| 20:35:19 | slava | rubinius is the future of ruby |
| 20:35:30 | brixen | saywatmang: we need to say why it's important to call with args > 0 |
| 20:35:34 | saywatmang | k |
| 20:35:41 | Ecco | (I'm from a C background, so obviously other languages tend to seem slow ^^) |
| 20:35:42 | brixen | Ecco: did you just hear about rubinius recently? |
| 20:35:50 | Ecco | Hmm, yeah, just today |
| 20:35:55 | brixen | ahh ok |
| 20:35:59 | brixen | interesting! |
| 20:36:00 | brixen | heh |
| 20:36:09 | brixen | Ecco: how did you hear about it? |
| 20:36:14 | Ecco | From Unicorn |
| 20:36:22 | brixen | Unicorn talks? |
| 20:36:26 | Ecco | I was told it was a good way to deploy Rails apps |
| 20:36:29 | Ecco | :-D |
| 20:36:32 | brixen | heh |
| 20:36:33 | Ecco | http://unicorn.bogomips.org/ |
| 20:36:39 | Ecco | I have to go though |
| 20:36:47 | brixen | ok |
| 20:36:53 | Ecco | I was just browsing randomly though |
| 20:36:53 | brixen | come back soon |
| 20:36:57 | Ecco | sure ^^ |
| 20:36:58 | brixen | I'll tell you more |
| 20:37:01 | Ecco | :-D |
| 20:43:49 | brixen | saywatmang: I don't have that version of 1.8.7 installed yet, do you want to test this http://gist.github.com/309183 |
| 20:44:05 | brixen | invokes rvm and sees who gets done first |
| 20:44:26 | wayneeseguin | lol |
| 20:44:26 | saywatmang | i tested with 1.8.7-p174 and 1.8.7-p248 |
| 20:44:29 | wayneeseguin | rvm races! |
| 20:44:35 | saywatmang | and i just submitted a new patch |
| 20:44:38 | brixen | oh, it manifests in 248? |
| 20:44:40 | brixen | I have that |
| 20:44:53 | saywatmang | nah its fixed in 248 |
| 20:45:11 | saywatmang | manifests in <248 |
| 20:45:11 | brixen | o |
| 20:45:12 | brixen | k |
| 20:45:13 | brixen | heh |
| 20:45:25 | brixen | oh, hmm |
| 20:45:32 | saywatmang | and actually i realized we need an actual def to repro it inside of the test suite |
| 20:45:42 | saywatmang | an outer lambda fixes the bug, fkn MRI |
| 20:45:42 | brixen | ok |
| 20:48:03 | brixen | yeah, mock wouldn't work anyway |
| 20:48:23 | brixen | I was thinking of a singleton method definition but you need a Module there |
| 20:48:55 | saywatmang | (class<<obj;self;end).send :define_method probly woudl work |
| 20:50:42 | brixen | well, in that case just add a fixture |
| 20:51:08 | saywatmang | i think k=Class.new is good enough isn't it ? |
| 20:51:19 | brixen | yeah |
| 20:54:07 | brixen | ok, just looked at it |
| 20:54:13 | brixen | no "should" in description strings |
| 20:54:44 | brixen | saywatmang: I'm gonna grab some food but later I'll see if I can clean this up a bit |
| 20:55:05 | brixen | I don't like the def for a new scope |
| 20:55:44 | brixen | but it might be the simplest way |
| 20:55:44 | saywatmang | sigh, so picky :P do what u will with it |
| 20:57:00 | brixen | not sure yet, lunch! :) |
| 22:21:33 | brixen | arg, still sporadic EBADF's running the specs |
| 22:45:15 | chuck | Is rbx rubinius in rvm? |
| 22:45:43 | yakischloba | yea |
| 22:45:50 | chuck | thanks |
| 22:46:13 | yakischloba | you can use 'rvm install rbx-head' to use the latest rbx from git |
| 22:49:58 | chuck | yakischloba, I'm trying out 1.0.0-rc2 for now |
| 22:50:08 | yakischloba | cool. |
| 22:50:32 | brixen | chuck: rc3 is out |
| 22:51:15 | chuck | brixen, this is the one that's in rvm |
| 22:51:49 | brixen | you still want to use rc3 |
| 22:52:01 | brixen | it's not hard to use it from the build dir directly |
| 22:52:04 | brixen | or install |
| 22:52:39 | brixen | and git master is sane, so at least you should use rbx-head |
| 22:54:56 | chuck | okay |
| 22:55:24 | chuck | brixen, git://github.com/evanphx/rubinius.git, right? |
| 22:55:58 | brixen | you should be able do it from rvm |
| 22:56:46 | brixen | rvm install rbx-head |
| 23:03:26 | chuck | brixen, oh cool, thanks |
| 23:07:07 | brixen | n/p |
| 23:15:44 | chuck | What's the best JSON library that's compatible with Rubinius? |
| 23:20:36 | brianmario | yajl-ruby should be compatible |
| 23:20:53 | brianmario | but it's been a while since I tested it |
| 23:27:50 | brixen | wonders if he repeats 'mathn I hate you' enough will it poof disappear |
| 23:49:21 | brianmario | just ran the yajl-ruby specs (from yajl-ruby master), looks like the Zlib::Deflate#ended? method doesn't exist? |
| 23:53:46 | brianmario | er sorry, I guess it's Zlib::Zstream#ended? (looks like it's just an alias for closed?) |
| 23:54:53 | brianmario | which doesn't exist either |