00:31:15 | fowl | os there a difference in , and ; ? i see c2nim translating arguments with ; now |
00:33:47 | * | q66 quit (Quit: Leaving..) |
00:46:01 | fowl | is* |
04:47:12 | * | XAMPP quit (Ping timeout: 276 seconds) |
04:55:26 | Araq | fowl: there is no difference if you do not leave out the types ;-) |
04:55:38 | Araq | proc p(a, b; c: int) |
04:55:40 | Araq | vs. |
04:55:45 | Araq | proc 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:10 | fowl | can 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:10 | Tasser | fowl, where are the variables? |
14:58:21 | Tasser | oh, wait |
14:58:37 | fowl | its used like this CP_DefineSpaceStructProperty(int, iterations, Iterations); |
14:58:46 | Tasser | should be possible |
14:58:53 | Tasser | you can add types to templates after all |
16:17:57 | fowl | i updated the gist with what i want to use |
16:18:24 | fowl | not sure how to create the method name though, obviously `get$procname` isnt right >_> |
16:18:34 | shevy | hehe |
16:39:01 | Tasser | Twitter is currently down for <%= reason %>. |
16:39:15 | Tasser | a) fail b) they still use erb? ^^ |
16:46:26 | fowl | at least they'll be back by <%= deadline %> |
16:50:43 | Araq | fowl: yes |
16:51:17 | Araq | for identifier concatenation to work do: |
16:51:28 | Araq | `xyz templateParam` |
16:51:39 | Araq | don't use a $ as separator ... |
16:51:46 | Araq | no idea where you get that from ... |
16:52:07 | fowl | its a placeholder |
16:52:14 | fowl | so i could look at it and see what was wrong right away |
16:52:17 | Araq | and you need to make the template an {.immediate.} |
16:52:27 | fowl | so `get procName`..coo |
16:52:31 | fowl | ok |
16:53:01 | Araq | yes |
16:55:25 | Tasser | Araq, what' immediate? |
17:04:08 | Araq | Tasser: read the docs |
17:04:42 | Araq | http://build.nimrod-code.org/docs/manual.html#ordinary-vs-immediate-templates |
17:19:39 | * | zahary joined #nimrod |
18:58:05 | dom96 | hello all |
18:58:16 | * | zahary quit (Quit: Leaving.) |
18:59:11 | Araq | hi dom96 |
19:02:37 | dom96 | what's up? |
19:03:02 | Araq | adrianv is doing great bug hunting |
19:03:20 | Araq | but I'd prefer to implement new features instead ;-) |
19:03:51 | dom96 | hehe |
19:04:00 | * | Reisen_ joined #nimrod |
19:06:30 | * | Reisen quit (Ping timeout: 276 seconds) |
19:07:37 | shevy | hehe |
19:08:06 | Araq | seriously |
19:08:19 | dom96 | HEHE |
19:08:21 | dom96 | :P |
19:08:34 | Araq | whenever I take a shortcut like not testing/caring about generic 'ref object' |
19:08:53 | dom96 | AdrianV sure likes to test all the new stuff |
19:09:03 | Araq | somebody comes up with a bug report ... |
19:11:03 | Araq | adrianv tests the heck out of everything, not only the new stuff |
19:14:29 | dom96 | Well, #179 I think you should leave until the end. |
19:14:36 | dom96 | I mean it's not that important. |
19:14:41 | dom96 | People can still use the old syntax |
19:15:07 | Araq | yeah tbh the github bug tracker doesn't work |
19:15:08 | shevy | old |
19:15:17 | shevy | I want new and shiny |
19:15:42 | dom96 | shevy: Stop using Python or whatever it is that you use then and start working on Nimrod :P |
19:16:04 | Araq | it's ruby afaik |
19:16:18 | shevy | yeah ruby |
19:16:32 | * | Reisen_ quit (Ping timeout: 252 seconds) |
19:16:37 | shevy | I fixed a book in my cookbooks project |
19:16:42 | shevy | ahm |
19:16:43 | shevy | bug |
19:22:27 | * | Reisen_ joined #nimrod |
19:22:45 | Araq | that's good |
19:22:57 | * | Araq shall call his bugs 'books' now too |
19:23:22 | shevy | yeah |
19:23:36 | shevy | now I will add the feature "install .gem files" |
19:23:53 | shevy | if nimrod would have such an add-on mechanism too, I would add it as well! |
19:25:06 | * | zahary joined #nimrod |
20:07:07 | fowl | hmm |
20:07:23 | fowl | if i use defGetr and defSetr they will align with defProp |
20:07:38 | fowl | what do yall think(: |
20:07:52 | Araq | I think properties are stupid |
20:08:16 | Araq | nimrod uses the same syntax so that you *don't* have to introduce them in the first place ... |
20:13:33 | fowl | what do you mean |
20:14:47 | Araq | I mean: just use field access and introduce a property when you need to do something non trivial in them |
20:17:44 | fowl | some of the properties are exported already |
20:18:45 | Araq | *shrug* whatever |
20:18:59 | Araq | I export fields too |
20:20:45 | fowl | i have for example defGetter(PBody, i, cpFloat, Moment) def setMoment(..): cpfloat {.importc: "cpBodySetMoment".} |
20:20:53 | fowl | s/def/proc |
20:21:25 | Araq | oh I see you're importing from C |
20:21:32 | Araq | that's different then |
20:22:44 | fowl | yes trying the chipmunk wrapper again now that i know more about it |
20:25:41 | Araq | you're already using c2nim, right? |
20:25:56 | fowl | yea |
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:37 | Trixar_za | Wow, AdrianV and his bug reports |
21:52:07 | Araq | he loves to stress test apparently :-) |
21:52:32 | Trixar_za | I just logged in to Github and there they were in my side panel :P |
21:52:34 | Araq | or he has some pretty weird programming projects XD |
21:54:18 | Araq | like ... couting from low(int) to high(int) ... |
21:55:01 | Trixar_za | Wouldn't that take a while? |
21:55:16 | Araq | for 32 bit it's quite fast |
21:55:27 | Araq | a few seconds iirc |
21:57:50 | Trixar_za | I once wrote a program to calculate something in Pascal using a loop and let it run on a 133Mhz laptop |
21:57:54 | Trixar_za | Took a week |
21:57:55 | Trixar_za | :P |
21:58:10 | Trixar_za | Point of the story is, it depends on the processor I guess |
21:58:45 | Trixar_za | Also the stuff you do while bored and 15 |
21:59:01 | Araq | yay, at least there is a point of the story |
21:59:09 | Araq | :P |
21:59:25 | Trixar_za | Well if I was drunk, then the stories would be more interesting |
22:00:04 | Araq | your stories are - er - yeah |
22:00:12 | Araq | let's call it 'interesting' :D |
22:05:22 | Trixar_za | My best stories I can only remember drunk |
22:05:31 | Trixar_za | Since 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:20 | Trixar_za | Also for some reason, each of those stories features me getting wet somehow |
22:14:27 | Trixar_za | Normally by ending up in a pool |
22:14:41 | Trixar_za | But I did once end up in a shallow fountain |
22:19:21 | Trixar_za | Anyway, let me answer this email and go sleep |
22:19:32 | dom96 | I wish I had more drunk stories. |
22:19:36 | Trixar_za | I hate having to justify why I like something |
22:19:39 | * | dom96 is still too young :P |
22:19:44 | Trixar_za | Nimrod no less :/ |
22:21:06 | Araq | Trixar_za: it gets better with every release *cough* |
22:22:14 | dom96 | Trixar_za: How's adoption of Nimrod for slitaz going? |
22:22:42 | Trixar_za | Nah, 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:44 | Trixar_za | Stuff like that |
22:23:16 | Trixar_za | Oh 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:46 | dom96 | hehe. I was always planning on writing an IRC module ;) |
22:24:04 | Trixar_za | dom96: It's like trying to convience old scientists (to paraphrase the father of Quantum Physics) |
22:24:48 | dom96 | I need to get babel working to encourage people to write more libraries for Nimrod. |
22:28:47 | dom96 | well I should sleep. Good night. |
22:28:54 | Trixar_za | Actually I can't find the quote, but I'm sure it was either Planck or Heisenberg that said it |
22:29:19 | Trixar_za | The only way for a new theory to be accepted is to wait for all the old scientist to die |
22:29:20 | Trixar_za | :P |
22:29:41 | Trixar_za | Same dilemma. We're debating the thing to death |
22:30:15 | Araq | don't debate then, write some code instead |
22:30:24 | Trixar_za | Goodnite dom96 |
22:30:50 | Trixar_za | Araq: Ah, good point. Like Linus says: "Show me the code!" |
22:31:44 | Araq | you know, you could also improve the docs of the stdlib and make pull requests |
22:32:01 | Araq | instead of telling me I document like in Java :P |
22:32:07 | Araq | which is very insulting btw |
22:32:20 | Araq | as Java's docs are incredibly poor IMO |
22:35:52 | Trixar_za | Actually, you document like Python. And Perl for that matter. |
22:36:00 | Trixar_za | (which is probably more insulting) |
22:36:04 | * | Trixar_za runs |
22:36:19 | Araq | dunno about perl's docs |
22:36:29 | Araq | but python's docs are quite poor too |
22:36:37 | Araq | they are often overly verbose |
22:36:56 | Trixar_za | perldoc (the command) is a mix of sparce and verbose |
22:37:04 | Trixar_za | Depending on which wrote the docs |
22:37:30 | Trixar_za | But many have the expectation that the person should know how to use the library involved |
22:38:10 | Trixar_za | If 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:25 | Trixar_za | Not that I ever mind the hard way |
22:38:26 | Trixar_za | :p |
22:39:47 | Araq | the docs could use more examples, but often they already do |
22:41:30 | Trixar_za | I think I would like to see... a cookbook like project for Nimrod, you know? |
22:41:43 | Trixar_za | Where people can share working snippets of code |
22:42:10 | Trixar_za | I learn better by reading working code |
22:42:54 | Araq | rosetta code? |
22:43:50 | Trixar_za | So 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:09 | Trixar_za | rosetta code is great, but we still have nearly 400 of those examples to do |
22:47:02 | dom96 | Trixar_za: What examples would you like to see? |
22:48:31 | Trixar_za | dom96: 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:43 | Trixar_za | The thing is, it's driven by normal users rather than experts. |
22:49:31 | dom96 | I know what you mean by "cookbook" I'm just wondering whether there are any specific examples *you* would like to see. |
22:49:38 | dom96 | Because I would be willing to create them :) |
22:49:39 | shevy | a wiki! |
22:49:43 | shevy | a pastebin for nimrod! |
22:49:52 | shevy | a comment functionality |
22:50:01 | * | shevy throws in features without code |
22:50:02 | Trixar_za | Oh god |
22:50:05 | shevy | haha |
22:50:11 | dom96 | shevy: Use this to make all of these: https://github.com/dom96/jester :P |
22:50:19 | Trixar_za | No, just because it reminds me of something |
22:50:35 | shevy | oh |
22:50:52 | dom96 | Trixar_za: hrm? |
22:50:52 | shevy | gem install jester |
22:50:55 | shevy | nimrod install jester |
22:51:06 | Trixar_za | ZeroBin |
22:51:11 | dom96 | shevy: hehe. We don't have a gems type thing yet |
22:51:12 | Trixar_za | It's a pastebin with comments |
22:51:13 | Trixar_za | :P |
22:51:22 | shevy | dom96 that reminds me |
22:51:33 | shevy | is there some site of wiki or something where one could keep a list of feature suggestions? |
22:51:40 | dom96 | Trixar_za: Well, are there any examples you would like to see? |
22:52:02 | dom96 | shevy: https://github.com/Araq/Nimrod/wiki |
22:52:06 | shevy | ok |
22:52:30 | Trixar_za | dom96: None that I can think of at the moment :P |
22:52:41 | dom96 | Maybe 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:46 | Trixar_za | But like when I wanted to write the IRC Bot |
22:52:49 | Trixar_za | I googled it |
22:53:00 | Trixar_za | Found 2 examples and learned how from them |
22:53:08 | dom96 | wow, really? |
22:53:14 | dom96 | You found 2 nimrod examples? |
22:53:56 | dom96 | I wouldn't have thought that Google would be useful yet for finding nimrod code examples. |
22:54:26 | shevy | cool |
22:54:47 | dom96 | Trixar_za: There is example code in the docs of irc.nim |
22:55:06 | dom96 | It's not much, but you should be able to figure out what to do next from that :P |
22:55:08 | Trixar_za | This was what? a year ago? |
22:55:12 | Trixar_za | Before you wrote irc.nim |
22:55:13 | Trixar_za | :P |
22:55:17 | Trixar_za | And I joined github |
22:55:30 | dom96 | I see |
22:55:49 | Trixar_za | And yeah, this was before I wrote anything in Nimrod |
22:56:21 | Trixar_za | I 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:38 | Trixar_za | And not only did I find one example, but two on how to make an IRC Bot in Nimrod |
22:56:51 | Trixar_za | then I wrote one myself and it worked pretty well |
22:57:03 | dom96 | The first thing I asked Araq on the old Nimrod forum was: "Does Nimrod have a sockets module?" |
22:57:04 | Trixar_za | It was like 25 lines of code. I was impressed |
22:57:53 | Trixar_za | Next I wrote a simple IRC client and Mud client. Both were simple enough to do and I even used threads |
22:58:03 | dom96 | Cool, both worked? |
22:58:10 | Trixar_za | Yeah |
22:58:15 | * | dom96 is still puzzled as to why you didn't put them on github :( |
22:58:21 | Araq | and I was busy with sockets back then he he |
22:58:37 | Araq | in fact, I still suck at them ;-) |
22:58:49 | Trixar_za | lol, nevermind, I suck at them too :P |
22:58:59 | Araq | sockets just don't make sense ... |
22:59:10 | Trixar_za | I only recently learned how to use asynchronous sockets |
22:59:18 | Araq | open/recv/send/close, gosh ... how hard is that? |
22:59:27 | dom96 | Working on Nimrod's sockets module certainly helped me understand sockets :P |
22:59:36 | Araq | that's what the api should look like ... |
22:59:47 | Araq | but instead we got a horrible mess |
22:59:56 | dom96 | Araq: I think they had that at the start, but then they started adding more features in an incorrect way. |
22:59:56 | shevy | a mud client? |
23:00:28 | shevy | hehe |
23:00:35 | shevy | sounds like how things tend to evolve! |
23:00:43 | dom96 | But as I always say: It could always be worse :P |
23:01:00 | dom96 | I'm quite happy now that my asyncio test succeeds. |
23:01:19 | dom96 | I will soon write more sockets tests and Nimrod will have the best sockets implementation in the world! |
23:01:37 | dom96 | We even have SSL now :D |
23:01:51 | dom96 | Which was a very big pain in the ass to implement. |
23:02:01 | Araq | tested on windows? :P |
23:02:13 | shevy | cool |
23:02:20 | shevy | I could use SSL with an IRC client? |
23:02:23 | shevy | written in nimrod |
23:02:27 | dom96 | Araq: haha. |
23:03:28 | dom96 | shevy: yep |
23:03:55 | dom96 | The usage is basically: |
23:04:01 | dom96 | var sock = socket() |
23:04:09 | dom96 | var ctx = newContext() |
23:04:21 | dom96 | ctx.wrapSocket(sock) |
23:05:05 | dom96 | I just realised I forgot to document the newContext function heh |
23:06:43 | dom96 | Trixar_za: But yeah, let me know if you come up with any examples that you would like to see. |
23:06:48 | dom96 | I am now going to sleep for real :P |
23:06:49 | dom96 | Bye. |
23:06:57 | Araq | me too |
23:06:57 | Trixar_za | Night dom96 |
23:07:00 | Trixar_za | For realz |
23:07:01 | Araq | good night |
23:07:03 | Trixar_za | You too Araq |
23:08:47 | Trixar_za | http://en.wikipedia.org/wiki/File:Condylura.jpg |
23:08:51 | Trixar_za | Holy crap that's ugly |