<<25-12-2012>>

12:25:44friggVERSION
12:25:49*NimBot joined #nimrod
12:27:19*FreeArtMan joined #nimrod
12:45:55*FreeArtMan quit (Ping timeout: 260 seconds)
13:51:06dom96Araq: It seems readFile segfaults when trying to read a directory
13:59:02NimBot_nimrod-code/Aporia fb3030d Dominik Picheta [+0 ±4 -0]: Replaced most error dialogs with a message in the status bar.
13:59:02NimBot_nimrod-code/Aporia 5a307b2 Dominik Picheta [+0 ±1 -0]: Sexier unsaved file close confirmation dialog.
13:59:02NimBot_nimrod-code/Aporia 67b2a0b Dominik Picheta [+0 ±1 -0]: Fixed a crash when navigating to an error outside the bounds of the... 2 more lines
13:59:04NimBot_nimrod-code/Aporia 8bd0179 Dominik Picheta [+0 ±2 -0]: Added a shortcut to open Aporia's config file in Aporia.
15:22:26*fowl joined #nimrod
19:48:36*fowl quit (Ping timeout: 256 seconds)
20:06:19*gradha joined #nimrod
21:58:57reactormonkAraq, does the cwd matter for nimrod js ?
21:59:06reactormonk... err, wait it does, for nimcache, doesn't it?
22:00:13dom96You should be able to compile into js from within any directory I think.
22:00:21dom96Not sure where nimcache will go though
22:05:54reactormonkdom96, the js is in the nimcache
22:06:10dom96yeah
22:08:10*rking quit (Quit: WeeChat 0.4.0-dev)
22:18:04reactormonkelisp: head -> table http://pastie.org/private/6b4ww0glyxfrrfojo2gdg
22:18:15reactormonklet's say it works.
22:18:40reactormonkobserve the several lets ^^
22:26:09*rking joined #nimrod
22:27:39Araqreactormonk: what's the problem? you don't know about --nimcache?
22:29:05dom96yes! That's what we need. We need to be able to extend Aporia using Nimrod. Araq, finish that VM already.
22:29:28Araqwhat?
22:29:41Araq--nimcache:PATH_HERE already exists ...
22:29:58dom96what?
22:31:00Araqyou can do: nimrod js --nimcache:ugh myproject.nim
22:31:19Araqand the js should go into ugh/myproject.nim
22:31:30Araqer, ugh/myproject.js
22:31:54*dom96 isn't sure if the "what?" was at him
22:32:00Araqdunno what you mean with "That's what we need"
22:32:07Araqoh I see ...
22:32:14dom96I was talking about elisp
22:32:19Araqyeah got it
22:41:58Araqhi gradha
22:45:02dom96Araq: Did you see my comment about readFile segfaulting when trying to read a directory? :P
22:45:20Araq*shrug*
22:45:26AraqI saw it
22:46:14dom96Well that's too bad: Error: cannot instantiate: 'initTable[type (win.tempStuff.plMenuItems)]'
22:47:03Araqugh
22:47:09Araqbug report
22:47:21dom96ok
22:48:54dom96Another thing, should the following work? https://gist.github.com/4bc7139c975af0087f49
22:49:38Araqno?
22:50:50dom96I was thinking that it should be able to pick tables.TTable because it's the one which takes two generic params.
22:51:56Araqthere is no overloading for types
22:53:41dom96Now that I got it to a short example I can see why it doesn't work, and perhaps shouldn't: https://gist.github.com/39abded1eb643808519c
22:53:58dom96initTable[type(t.field)]() -> initTable[TTable[string, string]]()
22:55:08Araqthat should work
22:55:23Araqthough it's meh code :P
22:55:35Araqtype TMyMap = TTable[string, string]
22:55:46Araq field: TMyMap etc.
22:55:48gradhahi Araq
22:56:14dom96you want an issue for this then?
22:57:03Araqdom96: yes
22:57:15Araqgradha: read my note about the improvements to tut1?
22:57:34gradhayes, you are concerned about the tutorial... improving?
22:58:04gradhachanged the example to something less date related
22:58:56AraqI don't mind the tutorial to improve
22:59:31gradhabut preferably without growing in length, right?
23:00:01Araqwithout growing too much in length, yes
23:00:45Araqmaybe we need a max number of pages
23:00:57Araqthat the tut shouldn't exceed
23:01:49gradhaI really find it odd, never heard of a tutorial size limit before, is it because you want to print out the docs as pdf?
23:03:19Araqwell I'm torn :P
23:03:37Araqdunno what the tut's point is ;-)
23:03:46Araqthe manual is the real documentation
23:04:09Araqand instead of a "tutorial" I would in fact prefer a couple of cheat sheets
23:05:14Araqso the idea is/was that the tuts cover all language features so you know they exist and then use the index or the manual to deepen your knowledge
23:05:18dom96I think the tutorial sections should be numbered.
23:05:35Araqdom96: and what would that solve?
23:06:13Araqhowever, the tuts don't cover everything anymore and it's hard to keep them up to date
23:06:29dom96It would be easier to understand I think
23:06:33Araqas I said, the particular patch is perfectly fine
23:06:44Araqbut some decision needs to be made
23:07:20dom96It's hard to see when a completely new section starts by just looking at the size of the headers.
23:08:26Araqdom96: produce a PDF from the tut then --- problem solved
23:08:48dom96yeah. I'm sure every beginner will be glad to do that.
23:09:10Araqhey, we can easily do: tutorial (html | pdf)
23:09:14Araqfor the website
23:09:48dom96or we can improve the html
23:09:51AraqI prefer the HTML as I never print out anything to save paper :P
23:10:32Araqwhy is it so important if it's a section or a subsection?
23:10:40Araqwhom does that really help?
23:11:09dom96what's the point in having sections and subsections at all then?
23:12:21AraqI dunno :P
23:12:37gradhaprogrammers love hierarchies, unlike plain people
23:12:48dom96It's more organised and is easier to read IMO
23:14:37Araq8.1 If statement
23:14:39Araqvs.
23:14:42AraqIf statement
23:14:45Araqcome on!
23:14:50Araqnobody gives a shit
23:16:21Araqin fact most people don't read the text between the code examples, I'm sure
23:16:31gradhawhen somebody is bitching about not finding something in the docs its easier to refere them through numbered sections
23:16:49Araqsection 8.1 of the tutorial
23:17:11Araqand then pray nobody will insert a section between 7 and 8
23:17:19Araqbecause then it's outdated
23:17:38Araqand it's then section 9.1
23:17:48Araqthese numbers have no meaning :P
23:18:04*fowl joined #nimrod
23:18:50Araqbtw currently we have stable links like: http://nimrod-code.org/tut1.html#procedures
23:19:10Araqwhich unlike the index IDs are persistent
23:19:31dom96until someone changes the section name :P
23:20:02gradhamaybe the solution then is to never ever update the docs?
23:20:25Araqsection names are much less arbitrary than section numbers
23:22:31Araqbtw thanks for hickjacking the topic, dom96
23:22:40Araq*hijacking
23:22:58dom96fine, i'll shut up
23:24:53Araqso what's the tut's purpose?
23:27:18gradhaa tutorial is a presumably easy to digest documentation meant for new people to the language
23:27:44Araqso we should go with python's way then?
23:28:19Araqpython's "tutorial" is not short either
23:33:43gradhait also depends who you are aiming at: you can do a tutorial for complete begginers to programming, or for begginers coming from other languages
23:34:19gradhapython also has a "gotchas for programmers of other languages" I believe
23:34:35Araqwell exactly
23:34:54gradhaso who are you targetting with nimrod?
23:35:08gradhawho are you going to obliterate from the programming landscape through superior excellence?
23:37:42gradhabtw, the nested array thing was because I started programming a tetris clone, is there one already made?
23:38:02AraqI don't think so :-)
23:41:01Araqgradha: we're targetting people who know what they're doing and want to use a compiled systems programming language for scripting :P
23:41:35gradhathat would mean python/perl/ruby folks?
23:42:19Araqthe folks who don't want to use Python+C for the speed critical parts
23:42:43Araqthe folks who got that it means an annoying bridge between 2 completely different data models
23:43:38gradhamaybe the tutorial should have then a section about creating/using C/C++ wrappers
23:45:04gradhaor at least a section on interaction with external programs, setting variable environments, capturing output and return values, etc
23:45:41Araqyeah
23:47:49Araqnot so sure about the "creating C/C++ wrappers" as the plan is that most stuff is already wrapped
23:48:32gradhamaybe that could be written as an "additional tutorial" or howto, for people coming from their C/C++ world and willing to bring along their existing libraries
23:48:49Araqyep
23:49:03gradhaok, at least there's a direction then
23:49:28gradhaI'll keep that in mind for future possible improvements
23:57:14Araqok
23:57:31Araqor maybe we need a "Nimrod for game programmers" tutorial
23:57:57Araqsince that's what most users use it for, apparently
23:58:48gradhathe game development world is crowded enough to make a dent on it
23:59:25gradhayou also get a weird mix of people ranging from "C/C++ all the way" to "let's script the hell out of everything"