<<26-07-2012>>

00:31:15fowlos there a difference in , and ; ? i see c2nim translating arguments with ; now
00:33:47*q66 quit (Quit: Leaving..)
00:46:01fowlis*
04:47:12*XAMPP quit (Ping timeout: 276 seconds)
04:55:26Araqfowl: there is no difference if you do not leave out the types ;-)
04:55:38Araqproc p(a, b; c: int)
04:55:40Araqvs.
04:55:45Araqproc p(a, b, c: int)
09:11:41*XAMPP joined #nimrod
10:02:33*q66 joined #nimrod
10:32:07*fowl quit (Ping timeout: 248 seconds)
10:36:14*q66 quit (Remote host closed the connection)
10:36:38*q66 joined #nimrod
11:38:28*Trix[a]r_za is now known as Trixar_za
12:12:41*Araq_ joined #nimrod
12:30:39*Araq_ quit (Quit: ChatZilla 0.9.88.2 [Firefox 14.0.1/20120713134347])
12:47:08*fowl joined #nimrod
13:29:57*Trixar_za is now known as Trix[a]r_za
14:54:27*shevy2 joined #nimrod
14:55:10fowlcan you create templates to do this: https://gist.github.com/ac6fef47b5ebcf1a619f ?
14:58:02*shevy quit (Ping timeout: 252 seconds)
14:58:07*shevy2 is now known as shevy
14:58:10Tasserfowl, where are the variables?
14:58:21Tasseroh, wait
14:58:37fowlits used like this CP_DefineSpaceStructProperty(int, iterations, Iterations);
14:58:46Tassershould be possible
14:58:53Tasseryou can add types to templates after all
16:17:57fowli updated the gist with what i want to use
16:18:24fowlnot sure how to create the method name though, obviously `get$procname` isnt right >_>
16:18:34shevyhehe
16:39:01TasserTwitter is currently down for <%= reason %>.
16:39:15Tassera) fail b) they still use erb? ^^
16:46:26fowlat least they'll be back by <%= deadline %>
16:50:43Araqfowl: yes
16:51:17Araqfor identifier concatenation to work do:
16:51:28Araq`xyz templateParam`
16:51:39Araqdon't use a $ as separator ...
16:51:46Araqno idea where you get that from ...
16:52:07fowlits a placeholder
16:52:14fowlso i could look at it and see what was wrong right away
16:52:17Araqand you need to make the template an {.immediate.}
16:52:27fowlso `get procName`..coo
16:52:31fowlok
16:53:01Araqyes
16:55:25TasserAraq, what' immediate?
17:04:08AraqTasser: read the docs
17:04:42Araqhttp://build.nimrod-code.org/docs/manual.html#ordinary-vs-immediate-templates
17:19:39*zahary joined #nimrod
18:58:05dom96hello all
18:58:16*zahary quit (Quit: Leaving.)
18:59:11Araqhi dom96
19:02:37dom96what's up?
19:03:02Araqadrianv is doing great bug hunting
19:03:20Araqbut I'd prefer to implement new features instead ;-)
19:03:51dom96hehe
19:04:00*Reisen_ joined #nimrod
19:06:30*Reisen quit (Ping timeout: 276 seconds)
19:07:37shevyhehe
19:08:06Araqseriously
19:08:19dom96HEHE
19:08:21dom96:P
19:08:34Araqwhenever I take a shortcut like not testing/caring about generic 'ref object'
19:08:53dom96AdrianV sure likes to test all the new stuff
19:09:03Araqsomebody comes up with a bug report ...
19:11:03Araqadrianv tests the heck out of everything, not only the new stuff
19:14:29dom96Well, #179 I think you should leave until the end.
19:14:36dom96I mean it's not that important.
19:14:41dom96People can still use the old syntax
19:15:07Araqyeah tbh the github bug tracker doesn't work
19:15:08shevyold
19:15:17shevyI want new and shiny
19:15:42dom96shevy: Stop using Python or whatever it is that you use then and start working on Nimrod :P
19:16:04Araqit's ruby afaik
19:16:18shevyyeah ruby
19:16:32*Reisen_ quit (Ping timeout: 252 seconds)
19:16:37shevyI fixed a book in my cookbooks project
19:16:42shevyahm
19:16:43shevybug
19:22:27*Reisen_ joined #nimrod
19:22:45Araqthat's good
19:22:57*Araq shall call his bugs 'books' now too
19:23:22shevyyeah
19:23:36shevynow I will add the feature "install .gem files"
19:23:53shevyif nimrod would have such an add-on mechanism too, I would add it as well!
19:25:06*zahary joined #nimrod
20:07:07fowlhmm
20:07:23fowlif i use defGetr and defSetr they will align with defProp
20:07:38fowlwhat do yall think(:
20:07:52AraqI think properties are stupid
20:08:16Araqnimrod uses the same syntax so that you *don't* have to introduce them in the first place ...
20:13:33fowlwhat do you mean
20:14:47AraqI mean: just use field access and introduce a property when you need to do something non trivial in them
20:17:44fowlsome of the properties are exported already
20:18:45Araq*shrug* whatever
20:18:59AraqI export fields too
20:20:45fowli have for example defGetter(PBody, i, cpFloat, Moment) def setMoment(..): cpfloat {.importc: "cpBodySetMoment".}
20:20:53fowls/def/proc
20:21:25Araqoh I see you're importing from C
20:21:32Araqthat's different then
20:22:44fowlyes trying the chipmunk wrapper again now that i know more about it
20:25:41Araqyou're already using c2nim, right?
20:25:56fowlyea
20:41:53*Reisen_ quit (Ping timeout: 244 seconds)
20:43:58*Reisen_ joined #nimrod
20:55:10*Reisen_ quit (Ping timeout: 252 seconds)
20:58:17*Reisen_ joined #nimrod
21:00:09*Reisen_ is now known as Reisen
21:07:40*zahary quit (Quit: Leaving.)
21:22:27*zahary joined #nimrod
21:46:52*Trix[a]r_za is now known as Trixar_za
21:51:37Trixar_zaWow, AdrianV and his bug reports
21:52:07Araqhe loves to stress test apparently :-)
21:52:32Trixar_zaI just logged in to Github and there they were in my side panel :P
21:52:34Araqor he has some pretty weird programming projects XD
21:54:18Araqlike ... couting from low(int) to high(int) ...
21:55:01Trixar_zaWouldn't that take a while?
21:55:16Araqfor 32 bit it's quite fast
21:55:27Araqa few seconds iirc
21:57:50Trixar_zaI once wrote a program to calculate something in Pascal using a loop and let it run on a 133Mhz laptop
21:57:54Trixar_zaTook a week
21:57:55Trixar_za:P
21:58:10Trixar_zaPoint of the story is, it depends on the processor I guess
21:58:45Trixar_zaAlso the stuff you do while bored and 15
21:59:01Araqyay, at least there is a point of the story
21:59:09Araq:P
21:59:25Trixar_zaWell if I was drunk, then the stories would be more interesting
22:00:04Araqyour stories are - er - yeah
22:00:12Araqlet's call it 'interesting' :D
22:05:22Trixar_zaMy best stories I can only remember drunk
22:05:31Trixar_zaSince it happened while I was blackout drunk
22:12:08*Trixar_za is now known as Trix[a]r_za
22:13:51*Trix[a]r_za is now known as Trixar_za
22:14:20Trixar_zaAlso for some reason, each of those stories features me getting wet somehow
22:14:27Trixar_zaNormally by ending up in a pool
22:14:41Trixar_zaBut I did once end up in a shallow fountain
22:19:21Trixar_zaAnyway, let me answer this email and go sleep
22:19:32dom96I wish I had more drunk stories.
22:19:36Trixar_zaI hate having to justify why I like something
22:19:39*dom96 is still too young :P
22:19:44Trixar_zaNimrod no less :/
22:21:06AraqTrixar_za: it gets better with every release *cough*
22:22:14dom96Trixar_za: How's adoption of Nimrod for slitaz going?
22:22:42Trixar_zaNah, it's just normal tactics to try and get their way. I'm also the wrong hothead to ask. But I'll start with an example. Like how I started using Nimrod, met you guys, how easy it was to make a simple IRC bot in less lines that I did it in Python
22:22:44Trixar_zaStuff like that
22:23:16Trixar_zaOh and how dom96 then got interested in IRC, created the irc library and how it's now even easier to write an IRC bot :P
22:23:46dom96hehe. I was always planning on writing an IRC module ;)
22:24:04Trixar_zadom96: It's like trying to convience old scientists (to paraphrase the father of Quantum Physics)
22:24:48dom96I need to get babel working to encourage people to write more libraries for Nimrod.
22:28:47dom96well I should sleep. Good night.
22:28:54Trixar_zaActually I can't find the quote, but I'm sure it was either Planck or Heisenberg that said it
22:29:19Trixar_zaThe only way for a new theory to be accepted is to wait for all the old scientist to die
22:29:20Trixar_za:P
22:29:41Trixar_zaSame dilemma. We're debating the thing to death
22:30:15Araqdon't debate then, write some code instead
22:30:24Trixar_zaGoodnite dom96
22:30:50Trixar_zaAraq: Ah, good point. Like Linus says: "Show me the code!"
22:31:44Araqyou know, you could also improve the docs of the stdlib and make pull requests
22:32:01Araqinstead of telling me I document like in Java :P
22:32:07Araqwhich is very insulting btw
22:32:20Araqas Java's docs are incredibly poor IMO
22:35:52Trixar_zaActually, you document like Python. And Perl for that matter.
22:36:00Trixar_za(which is probably more insulting)
22:36:04*Trixar_za runs
22:36:19Araqdunno about perl's docs
22:36:29Araqbut python's docs are quite poor too
22:36:37Araqthey are often overly verbose
22:36:56Trixar_zaperldoc (the command) is a mix of sparce and verbose
22:37:04Trixar_zaDepending on which wrote the docs
22:37:30Trixar_zaBut many have the expectation that the person should know how to use the library involved
22:38:10Trixar_zaIf you do know how it works, then yes the documentation in question is helpful. If you don't, you have to figure it out the hard way.
22:38:25Trixar_zaNot that I ever mind the hard way
22:38:26Trixar_za:p
22:39:47Araqthe docs could use more examples, but often they already do
22:41:30Trixar_zaI think I would like to see... a cookbook like project for Nimrod, you know?
22:41:43Trixar_zaWhere people can share working snippets of code
22:42:10Trixar_zaI learn better by reading working code
22:42:54Araqrosetta code?
22:43:50Trixar_zaSo I don't really think it's the quality of documentation or the language that's at question most of the time. I just think people need more working snippets to study. Well I do in any case.
22:44:09Trixar_zarosetta code is great, but we still have nearly 400 of those examples to do
22:47:02dom96Trixar_za: What examples would you like to see?
22:48:31Trixar_zadom96: It's weird to describe the idea. For example, python has a cookbook site where you can share your code, mostly snippets, for doing something in Python, even if it's simplistic.
22:48:43Trixar_zaThe thing is, it's driven by normal users rather than experts.
22:49:31dom96I know what you mean by "cookbook" I'm just wondering whether there are any specific examples *you* would like to see.
22:49:38dom96Because I would be willing to create them :)
22:49:39shevya wiki!
22:49:43shevya pastebin for nimrod!
22:49:52shevya comment functionality
22:50:01*shevy throws in features without code
22:50:02Trixar_zaOh god
22:50:05shevyhaha
22:50:11dom96shevy: Use this to make all of these: https://github.com/dom96/jester :P
22:50:19Trixar_zaNo, just because it reminds me of something
22:50:35shevyoh
22:50:52dom96Trixar_za: hrm?
22:50:52shevygem install jester
22:50:55shevynimrod install jester
22:51:06Trixar_zaZeroBin
22:51:11dom96shevy: hehe. We don't have a gems type thing yet
22:51:12Trixar_zaIt's a pastebin with comments
22:51:13Trixar_za:P
22:51:22shevydom96 that reminds me
22:51:33shevyis there some site of wiki or something where one could keep a list of feature suggestions?
22:51:40dom96Trixar_za: Well, are there any examples you would like to see?
22:52:02dom96shevy: https://github.com/Araq/Nimrod/wiki
22:52:06shevyok
22:52:30Trixar_zadom96: None that I can think of at the moment :P
22:52:41dom96Maybe raising an issue would be better. But then again Araq likes to keep the issue count low so it might irritate him :P
22:52:46Trixar_zaBut like when I wanted to write the IRC Bot
22:52:49Trixar_zaI googled it
22:53:00Trixar_zaFound 2 examples and learned how from them
22:53:08dom96wow, really?
22:53:14dom96You found 2 nimrod examples?
22:53:56dom96I wouldn't have thought that Google would be useful yet for finding nimrod code examples.
22:54:26shevycool
22:54:47dom96Trixar_za: There is example code in the docs of irc.nim
22:55:06dom96It's not much, but you should be able to figure out what to do next from that :P
22:55:08Trixar_zaThis was what? a year ago?
22:55:12Trixar_zaBefore you wrote irc.nim
22:55:13Trixar_za:P
22:55:17Trixar_zaAnd I joined github
22:55:30dom96I see
22:55:49Trixar_zaAnd yeah, this was before I wrote anything in Nimrod
22:56:21Trixar_zaI normally look at a Language's ability to write a simple IRC Bot as the test if the Language is functional enough for my needs or not
22:56:38Trixar_zaAnd not only did I find one example, but two on how to make an IRC Bot in Nimrod
22:56:51Trixar_zathen I wrote one myself and it worked pretty well
22:57:03dom96The first thing I asked Araq on the old Nimrod forum was: "Does Nimrod have a sockets module?"
22:57:04Trixar_zaIt was like 25 lines of code. I was impressed
22:57:53Trixar_zaNext I wrote a simple IRC client and Mud client. Both were simple enough to do and I even used threads
22:58:03dom96Cool, both worked?
22:58:10Trixar_zaYeah
22:58:15*dom96 is still puzzled as to why you didn't put them on github :(
22:58:21Araqand I was busy with sockets back then he he
22:58:37Araqin fact, I still suck at them ;-)
22:58:49Trixar_zalol, nevermind, I suck at them too :P
22:58:59Araqsockets just don't make sense ...
22:59:10Trixar_zaI only recently learned how to use asynchronous sockets
22:59:18Araqopen/recv/send/close, gosh ... how hard is that?
22:59:27dom96Working on Nimrod's sockets module certainly helped me understand sockets :P
22:59:36Araqthat's what the api should look like ...
22:59:47Araqbut instead we got a horrible mess
22:59:56dom96Araq: I think they had that at the start, but then they started adding more features in an incorrect way.
22:59:56shevya mud client?
23:00:28shevyhehe
23:00:35shevysounds like how things tend to evolve!
23:00:43dom96But as I always say: It could always be worse :P
23:01:00dom96I'm quite happy now that my asyncio test succeeds.
23:01:19dom96I will soon write more sockets tests and Nimrod will have the best sockets implementation in the world!
23:01:37dom96We even have SSL now :D
23:01:51dom96Which was a very big pain in the ass to implement.
23:02:01Araqtested on windows? :P
23:02:13shevycool
23:02:20shevyI could use SSL with an IRC client?
23:02:23shevywritten in nimrod
23:02:27dom96Araq: haha.
23:03:28dom96shevy: yep
23:03:55dom96The usage is basically:
23:04:01dom96var sock = socket()
23:04:09dom96var ctx = newContext()
23:04:21dom96ctx.wrapSocket(sock)
23:05:05dom96I just realised I forgot to document the newContext function heh
23:06:43dom96Trixar_za: But yeah, let me know if you come up with any examples that you would like to see.
23:06:48dom96I am now going to sleep for real :P
23:06:49dom96Bye.
23:06:57Araqme too
23:06:57Trixar_zaNight dom96
23:07:00Trixar_zaFor realz
23:07:01Araqgood night
23:07:03Trixar_zaYou too Araq
23:08:47Trixar_zahttp://en.wikipedia.org/wiki/File:Condylura.jpg
23:08:51Trixar_zaHoly crap that's ugly