<<03-09-2012>>

00:00:35*Guest56032 joined #nimrod
00:37:11*Guest56032 quit (Quit: Leaving)
00:37:32*XAMPP joined #nimrod
00:37:32*XAMPP quit (Changing host)
00:37:32*XAMPP joined #nimrod
00:55:10*Reisen quit (Remote host closed the connection)
00:58:00*Reisen joined #nimrod
02:46:49*Reisen quit (Ping timeout: 244 seconds)
02:57:53*Reisen joined #nimrod
04:47:02fowlWhere is the docs for ..<
05:04:54reactormonkfowl: see index
05:04:59reactormonkehh theindex
05:05:08reactormonkalways fun to circumvent DRM >:)
05:08:33fowlah
05:08:38fowlunary < that makes sense
05:09:04reactormonkfowl: oh, you mean 0..<10 ?
05:09:11fowlyea
05:33:47fowlwhat are these new identifiers
05:37:40reactormonkdefine?
05:40:11fowlhttps://gist.github.com/1245234736250f44220c what are the 4 empty nodes in the proc doc? previously there was one before formalparams that was the generic params and one after it that i didnt know
05:40:16fowlproc def*
05:41:27reactormonkhuh
05:44:40fowlwat
05:45:23reactormonkno idea.
08:01:55*Araq_ joined #nimrod
08:18:33fowlAraq: im getting weird macro errors so during my boredom i wrote this: https://gist.github.com/3607822
08:19:22dom96Araq_: Seems you broke bootstrapping
08:20:51fowldom96: what do you think:)
08:23:09dom96Nice. In fact that looks like something that I was planning for Nimbuild to make the build process more easy to define.
08:44:43fowlupdated with a license if you want to use it (the license is not copyleft)
08:45:38dom96hehe. nah. I need an async version :P
08:46:06fowlo
09:20:17*Boscop quit (Disconnected by services)
09:20:19*Boscop joined #nimrod
09:27:35*Araq_ quit (Read error: Operation timed out)
09:29:10*Araq_ joined #nimrod
09:39:40fowlI get this error when calling a macro: Error: undeclared identifier: 'Foo'
09:42:34fowlthe macro arg is expr
09:43:56Araq_fowl: indeed the AST changed :P
09:44:08Araq_there is now a new empty node after namePos
09:44:15Araq_and some new empty node somewhere else
09:46:01*Boscop quit (Ping timeout: 252 seconds)
09:46:10*Araq_ quit (Read error: Connection timed out)
09:46:55*Araq_ joined #nimrod
09:46:59Araq_connection problems, see you later
09:47:06fowlok
09:47:11Araq_and yeah I know I broke bootstrapping for some reasons
09:47:17*Araq_ quit (Client Quit)
10:01:36*Boscop joined #nimrod
10:14:16*Boscop quit (Disconnected by services)
10:14:18*Boscop joined #nimrod
10:20:35*Boscop quit (Disconnected by services)
10:20:37*Boscop joined #nimrod
10:28:26*q66 joined #nimrod
10:31:06*zahary quit (Quit: Leaving.)
11:34:54fowlwhat's changed with macros that this doesnt work? https://gist.github.com/3608703 ._.
11:58:13*mal`` quit (Quit: ERC Version 5.3 (IRC client for Emacs))
12:02:06*mal`` joined #nimrod
12:08:19*Boscop quit (Disconnected by services)
12:08:21*Boscop joined #nimrod
12:29:28*Trix[a]r_za is now known as Trixar_za
12:30:46*Trixar_za pokes dom96
12:30:56Trixar_zaHow do I check for the scrollbar
12:33:38Trixar_zaTracked your bug to OnTabPressed
12:33:51Trixar_zaOnTabsPressed*
12:39:28*Trixar_za is now known as Trix[a]r_za
12:40:50*zahary joined #nimrod
13:23:34dom96hey Trix[a]r_za
13:23:40dom96aww, you're away
13:24:09dom96Yes, the problem is checking whether you double click the correct part of the GtkNotebook
13:24:19dom96I have no clue how to detect that
13:46:03*XAMPP quit (Ping timeout: 276 seconds)
13:48:06*XAMPP joined #nimrod
13:57:05*Araq_ joined #nimrod
13:57:49*Araq_ quit (Client Quit)
15:20:20*zahary quit (Quit: Leaving.)
15:24:26*Boscop quit (Disconnected by services)
15:24:27*Boscop joined #nimrod
15:50:36*Boscop quit (Ping timeout: 252 seconds)
16:25:05*Boscop joined #nimrod
16:26:20*Trix[a]r_za is now known as Trixar_za
16:27:04Trixar_zaYeah, I got bored and just commented out the offending line
16:27:33Trixar_zaNo more double click on the Tab bar to get a new tab, but atleast the double click on the scrollbar doesn't bring up a new tab anymore
16:28:38Trixar_zaline 1036 in aporia.nim to be exact
16:28:39Trixar_za:P
16:29:10dom96lol
16:29:17dom96That's one way to "fix" this
16:29:29*Trixar_za shrugs
16:29:41Trixar_zaI cba to learn how to fix it properly :P
16:31:03dom96heh
16:31:29Trixar_zaI only knew where it was because of the fix you accepted for it
16:31:36Trixar_zaWell, feature add
16:31:59Trixar_zaThat and:
16:32:11Trixar_za # TODO: only create new tab when double-clicking in empty space
16:36:21*dom96 tries to fix it
16:38:25dom96ugh, repr is still not perfect.
16:39:06*Trixar_za is listening to: Code Monkey by Jonathan Coulton
16:39:13Trixar_zaThis is for you dom96
16:39:15Trixar_za:P
16:40:22Trixar_zaSince I'm messing with stuff... I might just add Ctrl+T
16:47:41dom96Ctrl + T?
16:47:48dom96Is that meant to be New Tab?
16:47:54dom96That's Ctrl + N
16:48:09dom96Fixing this isn't very easy...
16:48:52Trixar_zaYeah, I'm used to Firefox and XChat
16:49:27dom96hrm, I think I have an idea.
16:49:28Trixar_zaI started messing and you know I'll keep making small changes now
16:49:30Trixar_za:P
16:50:15dom96Well I want it to stay as Ctrl + N :P
16:50:30*shevy quit (Ping timeout: 264 seconds)
16:54:15dom96That's what gedit uses.
16:54:30dom96but meh, I dunno.
16:54:46dom96I suppose we need to allow users to configure these
16:57:50Trixar_zaEventually
16:57:57Trixar_zaI just like fiddling
17:03:07*shevy joined #nimrod
17:10:45dom96voila
18:06:31*XAMPP_ joined #nimrod
18:06:32*XAMPP quit (Ping timeout: 246 seconds)
18:27:53dom96Araq: Look what I fixed in Aporia :P
18:28:03Araqyay!
18:28:17Araqnow if only bootstrapping would work again ... :P
18:34:26Araqdom96: what about that bug report to "linguist"?
18:36:39dom96They're not replying
18:36:44Araqok
19:25:18fowlit seemed that searching for nimrod code works now?
19:26:36Araqwhat do you mean?
19:29:22fowlsearching finds nimrod projects.. https://github.com/search?q=nimrod-libs&repo=&langOverride=&start_value=1&type=Everything&language=Nimrod
19:30:49dom96The thing is, because github changed linguist most repos which are written in Nimrod are not reported as "Nimrod"
19:31:23dom96fowl: If you want to help, +1 this plz: https://github.com/github/linguist/issues/238
19:41:02Araqhe he, I just did
19:41:22fowli did too
19:41:28dom96cool, thanks guys :D
19:43:21fowli still dont know what changed so that this doesnt work anymore: https://gist.github.com/3608703
19:46:25Araqfowl: 'x' is 'NewIdent'
19:46:34Araqit works like it does in templates
19:46:58Araquse the new 'callsite' builtin to get the invocation AST
19:51:04Araqoh and you need '.immediate.' for the macro
19:51:20Araqthe distinction macro/template is basically gone
19:51:29Araqexcept that a template's body is declarative
19:51:35Araqand a macro's is imperative
19:54:34fowlAh
20:07:24Trixar_zaHmmm
20:07:43Trixar_zaI noticed the RosettaCode FizzBuzz on github
20:08:07Trixar_zaMaybe I could do other RosettaCode stuff and upload it all to github
20:08:41Araqlol
20:08:53Araqyeah that FizzBuzz guy was amazing
20:08:53Trixar_zaI've done like 3 of them already
20:09:05Araqhe managed to screw it up 3 times iirc
20:09:25Araqoh well at least he didn't blame Nimrod :P
20:09:52Trixar_zaer, I ended up asking dom96 how everytime
20:11:43Trixar_zaWell, how to make it work anyway. I seem hopeless in making working Nimrod code
20:11:46Trixar_za:P
20:13:46Araqyeah but it's not your fault
20:14:01Araqthe damn language uses 'echo' instead of 'print' ...
20:14:12Trixar_zalol
20:14:33Trixar_zaForce of habit. Nothing wrong with Nimrod unless you break it
20:14:35fowllol
20:15:11Trixar_zaStill waiting for you to add a string reverse, but yeah :P
20:16:38fowlresult = ""; for i in countdown(high(str), 0): result.add str[i]
20:17:19Trixar_zaActually that's a better way to do it
20:17:22Trixar_zaAnd in one line
20:17:50Trixar_zaBut it needs to be UTF-8 compatible. And I suck at it
20:18:37Araqwhy is that needed btw?
20:18:48AraqI never need to reverse a string ...
20:18:50Trixar_zaRosettaCode
20:19:02Trixar_zaBut yeah, we could just do it my or fowl's way
20:19:05AraqI guess it's useful if all you have is a suffix tree ...
20:19:14fowlno idea how to do it with unicode
20:19:21fowli dont trust multibyte chars
20:19:30Araqand want to use that for prefixes
20:19:34Trixar_zaDoesn't matter. It's just for 'bonus points'
20:19:39Trixar_zaaccording to RosettaCode
20:19:55Araqyou can do it with unicode.nim
20:20:09Araqbut it won't be efficient :P
20:21:34Trixar_zaWould fit into my coding style then
20:21:50Trixar_za(inefficient that is ;))
20:23:32Trixar_zaAnyway, I bitch and moan a lot. That's how you know I'm actually trying something. It's when I just shut up and disappear, that you know I gave the thing the finger and lost temper with it
20:24:36Trixar_zaI've brought whole servers back from the dead swearing like a sailor
20:24:37Trixar_za:P
20:26:22Araqugh this last pattern matching operator is hard to implement ...
20:26:49fowlhttp://rosettacode.org/wiki/Execute_Brain****#Nimrod seems their wiki is broken and the sections arent ID'd right but this is cool :D
20:27:53Araq'discard 1' instead of 'nil'? seriously?
20:28:20Araqspeaking of which, I really need to deprecate the 'nil' statement for 0.9.0
20:28:51fowlreplace it with nihil
20:29:03dom96manveru wrote that
20:29:15dom96In case you're curious :P
20:29:30Araqwell manveru left for Go iirc
20:31:00dom96Who wrote this? http://rosettacode.org/wiki/One-dimensional_cellular_automata#Nimrod
20:31:43fowlo god http://rosettacode.org/wiki/Reverse_a_string#Nimrod
20:34:55Araqresult = newString(s.len); for i in 0 .. s.len - 1: result[s.len-1-i] = s[i]
20:36:15Araqan empty 'discard' could be a good replacement for 'nil' as a statement, what do you guys think?
20:36:50Araqdon't want to reserve 'nihil' for that even though it's cute
20:37:37dom96why are you getting rid of nil as a statement?
20:37:49dom96Maybe we should just use 'pass'?
20:37:57Araqbecause it'll be ambiguous for the expr/stmt unification
20:38:16Araqand 'pass' doesn't fly IMHO
20:38:39Trixar_zaYes fowl, that was me :(
20:39:11fowllol D:
20:39:42dom96Araq: Why? It's what python uses?
20:39:48Trixar_zaI just found % []
20:39:49Trixar_za:P
20:41:37fowlwhen will people realize that wikimedia isnt the only wiki available
20:41:57Araqdom96: python doesn't make sense :P
20:42:05Trixar_zaYes fowl, but it's the best protected
20:42:27Trixar_zaI use it myself. Mostly for the security features
20:42:37fowlah
20:42:46Araqer, Trixar_za, what do you mean? % [] is your favourite feature?
20:42:59Araqhow can you 'just found' it?
20:44:38dom96Araq: ok, if you insist. 'discard' is fine.
20:44:47Araqgood
20:45:32dom96Maybe some kind of a hint to the programmer would be useful about it?
20:45:58Araqwarning: 'nil' statement deprecated; use 'discard' instead
20:46:01fowli want to use term rewriting macros to implement left-hand comments by that i mean comments on the left side of the line */ then normal code.. is it possible?
20:46:21Araqnope :P
20:46:32Araqterm rewriting macros can't change the syntax either
20:46:49fowlo
20:46:53Araqyou can use a source text filter though
20:46:58Trixar_zaAraq: you were talking about it
20:47:06Trixar_zaAnd I saw somebody use it in code
20:47:16Trixar_zaso I went, hey, strutils has it
20:47:18Trixar_zaso I used it
20:47:19Trixar_za:P
20:47:26Araqah I see
20:48:13Araqfowl: http://nimrod-code.org/filters.html
20:49:09Araqand I just noticed my docs suck
20:49:22dom96Araq: I was thinking something when the code has an empty block
20:50:05Araqfowl: er, what do you need left-hand comments for?
20:50:24fowlAraq: to confuse and amaze the viewing public
20:50:40fowlie no reason
20:50:50Araqput it into some file
20:51:02Araqand use replace + slurp + parseStmt
20:51:14Araqcould work ;-)
20:51:26Araqer
20:51:37Araqslurp then replace then parseStmt obviously
20:57:25Araqfowl: used much of delphi? or why do you prefer ; in parameter lists? ;-)
20:58:56fowli think ; makes a better distinction especially when you have arg1, arg2, arg3: float; arg4, arg5: int; etc
20:59:57AraqI've heard that argument before
21:00:14Araq, is better editable though
21:00:39Araqarg: float, arg2: int # only 'DEL' needed to make it
21:00:45Araqarg, arg2: int
21:00:59Araqplus ; requires a shift :P
21:01:14fowlhm not on my keyboard
21:01:19fowl: is shift+;
21:01:46Araqgerman keyboard :P
21:02:23fowlif i were changing arg to an int i'd probably have more on my plate than changing a ; to a ,
21:02:48dom96German keyboards are so odd.
21:03:39AraqÖÄÜß are needed for german, so it has less space for weird keys like ;
21:04:26fowllol at calling ; weird but your crazy double-s letter is fine
21:05:07Araq; is neither a colon nor a comma, so it's weird :P
21:05:26fowlit seems that running nimrod -o doesnt change the executable name
21:05:35Araqindeed
21:05:46dom96ąęółżź are needed for Polish, and somehow it manages to do it without needing a shift for ;
21:06:11Araq-o isn't really meant for the C backend
21:06:17Araqbut for the docgen lol
21:06:55Araqwell, I guess Polish uses a shift for + then :P
21:07:36dom96True.
21:07:48dom96So does UK/US
21:07:59*Boscop quit (Disconnected by services)
21:08:01*Boscop joined #nimrod
21:08:08Araqgerman does not
21:08:15dom96But hey, I can get + from the numpad keys without shift ;)
21:08:23Araqadditions are cheap in german
21:09:37fowlone day your umlauts will go the way of � and � and we'll all be happy with qwerty :)
21:10:22AraqMötörhead disagrees with you
21:10:42Araqer, Motörhead, lol
21:11:01Araqthey were modest
21:11:24dom96wait, so : you can get without a shift?
21:11:37Araqnah
21:12:20dom96German keyboards are stupid :P
21:12:32Araqbut Nimrod 2 will be completely shiftless
21:12:47Trixar_zaI so didn't read the f in that
21:13:12dom96hahah
21:13:42Araqand that means 'asgn' instead of '='
21:13:54Araqlet x asgn 0 # oh yeah
21:14:19fowlo_O
21:14:21dom96That's great. I love pressing 4 buttons instead of 1
21:14:31Trixar_zaHe's joking obviously
21:14:38Trixar_zaanyway 'be' would be shorter
21:14:43Trixar_za:P
21:14:58dom96GUYS, Let's fork Nimrod and change all operators to words!
21:15:04Araqtemplate t parambegin x, y of type int paramend of type int eq x + y
21:15:08fowlvar shaniqua be "hollerin"
21:15:15dom96Call it Shi(f)tless Nimrod!
21:16:22Araqand the compiler will get a special "do what I mean, not I wrote" mode
21:16:37Araqwhich is triggered by banging your head on the keyboard
21:16:57Trixar_zaNo Araq
21:17:07dom96and you will have to keep calling "feed" to increase the compiler's hapiness or else it will refuse to compile your code.
21:17:07Trixar_zaYou're not writing Hollywood OS
21:18:21fowlTrixar_za: not even if there's a market for it?
21:18:45Araqomg
21:18:46Trixar_zaYes, but Microsoft would sue
21:18:50Araqthere is a word for it!
21:19:10AraqI often wondered how to call these things
21:19:26Araqnow I know; "Hollywood OS"
21:20:34Trixar_zahttp://c2.com/cgi/wiki?HollywoodOs
21:20:48Trixar_zaIt's actually a User-friendly gag
21:21:01Trixar_zaOh wait, they used Movie OS
21:21:03Trixar_za:P
21:23:37Trixar_zaHow secure will a system be if you can login using OVERRIDE though
21:26:26Araq"Infinitely compatible I/O interface allows stealth connections to any other computer regardless of the manufacturer or galaxy where it originated, including alien space ship computers (See Independence Day)"
21:26:33Araqyeah that was my favourite :D
21:26:53Araqlets infest alien technology with a PC virus XD
21:27:12Araqwhich produces a cool laughing skull
21:27:12fowlViruses (or really tough logical paradoxes) cause the computer to shoot sparks, catch fire, or even explode. hahaha
21:46:17Trixar_zaThe proprietary FitYouBastard� compression codec means that 3 weeks worth of full screen, high definition video with NICAM digital surround sound can easily fit onto a single floppy disk.
21:57:18dom96Good night guys
21:57:37Araqbye, dom96
22:07:43fowlI think there should be a user-dir for nimrod libs
22:08:30fowllike ~/.nimrod/0.8.15/ should be searched
22:10:55Araqyou know about --path, right?
22:11:16Araqand about the already incredibly complex configuration system
22:15:34fowlmeh
22:19:17*Trixar_za is now known as Trix[a]r_za
22:30:39Araqthanks for the forum post, fowl
22:39:56fowlword
22:56:31Araqgood night
22:58:18*q66 quit (Quit: Quit)
23:01:34*silven quit (Read error: Operation timed out)
23:53:58fowltemplate `->`*(a, b: expr): expr {.immediate, dirty.} = a.b