<<07-12-2012>>

16:11:46*NimBot joined #nimrod
16:12:03dom96Bad bot, bad.
16:12:09*dom96 scolds NimBot
16:50:10*gradha quit (Quit: gradha)
17:18:40dom96hello Araq
17:18:59dom96I just found this: https://github.com/JukkaL/mypy
17:19:16dom96thoughts?
17:20:01Araqwe're out of business
17:20:10dom96hah
17:20:20Araq"mypy" is the language that I can only dream of to have invented
17:20:35Araqseamless dynamic typing ... yay
17:24:22*dom96 can't tell if serious or not
17:28:58AraqI'm not serious
17:30:58dom96good.
17:43:36dom96argh, it would be nice if execCmd had a workDir param I could override
17:43:47dom96Araq: Should I add that?
17:44:10Araqno
17:44:19AraqexecCmd is supposed to be simple
17:44:32Araquse the proper API for more fancy stuff
17:44:48dom96But then I have to read the process output myself...
17:44:58dom96So inconvenient :P
17:45:12Araqstop whinning
17:57:52Araqso ... dom96, afaict --babelPath and --excludePath work
17:59:08dom96good
18:00:50dom96I'm working on babel as we speak
18:09:59Araqfirst release tonight?
18:11:07dom96we'll see
18:37:33*zahary quit (Read error: No route to host)
18:37:39*zahary joined #nimrod
18:52:22*Trix[a]r_za is now known as Trixar_za
19:31:37*zahary1 joined #nimrod
19:31:43*zahary quit (Read error: No route to host)
20:12:48*shevy quit (Ping timeout: 264 seconds)
20:25:11*shevy joined #nimrod
20:41:00*ponce quit (Remote host closed the connection)
20:41:18*_ponce joined #nimrod
21:06:03NimBot_nimrod-code/babel 423e2d3 Dominik Picheta [+0 ±3 -0]: Versioning support, changes to directory structure.
21:06:12dom96Araq: Test it please
21:08:59Araqdom96: alright
21:09:18Araqbtw can you fix the default of $home/.babel ?
21:09:30AraqI dislike hidden directories
21:10:53dom96yeah, I suppose.
21:15:38Araqit's not hidden on windows anyway, is it?
21:16:18dom96yeah
21:17:19Araqdoes it download dependencies already?
21:17:36dom96no.
21:19:19Araqaww
21:20:43Araqer ...
21:21:11Araq'babel list' does not work?
21:22:58NimBot_nimrod-code/babel 1db1592 Dominik Picheta [+0 ±2 -0]: Packages are now saved to ~/babel.
21:22:58NimBot_nimrod-code/babel 69f28c2 Dominik Picheta [+0 ±1 -0]: Search now searches by name and tags.
21:23:12dom96There is no 'babel list' implemented.
21:23:34Araqwell please implement that then
21:23:36dom96And it's not that hard to simply cat ~/babel/packages.json
21:23:37dom96:P
21:23:46AraqI don't want to read json :P
21:23:52Araqjson is for machines :P
21:25:31Araqhow do you know 'jester' should be in 'libs'?
21:25:37Araqis that the default?
21:25:52AraqI mean it's not in the .json
21:26:11dom96where else would it go?
21:26:17Araq'apps'?
21:26:27AraqI mean 'jester' obviously not
21:26:38dom96Well... that's not implemented yet.
21:26:50Araqok
21:26:55dom96And I've made a working version as fast as I could
21:27:03Araqno worries
21:27:38Araqwe need at least 'authors' and 'license' in the json though
21:28:27Araqoh that's in the .babel file
21:29:07dom96yes, I'm not sure whether the json file should contain a lot of information
21:29:16dom96It's nice for searching I guess
21:29:34Araqlicense is very important
21:29:57dom96yeah, but shouldn't the json file simply provide information to babel on how to install the package?
21:30:12Araqhm true
21:30:28Araqbut then I can't filter the search by license ...
21:30:36Araqoh well
21:30:46Araqnot that important
21:31:46dom96Question is whether it is ready to be announced
21:31:57dom96We can always add this license stuff
21:32:17dom96Of course once packages have been added asking the owners of them to add licensing info wouldn't work well..
21:33:04dom96Thoughts?
21:35:04Araqfor jester there is no licence information
21:35:22Araqinstead I have to read the license and check if it's the GPL or whatever
21:36:04Araqso we really need to ask the authors ;-)
21:36:22Araqand yeah that needs to be done before we announce it
21:37:39dom96it's kind of annoying that the .babel file will have the same info as the .json file
21:38:20Araqbabel should read the .babel file and update its sqlite database ... :P
21:38:41Araqor its json file for that matter
21:41:55dom96well I could clone each repo of each package and read its .babel file during the 'update'
21:42:04dom96That would be extremely slow...
21:42:16Araqlol no
21:42:27dom96or I could give a direct link to the .babel file in the json file and download that
21:42:27Araqlet the package creator type:
21:42:35Araqbabel register mypackage.babel
21:43:15dom96huh?
21:43:17Araqand this checks the .babel file for errors and does an upload or a pull request or whatever
21:43:37Araqwell it adds 'mypackage' to the packages.json
21:43:44dom96hrm. I have a better idea.
21:43:54dom96instead of having a .json file
21:44:01dom96simply have the repo full of .babel files
21:44:10Araqyeah
21:44:13dom96:D
21:44:14Araqsounds good
21:44:24*Trixar_za is now known as Trix[a]r_za
21:44:27dom96But making babel do this automatically is quite some work
21:44:40dom96Pull requests on github require integrating with the Github API
21:44:47dom96However, sounds fun :P
21:46:22dom96I think it's fine for now to simply let the packagers do it manually
21:46:27dom96It's not /that/ hard
21:48:44Araqalright, just add the 'license' field please
22:03:08dom96hrm, i'm thinking about versions now. We could simply go for 'jester-0.1.0.babel'
22:03:16dom96'jester.babel' - > Latest
22:04:06Araqwell the thing is:
22:05:03Araqbabel installs a package and it's not yet installed; it should put it under package/
22:05:36Araqand then if there is package-2.0 it needs to check if that's later than package/
22:05:48Araqand the version needs to be part of the .babel file for this
22:06:40dom96ugh, why does it need to do that?
22:07:14Araqwell what's the alternative?
22:07:16dom96I thought we said: no version means latest, means it goes into package/
22:07:26Araqyes
22:07:30dom96with version it goes into package-version/
22:07:50Araqsure but then how do you know if latest stayed latest?
22:08:22dom96what?
22:09:29dom96I don't follow, sorry.
22:09:41AraqpackageB requires packageA-1.0
22:09:51Araqwe have packageA/ already installed
22:09:57Araqis that good enough?
22:10:03Araqwho knows ... :P
22:10:37AraqpackageA/ needs to have its version stored *somewhere* too
22:12:25dom96ok, well the .babel file can be copied
22:12:30dom96into packageA/
22:12:44dom96but then ahh yes
22:12:51dom96If no version means latest...
22:15:22dom96we need a new plan once more it seems
22:17:43Araqnah just add 'license' and call it a day
22:17:59Araqwe don't do dependency management for now anyway
22:18:26Araqand I guess it'll end up requiring a VERSION file in the package for that to work
22:18:58Araqpackagers often want 1 central place for the version and this may not be the .babel file
22:23:58dom96it should be the .babel file
22:24:56Araqhow do import that in my lib then? :P
22:25:29Araqconst version = slurp"package.babel".getVersion ?
22:26:23Araqok, that works, but it's not nice
22:26:33dom96Why do you need to know the version in your module?
22:26:41Araqyou don't know what kind of build system the package creator uses
22:27:01Araqwell the compiler for instance wants to output its version
22:29:15dom96just keep the version info in two places then...
22:29:53dom96I doubt this scenario will be very common.
22:30:18dom96and if it is. Then just use what you suggested :P
22:30:30Araqnah, this sucks
22:30:55AraqI'm glad I only have 1 place to update the version number; ok not really :P
22:31:11Araqhave to update the download section of the website
22:31:14Araqbut still ...
22:32:22Araqthe problem is not so much that you have to update 2 places, but that there is no checking and ultimately you'll forget to update it and lie to babel
22:37:30*dom96 sighs
22:41:39dom96I don't feel like working on
22:42:55Araqugh
22:52:16Araqjust make people add version and license info please and be done with it
22:52:28Araqwe can change the details later then
22:52:42Araqbut asking people for more information afterwards is bad
22:54:03dom96I'm afraid we will end up redesigning the whole thing again
22:54:39Araqso what ... I want this list of packages and I want it *now*
22:57:13Araqthere is a reason people created https://github.com/Araq/Nimrod/wiki/Community-Projects
22:58:03dom96Well then you already have a list of packages.
22:58:54Araqwell I can't say "xyz download this list", nor "update it"
23:03:08dom96well, i'm tired and it's late.
23:03:18Araqalright me too
23:08:34Araqgood night
23:08:40dom96bye