Perl 6 - the future is here, just unevenly distributed

IRC log for #rosettacode, 2013-02-24

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:29 wolfmitchell left #rosettacode
02:00 mwn3d_phone1 joined #rosettacode
05:11 mwn3d_phone joined #rosettacode
05:14 danaj joined #rosettacode
05:38 mwn3d_phone1 joined #rosettacode
05:41 danaj joined #rosettacode
06:16 danaj joined #rosettacode
06:44 sirdancealot7 joined #rosettacode
06:46 danaj joined #rosettacode
07:14 danaj joined #rosettacode
07:42 danaj joined #rosettacode
08:10 danaj joined #rosettacode
08:43 danaj joined #rosettacode
08:51 p6eval joined #rosettacode
09:46 danaj left #rosettacode
10:03 mischi joined #rosettacode
10:11 BenBE joined #rosettacode
10:11 BenBE joined #rosettacode
10:37 Pinar747[RCo] joined #rosettacode
11:21 mischi joined #rosettacode
13:24 Tim-brown[RCo] joined #rosettacode
13:25 Tim-brown[RCo] what's a good place to start learning about the wiki markup tags for use with rc?
14:50 TimToady joined #rosettacode
18:36 mwn3d_phone1 joined #rosettacode
19:25 mwn3d_phone joined #rosettacode
20:17 mischi_ joined #rosettacode
21:17 mwn3d_phone joined #rosettacode
21:55 bearophile joined #rosettacode
21:55 bearophile Hello
21:56 bearophile When I have opened the "boids simulation" task I was not ready,
21:57 bearophile so do you know how to delete a page?
21:57 bearophile This one:  http://rosettacode.org/wiki/Boids_simulation
21:57 fedaykin "Boids simulation - Rosetta Code"
21:57 bearophile Uhm. There is a C solution...
21:58 bearophile By Ledrug, of course.
21:58 bearophile Nevermind, probably there is no need to delete the page...
21:58 bearophile See you later.
22:31 mwn3d_phone1 joined #rosettacode
23:19 Coderjoe anyone know of a a simple way to convert a list of numbers into a sequence of start-length pairs?
23:20 Coderjoe (for example, 1 2 3 4 8 9 10 -> 1/4 8/3)
23:20 Coderjoe i'm feeling particularly lazy :-\
23:23 sorear what language?
23:27 sorear $ perl -E 'for (@ARGV) { if (@out && $_ == $out[-1][0] + $out[-1][1]) { $out[-1][1]++ } else { push @out, [$_, 1] } } say join " ", map { join "/", @$_ } @out' 1 2 3 4 8 9 10
23:27 sorear 1/4 8/3
23:27 Coderjoe well, the numbers are in a file, one per line, so that doesn't work verbatim
23:28 Coderjoe perl, shell... python doesn't lend itself to oneliners
23:28 Coderjoe awk
23:29 Coderjoe but yeah, icould jst change the for @ARGV to while (chomp <>)
23:29 Coderjoe if I could manage to type...
23:34 sorear what you're looking for is for (<>) { }
23:35 Coderjoe why not while?
23:35 Coderjoe it always worked in the past
23:35 sorear while would owkr too
23:35 sorear but I don't think while chomp would?
23:35 Coderjoe and the chomp to remove the end of line
23:37 Coderjoe ok, while(<>) { chomp; [otherstuff] }
23:42 Coderjoe thanks
23:42 Coderjoe my brain seems to be on vacation today
23:46 mischi joined #rosettacode
23:52 sirdancealot7 joined #rosettacode

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary