Perl 6 - the future is here, just unevenly distributed

IRC log for #rosettacode, 2015-03-15

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

All times shown according to UTC.

Time Nick Message
00:13 mwn3d joined #rosettacode
02:47 ilbot3 joined #rosettacode
02:47 Topic for #rosettacode is now Rosetta Code: Coding in  (∞ - 1) languages ; http://irclog.perlgeek.de/rosettacode/today ; Pop  a tab and stick around! ; Account creation issues? Send an email with  your desired username to bureaucrats@rosettacode.org.
05:28 mwn3d joined #rosettacode
07:24 mikemol joined #rosettacode
08:02 saikrishna joined #rosettacode
09:01 saikrishna joined #rosettacode
10:45 saikrishna joined #rosettacode
12:06 Koen_ joined #rosettacode
12:29 saikrishna joined #rosettacode
14:00 Koen_ joined #rosettacode
14:56 saikrishna joined #rosettacode
17:32 saikrishna joined #rosettacode
18:26 mwn3d1 joined #rosettacode
18:36 mwn3d joined #rosettacode
18:47 mwn3d1 joined #rosettacode
19:41 mwn3d joined #rosettacode
19:57 architectt joined #rosettacode
19:58 architectt hello
20:18 pdurbin architectt: hi
20:20 architectt whazaapapp
20:29 pdurbin I was just looking at http://rosettacode.org/wiki/Category:Examples_needing_attention
20:29 fedaykin "Category:Examples needing attention - Rosetta Code" http://rldn.net/DLb
20:29 pdurbin thinking a bit about if I could contribute something
20:35 architectt nicezz
20:35 architectt maybe i can help u with that
20:35 architectt i'm good on c++ c
20:58 mwn3d1 joined #rosettacode
21:05 danaj joined #rosettacode
21:10 mwn3d joined #rosettacode
21:24 mwn3d1 joined #rosettacode
22:24 danaj joined #rosettacode
22:45 architectt can some one give me a hand with an mergersort algorithm?
22:46 architectt http://rosettacode.org/wiki/Merge_sort#C
22:46 fedaykin "Sorting algorithms/Merge sort - Rosetta Code"
22:46 architectt i cant understand what is going on inside that for in merge function
22:46 architectt why a[i++] and not just i++ for exemple
22:47 architectt x[k] = j == n what its like
22:47 architectt x[k] = j
22:47 architectt if (j==n)...
23:02 Koen_ architectt: the "?" at the end of the line is important
23:02 Koen_ "c ? a : b" is an expression that evaluates to a or b depending on the conditional c
23:03 mwn3d joined #rosettacode
23:03 Koen_ so "x = c ? a : b;" is the same as "if (c) x = a; else x = b;"
23:03 architectt if (c) a; else b; right?
23:03 Koen_ well not exactly
23:03 Koen_ c ? a : b is an expression, kinda like a + b
23:04 Koen_ if (c) a; else b; would work if a; was an instruction
23:04 architectt alright
23:05 architectt AHHH i seee
23:05 architectt now everything makes sence
23:06 Koen_ if you want my opinion this piece of code is somewhat obfuscated
23:06 architectt so its like
23:06 architectt if (j==n) x[k]==a[i++];
23:06 architectt right?
23:07 Koen_ if (j==n) x[k] = a[i++];
23:07 architectt yeah!
23:07 Koen_ and then a bunch of elseif
23:07 architectt yeah
23:07 architectt i didnt know i could pass a value to a variable like that
23:07 architectt its much esier
23:07 Koen_ note that "x[k] = a[i++|;" is the same as "x[k] = a[i]; i++;"
23:08 architectt yeah
23:08 Koen_ (except somewhat less easy to read)
23:08 architectt and if i was using ++i?
23:09 architectt how it would look like to?
23:09 Koen_ "x[k] = a[++i];" is the same as "i++; x[k] = a[i];"
23:09 architectt sorry my gramma
23:09 architectt ok
23:10 architectt that was i expected
23:10 architectt i need to say thnk you!
23:10 architectt u help me alot!
23:48 mwn3d1 joined #rosettacode

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