| 02:52:50 | * | gf3 is now known as ANASLEX |
| 08:37:58 | * | Trix[a]r_za is now known as Trixar_za |
| 10:08:33 | Trixar_za | What do you think? |
| 10:08:36 | Trixar_za | http://trixarian.net/paste/8a |
| 10:08:47 | Trixar_za | for http://rosettacode.org/wiki/Reverse_a_string |
| 10:09:13 | Trixar_za | No clue how to do a version that preserves utf-8 though |
| 10:09:28 | Trixar_za | Original string: as⃝df̅ |
| 10:09:29 | Trixar_za | and reversed: ��fd���sa |
| 10:09:37 | Trixar_za | ^--- as the above version proves |
| 10:09:38 | Trixar_za | :P |
| 10:15:10 | Trixar_za | And 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:03 | Trixar_za | You know, if you switched around the two middle letters of your nick it spells something completely different |
| 10:25:35 | dom96 | hrm, perhaps there should be a reverse proc in the stdlib |
| 10:26:03 | shevy | \o/ |
| 10:26:06 | dom96 | Trixar_za: Try using this: http://build.nimrod-code.org/docs/unicode.html |
| 10:26:12 | dom96 | For unicode support. |
| 10:26:22 | Trixar_za | I was thinking the same dom96 - I checked |
| 10:26:28 | Trixar_za | there is only one for arrays |
| 10:26:30 | Trixar_za | :P |
| 10:28:28 | Trixar_za | But hey, it's actually pretty simple to reverse something. Just use a for loop and some creative string combining :P |
| 10:29:47 | dom96 | yeah, but I think a lot of people expect a reverse proc in the stdlib :P |
| 10:31:34 | Trixar_za | Only the lisp people really |
| 10:31:52 | Trixar_za | Damn that 'standard reverse' from Lisp >.> |
| 10:32:23 | dom96 | good point. I guess it's not very practical anyway. |
| 10:37:31 | Trixar_za | you should see how python does it: string[::-1] |
| 10:37:37 | Trixar_za | but that's technically cheating |
| 10:37:38 | Trixar_za | :P |
| 10:39:12 | Trixar_za | OK, maybe we need a reverse proc |
| 10:39:19 | Trixar_za | even PL\I has reverse |
| 10:39:30 | Trixar_za | and that's just embarrassing |
| 10:39:38 | dom96 | lol |
| 10:40:03 | dom96 | Make one, add it to strutils or something and make a pull request :) |
| 10:42:57 | Tasser | Trixar_za, unicode-aware? |
| 10:48:54 | Araq | er, nimrod has 'reverse' ... |
| 10:50:13 | dom96 | It does? All I see is a 'reverse' for openarrays |
| 10:50:37 | Araq | oh yeah ... |
| 11:03:51 | Trixar_za | Eh, too lazy to work out how to reverse utf-8 strings properly |
| 11:03:52 | Trixar_za | :P |
| 11:21:41 | Tasser | Trixar_za, ICU |
| 11:23:08 | Tasser | http://www-01.ibm.com/software/globalization/icu/index.html |
| 11:23:32 | Tasser | http://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:47 | Araq | ANASLEX: 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:24 | Trixar_za | Araq: 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:16 | Tasser | ananaslexer? |
| 14:17:30 | Araq | my lexer works differently ... |
| 14:17:39 | Trixar_za | BOBTMFY |
| 14:17:57 | Trixar_za | That's what it spells when you move each letter to the next one in the alphabet |
| 14:18:06 | Trixar_za | It's also why ANNA spells BOOB |
| 14:20:32 | Araq | zahary: please answer http://forum.nimrod-code.org/t/43 :P |
| 14:20:43 | Araq | I'm too lazy to figure it out |
| 14:21:16 | Araq | dunno if 'x: object' is supposed to compile ... |
| 14:22:15 | * | Trixar_za hands Araq a "Laziness Club" membership card |
| 14:30:59 | Trixar_za | Anyway dom96, how do I add my reverse example to rosetta? |
| 14:31:18 | dom96 | Trixar_za: You need to register, then click the "Edit" link. |
| 14:31:36 | Trixar_za | So I have to edit the whole page. Oh Joy :/ |
| 14:32:22 | dom96 | yeah :P |
| 14:32:37 | Araq | see you later guys |
| 14:33:58 | Trixar_za | Later Araq |
| 14:38:28 | Trixar_za | http://rosettacode.org/wiki/Reverse_a_string#Nimrod |
| 14:40:00 | dom96 | nice. |
| 14:56:00 | Trixar_za | Also, wow, I keep forgetting how to code in Nimrod if I stop for a week - lol |
| 14:56:05 | * | Trixar_za hides |
| 14:57:53 | dom96 | You hide a lot don't you? :P |
| 14:58:52 | Trixar_za | http://rosettacode.org/wiki/Chat_server |
| 14:58:58 | Trixar_za | here's one you might enjoy :P |
| 14:59:56 | Trixar_za | Also that python example is kind of bad. You could do it in less lines using asynchat |
| 15:11:06 | Trixar_za | Programmers don't need comments: the code is obvious. |
| 15:11:14 | Trixar_za | http://www.ee.ryerson.ca/~elf/hack/realmen.html |
| 15:11:16 | Trixar_za | lol |
| 15:44:10 | Araq | "Computer science academicians have gotten into the "structured programming" rut over the past several years." |
| 15:44:20 | Araq | a bit old, hm? ;-) |
| 15:46:58 | Trixar_za | Lol, found it with the Example for a Calendar for REAL programmers |
| 15:48:18 | Trixar_za | http://rosettacode.org/wiki/Calendar_-_for_%22real%22_programmers |
| 15:51:39 | Araq | and your string reverse sucks ;-) |
| 15:51:55 | Araq | should be done in the unicode module and handle utf-8 properly |
| 15:52:46 | Trixar_za | Yeah Yeah, but I don't know how your unicode handling works. Actually I don't know how unicode handling works period. |
| 15:52:47 | Trixar_za | :p |
| 15:53:53 | Trixar_za | desc = (item.description).encode("utf-8") |
| 15:54:06 | Trixar_za | ^--- pretty much the only real utf-8 handling I ever wrote |
| 15:58:13 | Araq | argh damn you now I need to add 'reverse' to the stdlib |
| 15:59:46 | Trixar_za | Anyway, 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:55 | Tasser | Araq, does the unicode module do unicode-aware equiality n stuff? |
| 16:00:02 | Trixar_za | before == because |
| 16:00:36 | Tasser | Trixar_za, s/before/because/g please |
| 16:00:51 | Trixar_za | No, but if it's greedy, it replaces the second before |
| 16:01:43 | Tasser | g is global |
| 16:02:08 | Trixar_za | greedy global. You say bikini, I say naked. |
| 16:02:13 | Araq | Tasser: not really it assumes normalization and compares byte after byte |
| 16:02:46 | Araq | we probably need a 'canonicalize' proc in the unicode module as well |
| 16:03:23 | Araq | but that's some work and I never really encountered non-canonicalized utf-8 in the wild ... (I think) |
| 16:05:52 | Araq | beb |
| 16:05:56 | Araq | *brb |
| 16:11:47 | Tasser | Araq, 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 |