Show enters and exits. Hide enters and exits.
| 00:00:01 | brixen | tarcieri: you never know, I should see if the specs run on it :) |
| 00:00:11 | tarcieri | lol |
| 00:00:34 | tarcieri | brixen: well the "Roadmap" page for cardinal2 links to a server that isn't up anymore |
| 00:00:34 | tarcieri | heh |
| 00:00:40 | evan | brixen: i'm curious if the minimal mspec runs on it actually |
| 00:00:41 | evan | probably not. |
| 00:01:26 | dgtized | I think cardinal is just in the parrot repo |
| 00:01:50 | tarcieri | yeah |
| 00:01:52 | tarcieri | I see that now |
| 00:02:00 | tarcieri | I'm reading an interview with the guy who's "maintaining" it |
| 00:02:05 | tarcieri | http://on-ruby.blogspot.com/2007/02/parrotcardinal-mini-interview.html |
| 00:02:20 | wmoxam | how far did Cardinal get? |
| 00:02:29 | tarcieri | dunno |
| 00:03:05 | evan | tarcieri: I think Kevin dropped out of ruby |
| 00:03:10 | evan | haven't seen nor heard from him in years |
| 00:03:53 | tarcieri | heh |
| 00:04:21 | seydar | how long have you all been in ruby? |
| 00:04:32 | evan | 7 years |
| 00:04:39 | seydar | holy shit |
| 00:04:40 | tarcieri | the Ruby code in the page Ezra linked doesn't really seem t be valid |
| 00:04:53 | tarcieri | yeah, I've been using it for like... 5 I guess, heh |
| 00:05:04 | tarcieri | do |i| puts "ruby got " + i; return i + 10 end |
| 00:05:05 | tarcieri | WTF? |
| 00:05:10 | wmoxam | 5 or 6 for me |
| 00:05:26 | seydar | tarcieri: looks like it's trying to return a function |
| 00:05:31 | tarcieri | yeah |
| 00:05:32 | dgtized | I sort of used it in '02, but switched to using it for most things in '04 |
| 00:05:41 | evan | tarcieri: thats sorta right |
| 00:05:50 | evan | tarcieri: he doesn't understand how ruby's blocks/closures work though |
| 00:05:55 | seydar | drbrain: rue: Defiler: you guys? |
| 00:05:55 | evan | and doesn't know the syntax well |
| 00:06:16 | drbrain | seydar: huh? |
| 00:06:40 | seydar | how long have you been in ruby? |
| 00:06:42 | wmoxam | I started using it as a perl replacement for little sysadmin scripts. Didn't really start learning about the 'cool shit' until later |
| 00:06:58 | seydar | wmoxam: how long ago was that? |
| 00:07:07 | wmoxam | 2002-2003 |
| 00:07:13 | tarcieri | I'm just kind of surprised that Parrot was intended to be a VM for multiple languages but this is apparently the first time anyone thought of using multiple languages simultaneously |
| 00:07:22 | rubuildius_ey64 | Charles Comstock: 587055622; bin/ci failed! http://rafb.net/p/yLhZfZ32.html |
| 00:07:25 | tarcieri | I sort of thought that was the point for some reason |
| 00:07:49 | tarcieri | like didn't Parrot start out as a joke about turning Python and Ruby into one language? |
| 00:07:51 | evan | fuck great. |
| 00:07:54 | evan | more USZ errors |
| 00:08:02 | seydar | USZ? |
| 00:08:37 | drbrain | about as long as evan |
| 00:08:37 | dgtized | hmm so I'm guessing that's just 1 shot? |
| 00:08:37 | dgtized | tarcieri: parrot was for perl6 |
| 00:08:45 | tarcieri | yeah |
| 00:08:50 | tarcieri | I'm talking about the name |
| 00:08:55 | tarcieri | apparently it was Python and Perl |
| 00:09:24 | seydar | drbrain: how long have ye been rubynizing |
| 00:09:29 | seydar | oh |
| 00:09:37 | seydar | nvm |
| 00:09:50 | seydar | tarcieri: how long have you been rubying? |
| 00:10:11 | tarcieri | seydar: 4-5 years |
| 00:10:24 | seydar | and gramming in general? |
| 00:10:43 | Maledictus leaves the room. | |
| 00:10:49 | tarcieri | ummm |
| 00:10:59 | agardiner leaves the room. | |
| 00:11:00 | tarcieri | like 20 years? |
| 00:11:00 | tarcieri | heh |
| 00:11:12 | tarcieri | far too many of which were wasted on C |
| 00:11:12 | tarcieri | heh |
| 00:11:17 | seydar | whoa, i thought you were sub-30 years old |
| 00:14:03 | seydar | evan: what is USZ? |
| 00:14:19 | evan | a kind of error that keeps popping up |
| 00:14:40 | brynary leaves the room. | |
| 00:15:01 | seydar | i hate to be annoying, but what does it mean? what kind of error? Googling returns some german or austrian university |
| 00:15:32 | evan | http://rafb.net/p/yLhZfZ32.html |
| 00:15:35 | evan | check out the bottom of that |
| 00:15:50 | evan | you'll see an UnspecifiedZone error |
| 00:16:41 | seydar | a zone is either young or old generation? |
| 00:16:46 | evan | yeah |
| 00:16:55 | evan | that means that object had 0 as it's zone id |
| 00:17:00 | evan | which means it's corrupt |
| 00:17:01 | Robdor leaves the room. | |
| 00:17:01 | evan | basically |
| 00:17:22 | seydar | something is altering that field? |
| 00:17:28 | evan | i'd guess so |
| 00:17:58 | seydar | any other ideas? |
| 00:18:01 | dgtized | but only at random intervals |
| 00:18:20 | dgtized | it's non-deterministic so it depends on how the objects are layed out in memory |
| 00:18:55 | heycarsten leaves the room. | |
| 00:29:25 | seydar | adios children |
| 00:29:31 | seydar | bed by 10, k? |
| 00:29:39 | seydar leaves the room. | |
| 00:29:51 | radarek leaves the room. | |
| 00:31:57 | dgtized | evan: so we can enable both the jit and dynamic intepreter at the same time right? |
| 00:32:06 | evan | sure |
| 00:32:37 | dgtized | and that's a win? |
| 00:33:30 | evan | hopefully! |
| 00:33:31 | evan | :D |
| 00:33:51 | dgtized | well it certainly works with the specs for x86 |
| 00:34:01 | evan | yeah, it should |
| 00:34:09 | evan | should be a little faster also |
| 00:34:11 | dgtized | but I'm not seeing much of a change yet, trying some benchmarks |
| 00:34:20 | dgtized | specs I'm not seeing so much of a change |
| 00:34:28 | dgtized | maybe a second less |
| 00:48:57 | boyscout | Fix local eval scope problem - 1d015be - Evan Phoenix |
| 00:49:16 | evan | I also added -ed |
| 00:49:17 | evan | so you can do |
| 00:49:24 | evan | bin/rbx -ed -e 'a = 1; p a' |
| 00:49:32 | evan | and it will print out the sexy and bytecode before running it |
| 00:49:39 | brixen | heh, nice |
| 00:49:40 | evan | good for quick checks |
| 00:49:44 | brixen | the sexy :) |
| 00:49:52 | evan | i'm off for a jog |
| 00:49:53 | brixen | or would that be teh sexy |
| 00:49:56 | brixen | k |
| 00:51:25 | nari enters the room. | |
| 00:52:00 | jtoy enters the room. | |
| 00:54:18 | boyscout | CI: Build 1d015be failed. http://ci.rubini.us/rubinius/builds/1d015bea0c87a9f02b566e8becf690e00fbfa8fc |
| 00:59:21 | rubuildius_ey64 | Evan Phoenix: 1d015bea0; 1309 files, 5881 examples, 22035 expectations, 1 failure, 0 errors; http://rafb.net/p/tjt5oj99.html |
| 01:06:44 | jicksta_ enters the room. | |
| 01:06:51 | jicksta leaves the room. | |
| 01:14:03 | enebo leaves the room. | |
| 01:16:17 | wmoxam leaves the room. | |
| 01:19:27 | boyscout | Changed tolerance on timing sensitive specs. - cc3779e - Brian Ford |
| 01:20:18 | ezmobius leaves the room. | |
| 01:21:05 | boyscout | CI: cc3779e success. 1309 files, 5890 examples, 22058 expectations, 0 failures, 0 errors |
| 01:24:08 | wyhaines leaves the room. | |
| 01:28:43 | rubuildius_ey64 | Brian Ford: cc3779e2c; bin/ci failed! http://rafb.net/p/UXt40978.html |
| 01:31:16 | lopex leaves the room. | |
| 01:31:49 | dgtized | what's with it not telling what failed? |
| 01:31:52 | evan | ddub: you around? |
| 01:33:23 | kamalfariz enters the room. | |
| 01:34:44 | brixen | dgtized: probably a segfault |
| 01:34:57 | brixen | otherwise you'd see something |
| 01:36:03 | dgtized | but shouldn't the STDERR go to the paste as well? |
| 01:36:16 | dgtized | so even with a segfault we still know what happened? |
| 01:36:48 | brixen | I know it was segfaulting on Array#initialize specs and it didn't show |
| 01:36:55 | dgtized | hmm |
| 01:42:36 | brixen | well, it seems you have to do "> foo.log 2>&1" as "2>&1 foo.log" is not working |
| 01:43:49 | brixen | &> foo.log also seems to work |
| 01:44:04 | evan | &> is the same as > .. 2>&1 |
| 01:44:14 | evan | or should be |
| 01:44:17 | brixen | yeah |
| 01:44:23 | brixen | http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html |
| 01:44:36 | brixen | that doesn't show > .. 2>&1 |
| 01:47:39 | brixen | hmm, it is actually already >>ci_log 2>&1 so dunno why it's not picking up the segfault |
| 01:57:23 | mdalessio enters the room. | |
| 01:59:41 | dgtized | evan: is there a way we can turn on and off the JIT and dynamic/static interpreter at runtime? |
| 01:59:52 | evan | not atm, but I can add one |
| 02:00:00 | evan | would you like to do it via a cli switch? |
| 02:00:09 | evan | ie 'rbx --jit' |
| 02:00:15 | dgtized | makes sense to me |
| 02:00:17 | evan | sure |
| 02:00:19 | evan | i'll add that |
| 02:00:34 | dgtized | the other thing, is there a way to dump the jit output along with the describe output or no? |
| 02:00:55 | evan | like, what the assembly looks like? |
| 02:00:58 | dgtized | yea |
| 02:01:01 | evan | yep! |
| 02:01:26 | evan | bin/rbx -fdis <file> |
| 02:01:30 | dgtized | ah |
| 02:01:43 | evan | should probably be -fasm |
| 02:01:45 | evan | but you get |
| 02:02:35 | dgtized | hmm is that your copy that has that, or should it be in the main repo? |
| 02:02:38 | jbarnette leaves the room. | |
| 02:02:45 | evan | should be in the main repo |
| 02:02:58 | evan | oh er. |
| 02:03:02 | evan | i'm still post jog |
| 02:03:08 | evan | bin/rbx describe -fdis <file> |
| 02:03:11 | dgtized | ah |
| 02:03:28 | dgtized | ok, yea that works |
| 02:05:41 | dgtized | the other thing that would be useful, is if we had a runtime option to force a particular method to be the jit version |
| 02:06:14 | dgtized | and not just do the >50 hits method |
| 02:07:30 | evan | you can do that now. |
| 02:07:56 | evan | mm = cm.make_machine_method |
| 02:07:58 | evan | mm.activate |
| 02:08:05 | evan | cm is the CompiledMethod you want to do it for |
| 02:08:12 | dgtized | ah ok |
| 02:09:04 | dgtized | and as a question on activate, activate just selects that as the method to dispatch too correct? |
| 02:09:15 | evan | yep |
| 02:09:19 | evan | it doesn't actually call it now |
| 02:09:39 | evan | it means the next time that CompiledMethod is used, that MachineMethod will be used for it |
| 02:11:30 | dgtized | alright i'll go look at the Method activation machinery |
| 02:11:49 | evan | what are you looking for? |
| 02:13:18 | dgtized | wanted to see how much dereferencing we have to go through to get to the MachineMethod |
| 02:13:37 | evan | none when it's called |
| 02:14:03 | evan | the MachineMethod installs the pointer to the jit'd function in the VMM's run data member |
| 02:14:23 | evan | and run() is called in Task::execute |
| 02:16:08 | dgtized | oh -- I hadn't seen VMMethod::specialize -- so ivar access to say @tuple, @total, @start on Array only gets switched to the my_field variety at runtime, not compile time? |
| 02:16:35 | evan | yep |
| 02:17:45 | evan | ok, so.. |
| 02:17:54 | evan | bin/rbx -Xrbx.jit |
| 02:18:12 | evan | or something else instead of -X |
| 02:18:19 | evan | -X being jvm style |
| 02:18:24 | brixen | -X is so java ish |
| 02:18:31 | dgtized | right I remember headius wanted something like that |
| 02:18:47 | evan | mainly, these will be Rubinius::CONFIG variables that are added |
| 02:18:48 | brixen | I suppose if we will have Bignum options :) |
| 02:19:28 | evan | give me another option |
| 02:19:36 | brixen | --jit |
| 02:19:50 | brixen | but I have a pref for long opts |
| 02:20:02 | evan | well, i want to have a generic way of adding entries to CONFIG |
| 02:20:09 | brixen | ahh I see |
| 02:20:20 | evan | bin/rbx --set rbx.jit |
| 02:20:34 | brixen | seems better to me |
| 02:20:40 | evan | problem with that is that --set will always be consumed by the cli driver |
| 02:20:45 | evan | and never seen by rubyland |
| 02:21:05 | dgtized | what happens for -e and the like? |
| 02:21:12 | evan | they're still there |
| 02:21:30 | brixen | not in ruby |
| 02:21:33 | evan | i suppose we could require another switch to enable the cli driver to read options |
| 02:21:39 | brixen | or not in ARGV |
| 02:21:52 | evan | not in ARGV |
| 02:22:10 | dgtized | we could just shove the extra options verbatim into an entry in Rubinius::CONFIG |
| 02:22:16 | evan | i'm also adding the env variable route |
| 02:22:19 | evan | so you can do |
| 02:22:27 | evan | RBX_CONFIG="rbx.jit=true" bin/rbx .... |
| 02:22:34 | evan | so we could just not have a way to set them except for that |
| 02:22:40 | evan | thats kind of brittle though |
| 02:22:49 | evan | since there can only be one |
| 02:22:53 | subvertir leaves the room. | |
| 02:22:58 | evan | (well, i guess we could have CONFIG1, CONFIG2...) |
| 02:22:59 | brixen | ruby takes -- to stop processing options |
| 02:23:17 | dgtized | we could just have RBX_CONFIG allow ; to seperate options |
| 02:23:31 | brixen | bin/rbx --set foo -- --set 'my set' |
| 02:23:41 | dgtized | but, I'm not so happy with environment variable usage so much |
| 02:23:45 | evan | ok, well, i'll muse a little |
| 02:23:47 | evan | i'm going to grab some dinner |
| 02:25:47 | yugui enters the room. | |
| 02:29:46 | evan | ok, i guess we're waiting on dinner :) |
| 02:30:23 | evan | so, --set seems to generic |
| 02:30:28 | evan | to easy to conflict |
| 02:30:42 | evan | certainly seeing -- will stop processing no matter what |
| 02:30:52 | ezmobius enters the room. | |
| 02:30:58 | tonguero_ enters the room. | |
| 02:33:36 | tonguero_ leaves the room. | |
| 02:34:50 | tongueroo leaves the room. | |
| 02:38:18 | atduskgreg leaves the room. | |
| 02:42:09 | brixen | -X is fine (works for java) but it's no less generic |
| 02:42:29 | brixen | it's short, which is good |
| 02:42:32 | evan | ok, so |
| 02:42:38 | evan | bin/rbx -Xrbx.jit |
| 02:42:39 | evan | or |
| 02:42:43 | evan | bin/rbx -X --set rbx.jit |
| 02:42:53 | evan | ie, -X activates looking for --set's |
| 02:43:06 | brixen | latter seems too complicated |
| 02:43:09 | evan | k |
| 02:43:13 | evan | i'll do the former |
| 02:48:30 | subvertir enters the room. | |
| 02:58:13 | pastie leaves the room. | |
| 02:58:54 | pastie enters the room. | |
| 03:00:54 | brynary enters the room. | |
| 03:04:36 | benny enters the room. | |
| 03:07:07 | Cosmos95 leaves the room. | |
| 03:18:58 | moconnor enters the room. | |
| 03:20:46 | jbarnette enters the room. | |
| 03:25:46 | haxplorer enters the room. | |
| 03:27:51 | perezd88 enters the room. | |
| 03:27:53 | hemulen leaves the room. | |
| 03:32:51 | perezd88 leaves the room. | |
| 03:33:28 | moconnor_ enters the room. | |
| 03:44:34 | moofbong enters the room. | |
| 03:46:02 | yugui leaves the room. | |
| 03:48:21 | moconnor leaves the room. | |
| 03:53:25 | mediogre enters the room. | |
| 03:58:02 | binary42 enters the room. | |
| 03:59:11 | nicksieger leaves the room. | |
| 03:59:56 | perezd88 enters the room. | |
| 04:00:22 | fbuilesv enters the room. | |
| 04:14:02 | perezd88 leaves the room. | |
| 04:18:31 | jackdempsey enters the room. | |
| 04:20:43 | moofbong leaves the room. | |
| 04:32:54 | atduskgreg enters the room. | |
| 04:35:55 | wyhaines enters the room. | |
| 04:37:48 | boyscout | Add cli switch to enable jit - 6c31ab6 - Evan Phoenix |
| 04:38:24 | boyscout | CI: Build 6c31ab6 failed. http://ci.rubini.us/rubinius/builds/6c31ab682a04a7b7a7f1c0c83390fe907439daad |
| 04:38:30 | evan | huh? |
| 04:42:21 | evan | oh. |
| 04:43:47 | joearnold leaves the room. | |
| 04:44:52 | boyscout | Rework parse_line - cd0db01 - Evan Phoenix |
| 04:49:53 | jbarnette leaves the room. | |
| 04:50:36 | boyscout | CI: cd0db01 success. 1309 files, 5890 examples, 22058 expectations, 0 failures, 0 errors |
| 04:52:28 | rubuildius_ey64 | Evan Phoenix: cd0db01a2; bin/ci failed! http://rafb.net/p/q55Sq116.html |
| 04:52:33 | evan | gr. |
| 04:55:26 | subvertir leaves the room. | |
| 04:55:48 | atduskgreg leaves the room. | |
| 05:09:44 | tongueroo enters the room. | |
| 05:14:17 | tonguero_ enters the room. | |
| 05:20:17 | ezmobius leaves the room. | |
| 05:29:17 | tongueroo leaves the room. | |
| 05:30:32 | qbproger leaves the room. | |
| 05:34:37 | joearnold enters the room. | |
| 05:46:19 | joearnold leaves the room. | |
| 05:53:40 | moconnor_ leaves the room. | |
| 05:53:56 | moconnor enters the room. | |
| 06:11:14 | atmos leaves the room. | |
| 06:17:58 | asap18 leaves the room. | |
| 06:25:09 | Jicksta leaves the room. | |
| 06:25:19 | jicksta_ enters the room. | |
| 06:28:24 | ezmobius enters the room. | |
| 06:29:35 | moconnor leaves the room. | |
| 07:19:54 | perezd88 enters the room. | |
| 07:21:53 | mdalessio leaves the room. | |
| 07:29:53 | brynary leaves the room. | |
| 07:32:11 | yugui enters the room. | |
| 07:47:52 | boyscout | Make mega-verbose work better - 28088b6 - Evan Phoenix |
| 07:49:23 | perezd88_ enters the room. | |
| 07:49:33 | boyscout | CI: 28088b6 success. 1309 files, 5890 examples, 22058 expectations, 0 failures, 0 errors |
| 07:52:07 | naeu enters the room. | |
| 07:52:41 | perezd88_ leaves the room. | |
| 07:57:18 | dbussink leaves the room. | |
| 07:57:22 | rubuildius_ey64 | Evan Phoenix: 28088b65d; bin/ci failed! http://rafb.net/p/LDSkB451.html |
| 07:57:36 | dbussink enters the room. | |
| 07:59:46 | robin_dewd_ leaves the room. | |
| 08:10:24 | perezd88 leaves the room. | |
| 08:10:25 | jackdempsey leaves the room. | |
| 08:16:20 | wyhaines leaves the room. | |
| 08:21:15 | atduskgreg enters the room. | |
| 08:21:56 | kamalfariz_ enters the room. | |
| 08:24:01 | jackdempsey enters the room. | |
| 08:24:59 | jicksta_ leaves the room. | |
| 08:26:21 | kamalfariz leaves the room. | |
| 08:28:10 | jicksta enters the room. | |
| 08:30:03 | kamalfariz enters the room. | |
| 08:31:55 | ezmobius leaves the room. | |
| 08:43:33 | naeu leaves the room. | |
| 08:48:13 | kamalfariz_ leaves the room. | |
| 09:00:35 | haxplorer leaves the room. | |
| 09:00:44 | haxplorer_ enters the room. | |
| 09:03:40 | jackdempsey leaves the room. | |
| 09:06:07 | naeu enters the room. | |
| 09:07:31 | imajes leaves the room. | |
| 09:22:41 | tonguero_ leaves the room. | |
| 09:23:53 | stepheneb leaves the room. | |
| 09:43:49 | nari leaves the room. | |
| 09:48:48 | BlackEdder enters the room. | |
| 09:50:46 | haxplorer_ leaves the room. | |
| 09:51:28 | haxplorer enters the room. | |
| 10:20:25 | wireless_ leaves the room. | |
| 10:29:45 | Maledictus enters the room. | |
| 10:41:20 | jtoy leaves the room. | |
| 10:43:00 | kamalfariz leaves the room. | |
| 11:06:15 | BlackEdder enters the room. | |
| 11:10:11 | yugui leaves the room. | |
| 11:14:16 | atduskgreg leaves the room. | |
| 11:22:51 | ffwonko enters the room. | |
| 11:26:52 | chris2 enters the room. | |
| 12:04:02 | benny leaves the room. | |
| 12:06:40 | yugui_ enters the room. | |
| 12:18:52 | nari enters the room. | |
| 12:27:38 | CIA-70 leaves the room. | |
| 12:32:29 | ff-wonko enters the room. | |
| 12:36:14 | agardiner enters the room. | |
| 12:39:10 | CIA-64 enters the room. | |
| 12:44:52 | ffwonko leaves the room. | |
| 13:13:35 | benny enters the room. | |
| 13:22:27 | yugui_ leaves the room. | |
| 13:23:11 | yugui_ enters the room. | |
| 13:46:19 | mvr leaves the room. | |
| 13:47:03 | jtoy enters the room. | |
| 13:47:07 | inspired leaves the room. | |
| 13:50:07 | gavinstark enters the room. | |
| 13:55:38 | asap18 enters the room. | |
| 13:57:14 | cremes leaves the room. | |
| 13:59:20 | ff-wonko leaves the room. | |
| 14:16:39 | asap18 leaves the room. | |
| 14:19:26 | mediogre leaves the room. | |
| 14:19:35 | jackdempsey enters the room. | |
| 14:19:42 | cremes enters the room. | |
| 14:29:55 | hemulen enters the room. | |
| 14:35:55 | wyhaines enters the room. | |
| 14:36:24 | jackdempsey leaves the room. | |
| 14:42:31 | enebo enters the room. | |
| 14:45:55 | mutle_ enters the room. | |
| 14:53:01 | wmoxam enters the room. | |
| 14:54:32 | mutle leaves the room. | |
| 14:54:59 | jackdempsey enters the room. | |
| 14:56:30 | heycarsten enters the room. | |
| 14:59:40 | moofbong enters the room. | |
| 14:59:54 | imajes_ enters the room. | |
| 15:05:27 | jackdempsey leaves the room. | |
| 15:09:35 | stepheneb enters the room. | |
| 15:11:09 | imajes_ leaves the room. | |
| 15:18:53 | moofbong leaves the room. | |
| 15:32:28 | joearnold enters the room. | |
| 15:34:53 | fbuilesv | evan: ping |
| 15:37:04 | antares_ enters the room. | |
| 15:38:22 | binary42 leaves the room. | |
| 15:46:48 | macournoyer enters the room. | |
| 15:47:56 | fbuilesv | does http://gist.github.com/43862 look good for generating the default srand seed value? |
| 15:54:33 | chris2 leaves the room. | |
| 15:54:34 | joearnold leaves the room. | |
| 15:58:25 | a_visitor enters the room. | |
| 15:58:29 | rue | fbuilesv: Needs a fallback in case /dev/urandom is not available |
| 15:59:06 | fbuilesv | rue: I thought of that but only windows came to my mind, any idea of where to get a random number there? |
| 15:59:15 | fbuilesv | I don't wanna generate it by hand if something's already available |
| 15:59:20 | haxplorer leaves the room. | |
| 16:00:55 | ffwonko enters the room. | |
| 16:01:00 | haxplorer enters the room. | |
| 16:03:12 | rue | fbuilesv: I would not worry about Windows too much for now, but it is possible a UNIXy system might not have /dev/urandom (or it might not be available) |
| 16:03:41 | rue | There is sranddev(), but I dunno if it is any more portable |
| 16:04:23 | AndrewO enters the room. | |
| 16:04:34 | fbuilesv | Linux, FreeBSD, Solaris, Mac OS X, NetBSD, OpenBSD, Tru64 UNIX 5.1B, AIX 5.2, and HP-UX 11i. That's the list of OS that support urandom |
| 16:04:51 | fbuilesv | rue: by not being available what do you mean? |
| 16:05:49 | fbuilesv | I'll take a look at sranddev anyway |
| 16:05:59 | rue | Might not be mounted, permissions or something strange |
| 16:06:56 | rue | Although probably just some reasonable error would most likely be fine for now if urandom is not accessible |
| 16:08:13 | fbuilesv | srandomdev() is an extension so I wouldn't count on in being available in general UNIX systems. |
| 16:10:06 | rue | Could always just hit the clock |
| 16:10:06 | moofbong enters the room. | |
| 16:10:52 | haxplorer leaves the room. | |
| 16:11:28 | rue | As a fallback, that is |
| 16:11:39 | fbuilesv | rue: that sounds fine, let me do that. |
| 16:13:06 | nicksieger enters the room. | |
| 16:13:45 | rue | Incidentally, looks like it is probably a good idea to stay away from Yellowstone.. |
| 16:15:18 | fbuilesv | rue: http://gist.github.com/43874 |
| 16:15:35 | fbuilesv | and by yellowstone do you mean the park? I thought the warnings of it blowing and covering the planet with dust were already determined to be false. |
| 16:15:50 | jptix | fbuilesv: what's wrong with the way mri does the default seed value? |
| 16:16:16 | jptix | i.e. "If number is omitted, seeds the generator using a combination of the time, the process id, and a sequence number." |
| 16:16:40 | fbuilesv | jptix: I personally think there's no point in doing so many ops when you can have a reliable number from the system. There might be some weird rationale behind it. |
| 16:16:50 | jptix | gotcha |
| 16:16:56 | jptix | just curious :) |
| 16:17:08 | fbuilesv | jptix: http://gist.github.com/43877 <-- way too comlpicated imo. |
| 16:17:53 | tongueroo enters the room. | |
| 16:21:36 | rue | fbuilesv: The else is unnecessary, move that to the block and make it rescue ENOENT, EACCES, EPERM explicitly |
| 16:22:10 | fbuilesv | rue: got it |
| 16:22:38 | tongueroo leaves the room. | |
| 16:22:40 | rue | fbuilesv: When are you heading to .nl? Or are you already in the old world? |
| 16:22:47 | fbuilesv | rue: Jan 17 |
| 16:23:02 | fbuilesv | according to dbussink they're at -13 today so I should stay on this side of the pool for a while :P |
| 16:23:19 | rue | Heh |
| 16:23:36 | rue | Yeah, it has been cold in Central Europe |
| 16:24:00 | rue | It is generally -10 or so here this time of year, so we are more used to it. Bunch of accidents in Germany etc. though |
| 16:24:29 | fbuilesv | the lowest over here in years has been 10ºC, so I better buy some thermic clothes :P |
| 16:25:04 | ffwonko | yeah, to cold in germany... less than -15 °C |
| 16:25:08 | rue | fbuilesv: Layers is all you need :) Hit a hiking/mountain climbing/etc. store |
| 16:25:27 | ffwonko | this weekend |
| 16:25:36 | ffwonko | last weekend, i mean |
| 16:25:40 | ffwonko | whatever |
| 16:25:49 | binary42 enters the room. | |
| 16:26:21 | rue | fbuilesv: You might make it to FOSDEM then |
| 16:27:02 | a_visitor leaves the room. | |
| 16:27:22 | fbuilesv | saturday/sunday, sounds fine and it's not too far |
| 16:31:08 | a_visitor enters the room. | |
| 16:31:21 | tongueroo enters the room. | |
| 16:33:47 | radarek enters the room. | |
| 16:34:16 | tongueroo leaves the room. | |
| 16:34:21 | rue | fbuilesv: Yeah, train gets you there easy. Definitely a good thing to not have to pre-register :) |
| 16:35:26 | fbuilesv | yup, you going too? |
| 16:37:31 | agardiner leaves the room. | |
| 16:37:49 | fbuilesv | rue: http://gist.github.com/43884 |
| 16:38:26 | fbuilesv | I could ^ Time.now.to_i with seed.hash like JRuby does if time alone sounds too simple. |
| 16:38:39 | rue | Thinking/planning on going. Have to see how the job affects my schedule though |
| 16:39:25 | fbuilesv | I'l try to bring dbussink with me, he's old and grouchy though :P |
| 16:39:27 | rue | fbuilesv: You have an extra 'return' there, but otherwise looks good |
| 16:40:04 | fbuilesv | rue: that function should return the last seed used (before this invocation) |
| 16:47:41 | a_visitor leaves the room. | |
| 16:53:40 | agardiner enters the room. | |
| 16:59:11 | boyscout | Adding a default seed for srand - 2a17cf8 - Federico Builes |
| 17:00:49 | boyscout | CI: 2a17cf8 success. 1309 files, 5890 examples, 22058 expectations, 0 failures, 0 errors |
| 17:01:58 | rubuildius_ey64 | Federico Builes: 2a17cf820; build failed! http://rafb.net/p/LJrRYS23.html |
| 17:09:47 | fbuilesv | rafb.net down? |
| 17:10:39 | a_visitor enters the room. | |
| 17:11:06 | brixen | fbuilesv: it's grabbing the time if you are cmd-clicking in irssi |
| 17:11:27 | fbuilesv | brixen: what's irssi? this is 2009! :P |
| 17:11:28 | brixen | anyway, that failure is stupid and sporadic |
| 17:11:37 | brixen | fbuilesv: irssi ftw :D |
| 17:11:40 | fbuilesv | ah ok, thought I had broke something :P |
| 17:16:17 | CIA-64 leaves the room. | |
| 17:18:03 | benny leaves the room. | |
| 17:19:13 | ffwonko leaves the room. | |
| 17:20:24 | evan | morning |
| 17:20:33 | jbarnette enters the room. | |
| 17:23:19 | Maledictus leaves the room. | |
| 17:25:04 | brixen | morning |
| 17:25:07 | naeu leaves the room. | |
| 17:25:24 | brixen | evan: I've got profiler output, but checking the math |
| 17:25:33 | evan | cool! |
| 17:25:38 | brixen | and I've got 2 issues I need help tracking down |
| 17:25:45 | evan | ok |
| 17:25:55 | brixen | I'll commit so you can see the code once I check this |
| 17:26:29 | atduskgreg enters the room. | |
| 17:26:40 | lopex enters the room. | |
| 17:26:50 | benny enters the room. | |
| 17:29:36 | Maledictus enters the room. | |
| 17:33:31 | rue | Hi |
| 17:34:01 | rue | fbuilesv: I mean that you do not need the 'return' :) |
| 17:34:48 | fbuilesv | rue: how's that? I want to return the old seed, not the one I just assigned. |
| 17:37:12 | CIA-64 enters the room. | |
| 17:37:34 | rue | fbuilesv: Because the last expression is returned automatically? You are just wasting 7 bytes ;) |
| 17:37:40 | joearnold enters the room. | |
| 17:37:44 | yugui_ leaves the room. | |
| 17:38:02 | fbuilesv | rue: right, and it'll return the seed I just set. I need to return the one that was set _before_ I set the new one |
| 17:38:20 | fbuilesv | srand returns the last seed, not the one you pass in, maybe I'm missing something? |
| 17:38:44 | fbuilesv | I don't want to return Kernel.current_srand |
| 17:41:57 | ezmobius enters the room. | |
| 17:43:50 | kamalfariz enters the room. | |
| 17:49:05 | tongueroo enters the room. | |
| 18:06:47 | atduskgreg leaves the room. | |
| 18:07:10 | atduskgreg enters the room. | |
| 18:16:20 | joearnold leaves the room. | |
| 18:16:50 | rue | fbuilesv: `def foo; return 1; end` == `def foo; 1; end` |
| 18:22:23 | naeu enters the room. | |
| 18:22:52 | joearnold enters the room. | |
| 18:24:18 | atduskgreg leaves the room. | |
| 18:27:42 | radarek leaves the room. | |
| 18:27:46 | fbuilesv | rue: ah I failed at understanding you |
| 18:28:05 | fbuilesv | I'm used to putting the return but I'll strip it off |
| 18:29:48 | boyscout | Strip the return in the last commit. - 9679152 - Federico Builes |
| 18:31:43 | boyscout | CI: 9679152 success. 1309 files, 5890 examples, 22058 expectations, 0 failures, 0 errors |
| 18:37:55 | kamalfariz leaves the room. | |
| 18:39:04 | rubuildius_ey64 | Federico Builes: 9679152f6; 1309 files, 5881 examples, 22035 expectations, 0 failures, 0 errors |
| 18:57:35 | djb enters the room. | |
| 18:58:12 | joearnol_ enters the room. | |
| 18:58:12 | atduskgreg enters the room. | |
| 18:58:12 | joearnold leaves the room. | |
| 19:05:35 | agardiner leaves the room. | |
| 19:28:17 | octopod leaves the room. | |
| 19:28:55 | octopod enters the room. | |
| 19:28:58 | dysinger enters the room. | |
| 19:30:58 | macournoyer leaves the room. | |
| 19:39:32 | brixen | evan: ok, I think my biggest problem was that the enter/leave calls are not right |
| 19:39:46 | brixen | e.g. disabled in op_ret |
| 19:39:47 | evan | hm |
| 19:39:48 | evan | ok |
| 19:39:58 | brixen | so my times were wildly incorrect |