Show enters and exits. Hide enters and exits.
| 00:47:01 | seangrove | Hey all, downloaded the source to rubinius - very cool project! |
| 00:47:09 | seangrove | I had a few questions if anyone's available though |
| 00:47:22 | seangrove | I'm wondering where += is defined for the String class |
| 00:47:43 | seangrove | It seems like it would simply be an alias for << |
| 00:53:23 | brixen | seangrove: you cannot define += in Ruby |
| 00:53:32 | brixen | the lang composes that for you |
| 00:54:00 | brixen | String#+ is defined in kernel/common/string.rb at line 73 |
| 00:54:26 | seangrove | brixen: Ah, ok |
| 00:54:35 | seangrove | But the behavior for << and += are the same, no? |
| 00:54:57 | brixen | no, not exactly |
| 00:55:03 | brixen | go look at the source :) |
| 00:55:19 | brixen | String#<< is defined right below String#+ |
| 00:55:25 | seangrove | Heh, have it open right now ;) |
| 00:55:37 | seangrove | + returns a new string |
| 00:55:48 | seangrove | << modifies the original string via self.append |
| 00:56:02 | seangrove | But it seems that += also modifies the original string |
| 00:56:58 | brixen | um no |
| 00:57:12 | seangrove | http://pastie.org/715524 |
| 00:57:16 | brixen | http://gist.github.com/243143 |
| 00:58:19 | seangrove | My question is about the behavior of += and << |
| 00:58:21 | brixen | += is shortcut for a = a + x |
| 00:58:30 | seangrove | ah |
| 00:58:32 | brixen | I don't understand your question |
| 00:58:33 | seangrove | Makes sense |
| 00:58:34 | seangrove | Haha |
| 00:58:35 | brixen | ok |
| 00:58:36 | brixen | good |
| 00:58:39 | brixen | heh |
| 00:58:42 | seangrove | Sorry to be so thick |
| 00:58:47 | brixen | no worries |
| 00:59:30 | seangrove | Alright then, I was essentially corrent |
| 00:59:33 | seangrove | correct |
| 00:59:51 | seangrove | Hrm |
| 00:59:54 | brixen | well, no, += and << are not the same at all |
| 00:59:58 | brixen | a = "s" |
| 01:00:05 | brixen | you have created a reference to "s" |
| 01:00:06 | brixen | b = a |
| 01:00:09 | brixen | now you have an alias |
| 01:00:12 | seangrove | ok |
| 01:00:27 | brixen | if you now do a += "p", you have changed the object a references |
| 01:00:37 | brixen | but b still references the unchanged original object |
| 01:00:55 | brixen | a now points to the new string created with String#+ |
| 01:01:01 | seangrove | Alright, I was essentially wrong then |
| 01:01:01 | seangrove | haha |
| 01:01:05 | brixen | hah |
| 01:01:07 | brixen | yep |
| 01:01:16 | seangrove | Cool, glad to know better now |
| 01:01:22 | brixen | have you read the pickaxe book? |
| 01:01:26 | brixen | it's a great resource |
| 01:01:37 | seangrove | Nope, never even heard of it |
| 01:01:56 | brixen | one sec... |
| 01:02:19 | seangrove | Hmm, I think I may have just seen this book over at the used book shop |
| 01:02:23 | brixen | http://www.amazon.com/Programming-Ruby-1-9-Pragmatic-Programmers/dp/1934356085 |
| 01:02:49 | brixen | this is also very good |
| 01:02:50 | brixen | http://www.amazon.com/Ruby-Programming-Language-David-Flanagan/dp/0596516177 |
| 01:03:13 | brixen | are you just getting into ruby? |
| 01:07:30 | seangrove | brixen: Nah, not so much |
| 01:07:40 | seangrove | Feel pretty comfortable, but want to start digging a bit deeper |
| 01:09:45 | brixen | ah ok |
| 01:10:36 | seangrove | So I like that rubinius is kind of turtles all the way down |
| 01:10:46 | brixen | working on it |
| 01:10:58 | brixen | the VM is still there, but we're shrinking that usually |
| 01:11:09 | brixen | especially now with the jit |
| 01:11:22 | brixen | we can remove some of the primitives we needed for performance reasons |
| 01:11:28 | brixen | potentially... |
| 01:11:36 | seangrove | Wow, that's very cool |
| 01:11:43 | seangrove | What kind of work are you guys looking for? |
| 01:11:48 | seangrove | I wonder if there's anything I could help with |
| 01:12:04 | brixen | best thing is to run your fav ruby code under rbx |
| 01:12:16 | brixen | that gives us feedback we wouldn't get otherwise |
| 01:12:21 | seangrove | Sounds fair |
| 01:12:35 | seangrove | Also, on line 96 of kernel/common/string.rb, << calls self.append(other), but I can't figure out where this is defined |
| 01:13:00 | brixen | kernel/bootstrap/string.rb |
| 01:13:22 | seangrove | so Ruby.primitive :string_append? |
| 01:13:29 | brixen | read doc/bootstrapping.txt for more background on how kernel is organized |
| 01:13:34 | brixen | yeah, that's a primitive |
| 01:13:38 | seangrove | Sounds great |
| 01:13:57 | brixen | you can see in vm/builtin/string.[hc]pp where that is defined |
| 01:14:20 | Zoxc | [02:12] <brixen> best thing is to run your fav ruby code under rbx under your fav OS |
| 01:14:22 | brixen | it's basically hooked up directly to String::append in C?? |
| 01:14:26 | brixen | er C++ |
| 01:15:18 | brixen | Zoxc: patches for windows welcome :) |
| 04:54:25 | tarcieri | balls |
| 04:54:33 | tarcieri | still totally bummed he missed EngineYard karaoke :( |
| 04:54:55 | tarcieri | oyeah, awesome you're getting rid of the GIL here soon hopefully and stuff |
| 05:06:21 | brixen | yeah, soon, but probably not before we finish up 1.0 |
| 05:06:39 | tarcieri | yeah that's what evan said at rubyconf, it's all good |
| 05:06:39 | brixen | and yes, karaoke was pretty good, too much light though :) |
| 05:06:48 | tarcieri | aww light ftl |
| 05:06:52 | brixen | heh |
| 05:06:59 | tarcieri | I like wandered out to Burlingame looking for a nonexistent karaoke bar :( |
| 05:07:20 | tarcieri | should've gone to startup crawl but I was hanging out with some random friends of my coworker who lived in the Mission |
| 09:04:37 | ppahdna | hello all |
| 09:04:59 | ppahdna | I have just cloned rubinius repository and ran "rake" |
| 09:05:16 | ppahdna | but I do not have a spec/ruby directory...does anyone know why that would be? |
| 09:08:03 | ppahdna | anyone? |
| 09:11:07 | naeu | congratulations on the 1.0.0RC1 release |
| 09:11:51 | brixen | naeu: thanks! |
| 09:12:07 | brixen | ppahdna: if you do rake rubyspec:update, you'll get a spec ruby dir |
| 09:12:16 | brixen | ppahdna: it's just a clone of rubyspec though |
| 09:12:25 | ppahdna | alright, thanks |
| 09:12:30 | brixen | we have an imported version of rubyspec in spec/frozen |
| 09:12:37 | naeu | do you have a 'getting started' doc that shows me how to get running with stuff like gems and rake? |
| 09:12:42 | brixen | yes |
| 09:12:52 | brixen | doc/getting_started.txt should cover most things |
| 09:12:59 | ppahdna | brixen: yeah I just read that thanks |
| 09:13:00 | brixen | as for rubygems, it's bundled |
| 09:13:10 | brixen | naeu: ^^^ |
| 09:13:17 | naeu | super, thanks |
| 09:13:21 | brixen | naeu: you should be able to just bin/rbx -S gem install blah |
| 09:13:39 | naeu | brixen: can I also use my system installed gems? |
| 09:13:46 | brixen | naeu: not really no |
| 09:13:55 | naeu | i.e. is ~/.gemrc honoured? |
| 09:14:01 | brixen | because eg gems with C ext must be compiled against rubinius |
| 09:14:10 | brixen | yes ~/.gemrc is read |
| 09:14:16 | brixen | it's plain old rubygems |
| 09:14:19 | brixen | just bundled |
| 09:14:21 | naeu | sure, but pure ruby stuff should be fine |
| 09:14:36 | brixen | you can try it, but it's not recommended |
| 09:14:42 | brixen | just install the gems ;) |
| 09:14:42 | naeu | ok |
| 09:14:44 | naeu | :-) |
| 09:22:09 | ppahdna | helo again |
| 09:22:51 | ppahdna | mspec simply runs the spec to test the bahaviour of Rubinius against Matz's ruby. Is that correct? |
| 09:36:12 | brixen | ppahdna: yes |
| 09:41:51 | ppahdna | thanks |
| 09:42:48 | naeu | btw, the rake in gems/rubinius/bin is hardlinked to evan's setup (/Users/evan/git/rbx/bin/rbx) |
| 09:43:06 | naeu | (in the latest 1.0.0RC1 tar.gz) |
| 09:44:02 | ppahdna | Is it possible that the current specs in the repository could be broken? I am under the impression that "only check in to main repo when you get green on specs" |
| 09:58:03 | rue | The CI run should generally be clean |
| 10:35:21 | yannick | hi. getting "library not found for class Digest::SHA1 -- digest/sha1 |
| 10:35:58 | yannick | on os x 1.6 x64 aswell as on archlinux x64 |
| 11:54:31 | ppahdna | rue: I just ran the specs using bin/mspec command |
| 11:54:47 | ppahdna | I guess there is a different commands for running the CI |
| 12:17:09 | rue | ppahdna: Yeah, $ bin/mspec ci for the CI |
| 12:17:29 | rue | yannick_: Where are you getting that, in building? |
| 12:32:24 | ppahdna | rue: thanks will try taht |
| 12:32:27 | ppahdna | that* |
| 12:47:09 | rue | ppahdna: So that should run clean if you are checking changes you make |
| 12:47:37 | rue | -fs is a good switch, it gives the full text of each spec (if you see hangs or crashes for example) |
| 12:54:02 | ppahdna | well I have got a fresh checkout from the repo and it is still failing. I have not made any changes yet and I was assuming that specs in all will yield green |
| 12:54:18 | ppahdna | in the master repo I mean |
| 13:05:25 | yannick | rue: jup. rake |
| 13:08:15 | rue | yannick_: Hm, just plain $ rake ? |
| 13:08:26 | rue | Did you go through configure and so on? |
| 13:08:56 | yannick | rue: did the steps on the website. so ./configure and then rake |
| 13:09:16 | yannick | (doesnt matter with or without --enable-llvm ) |
| 13:10:34 | rue | Giving it a go...I usually run $ rake build (but it should not be necessary) |
| 13:10:55 | ppahdna | I did ./configure and then rake |
| 13:11:08 | yannick | jup, its rake build which fails |
| 13:11:28 | ppahdna | and that builds it alright but the spec fails |
| 13:11:49 | ppahdna | I have not tried rake build but I guess build is the default target |
| 13:12:10 | yannick | ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux] it is on archlinux |
| 13:12:43 | yannick | http://pastie.org/715980 |
| 13:13:37 | ppahdna | yannick_ : I built it on ruby 1.8.6 |
| 13:14:13 | ppahdna | so it builds alright so I guess it is to do with your version of ruby |
| 13:14:39 | yannick | ppahdna: on os x i have ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10] and it gives me the same error |
| 13:16:12 | ppahdna | Did you see the getting started docs it has a list of dependencies for Debian/Ubuntu |
| 13:16:40 | ppahdna | My suggestion would be to check if you have got the dependencies installed... |
| 13:17:17 | rue | Mm, getting a failure on HEAD too |
| 13:17:21 | rue | Different |
| 13:18:04 | rue | Ah, just the old GCC problem |
| 13:18:57 | yannick | which gcc do i need? |
| 13:19:28 | yannick | and where can i config it, i have 4.3 and 4.4 installed |
| 13:19:48 | yannick | altough its 4.2.1 on os x. |
| 13:20:03 | yannick | ppahdna: got all deps |
| 13:22:08 | rue | On OS X I use GCC 4.0, 4.2 might work but 4.3 breaks because of -arch |
| 13:22:16 | rue | I will open a ticket and try fix it later |
| 13:22:24 | rue | This should not affect other platforms |
| 13:24:32 | yannick | rue: ok. still its weird because require 'digest/sha1' is no problem |
| 13:25:47 | rue | You have a working bin/rbx, right? |
| 13:28:11 | rue | I have to head out, going on a cruise...open up a ticket with as much detail as you can |
| 13:28:29 | rue | I will probably be able to check back later, but happy Thanksgiving to everyone to whom it applies if not |
| 13:56:25 | huma | em.. guys, i get this trying to build 1.0.0rc1: atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' |
| 13:59:19 | yannick | rue: thanks, opened a ticked and the solution is simple, just require 'digest/sha1' into the rakefile |
| 14:10:06 | yannick | hmm how can i install gems? |
| 14:11:11 | cypher23 | yannick_, 'rbx gem install' IIRC |
| 14:13:28 | yannick | cypher23: thanks also found the usr/lib/bin dir ;) |
| 14:59:09 | yannick | nice nice, got a sinatra app booting. is there another working rack server than webrick? |
| 15:57:12 | huma | has anyone stumbled on __sync_fetch_and_add_4 issue? i'm using -march=i686 |
| 19:06:37 | dbussink | so, how's the rc fallout? :) |
| 19:45:22 | dbussink | brixen: available? |
| 21:09:57 | boyscout | String#each_byte can be aliased to String#bytes - c9b46cd - Dirkjan Bussink |
| 21:09:57 | boyscout | Remove tags for now passing String#bytes specs - ec01d79 - Dirkjan Bussink |
| 21:12:58 | boyscout | CI: ec01d79 success. 3004 files, 11470 examples, 35613 expectations, 0 failures, 0 errors |
| 21:15:26 | luislavena | evan: ping? |
| 21:24:30 | evan | luislavena: hey |
| 21:40:34 | luislavena | evan: A bird just told me that rake-compiler is included in rubinius? |
| 21:41:00 | evan | yeah! i threw it along with rake into the preinstall gems |
| 21:41:07 | evan | it's my turn on the wii |
| 21:41:09 | evan | brb. |
| 21:41:14 | luislavena | enjoy! |
| 21:42:08 | benschwarz | evan, brixen: You aren't going to like this *a lot*, but anyway http://www.germanforblack.com/articles/a-why-ruby-article-for-now |
| 22:08:28 | boyscout | Note requirement to use 1.8.[67] to build. - 0f83f82 - Brian Ford (gh-pages) |
| 23:43:27 | sbryant | Congrats on the 1.0.0RC1 |