00:24:19 | * | Trix[a]r_za is now known as Trixar_za |
00:32:59 | reactormonk | dom96: found the linky? |
00:33:23 | dom96 | hrm? |
00:33:37 | reactormonk | dom96: on my fancy JS project |
00:33:54 | Trixar_za | Just say no to drugs |
00:34:02 | dom96 | no :( |
00:34:08 | dom96 | I wasn't even looking :P |
00:34:16 | dom96 | Can you give me the link? |
00:34:57 | reactormonk | https://github.com/Tass/Summoner-Wars |
00:35:09 | reactormonk | wtf, three months ago already |
00:36:32 | dom96 | interesting |
00:36:52 | reactormonk | JS is really nice for animations n stuff |
00:37:16 | reactormonk | you can open index.html with chrom* it's got fancy stuff |
00:37:46 | reactormonk | I want to lear something about socket.io and nodejs... even the better in nimrod :-) |
00:38:12 | Trixar_za | We have a nodejs wrapper? |
00:38:13 | Trixar_za | Oo |
00:38:14 | dom96 | It would be very nice if you could improve Nimrod's JS backend. |
00:38:23 | dom96 | Trixar_za: nah |
00:38:28 | reactormonk | I would like to write the game logic in nimrod and the whole communcation stuff in either JS (coffeescript that is) or nimrod |
00:38:35 | reactormonk | Trixar_za: just use JS. |
00:38:47 | reactormonk | dom96: I suppose a js2nim doens't exist yet ;-) |
00:38:54 | reactormonk | well, there are no header files anyway |
00:39:07 | Trixar_za | I hear nodejs is pretty good |
00:39:09 | dom96 | reactormonk: hehe. Nah |
00:39:24 | Trixar_za | It's like integrated asynchronous IO library |
00:39:35 | Trixar_za | or so I hear |
00:39:36 | Trixar_za | :P |
00:39:46 | dom96 | I hear it's bad :P |
00:39:48 | Trixar_za | I only know of two IRC related projects that use it |
00:40:02 | Trixar_za | One is an indexer bot and logger |
00:40:10 | Trixar_za | and the other is a BNC front-end |
00:40:31 | dom96 | reactormonk: index.html is empty. |
00:40:36 | Trixar_za | I have the indexer's code though |
00:40:38 | dom96 | reactormonk: Am I missing some fancy things? |
00:40:40 | reactormonk | dom96: it is? |
00:40:47 | dom96 | reactormonk: I can see its got some strange templating stuff |
00:40:59 | reactormonk | oh, right |
00:41:12 | reactormonk | yes, it is empty be default |
00:41:21 | reactormonk | you got coffeescript installed? |
00:41:32 | dom96 | nope :P |
00:41:47 | dom96 | I'll install it now |
00:41:58 | Trixar_za | We don't even have it in our repository :( |
00:41:59 | reactormonk | worth it imo |
00:42:29 | reactormonk | just compile the files ( coffee -b lib/* ) |
00:42:58 | dom96 | I have never used CoffeeScript heh |
00:43:36 | dom96 | ReferenceError: Ember is not defined |
00:44:30 | reactormonk | lemme see |
00:44:58 | reactormonk | yes, I did vendor them... but locally only |
00:45:00 | reactormonk | fuck |
00:45:32 | reactormonk | it's in vendor/*.js, which are symlinks to locally installed js files (emberjs pkg from AUR) |
00:46:10 | reactormonk | fixing... |
00:46:32 | dom96 | ok. |
00:46:57 | reactormonk | in case you're on archlinux, jquery-ui-dev jquery emberjs from AUR |
00:47:08 | dom96 | Will installing that fix the error? |
00:47:20 | reactormonk | yep |
00:47:26 | dom96 | k |
00:47:56 | dom96 | I still get the same error |
00:47:59 | reactormonk | care about background? |
00:48:20 | Trixar_za | jquery I can understand |
00:48:22 | Trixar_za | :p |
00:48:34 | reactormonk | dom96: ls -l vendor/* and see which ones are grey |
00:48:56 | reactormonk | aww, fuck, I installed my own packages I assume... |
00:49:10 | reactormonk | talk about portability |
00:49:18 | dom96 | all blue |
00:49:23 | reactormonk | met? |
00:49:27 | dom96 | Gotta love dependencies |
00:49:34 | dom96 | what? |
00:50:17 | reactormonk | are the dependencies met? |
00:50:21 | dom96 | It's 2am here btw, I'm quite slow right now :P |
00:50:43 | dom96 | er when installing from AUR? |
00:50:45 | * | q66 quit (Quit: Quit) |
00:51:08 | reactormonk | chromium? |
00:51:27 | reactormonk | check debug => rescoures => scripts => everything there? |
00:52:16 | dom96 | no |
00:52:26 | reactormonk | I'll source the files... |
00:56:47 | reactormonk | dom96: go pull |
00:58:04 | dom96 | still fails |
00:58:32 | reactormonk | wtf |
00:58:50 | reactormonk | which files are not found according to the debug? |
00:58:57 | dom96 | Chromium complains about lib/hoverzoom.js |
00:59:01 | dom96 | client.js |
00:59:05 | dom96 | and test.js |
00:59:19 | dom96 | all in lib/ |
00:59:34 | Trixar_za | Why not just include them? Oo |
00:59:41 | * | Trixar_za hides |
00:59:46 | reactormonk | dom96: coffee -b lib/* |
00:59:56 | reactormonk | ehh coffee -bc lib/* |
00:59:58 | dom96 | That still fails with "ReferenceError: Ember is not defined" |
01:00:12 | dom96 | path.exists is now called `fs.exists`. |
01:00:12 | dom96 | SyntaxError: In lib/coffee-script.js, reserved word "function" on line 8 |
01:00:22 | reactormonk | ehh coffee -bc lib/*.coffee |
01:01:02 | dom96 | ok |
01:01:04 | dom96 | that works |
01:01:45 | dom96 | Did you create those images? |
01:02:01 | dom96 | or "cards" even |
01:02:11 | reactormonk | copied them from vassal |
01:02:26 | dom96 | oh |
01:03:08 | dom96 | Well to get the same in Nimrod you will probably have to wrap jQuery |
01:03:31 | dom96 | However, I think you could just write a script in javascript which would do it for you :P |
01:03:53 | dom96 | The compiler might need some fixes |
01:03:59 | dom96 | I bet the JS backend is buggy |
01:04:00 | * | Trixar_za goes and messes with some more php |
01:05:41 | dom96 | Trixar_za: Any interesting programming channels on your IRC network? :P |
01:07:18 | Trixar_za | Not really |
01:07:28 | Trixar_za | Most of them just hang out in irc-wiki |
01:07:36 | Trixar_za | But that's related to my wiki |
01:07:45 | dom96 | I see. Pity. |
01:08:00 | Trixar_za | We need more coders really |
01:09:17 | dom96 | The 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:36 | reactormonk | dom96: animations fancy enough? :-) |
01:09:46 | dom96 | reactormonk: Yes, very nice. |
01:10:28 | Trixar_za | Well dom96, we're actually several networks linked together using Janus IRC |
01:10:53 | Trixar_za | Which is just a very weird channel linker and network protocol gateway |
01:11:10 | Trixar_za | I also made a fork of it - which is written in perl |
01:11:14 | Trixar_za | Bad perl mind you |
01:11:19 | dom96 | interesting |
01:11:21 | Trixar_za | A perl coder once said it made him blind |
01:11:32 | dom96 | Just googled it. First result, your wiki :P |
01:11:43 | dom96 | haha |
01:12:13 | dom96 | I will connect tomorrow and hang out :) |
01:12:17 | dom96 | For now, I need to sleep |
01:12:21 | Trixar_za | https://github.com/Trixarian/trix-janus |
01:12:24 | Trixar_za | :P |
01:12:30 | dom96 | Good night |
01:12:42 | Trixar_za | Goodnite dom96 |
01:12:58 | Trixar_za | And god is that the worst amount of patch together fixes and hacks ever |
01:12:58 | Trixar_za | :p |
01:13:05 | Trixar_za | patched* |
01:14:59 | Trixar_za | Bleh, I should fix those Makefiles |
02:50:20 | * | Trixar_za is now known as Trix[a]r_za |
03:31:35 | fowl | does anybody know why this unpack() fails? https://gist.github.com/f8c3c1643a796ed44f80 |
04:46:35 | reactormonk | fowl: how does it fail? |
04:57:46 | fowl | Error: execution of an external program failed |
04:58:03 | fowl | gcc =( |
05:00:01 | * | reactormonk quit (Ping timeout: 245 seconds) |
05:51:31 | Araq | fowl: ugh, it's a bug |
05:51:50 | Araq | you can however use --parallelBuild:1 to see GCC's error message |
05:54:48 | fowl | nimcache/treetest.c: In function �treetestInit�: nimcache/treetest.c:364:41: error: expected expression before �)� token |
05:55:20 | fowl | up_73113 = unpack_73105(&s_73083->Sup, ); |
05:55:22 | fowl | o_O |
05:55:32 | Araq | lol |
05:55:45 | fowl | ah |
05:56:12 | fowl | other times when i tested proc(a: type(sometype)): sometype it worked fine |
05:56:31 | Araq | what does that mean btw? |
05:56:58 | Araq | I mean |
05:57:17 | Araq | your 'proc unpack' doesn't make much sense? |
05:57:34 | fowl | no |
05:57:40 | fowl | i was going to switch the arguments around |
05:58:06 | fowl | or do you mean its not useful |
05:58:34 | Araq | I mean 't' is not used ... |
06:00:20 | fowl | you think i should use a generic |
06:00:33 | fowl | i was hoping to do TestPkt.unpack(s) |
06:00:58 | Araq | you can do: |
06:01:03 | fowl | rather than naming the functions unpackTestPkt() |
06:01:30 | Araq | proc properGeneric[T](x: T, s: stream) = ... |
06:01:57 | Araq | template unpack(t: typedesc, s: stream) = properGeneric[t](s) |
06:02:07 | Araq | TestPkt.unpack(s) |
06:02:19 | fowl | ah gotcha |
06:05:20 | Araq | but please report that bug |
06:10:56 | fowl | ok |
06:24:23 | fowl | happy saturday Araq :D |
06:24:55 | Araq | thanks ... |
06:25:39 | Araq | I hate it that bugfixes take as much time as new features ... |
06:26:02 | Araq | it would all be easier if nimrod had even fewer users ;-) |
06:26:12 | fowl | hehe |
06:27:01 | fowl | i found a typo btw :D |
06:27:13 | Araq | where? |
06:27:23 | fowl | typeinfo.getFloat32 asserts that kind == tyFloat64 |
06:29:18 | Araq | thanks. fixed. |
06:45:26 | Araq | gotta go |
06:45:27 | Araq | bye |
06:45:31 | fowl | peace |
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:51 | apriori__ | hey Araq, found a very interesting bug: http://pastebin.com/EeAudLht |
11:14:19 | apriori__ | removing any of the marked lines/blocks will make the compilation work |
11:15:20 | apriori__ | 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:23 | Araq | apriori__: looks like another closure related bug to me ... |
11:45:13 | apriori__ | hm, okay |
11:46:44 | Araq | and btw nimrod's message passing performance is underwhelming |
11:46:58 | apriori__ | yeah, I read that |
11:47:08 | apriori__ | but it seems that at least actors.nim is not complete, either |
11:47:20 | Araq | true |
11:48:03 | Araq | but what is it you miss in particular? |
11:48:11 | apriori__ | 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:23 | Araq | line 110 contains proc `^` for me ... |
11:49:28 | apriori__ | oh, wait a sec |
11:49:58 | apriori__ | oh well |
11:50:01 | apriori__ | thats version 0.8.14 |
11:50:06 | apriori__ | trying latest git.. |
11:50:31 | apriori__ | maybe that bug is even fixed in the latest version |
11:56:18 | dom96 | hello |
11:56:46 | apriori__ | lib/nimrod/pure/actors.nim(123, 20) Error: internal error: closure generation failed ;( |
11:57:44 | Araq | well yeah that's what I mean |
11:57:53 | apriori__ | yeah... |
11:58:01 | Araq | I'm working on the closure stuff already |
11:58:07 | Araq | now :-) |
11:58:12 | apriori__ | okay then.. just gonna be patient, then ;) |
11:58:50 | apriori__ | that error message is quite unspecific, though |
11:59:06 | Araq | and another issue is that symbol lookup in generics is overly permissive |
11:59:23 | Araq | which I will fix too somehow |
11:59:38 | apriori__ | no need to rush, take your time ;) |
11:59:59 | Araq | the error message is unspecific because it's an "internal error" |
12:00:10 | apriori__ | well, yes, I know.. |
12:00:10 | Araq | which is a euphemism for "bug" |
12:00:22 | apriori__ | but what would you do know? stepwise run the compiler? |
12:01:09 | apriori__ | brb, 10-15 mins |
12:01:13 | Araq | most of the time I simply fix the bug ;-) |
12:12:20 | apriori__ | well... maybe those are too obvious for you :P |
12:31:36 | Araq | to answer your question: I insert strategic 'echo' statements covered by some guard so it only triggers for the offending input lines |
12:31:55 | Araq | recompile the compiler, inspect the output |
12:32:11 | Araq | and try to find the reason |
12:33:03 | apriori__ | okay |
12:33:08 | apriori__ | got to go now |
12:33:09 | apriori__ | bye all |
12:33:11 | Araq | bye |
12:33:15 | * | apriori__ quit (Quit: Konversation terminated!) |
12:40:37 | shevy | dumdedum |
12:40:39 | shevy | dom96, teach me! |
12:41:05 | dom96 | what?! |
12:41:12 | dom96 | Maybe you should code something already! |
12:41:29 | dom96 | Write an IRC bot, and show it off here or something :P |
12:41:50 | Araq | irc bots seem to be the only thing people write, right? :P |
12:42:06 | dom96 | Yes. People that know what IRC is :P |
12:42:14 | Araq | what about some hidden markov model instead? |
12:42:56 | dom96 | You mean one of those bots that log things you say and then randomly choose words from sentences they've logged? |
12:43:17 | Araq | I'm not talking about bots ... |
12:43:35 | Araq | I'm talking about programming something interesting :P |
12:43:50 | Araq | like a speech recognizer |
12:44:50 | dom96 | oh |
12:44:56 | dom96 | Too much work :P |
12:45:20 | Araq | "don't know how to do that" would be more honest :P |
12:45:59 | dom96 | be quiet you :P |
12:47:37 | Araq | nothing to be ashamed of, I don't know how to do it either ;-) |
12:49:22 | dom96 | i see lol |
12:50:08 | shevy | hmmm |
12:50:16 | shevy | perhaps a nimrod-gtk program |
12:50:44 | Araq | nah the advice is good, write an IRC bot :-) |
12:50:59 | Araq | nimrod-gtk is unfortunately not much fun |
12:51:04 | shevy | hehe |
12:51:40 | dom96 | yeah. GTK will only piss you off. :P |
12:52:11 | dom96 | http://www.raspberrypi.org/archives/1734 |
12:52:17 | dom96 | Should I get the gertboard? :P |
12:56:50 | Araq | dom96: and accomplish what? |
12:58:40 | dom96 | Dunno. |
12:58:46 | dom96 | Make some LEDs blink |
12:58:49 | dom96 | lol |
12:58:55 | dom96 | meh, I don't have time anyway |
12:59:05 | Araq | I agree ;-) |
13:17:28 | * | Trix[a]r_za is now known as Trixar_za |
13:18:04 | Trixar_za | :/ |
13:18:25 | Trixar_za | dom96, you just reminded me of a multi-vibrator circuit |
13:18:47 | Trixar_za | It pretty much just makes LEDs blind in sequence like in Knight Rider |
13:19:08 | Trixar_za | Blink* |
13:22:50 | Trixar_za | I 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:04 | shevy | haha |
13:24:07 | shevy | knight rider blinking |
13:24:19 | shevy | Trixar_za I picture you looking like david hasslehoff now |
13:24:28 | shevy | with moustache, like the "evil" twin he once had in knight rider |
13:24:45 | shevy | oh man, I must go to youtube now... |
13:25:04 | Trixar_za | Actually not his evil twin, but the actual Knight who his face was reconstructed to look at |
13:25:29 | dom96 | lol, that name is brilliant. |
13:25:30 | Trixar_za | But Ms Knight and Son were both criminally insane |
13:25:30 | shevy | ah |
13:25:34 | shevy | he had a plate in his head right? |
13:25:57 | shevy | from when he was shot at before he started working at the ... thing foundation... thing |
13:25:58 | Trixar_za | Yeah, Michael was shot in the head, so they put a plate in |
13:26:06 | Trixar_za | he once used it to find K.I.T.T. |
13:26:06 | shevy | hah i remember that from like 20 years ago! |
13:26:12 | shevy | keep in mind |
13:26:16 | shevy | I only watched the german translation |
13:26:24 | shevy | sometimes information is lost in translations |
13:26:37 | Trixar_za | Knight Industries I think it was called |
13:26:41 | shevy | most 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:55 | Trixar_za | You might be thinking MacGyver who worked for the Phoenix Foundation |
13:27:33 | Trixar_za | They've been repeating Knight Rider, A-Team and MacGyver the last few years |
13:27:36 | Trixar_za | so I've caught up |
13:27:37 | Trixar_za | :P |
13:27:55 | dom96 | Ahh. MacGyver, good times. |
13:28:00 | shevy | dunno |
13:28:01 | dom96 | I can barely remember the show though |
13:28:04 | shevy | never watched A-Team |
13:28:11 | shevy | watched a bit of macgyver, but KITT was cooler |
13:28:35 | shevy | and macgyver always did things that were not possible... just with one knife, a bit of nitroglycerin and one bubble gum |
13:29:34 | Trixar_za | Yeah and he MADE the nitro from something else |
13:29:58 | Trixar_za | The producers admitted that some of those stuff are impossible |
13:30:24 | Trixar_za | or you have to be really lucky for it to work like it does in the show |
13:30:45 | Trixar_za | MacGyver was like my hero when I was a kid |
13:30:51 | Trixar_za | Had long hair and everything |
13:31:34 | Trixar_za | When 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:11 | Trixar_za | Now when I watch it, it's like 'eh' |
13:35:23 | Trixar_za | The old Knight Rider is still cool though |
13:35:47 | Trixar_za | Most memorable theme too :P |
13:37:28 | shevy | heeh |
13:37:47 | shevy | I dont watch much TV anymore |
13:40:30 | Trixar_za | True. With the internet you can have any tv series, movie or book you want if you where to look |
13:41:02 | dom96 | eztv ftw :) |
13:41:41 | shevy | yeah |
13:41:54 | Trixar_za | know* |
13:41:56 | shevy | but even then |
13:42:07 | shevy | I kinda write more code or add to my local knowledge base |
13:44:18 | Trixar_za | I'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:00 | shevy | coding? |
13:45:07 | shevy | there is always too much things to do |
13:45:12 | shevy | working on this right now http://i50.tinypic.com/ar3u9.png |
13:45:25 | shevy | when, one day, the base is fine, I want to add GUI bindings |
13:45:46 | Trixar_za | True that. Sometimes it's staggering, even with a 'finished' project |
13:46:17 | Trixar_za | Especially when you realize how much you need to add in to fix bugs or just have logical checks for things |
13:46:35 | shevy | yeah |
13:46:45 | shevy | or when you add features over the years |
13:46:58 | shevy | and the whole project does not "fit" into that very well anymore |
13:48:15 | Trixar_za | You do get projects by other people that just refuse proper code |
13:48:37 | Trixar_za | But if you write it in the same bad style with insane checks, it then suddenly decide to work |
13:48:40 | Trixar_za | ... some of the time |
13:48:50 | shevy | heeh |
13:50:51 | Trixar_za | trix-janus on my github is an example of that |
13:51:03 | Trixar_za | I don't add more features because it rejects certain code off the bat |
13:51:18 | Trixar_za | Especially if it's proper perl |
13:55:13 | dom96 | Trixar_za: Hey, would you mind fixing all those ambiguous 'delete' errors in Aporia and sending me a pull request? |
13:55:43 | Trixar_za | lol, or we can wait for Araq to fix nimrod :P |
13:56:13 | dom96 | Well he already said that he might not do it until after 0.9.0 is released |
13:56:27 | dom96 | Because the bug is a big one apparently, or whatever his reasoning was :P |
13:56:31 | Araq | I changed my mind, it seems easy to fix :P |
13:56:48 | Araq | but the underlying problem remains and makes me nervous ;-) |
13:57:01 | dom96 | What is the underlying problem? |
13:57:20 | Trixar_za | He'll probably say bad coding practices |
13:57:36 | dom96 | or drunk coding |
13:57:38 | Araq | that the symbol table does not really support clashing identifiers |
13:57:52 | Araq | in the way nimrod's spec requires it :P |
13:58:15 | dom96 | Is it that hard to make it support them? |
13:58:40 | dom96 | I suppose you would have to make some change which would require changes everywhere? |
13:58:56 | Araq | yeah |
13:59:02 | Araq | well not really |
13:59:19 | Araq | but it'd better would force me to require changes everywhere |
13:59:41 | Araq | so that I don't miss any case ;-) |
13:59:48 | dom96 | ahh |
14:00:14 | dom96 | So 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:39 | dom96 | Very dark, nice :) |
14:01:51 | Araq | yeah plus it could break existing wrappers :P |
14:02:09 | Araq | if the compiler becomes stricter ;-) |
14:02:49 | dom96 | Yeah, leave it until after 0.9.0 :P |
14:05:26 | dom96 | Araq: But could you make that quick fix? |
14:05:55 | Araq | I could also make the compiler accept your code :P |
14:06:08 | Araq | nobody likes ambiguity errors |
14:06:39 | dom96 | Sure, as long as the compiler doesn't do something stupid and pick the wrong proc. |
14:06:45 | Araq | but currently I'm working on closures again and can't do aynthing else |
14:06:54 | Araq | as I don't use branches :P |
14:07:06 | dom96 | Maybe you should start. |
14:07:31 | Araq | it helps to keep focus :P |
14:10:22 | * | reactormonk joined #nimrod |
14:12:02 | dom96 | Araq: Meh. I like branches. |
14:12:18 | dom96 | But I don't really use them myself hah |
14:24:20 | * | Trixar_za is now known as Trix[a]r_za |
14:29:24 | dom96 | Araq: oh would you look at that. 90 "stargazers" :P |
14:30:08 | Araq | oh yeah |
14:30:15 | Araq | was about to celebrate that :D |
14:30:24 | dom96 | Who is the 90th? |
14:30:29 | Araq | don't care |
14:30:40 | Araq | some random guy watching 5000 projects |
14:30:47 | shevy | haha |
14:30:53 | dom96 | lol |
14:31:08 | dom96 | *stargazing |
14:31:10 | dom96 | heh |
14:31:16 | dom96 | Github is brilliant... |
14:31:25 | Araq | there is no such verb as "stargazing" |
14:31:33 | shevy | dom96 just likes the star |
14:32:27 | dom96 | Araq: Add a space then |
14:32:33 | dom96 | shevy: Totally. |
14:32:58 | Araq | adding a space does not change anything |
14:33:12 | dom96 | star gazing? |
14:33:32 | dom96 | Araq: Spotify just started playing a German song :D |
14:33:57 | Araq | who is spotify and why should I care? |
14:34:00 | dom96 | Schiller - Sehnsucht |
14:34:14 | Araq | oh I remember |
14:34:25 | Araq | that crazy radio that thinks for you ... |
14:34:29 | dom96 | yep |
14:37:44 | dom96 | At 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:25 | fowl | stargazing is a word |
14:51:35 | fowl | i know because there's no red line under it when i type it |
14:51:46 | dom96 | Yeah! That's true. |
14:51:53 | dom96 | aspell knows all. |
14:52:12 | dom96 | Although it underlines aspell :P |
14:52:21 | fowl | its modest :p |
14:52:36 | dom96 | hehe |
14:58:21 | dom96 | fowl: Did you get your chipmunk code to work? |
14:58:57 | Araq | I have to go |
14:59:03 | Araq | see you later or tomorrow |
14:59:06 | dom96 | bye |
14:59:24 | fowl | dom96: calling the imported function wouldn't work, but setting the field directly did |
14:59:37 | dom96 | i see |
14:59:40 | dom96 | weird |
14:59:42 | fowl | the imported field just did body.p = pos too so im not sure what the issue was |
14:59:56 | fowl | er imported func |
15:00:12 | dom96 | Did you try gdb'ing it? |
15:00:37 | fowl | no i dont know how to use that black magic |
15:00:48 | dom96 | lol |
15:00:58 | fowl | as far as c goes i'm fairly good at reading it but thats it lol |
15:01:18 | dom96 | You would probably have to compile chipmunk with debug symbols or something |
15:01:27 | dom96 | Although maybe just gdbing nimrod code would give you a lue |
15:01:28 | dom96 | *clue |
15:03:31 | shevy | a lue |
15:03:34 | shevy | I wanna a lue too |
15:03:42 | shevy | lueluelubidibuuuuu |
15:04:09 | dom96 | I've got a raging clue right now. |
15:04:18 | dom96 | Get the reference? :P |
15:05:54 | shevy | all I hear is lue luebidibuuu! |
15:05:55 | fowl | i want an und() function for macros |
15:06:15 | dom96 | An 'und' function? |
15:06:16 | fowl | und() is like add() except it returns the first parameter |
15:06:28 | shevy | lol |
15:06:32 | dom96 | und(5) -> 5 ? |
15:06:32 | shevy | dom96, "und" is german for "and" |
15:06:43 | dom96 | shevy: right |
15:07:26 | fowl | dom96: i have vars.add(newIdentNode("blah"), newNimNode(nnkVarTy), newNimNode(nnkNilLit)) |
15:08:06 | fowl | but the varTy needs more so i would make it newNimNode(nnkVarTy).und(newNimNode("typename")) |
15:08:49 | fowl | to avoid var throwaway = newNimNode(nnkvarty); throwaway.add(newnimnode(..)); vars.add(throwaway) |
15:09:00 | fowl | if that makes sense? |
15:09:15 | dom96 | So basically proc und[T, Y](a: T, x: Y): T ? |
15:09:39 | dom96 | yeah, something that adds in-place (if that's the proper term). |
15:10:40 | fowl | no 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:15 | dom96 | what was your code? |
15:12:05 | fowl | https://gist.github.com/f8c3c1643a796ed44f80 |
15:14:40 | reactormonk | Araq: I suppose templates/macros have their own namespace? (just came around gensyms in lisp) |
15:15:18 | dom96 | reactormonk: He's away. |
15:16:04 | dom96 | reactormonk: 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:10 | dom96 | fowl: Try using the {.compileTime.} pragma on the proc |
15:19:20 | fowl | god i swear you and araq are hoarding the useful pragmas |
15:19:29 | reactormonk | dom96: hmm, what about temp variables used in the template? |
15:20:39 | dom96 | reactormonk: 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:51 | dom96 | It was either implemented or just talked about. |
15:20:52 | dom96 | Not sure. |
15:21:27 | dom96 | fowl: I think the Macros section in the tutorial should be expanded. |
15:21:32 | dom96 | To include all these details. |
15:26:57 | reactormonk | wtf, macros within macros ^^ |
15:27:12 | fowl | yea 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:44 | fowl | example output* |
15:28:04 | dom96 | I agree. Make a pull request :P |
15:29:01 | * | fowl points to shevy |
15:29:14 | dom96 | lol |
15:31:06 | shevy | macros in macros |
15:31:13 | shevy | is that a macro monad? |
15:32:09 | dom96 | That's macroception |
15:34:47 | reactormonk | http://sprunge.us/eGAS |
15:44:39 | * | shevy quit (Ping timeout: 265 seconds) |
15:49:29 | fowl | reactormonk: i dont know what that does but it scares me |
15:49:54 | dom96 | I've already jumped out through my window. |
15:51:49 | reactormonk | fowl: it takes names of vars to eval once and assigns the tmp values to gensymmed names (aka unique ones) |
15:54:17 | reactormonk | nimrod does that in the compiler :-) |
15:56:37 | * | shevy joined #nimrod |
16:00:19 | fowl | I think it looks a lot better with und(): https://gist.github.com/f8c3c1643a796ed44f80#L24 |
16:00:35 | fowl | at least when you dont need to do work on the nodes, just creating them |
16:02:18 | dom96 | I think it might be even nicer with some operators |
16:06:25 | fowl | hey dom why can't i do var foo: typ iirc this worked fine with a template |
16:08:53 | dom96 | huh? What do you mean, what error do you get? |
16:09:09 | fowl | Error: type expected |
16:10:03 | dom96 | Can I see your full code? |
16:10:44 | fowl | https://gist.github.com/f8c3c1643a796ed44f80 |
16:16:26 | dom96 | I think you do need to use a template |
16:16:36 | dom96 | And perhaps 'typedesc' instead of expr |
16:17:35 | dom96 | Cool: http://build.nimrod-code.org/docs/manual.html#identifier-construction_toc |
16:17:38 | dom96 | Today I learn. |
16:19:20 | fowl | I still get type expected |
16:20:01 | dom96 | Update your gist please |
16:20:30 | fowl | done |
16:24:00 | dom96 | I think you might need to construct the proper nodes for that variable declaration |
16:24:05 | dom96 | In the macro |
16:24:14 | dom96 | That's probably the only way |
16:24:23 | dom96 | I need to leave for ~20 minutes |
16:24:24 | dom96 | bbl |
16:24:49 | fowl | i dont want the variable there i just need it so i can iterate over the fields of the type |
16:25:38 | dom96 | sorry, I have no other ideas. |
16:25:44 | dom96 | I'll try again when I come back. |
16:25:46 | dom96 | see ya |
16:25:56 | Trixar_za | Bye dom96 |
16:26:00 | Trixar_za | I'm going too |
16:26:05 | Trixar_za | Got a show to go to |
16:26:50 | shevy | strip shows yay!!! |
16:27:13 | * | Trixar_za is now known as Trix[a]r_za |
16:36:32 | shevy | hey |
16:37:05 | shevy | I once wrote a minesweeper grid layout maker http://pastie.org/4456087 |
16:37:07 | shevy | in ruby |
16:37:27 | shevy | it produces output like: http://pastie.org/4456092 |
16:37:41 | shevy | where "m" is the mine, and the numbers indicate how many mines are nearby |
16:37:48 | shevy | now I am thinking, since it is fairly simple... I could do this in nimrod |
16:47:18 | reactormonk | shevy: iterate over field, add 1 to each neighbour except if it's a mine... ;-) |
16:47:36 | reactormonk | did you use a different algorithm? |
16:51:25 | dom96 | back |
16:52:22 | reactormonk | oh, python's fancy a < b < c is simply (< a b c) in lisp |
16:53:02 | shevy | reactormonk no idea, I didnt use any "algorithm", I just tweaked it until it worked |
16:53:52 | shevy | now that dom96 is here, I will ask him for help |
16:54:13 | reactormonk | shevy: at least have a basic idea how you do it - you could give me the ruby equiv |
16:54:39 | dom96 | shevy: ask away |
16:55:13 | shevy | reactormonk I really have absolutely no idea how I did it |
16:55:24 | shevy | I think I just wrote down the logic that is needed to fill up a 2D array |
16:56:26 | shevy | ok, have to read up on proc ... :-) |
16:57:29 | shevy | hmm |
16:57:33 | shevy | when a proc just outputs something |
16:57:35 | shevy | like: |
16:57:37 | shevy | ====== |
16:57:38 | dom96 | fowl: Are you using asyncio for anything important? :P |
16:57:49 | shevy | it needs to specify what exactly as return value? |
16:59:29 | reactormonk | shevy: the type |
16:59:48 | shevy | hmm |
17:00:11 | shevy | and when I output the ==== |
17:00:13 | shevy | what is the type? |
17:02:57 | dom96 | define 'output' |
17:03:59 | dom96 | Do you want the function to return the string "====" |
17:04:07 | dom96 | or do you want the function to output "====" to the terminal? |
17:05:28 | shevy | the second option |
17:05:44 | dom96 | In that case it doesn't return anything |
17:05:48 | dom96 | there is no return type |
17:06:57 | shevy | hmm |
17:07:40 | shevy | http://pastie.org/4456216 what is my mistake? |
17:08:51 | dom96 | You got the `proc` syntax wrong |
17:09:07 | dom96 | You only need the : if you're returning something |
17:09:13 | dom96 | And it should end with = |
17:09:15 | dom96 | so: |
17:09:17 | dom96 | proc line() = |
17:09:24 | shevy | ah |
17:09:32 | shevy | odd, I thought I need the : like in python for indent |
17:09:46 | shevy | works now |
17:10:26 | fowl | dom96: not yet, im going to use it my game though |
17:11:14 | dom96 | fowl: Alright, i'm going to change the 'event' fields so that they accept closures. |
17:11:21 | fowl | dom96: but i need the packet packing stuff first |
17:11:33 | fowl | ah ok |
17:11:47 | dom96 | So your code might break. But it shouldn't be too hard to change :P |
17:11:52 | dom96 | I might implement that for you. |
17:11:55 | dom96 | Sounds fun. |
17:11:59 | dom96 | I have no experience with that though |
17:12:13 | shevy | Error: expression 'write(stdout, i)' has no type (or is ambiguous) |
17:12:31 | shevy | http://pastie.org/4456240 |
17:12:35 | dom96 | shevy: That usually means that you are trying to use its return type. |
17:12:40 | shevy | hmm |
17:12:41 | dom96 | But it has no return type |
17:12:42 | shevy | oh |
17:12:47 | dom96 | i.e. it doesn't return anything |
17:13:02 | shevy | hmm am I returning something? |
17:13:06 | * | shevy scratches his head. |
17:13:12 | fowl | dom96: 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:17 | dom96 | shevy: echo stdout.write(i) |
17:13:30 | dom96 | shevy: You're passing the return value of stdout.write to echo. |
17:13:37 | dom96 | shevy: But stdout.write has no return value! |
17:13:42 | shevy | aha |
17:14:17 | dom96 | fowl: Ahh. Interesting. |
17:17:40 | dom96 | hrm, testing udp sockets is hard because packets are dropped... |
17:17:51 | dom96 | So 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:40 | dom96 | shevy: How's the coding going? |
19:40:35 | shevy | dom96 hmm |
19:40:46 | dom96 | I replied to your issue btw |
19:41:01 | shevy | dom96 I am looking through my local knowledge base right now, trying to improve it's overall quality |
19:41:12 | shevy | in other words, like doing boring and general maintenance "w"ork right now |
19:41:27 | shevy | was also reading a book for a while |
19:41:32 | shevy | I cant read in front of the computer :( |
19:42:56 | dom96 | I'm improving UDP socket support and it's quite boring. |
20:50:36 | apriori__ | dom96: of nimrod? |
21:04:27 | dom96 | apriori__: 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:44 | Trixar_za | I should code |
22:58:02 | Trixar_za | Been drinking, so I'm supposedly a coding genius |
22:58:54 | dom96 | Yes! |
23:01:10 | Trixar_za | Also saw Switchfoot live |
23:01:16 | Trixar_za | And the guy did something I never saw before |
23:01:36 | Trixar_za | He actually walked into the golden circle and then out the other end and went to some of the seats |
23:01:57 | Trixar_za | Sang two songs and then crowd surfed back to the stage |
23:41:28 | dom96 | http://mars.jpl.nasa.gov/msl/multimedia/images/?ImageID=4421 |
23:41:48 | dom96 | Is it just me or does the top middle part of the image look like a river? |
23:43:47 | Trixar_za | Where? |
23:44:08 | Trixar_za | Looks like distant mist/dust to me |
23:45:04 | Trixar_za | Shame we won't ever get to go in our lifetimes :( |
23:45:15 | Trixar_za | I would LOVE to see how it looks on Mars in person |
23:46:24 | dom96 | http://i.imgur.com/rn0jc.jpg |
23:46:50 | dom96 | You never know |
23:46:52 | dom96 | We just might |
23:47:04 | Trixar_za | Yeah, looks like a riverbed |
23:47:13 | dom96 | But think on the bright side, people before didn't get to see Mars AT ALL |
23:47:18 | Trixar_za | dried up one though |
23:47:27 | Trixar_za | But with dark soil that comes from one |
23:47:33 | dom96 | Yeah, but still :O |
23:49:24 | Trixar_za | True, but our children's children will probably see it in person |
23:49:30 | Trixar_za | Still kind of sucks |
23:49:44 | Trixar_za | The round trip isn't nice though |
23:50:24 | Trixar_za | Easiest way to conserve fuel would be to slingshot ourselves towards it using the earth's gravity |
23:50:33 | Trixar_za | even then it's about a 3 month trip |
23:53:01 | dom96 | yeah :( |
23:56:48 | * | JStoker quit (Excess Flood) |