<<23-06-2012>>

02:52:50*gf3 is now known as ANASLEX
08:37:58*Trix[a]r_za is now known as Trixar_za
10:08:33Trixar_zaWhat do you think?
10:08:36Trixar_zahttp://trixarian.net/paste/8a
10:08:47Trixar_zafor http://rosettacode.org/wiki/Reverse_a_string
10:09:13Trixar_zaNo clue how to do a version that preserves utf-8 though
10:09:28Trixar_zaOriginal string: as⃝df̅
10:09:29Trixar_zaand reversed: ��fd���sa
10:09:37Trixar_za^--- as the above version proves
10:09:38Trixar_za:P
10:15:10Trixar_zaAnd yeah, I know I could have done it without the strutils, but the % features is awesome
10:18:54*Reisen quit (Ping timeout: 245 seconds)
10:22:40*Trixar_za looks at ANASLEX
10:23:03Trixar_zaYou know, if you switched around the two middle letters of your nick it spells something completely different
10:25:35dom96hrm, perhaps there should be a reverse proc in the stdlib
10:26:03shevy\o/
10:26:06dom96Trixar_za: Try using this: http://build.nimrod-code.org/docs/unicode.html
10:26:12dom96For unicode support.
10:26:22Trixar_zaI was thinking the same dom96 - I checked
10:26:28Trixar_zathere is only one for arrays
10:26:30Trixar_za:P
10:28:28Trixar_zaBut hey, it's actually pretty simple to reverse something. Just use a for loop and some creative string combining :P
10:29:47dom96yeah, but I think a lot of people expect a reverse proc in the stdlib :P
10:31:34Trixar_zaOnly the lisp people really
10:31:52Trixar_zaDamn that 'standard reverse' from Lisp >.>
10:32:23dom96good point. I guess it's not very practical anyway.
10:37:31Trixar_zayou should see how python does it: string[::-1]
10:37:37Trixar_zabut that's technically cheating
10:37:38Trixar_za:P
10:39:12Trixar_zaOK, maybe we need a reverse proc
10:39:19Trixar_zaeven PL\I has reverse
10:39:30Trixar_zaand that's just embarrassing
10:39:38dom96lol
10:40:03dom96Make one, add it to strutils or something and make a pull request :)
10:42:57TasserTrixar_za, unicode-aware?
10:48:54Araqer, nimrod has 'reverse' ...
10:50:13dom96It does? All I see is a 'reverse' for openarrays
10:50:37Araqoh yeah ...
11:03:51Trixar_zaEh, too lazy to work out how to reverse utf-8 strings properly
11:03:52Trixar_za:P
11:21:41TasserTrixar_za, ICU
11:23:08Tasserhttp://www-01.ibm.com/software/globalization/icu/index.html
11:23:32Tasserhttp://site.icu-project.org/ more like
12:01:46*Trixar_za is now known as Trix[a]r_za
12:14:11*Reisen joined #nimrod
12:38:47AraqANASLEX: your nick is offending :P
13:28:30*shevy quit (Ping timeout: 272 seconds)
13:40:27*shevy joined #nimrod
13:59:52*Trix[a]r_za is now known as Trixar_za
14:00:24Trixar_zaAraq: Only to the easily offended and dirty minded. That and if you swap the middle two letters, it spells ANALSEX.
14:01:50*Araq is allowed to be dirty minded
14:15:16Tasserananaslexer?
14:17:30Araqmy lexer works differently ...
14:17:39Trixar_zaBOBTMFY
14:17:57Trixar_zaThat's what it spells when you move each letter to the next one in the alphabet
14:18:06Trixar_zaIt's also why ANNA spells BOOB
14:20:32Araqzahary: please answer http://forum.nimrod-code.org/t/43 :P
14:20:43AraqI'm too lazy to figure it out
14:21:16Araqdunno if 'x: object' is supposed to compile ...
14:22:15*Trixar_za hands Araq a "Laziness Club" membership card
14:30:59Trixar_zaAnyway dom96, how do I add my reverse example to rosetta?
14:31:18dom96Trixar_za: You need to register, then click the "Edit" link.
14:31:36Trixar_zaSo I have to edit the whole page. Oh Joy :/
14:32:22dom96yeah :P
14:32:37Araqsee you later guys
14:33:58Trixar_zaLater Araq
14:38:28Trixar_zahttp://rosettacode.org/wiki/Reverse_a_string#Nimrod
14:40:00dom96nice.
14:56:00Trixar_zaAlso, wow, I keep forgetting how to code in Nimrod if I stop for a week - lol
14:56:05*Trixar_za hides
14:57:53dom96You hide a lot don't you? :P
14:58:52Trixar_zahttp://rosettacode.org/wiki/Chat_server
14:58:58Trixar_zahere's one you might enjoy :P
14:59:56Trixar_zaAlso that python example is kind of bad. You could do it in less lines using asynchat
15:11:06Trixar_zaProgrammers don't need comments: the code is obvious.
15:11:14Trixar_zahttp://www.ee.ryerson.ca/~elf/hack/realmen.html
15:11:16Trixar_zalol
15:44:10Araq"Computer science academicians have gotten into the "structured programming" rut over the past several years."
15:44:20Araqa bit old, hm? ;-)
15:46:58Trixar_zaLol, found it with the Example for a Calendar for REAL programmers
15:48:18Trixar_zahttp://rosettacode.org/wiki/Calendar_-_for_%22real%22_programmers
15:51:39Araqand your string reverse sucks ;-)
15:51:55Araqshould be done in the unicode module and handle utf-8 properly
15:52:46Trixar_zaYeah Yeah, but I don't know how your unicode handling works. Actually I don't know how unicode handling works period.
15:52:47Trixar_za:p
15:53:53Trixar_za desc = (item.description).encode("utf-8")
15:54:06Trixar_za^--- pretty much the only real utf-8 handling I ever wrote
15:58:13Araqargh damn you now I need to add 'reverse' to the stdlib
15:59:46Trixar_zaAnyway, reversing strings aren't hard for me before I've done it before in a language without a for loop (yeah - did it with a while loop - fun)
15:59:55TasserAraq, does the unicode module do unicode-aware equiality n stuff?
16:00:02Trixar_zabefore == because
16:00:36TasserTrixar_za, s/before/because/g please
16:00:51Trixar_zaNo, but if it's greedy, it replaces the second before
16:01:43Tasserg is global
16:02:08Trixar_zagreedy global. You say bikini, I say naked.
16:02:13AraqTasser: not really it assumes normalization and compares byte after byte
16:02:46Araqwe probably need a 'canonicalize' proc in the unicode module as well
16:03:23Araqbut that's some work and I never really encountered non-canonicalized utf-8 in the wild ... (I think)
16:05:52Araqbeb
16:05:56Araq*brb
16:11:47TasserAraq, icu? :-)
16:26:04*Zerathul joined #nimrod
16:26:50*Trixar_za is now known as Trix[a]r_za
16:27:25*Zerathul quit (Client Quit)
17:34:05*Trix[a]r_za is now known as Trixar_za
18:03:10*Trixar_za is now known as Trix[a]r_za
22:16:24*Bo5c0p quit (Ping timeout: 245 seconds)
22:21:25*Bo5c0p joined #nimrod