<<11-08-2012>>

00:24:19*Trix[a]r_za is now known as Trixar_za
00:32:59reactormonkdom96: found the linky?
00:33:23dom96hrm?
00:33:37reactormonkdom96: on my fancy JS project
00:33:54Trixar_zaJust say no to drugs
00:34:02dom96no :(
00:34:08dom96I wasn't even looking :P
00:34:16dom96Can you give me the link?
00:34:57reactormonkhttps://github.com/Tass/Summoner-Wars
00:35:09reactormonkwtf, three months ago already
00:36:32dom96interesting
00:36:52reactormonkJS is really nice for animations n stuff
00:37:16reactormonkyou can open index.html with chrom* it's got fancy stuff
00:37:46reactormonkI want to lear something about socket.io and nodejs... even the better in nimrod :-)
00:38:12Trixar_zaWe have a nodejs wrapper?
00:38:13Trixar_zaOo
00:38:14dom96It would be very nice if you could improve Nimrod's JS backend.
00:38:23dom96Trixar_za: nah
00:38:28reactormonkI would like to write the game logic in nimrod and the whole communcation stuff in either JS (coffeescript that is) or nimrod
00:38:35reactormonkTrixar_za: just use JS.
00:38:47reactormonkdom96: I suppose a js2nim doens't exist yet ;-)
00:38:54reactormonkwell, there are no header files anyway
00:39:07Trixar_zaI hear nodejs is pretty good
00:39:09dom96reactormonk: hehe. Nah
00:39:24Trixar_zaIt's like integrated asynchronous IO library
00:39:35Trixar_zaor so I hear
00:39:36Trixar_za:P
00:39:46dom96I hear it's bad :P
00:39:48Trixar_zaI only know of two IRC related projects that use it
00:40:02Trixar_zaOne is an indexer bot and logger
00:40:10Trixar_zaand the other is a BNC front-end
00:40:31dom96reactormonk: index.html is empty.
00:40:36Trixar_zaI have the indexer's code though
00:40:38dom96reactormonk: Am I missing some fancy things?
00:40:40reactormonkdom96: it is?
00:40:47dom96reactormonk: I can see its got some strange templating stuff
00:40:59reactormonkoh, right
00:41:12reactormonkyes, it is empty be default
00:41:21reactormonkyou got coffeescript installed?
00:41:32dom96nope :P
00:41:47dom96I'll install it now
00:41:58Trixar_zaWe don't even have it in our repository :(
00:41:59reactormonkworth it imo
00:42:29reactormonkjust compile the files ( coffee -b lib/* )
00:42:58dom96I have never used CoffeeScript heh
00:43:36dom96ReferenceError: Ember is not defined
00:44:30reactormonklemme see
00:44:58reactormonkyes, I did vendor them... but locally only
00:45:00reactormonkfuck
00:45:32reactormonkit's in vendor/*.js, which are symlinks to locally installed js files (emberjs pkg from AUR)
00:46:10reactormonkfixing...
00:46:32dom96ok.
00:46:57reactormonkin case you're on archlinux, jquery-ui-dev jquery emberjs from AUR
00:47:08dom96Will installing that fix the error?
00:47:20reactormonkyep
00:47:26dom96k
00:47:56dom96I still get the same error
00:47:59reactormonkcare about background?
00:48:20Trixar_zajquery I can understand
00:48:22Trixar_za:p
00:48:34reactormonkdom96: ls -l vendor/* and see which ones are grey
00:48:56reactormonkaww, fuck, I installed my own packages I assume...
00:49:10reactormonktalk about portability
00:49:18dom96all blue
00:49:23reactormonkmet?
00:49:27dom96Gotta love dependencies
00:49:34dom96what?
00:50:17reactormonkare the dependencies met?
00:50:21dom96It's 2am here btw, I'm quite slow right now :P
00:50:43dom96er when installing from AUR?
00:50:45*q66 quit (Quit: Quit)
00:51:08reactormonkchromium?
00:51:27reactormonkcheck debug => rescoures => scripts => everything there?
00:52:16dom96no
00:52:26reactormonkI'll source the files...
00:56:47reactormonkdom96: go pull
00:58:04dom96still fails
00:58:32reactormonkwtf
00:58:50reactormonkwhich files are not found according to the debug?
00:58:57dom96Chromium complains about lib/hoverzoom.js
00:59:01dom96client.js
00:59:05dom96and test.js
00:59:19dom96all in lib/
00:59:34Trixar_zaWhy not just include them? Oo
00:59:41*Trixar_za hides
00:59:46reactormonkdom96: coffee -b lib/*
00:59:56reactormonkehh coffee -bc lib/*
00:59:58dom96That still fails with "ReferenceError: Ember is not defined"
01:00:12dom96path.exists is now called `fs.exists`.
01:00:12dom96SyntaxError: In lib/coffee-script.js, reserved word "function" on line 8
01:00:22reactormonkehh coffee -bc lib/*.coffee
01:01:02dom96ok
01:01:04dom96that works
01:01:45dom96Did you create those images?
01:02:01dom96or "cards" even
01:02:11reactormonkcopied them from vassal
01:02:26dom96oh
01:03:08dom96Well to get the same in Nimrod you will probably have to wrap jQuery
01:03:31dom96However, I think you could just write a script in javascript which would do it for you :P
01:03:53dom96The compiler might need some fixes
01:03:59dom96I bet the JS backend is buggy
01:04:00*Trixar_za goes and messes with some more php
01:05:41dom96Trixar_za: Any interesting programming channels on your IRC network? :P
01:07:18Trixar_zaNot really
01:07:28Trixar_zaMost of them just hang out in irc-wiki
01:07:36Trixar_zaBut that's related to my wiki
01:07:45dom96I see. Pity.
01:08:00Trixar_zaWe need more coders really
01:09:17dom96The current group of people that are on the IRC network that I hang out on are quite irritating and i'm thinking of leaving and joining some other place :P
01:09:36reactormonkdom96: animations fancy enough? :-)
01:09:46dom96reactormonk: Yes, very nice.
01:10:28Trixar_zaWell dom96, we're actually several networks linked together using Janus IRC
01:10:53Trixar_zaWhich is just a very weird channel linker and network protocol gateway
01:11:10Trixar_zaI also made a fork of it - which is written in perl
01:11:14Trixar_zaBad perl mind you
01:11:19dom96interesting
01:11:21Trixar_zaA perl coder once said it made him blind
01:11:32dom96Just googled it. First result, your wiki :P
01:11:43dom96haha
01:12:13dom96I will connect tomorrow and hang out :)
01:12:17dom96For now, I need to sleep
01:12:21Trixar_zahttps://github.com/Trixarian/trix-janus
01:12:24Trixar_za:P
01:12:30dom96Good night
01:12:42Trixar_zaGoodnite dom96
01:12:58Trixar_zaAnd god is that the worst amount of patch together fixes and hacks ever
01:12:58Trixar_za:p
01:13:05Trixar_zapatched*
01:14:59Trixar_zaBleh, I should fix those Makefiles
02:50:20*Trixar_za is now known as Trix[a]r_za
03:31:35fowldoes anybody know why this unpack() fails? https://gist.github.com/f8c3c1643a796ed44f80
04:46:35reactormonkfowl: how does it fail?
04:57:46fowlError: execution of an external program failed
04:58:03fowlgcc =(
05:00:01*reactormonk quit (Ping timeout: 245 seconds)
05:51:31Araqfowl: ugh, it's a bug
05:51:50Araqyou can however use --parallelBuild:1 to see GCC's error message
05:54:48fowlnimcache/treetest.c: In function �treetestInit�: nimcache/treetest.c:364:41: error: expected expression before �)� token
05:55:20fowlup_73113 = unpack_73105(&s_73083->Sup, );
05:55:22fowlo_O
05:55:32Araqlol
05:55:45fowlah
05:56:12fowlother times when i tested proc(a: type(sometype)): sometype it worked fine
05:56:31Araqwhat does that mean btw?
05:56:58AraqI mean
05:57:17Araqyour 'proc unpack' doesn't make much sense?
05:57:34fowlno
05:57:40fowli was going to switch the arguments around
05:58:06fowlor do you mean its not useful
05:58:34AraqI mean 't' is not used ...
06:00:20fowlyou think i should use a generic
06:00:33fowli was hoping to do TestPkt.unpack(s)
06:00:58Araqyou can do:
06:01:03fowlrather than naming the functions unpackTestPkt()
06:01:30Araqproc properGeneric[T](x: T, s: stream) = ...
06:01:57Araqtemplate unpack(t: typedesc, s: stream) = properGeneric[t](s)
06:02:07AraqTestPkt.unpack(s)
06:02:19fowlah gotcha
06:05:20Araqbut please report that bug
06:10:56fowlok
06:24:23fowlhappy saturday Araq :D
06:24:55Araqthanks ...
06:25:39AraqI hate it that bugfixes take as much time as new features ...
06:26:02Araqit would all be easier if nimrod had even fewer users ;-)
06:26:12fowlhehe
06:27:01fowli found a typo btw :D
06:27:13Araqwhere?
06:27:23fowltypeinfo.getFloat32 asserts that kind == tyFloat64
06:29:18Araqthanks. fixed.
06:45:26Araqgotta go
06:45:27Araqbye
06:45:31fowlpeace
08:53:02*JStoker quit (Excess Flood)
09:18:05*JStoker joined #nimrod
10:09:02*fowl quit (*.net *.split)
10:09:02*ccssnet quit (*.net *.split)
10:09:21*fowl joined #nimrod
10:09:21*fowl quit (Changing host)
10:09:21*fowl joined #nimrod
10:13:45*apriori__ joined #nimrod
10:14:15*ccssnet joined #nimrod
11:13:51apriori__hey Araq, found a very interesting bug: http://pastebin.com/EeAudLht
11:14:19apriori__removing any of the marked lines/blocks will make the compilation work
11:15:20apriori__for some strange reason the nimrod compilers creates two local variables for the actorpool, like: http://pastebin.com/WCHMFJk9
11:25:42*q66 joined #nimrod
11:43:23Araqapriori__: looks like another closure related bug to me ...
11:45:13apriori__hm, okay
11:46:44Araqand btw nimrod's message passing performance is underwhelming
11:46:58apriori__yeah, I read that
11:47:08apriori__but it seems that at least actors.nim is not complete, either
11:47:20Araqtrue
11:48:03Araqbut what is it you miss in particular?
11:48:11apriori__had some error with a typo in poolWorker (actors.nim:110), in which you had "repy" instead of reply.. but actually event meant "send"
11:49:23Araqline 110 contains proc `^` for me ...
11:49:28apriori__oh, wait a sec
11:49:58apriori__oh well
11:50:01apriori__thats version 0.8.14
11:50:06apriori__trying latest git..
11:50:31apriori__maybe that bug is even fixed in the latest version
11:56:18dom96hello
11:56:46apriori__lib/nimrod/pure/actors.nim(123, 20) Error: internal error: closure generation failed ;(
11:57:44Araqwell yeah that's what I mean
11:57:53apriori__yeah...
11:58:01AraqI'm working on the closure stuff already
11:58:07Araqnow :-)
11:58:12apriori__okay then.. just gonna be patient, then ;)
11:58:50apriori__that error message is quite unspecific, though
11:59:06Araqand another issue is that symbol lookup in generics is overly permissive
11:59:23Araqwhich I will fix too somehow
11:59:38apriori__no need to rush, take your time ;)
11:59:59Araqthe error message is unspecific because it's an "internal error"
12:00:10apriori__well, yes, I know..
12:00:10Araqwhich is a euphemism for "bug"
12:00:22apriori__but what would you do know? stepwise run the compiler?
12:01:09apriori__brb, 10-15 mins
12:01:13Araqmost of the time I simply fix the bug ;-)
12:12:20apriori__well... maybe those are too obvious for you :P
12:31:36Araqto answer your question: I insert strategic 'echo' statements covered by some guard so it only triggers for the offending input lines
12:31:55Araqrecompile the compiler, inspect the output
12:32:11Araqand try to find the reason
12:33:03apriori__okay
12:33:08apriori__got to go now
12:33:09apriori__bye all
12:33:11Araqbye
12:33:15*apriori__ quit (Quit: Konversation terminated!)
12:40:37shevydumdedum
12:40:39shevydom96, teach me!
12:41:05dom96what?!
12:41:12dom96Maybe you should code something already!
12:41:29dom96Write an IRC bot, and show it off here or something :P
12:41:50Araqirc bots seem to be the only thing people write, right? :P
12:42:06dom96Yes. People that know what IRC is :P
12:42:14Araqwhat about some hidden markov model instead?
12:42:56dom96You mean one of those bots that log things you say and then randomly choose words from sentences they've logged?
12:43:17AraqI'm not talking about bots ...
12:43:35AraqI'm talking about programming something interesting :P
12:43:50Araqlike a speech recognizer
12:44:50dom96oh
12:44:56dom96Too much work :P
12:45:20Araq"don't know how to do that" would be more honest :P
12:45:59dom96be quiet you :P
12:47:37Araqnothing to be ashamed of, I don't know how to do it either ;-)
12:49:22dom96i see lol
12:50:08shevyhmmm
12:50:16shevyperhaps a nimrod-gtk program
12:50:44Araqnah the advice is good, write an IRC bot :-)
12:50:59Araqnimrod-gtk is unfortunately not much fun
12:51:04shevyhehe
12:51:40dom96yeah. GTK will only piss you off. :P
12:52:11dom96http://www.raspberrypi.org/archives/1734
12:52:17dom96Should I get the gertboard? :P
12:56:50Araqdom96: and accomplish what?
12:58:40dom96Dunno.
12:58:46dom96Make some LEDs blink
12:58:49dom96lol
12:58:55dom96meh, I don't have time anyway
12:59:05AraqI agree ;-)
13:17:28*Trix[a]r_za is now known as Trixar_za
13:18:04Trixar_za:/
13:18:25Trixar_zadom96, you just reminded me of a multi-vibrator circuit
13:18:47Trixar_zaIt pretty much just makes LEDs blind in sequence like in Knight Rider
13:19:08Trixar_zaBlink*
13:22:50Trixar_zaI only remember it because we used to make fun of the name and the one teacher misunderstood us when we were talking about it in class
13:24:04shevyhaha
13:24:07shevyknight rider blinking
13:24:19shevyTrixar_za I picture you looking like david hasslehoff now
13:24:28shevywith moustache, like the "evil" twin he once had in knight rider
13:24:45shevyoh man, I must go to youtube now...
13:25:04Trixar_zaActually not his evil twin, but the actual Knight who his face was reconstructed to look at
13:25:29dom96lol, that name is brilliant.
13:25:30Trixar_zaBut Ms Knight and Son were both criminally insane
13:25:30shevyah
13:25:34shevyhe had a plate in his head right?
13:25:57shevyfrom when he was shot at before he started working at the ... thing foundation... thing
13:25:58Trixar_zaYeah, Michael was shot in the head, so they put a plate in
13:26:06Trixar_zahe once used it to find K.I.T.T.
13:26:06shevyhah i remember that from like 20 years ago!
13:26:12shevykeep in mind
13:26:16shevyI only watched the german translation
13:26:24shevysometimes information is lost in translations
13:26:37Trixar_zaKnight Industries I think it was called
13:26:41shevymost hilarious are chinese -> german translation. the guys spoke things that did not make much sense for the movie... but it made the movie hilarious
13:26:55Trixar_zaYou might be thinking MacGyver who worked for the Phoenix Foundation
13:27:33Trixar_zaThey've been repeating Knight Rider, A-Team and MacGyver the last few years
13:27:36Trixar_zaso I've caught up
13:27:37Trixar_za:P
13:27:55dom96Ahh. MacGyver, good times.
13:28:00shevydunno
13:28:01dom96I can barely remember the show though
13:28:04shevynever watched A-Team
13:28:11shevywatched a bit of macgyver, but KITT was cooler
13:28:35shevyand macgyver always did things that were not possible... just with one knife, a bit of nitroglycerin and one bubble gum
13:29:34Trixar_zaYeah and he MADE the nitro from something else
13:29:58Trixar_zaThe producers admitted that some of those stuff are impossible
13:30:24Trixar_zaor you have to be really lucky for it to work like it does in the show
13:30:45Trixar_zaMacGyver was like my hero when I was a kid
13:30:51Trixar_zaHad long hair and everything
13:31:34Trixar_zaWhen I had to cut my hair when starting school, my grandmother had to tell me it's something MacGyver would do before I let them cut it
13:35:11Trixar_zaNow when I watch it, it's like 'eh'
13:35:23Trixar_zaThe old Knight Rider is still cool though
13:35:47Trixar_zaMost memorable theme too :P
13:37:28shevyheeh
13:37:47shevyI dont watch much TV anymore
13:40:30Trixar_zaTrue. With the internet you can have any tv series, movie or book you want if you where to look
13:41:02dom96eztv ftw :)
13:41:41shevyyeah
13:41:54Trixar_zaknow*
13:41:56shevybut even then
13:42:07shevyI kinda write more code or add to my local knowledge base
13:44:18Trixar_zaI'm more a fiction addict. I really should code more. I think it's partially because I don't know where to start. Mostly because of very little formal education in it.
13:45:00shevycoding?
13:45:07shevythere is always too much things to do
13:45:12shevyworking on this right now http://i50.tinypic.com/ar3u9.png
13:45:25shevywhen, one day, the base is fine, I want to add GUI bindings
13:45:46Trixar_zaTrue that. Sometimes it's staggering, even with a 'finished' project
13:46:17Trixar_zaEspecially when you realize how much you need to add in to fix bugs or just have logical checks for things
13:46:35shevyyeah
13:46:45shevyor when you add features over the years
13:46:58shevyand the whole project does not "fit" into that very well anymore
13:48:15Trixar_zaYou do get projects by other people that just refuse proper code
13:48:37Trixar_zaBut if you write it in the same bad style with insane checks, it then suddenly decide to work
13:48:40Trixar_za... some of the time
13:48:50shevyheeh
13:50:51Trixar_zatrix-janus on my github is an example of that
13:51:03Trixar_zaI don't add more features because it rejects certain code off the bat
13:51:18Trixar_zaEspecially if it's proper perl
13:55:13dom96Trixar_za: Hey, would you mind fixing all those ambiguous 'delete' errors in Aporia and sending me a pull request?
13:55:43Trixar_zalol, or we can wait for Araq to fix nimrod :P
13:56:13dom96Well he already said that he might not do it until after 0.9.0 is released
13:56:27dom96Because the bug is a big one apparently, or whatever his reasoning was :P
13:56:31AraqI changed my mind, it seems easy to fix :P
13:56:48Araqbut the underlying problem remains and makes me nervous ;-)
13:57:01dom96What is the underlying problem?
13:57:20Trixar_zaHe'll probably say bad coding practices
13:57:36dom96or drunk coding
13:57:38Araqthat the symbol table does not really support clashing identifiers
13:57:52Araqin the way nimrod's spec requires it :P
13:58:15dom96Is it that hard to make it support them?
13:58:40dom96I suppose you would have to make some change which would require changes everywhere?
13:58:56Araqyeah
13:59:02Araqwell not really
13:59:19Araqbut it'd better would force me to require changes everywhere
13:59:41Araqso that I don't miss any case ;-)
13:59:48dom96ahh
14:00:14dom96So it's not a hard problem, it's just lots of work to change everything?
14:01:13*dom96 tries using fowl's aporia theme
14:01:39dom96Very dark, nice :)
14:01:51Araqyeah plus it could break existing wrappers :P
14:02:09Araqif the compiler becomes stricter ;-)
14:02:49dom96Yeah, leave it until after 0.9.0 :P
14:05:26dom96Araq: But could you make that quick fix?
14:05:55AraqI could also make the compiler accept your code :P
14:06:08Araqnobody likes ambiguity errors
14:06:39dom96Sure, as long as the compiler doesn't do something stupid and pick the wrong proc.
14:06:45Araqbut currently I'm working on closures again and can't do aynthing else
14:06:54Araqas I don't use branches :P
14:07:06dom96Maybe you should start.
14:07:31Araqit helps to keep focus :P
14:10:22*reactormonk joined #nimrod
14:12:02dom96Araq: Meh. I like branches.
14:12:18dom96But I don't really use them myself hah
14:24:20*Trixar_za is now known as Trix[a]r_za
14:29:24dom96Araq: oh would you look at that. 90 "stargazers" :P
14:30:08Araqoh yeah
14:30:15Araqwas about to celebrate that :D
14:30:24dom96Who is the 90th?
14:30:29Araqdon't care
14:30:40Araqsome random guy watching 5000 projects
14:30:47shevyhaha
14:30:53dom96lol
14:31:08dom96*stargazing
14:31:10dom96heh
14:31:16dom96Github is brilliant...
14:31:25Araqthere is no such verb as "stargazing"
14:31:33shevydom96 just likes the star
14:32:27dom96Araq: Add a space then
14:32:33dom96shevy: Totally.
14:32:58Araqadding a space does not change anything
14:33:12dom96star gazing?
14:33:32dom96Araq: Spotify just started playing a German song :D
14:33:57Araqwho is spotify and why should I care?
14:34:00dom96Schiller - Sehnsucht
14:34:14Araqoh I remember
14:34:25Araqthat crazy radio that thinks for you ...
14:34:29dom96yep
14:37:44dom96At least I don't have to waste time figuring out what to listen to next
14:39:40*Trix[a]r_za is now known as Trixar_za
14:51:25fowlstargazing is a word
14:51:35fowli know because there's no red line under it when i type it
14:51:46dom96Yeah! That's true.
14:51:53dom96aspell knows all.
14:52:12dom96Although it underlines aspell :P
14:52:21fowlits modest :p
14:52:36dom96hehe
14:58:21dom96fowl: Did you get your chipmunk code to work?
14:58:57AraqI have to go
14:59:03Araqsee you later or tomorrow
14:59:06dom96bye
14:59:24fowldom96: calling the imported function wouldn't work, but setting the field directly did
14:59:37dom96i see
14:59:40dom96weird
14:59:42fowlthe imported field just did body.p = pos too so im not sure what the issue was
14:59:56fowler imported func
15:00:12dom96Did you try gdb'ing it?
15:00:37fowlno i dont know how to use that black magic
15:00:48dom96lol
15:00:58fowlas far as c goes i'm fairly good at reading it but thats it lol
15:01:18dom96You would probably have to compile chipmunk with debug symbols or something
15:01:27dom96Although maybe just gdbing nimrod code would give you a lue
15:01:28dom96*clue
15:03:31shevya lue
15:03:34shevyI wanna a lue too
15:03:42shevylueluelubidibuuuuu
15:04:09dom96I've got a raging clue right now.
15:04:18dom96Get the reference? :P
15:05:54shevyall I hear is lue luebidibuuu!
15:05:55fowli want an und() function for macros
15:06:15dom96An 'und' function?
15:06:16fowlund() is like add() except it returns the first parameter
15:06:28shevylol
15:06:32dom96und(5) -> 5 ?
15:06:32shevydom96, "und" is german for "and"
15:06:43dom96shevy: right
15:07:26fowldom96: i have vars.add(newIdentNode("blah"), newNimNode(nnkVarTy), newNimNode(nnkNilLit))
15:08:06fowlbut the varTy needs more so i would make it newNimNode(nnkVarTy).und(newNimNode("typename"))
15:08:49fowlto avoid var throwaway = newNimNode(nnkvarty); throwaway.add(newnimnode(..)); vars.add(throwaway)
15:09:00fowlif that makes sense?
15:09:15dom96So basically proc und[T, Y](a: T, x: Y): T ?
15:09:39dom96yeah, something that adds in-place (if that's the proper term).
15:10:40fowlno its specifically needed for macros so it would take PNimrodNodes, i tried to put it in but i get an error "Error: cannot generate code for 'add'"
15:11:15dom96what was your code?
15:12:05fowlhttps://gist.github.com/f8c3c1643a796ed44f80
15:14:40reactormonkAraq: I suppose templates/macros have their own namespace? (just came around gensyms in lisp)
15:15:18dom96reactormonk: He's away.
15:16:04dom96reactormonk: I'm not sure if this is what you mean, but if you want templates to use a different scope you need to use 'block'
15:17:10dom96fowl: Try using the {.compileTime.} pragma on the proc
15:19:20fowlgod i swear you and araq are hoarding the useful pragmas
15:19:29reactormonkdom96: hmm, what about temp variables used in the template?
15:20:39dom96reactormonk: I think there was something recently added which lets you say whether the variable will be generated in the code or only available in the template.
15:20:51dom96It was either implemented or just talked about.
15:20:52dom96Not sure.
15:21:27dom96fowl: I think the Macros section in the tutorial should be expanded.
15:21:32dom96To include all these details.
15:26:57reactormonkwtf, macros within macros ^^
15:27:12fowlyea and the missing sections in the macro doc (and even the ones that are filled in) i think they could use examples of dumpTree/treeRepr
15:27:44fowlexample output*
15:28:04dom96I agree. Make a pull request :P
15:29:01*fowl points to shevy
15:29:14dom96lol
15:31:06shevymacros in macros
15:31:13shevyis that a macro monad?
15:32:09dom96That's macroception
15:34:47reactormonk http://sprunge.us/eGAS
15:44:39*shevy quit (Ping timeout: 265 seconds)
15:49:29fowlreactormonk: i dont know what that does but it scares me
15:49:54dom96I've already jumped out through my window.
15:51:49reactormonkfowl: it takes names of vars to eval once and assigns the tmp values to gensymmed names (aka unique ones)
15:54:17reactormonknimrod does that in the compiler :-)
15:56:37*shevy joined #nimrod
16:00:19fowlI think it looks a lot better with und(): https://gist.github.com/f8c3c1643a796ed44f80#L24
16:00:35fowlat least when you dont need to do work on the nodes, just creating them
16:02:18dom96I think it might be even nicer with some operators
16:06:25fowlhey dom why can't i do var foo: typ iirc this worked fine with a template
16:08:53dom96huh? What do you mean, what error do you get?
16:09:09fowlError: type expected
16:10:03dom96Can I see your full code?
16:10:44fowlhttps://gist.github.com/f8c3c1643a796ed44f80
16:16:26dom96I think you do need to use a template
16:16:36dom96And perhaps 'typedesc' instead of expr
16:17:35dom96Cool: http://build.nimrod-code.org/docs/manual.html#identifier-construction_toc
16:17:38dom96Today I learn.
16:19:20fowlI still get type expected
16:20:01dom96Update your gist please
16:20:30fowldone
16:24:00dom96I think you might need to construct the proper nodes for that variable declaration
16:24:05dom96In the macro
16:24:14dom96That's probably the only way
16:24:23dom96I need to leave for ~20 minutes
16:24:24dom96bbl
16:24:49fowli dont want the variable there i just need it so i can iterate over the fields of the type
16:25:38dom96sorry, I have no other ideas.
16:25:44dom96I'll try again when I come back.
16:25:46dom96see ya
16:25:56Trixar_zaBye dom96
16:26:00Trixar_zaI'm going too
16:26:05Trixar_zaGot a show to go to
16:26:50shevystrip shows yay!!!
16:27:13*Trixar_za is now known as Trix[a]r_za
16:36:32shevyhey
16:37:05shevyI once wrote a minesweeper grid layout maker http://pastie.org/4456087
16:37:07shevyin ruby
16:37:27shevyit produces output like: http://pastie.org/4456092
16:37:41shevywhere "m" is the mine, and the numbers indicate how many mines are nearby
16:37:48shevynow I am thinking, since it is fairly simple... I could do this in nimrod
16:47:18reactormonkshevy: iterate over field, add 1 to each neighbour except if it's a mine... ;-)
16:47:36reactormonkdid you use a different algorithm?
16:51:25dom96back
16:52:22reactormonkoh, python's fancy a < b < c is simply (< a b c) in lisp
16:53:02shevyreactormonk no idea, I didnt use any "algorithm", I just tweaked it until it worked
16:53:52shevynow that dom96 is here, I will ask him for help
16:54:13reactormonkshevy: at least have a basic idea how you do it - you could give me the ruby equiv
16:54:39dom96shevy: ask away
16:55:13shevyreactormonk I really have absolutely no idea how I did it
16:55:24shevyI think I just wrote down the logic that is needed to fill up a 2D array
16:56:26shevyok, have to read up on proc ... :-)
16:57:29shevyhmm
16:57:33shevywhen a proc just outputs something
16:57:35shevylike:
16:57:37shevy======
16:57:38dom96fowl: Are you using asyncio for anything important? :P
16:57:49shevyit needs to specify what exactly as return value?
16:59:29reactormonkshevy: the type
16:59:48shevyhmm
17:00:11shevyand when I output the ====
17:00:13shevywhat is the type?
17:02:57dom96define 'output'
17:03:59dom96Do you want the function to return the string "===="
17:04:07dom96or do you want the function to output "====" to the terminal?
17:05:28shevythe second option
17:05:44dom96In that case it doesn't return anything
17:05:48dom96there is no return type
17:06:57shevyhmm
17:07:40shevyhttp://pastie.org/4456216 what is my mistake?
17:08:51dom96You got the `proc` syntax wrong
17:09:07dom96You only need the : if you're returning something
17:09:13dom96And it should end with =
17:09:15dom96so:
17:09:17dom96proc line() =
17:09:24shevyah
17:09:32shevyodd, I thought I need the : like in python for indent
17:09:46shevyworks now
17:10:26fowldom96: not yet, im going to use it my game though
17:11:14dom96fowl: Alright, i'm going to change the 'event' fields so that they accept closures.
17:11:21fowldom96: but i need the packet packing stuff first
17:11:33fowlah ok
17:11:47dom96So your code might break. But it shouldn't be too hard to change :P
17:11:52dom96I might implement that for you.
17:11:55dom96Sounds fun.
17:11:59dom96I have no experience with that though
17:12:13shevy Error: expression 'write(stdout, i)' has no type (or is ambiguous)
17:12:31shevyhttp://pastie.org/4456240
17:12:35dom96shevy: That usually means that you are trying to use its return type.
17:12:40shevyhmm
17:12:41dom96But it has no return type
17:12:42shevyoh
17:12:47dom96i.e. it doesn't return anything
17:13:02shevyhmm am I returning something?
17:13:06*shevy scratches his head.
17:13:12fowldom96: that's what my gist was about, instead of writing the functions that do stream.writeData(..) / stream.readXX() the macro shall generate both at once
17:13:17dom96shevy: echo stdout.write(i)
17:13:30dom96shevy: You're passing the return value of stdout.write to echo.
17:13:37dom96shevy: But stdout.write has no return value!
17:13:42shevyaha
17:14:17dom96fowl: Ahh. Interesting.
17:17:40dom96hrm, testing udp sockets is hard because packets are dropped...
17:17:51dom96So I can't just spam the server or else they will be dropped :P
17:21:21*apriori__ joined #nimrod
17:59:01*reactormonk quit (Read error: Operation timed out)
19:12:40dom96shevy: How's the coding going?
19:40:35shevydom96 hmm
19:40:46dom96I replied to your issue btw
19:41:01shevydom96 I am looking through my local knowledge base right now, trying to improve it's overall quality
19:41:12shevyin other words, like doing boring and general maintenance "w"ork right now
19:41:27shevywas also reading a book for a while
19:41:32shevyI cant read in front of the computer :(
19:42:56dom96I'm improving UDP socket support and it's quite boring.
20:50:36apriori__dom96: of nimrod?
21:04:27dom96apriori__: yeah
21:23:02*apriori__ quit (Remote host closed the connection)
22:56:57*Trix[a]r_za is now known as Trixar_za
22:57:44Trixar_zaI should code
22:58:02Trixar_zaBeen drinking, so I'm supposedly a coding genius
22:58:54dom96Yes!
23:01:10Trixar_zaAlso saw Switchfoot live
23:01:16Trixar_zaAnd the guy did something I never saw before
23:01:36Trixar_zaHe actually walked into the golden circle and then out the other end and went to some of the seats
23:01:57Trixar_zaSang two songs and then crowd surfed back to the stage
23:41:28dom96http://mars.jpl.nasa.gov/msl/multimedia/images/?ImageID=4421
23:41:48dom96Is it just me or does the top middle part of the image look like a river?
23:43:47Trixar_zaWhere?
23:44:08Trixar_zaLooks like distant mist/dust to me
23:45:04Trixar_zaShame we won't ever get to go in our lifetimes :(
23:45:15Trixar_zaI would LOVE to see how it looks on Mars in person
23:46:24dom96http://i.imgur.com/rn0jc.jpg
23:46:50dom96You never know
23:46:52dom96We just might
23:47:04Trixar_zaYeah, looks like a riverbed
23:47:13dom96But think on the bright side, people before didn't get to see Mars AT ALL
23:47:18Trixar_zadried up one though
23:47:27Trixar_zaBut with dark soil that comes from one
23:47:33dom96Yeah, but still :O
23:49:24Trixar_zaTrue, but our children's children will probably see it in person
23:49:30Trixar_zaStill kind of sucks
23:49:44Trixar_zaThe round trip isn't nice though
23:50:24Trixar_zaEasiest way to conserve fuel would be to slingshot ourselves towards it using the earth's gravity
23:50:33Trixar_zaeven then it's about a 3 month trip
23:53:01dom96yeah :(
23:56:48*JStoker quit (Excess Flood)