16:11:46 | * | NimBot joined #nimrod |
16:12:03 | dom96 | Bad bot, bad. |
16:12:09 | * | dom96 scolds NimBot |
16:50:10 | * | gradha quit (Quit: gradha) |
17:18:40 | dom96 | hello Araq |
17:18:59 | dom96 | I just found this: https://github.com/JukkaL/mypy |
17:19:16 | dom96 | thoughts? |
17:20:01 | Araq | we're out of business |
17:20:10 | dom96 | hah |
17:20:20 | Araq | "mypy" is the language that I can only dream of to have invented |
17:20:35 | Araq | seamless dynamic typing ... yay |
17:24:22 | * | dom96 can't tell if serious or not |
17:28:58 | Araq | I'm not serious |
17:30:58 | dom96 | good. |
17:43:36 | dom96 | argh, it would be nice if execCmd had a workDir param I could override |
17:43:47 | dom96 | Araq: Should I add that? |
17:44:10 | Araq | no |
17:44:19 | Araq | execCmd is supposed to be simple |
17:44:32 | Araq | use the proper API for more fancy stuff |
17:44:48 | dom96 | But then I have to read the process output myself... |
17:44:58 | dom96 | So inconvenient :P |
17:45:12 | Araq | stop whinning |
17:57:52 | Araq | so ... dom96, afaict --babelPath and --excludePath work |
17:59:08 | dom96 | good |
18:00:50 | dom96 | I'm working on babel as we speak |
18:09:59 | Araq | first release tonight? |
18:11:07 | dom96 | we'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:03 | NimBot_ | nimrod-code/babel 423e2d3 Dominik Picheta [+0 ±3 -0]: Versioning support, changes to directory structure. |
21:06:12 | dom96 | Araq: Test it please |
21:08:59 | Araq | dom96: alright |
21:09:18 | Araq | btw can you fix the default of $home/.babel ? |
21:09:30 | Araq | I dislike hidden directories |
21:10:53 | dom96 | yeah, I suppose. |
21:15:38 | Araq | it's not hidden on windows anyway, is it? |
21:16:18 | dom96 | yeah |
21:17:19 | Araq | does it download dependencies already? |
21:17:36 | dom96 | no. |
21:19:19 | Araq | aww |
21:20:43 | Araq | er ... |
21:21:11 | Araq | 'babel list' does not work? |
21:22:58 | NimBot_ | nimrod-code/babel 1db1592 Dominik Picheta [+0 ±2 -0]: Packages are now saved to ~/babel. |
21:22:58 | NimBot_ | nimrod-code/babel 69f28c2 Dominik Picheta [+0 ±1 -0]: Search now searches by name and tags. |
21:23:12 | dom96 | There is no 'babel list' implemented. |
21:23:34 | Araq | well please implement that then |
21:23:36 | dom96 | And it's not that hard to simply cat ~/babel/packages.json |
21:23:37 | dom96 | :P |
21:23:46 | Araq | I don't want to read json :P |
21:23:52 | Araq | json is for machines :P |
21:25:31 | Araq | how do you know 'jester' should be in 'libs'? |
21:25:37 | Araq | is that the default? |
21:25:52 | Araq | I mean it's not in the .json |
21:26:11 | dom96 | where else would it go? |
21:26:17 | Araq | 'apps'? |
21:26:27 | Araq | I mean 'jester' obviously not |
21:26:38 | dom96 | Well... that's not implemented yet. |
21:26:50 | Araq | ok |
21:26:55 | dom96 | And I've made a working version as fast as I could |
21:27:03 | Araq | no worries |
21:27:38 | Araq | we need at least 'authors' and 'license' in the json though |
21:28:27 | Araq | oh that's in the .babel file |
21:29:07 | dom96 | yes, I'm not sure whether the json file should contain a lot of information |
21:29:16 | dom96 | It's nice for searching I guess |
21:29:34 | Araq | license is very important |
21:29:57 | dom96 | yeah, but shouldn't the json file simply provide information to babel on how to install the package? |
21:30:12 | Araq | hm true |
21:30:28 | Araq | but then I can't filter the search by license ... |
21:30:36 | Araq | oh well |
21:30:46 | Araq | not that important |
21:31:46 | dom96 | Question is whether it is ready to be announced |
21:31:57 | dom96 | We can always add this license stuff |
21:32:17 | dom96 | Of course once packages have been added asking the owners of them to add licensing info wouldn't work well.. |
21:33:04 | dom96 | Thoughts? |
21:35:04 | Araq | for jester there is no licence information |
21:35:22 | Araq | instead I have to read the license and check if it's the GPL or whatever |
21:36:04 | Araq | so we really need to ask the authors ;-) |
21:36:22 | Araq | and yeah that needs to be done before we announce it |
21:37:39 | dom96 | it's kind of annoying that the .babel file will have the same info as the .json file |
21:38:20 | Araq | babel should read the .babel file and update its sqlite database ... :P |
21:38:41 | Araq | or its json file for that matter |
21:41:55 | dom96 | well I could clone each repo of each package and read its .babel file during the 'update' |
21:42:04 | dom96 | That would be extremely slow... |
21:42:16 | Araq | lol no |
21:42:27 | dom96 | or I could give a direct link to the .babel file in the json file and download that |
21:42:27 | Araq | let the package creator type: |
21:42:35 | Araq | babel register mypackage.babel |
21:43:15 | dom96 | huh? |
21:43:17 | Araq | and this checks the .babel file for errors and does an upload or a pull request or whatever |
21:43:37 | Araq | well it adds 'mypackage' to the packages.json |
21:43:44 | dom96 | hrm. I have a better idea. |
21:43:54 | dom96 | instead of having a .json file |
21:44:01 | dom96 | simply have the repo full of .babel files |
21:44:10 | Araq | yeah |
21:44:13 | dom96 | :D |
21:44:14 | Araq | sounds good |
21:44:24 | * | Trixar_za is now known as Trix[a]r_za |
21:44:27 | dom96 | But making babel do this automatically is quite some work |
21:44:40 | dom96 | Pull requests on github require integrating with the Github API |
21:44:47 | dom96 | However, sounds fun :P |
21:46:22 | dom96 | I think it's fine for now to simply let the packagers do it manually |
21:46:27 | dom96 | It's not /that/ hard |
21:48:44 | Araq | alright, just add the 'license' field please |
22:03:08 | dom96 | hrm, i'm thinking about versions now. We could simply go for 'jester-0.1.0.babel' |
22:03:16 | dom96 | 'jester.babel' - > Latest |
22:04:06 | Araq | well the thing is: |
22:05:03 | Araq | babel installs a package and it's not yet installed; it should put it under package/ |
22:05:36 | Araq | and then if there is package-2.0 it needs to check if that's later than package/ |
22:05:48 | Araq | and the version needs to be part of the .babel file for this |
22:06:40 | dom96 | ugh, why does it need to do that? |
22:07:14 | Araq | well what's the alternative? |
22:07:16 | dom96 | I thought we said: no version means latest, means it goes into package/ |
22:07:26 | Araq | yes |
22:07:30 | dom96 | with version it goes into package-version/ |
22:07:50 | Araq | sure but then how do you know if latest stayed latest? |
22:08:22 | dom96 | what? |
22:09:29 | dom96 | I don't follow, sorry. |
22:09:41 | Araq | packageB requires packageA-1.0 |
22:09:51 | Araq | we have packageA/ already installed |
22:09:57 | Araq | is that good enough? |
22:10:03 | Araq | who knows ... :P |
22:10:37 | Araq | packageA/ needs to have its version stored *somewhere* too |
22:12:25 | dom96 | ok, well the .babel file can be copied |
22:12:30 | dom96 | into packageA/ |
22:12:44 | dom96 | but then ahh yes |
22:12:51 | dom96 | If no version means latest... |
22:15:22 | dom96 | we need a new plan once more it seems |
22:17:43 | Araq | nah just add 'license' and call it a day |
22:17:59 | Araq | we don't do dependency management for now anyway |
22:18:26 | Araq | and I guess it'll end up requiring a VERSION file in the package for that to work |
22:18:58 | Araq | packagers often want 1 central place for the version and this may not be the .babel file |
22:23:58 | dom96 | it should be the .babel file |
22:24:56 | Araq | how do import that in my lib then? :P |
22:25:29 | Araq | const version = slurp"package.babel".getVersion ? |
22:26:23 | Araq | ok, that works, but it's not nice |
22:26:33 | dom96 | Why do you need to know the version in your module? |
22:26:41 | Araq | you don't know what kind of build system the package creator uses |
22:27:01 | Araq | well the compiler for instance wants to output its version |
22:29:15 | dom96 | just keep the version info in two places then... |
22:29:53 | dom96 | I doubt this scenario will be very common. |
22:30:18 | dom96 | and if it is. Then just use what you suggested :P |
22:30:30 | Araq | nah, this sucks |
22:30:55 | Araq | I'm glad I only have 1 place to update the version number; ok not really :P |
22:31:11 | Araq | have to update the download section of the website |
22:31:14 | Araq | but still ... |
22:32:22 | Araq | the 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:39 | dom96 | I don't feel like working on |
22:42:55 | Araq | ugh |
22:52:16 | Araq | just make people add version and license info please and be done with it |
22:52:28 | Araq | we can change the details later then |
22:52:42 | Araq | but asking people for more information afterwards is bad |
22:54:03 | dom96 | I'm afraid we will end up redesigning the whole thing again |
22:54:39 | Araq | so what ... I want this list of packages and I want it *now* |
22:57:13 | Araq | there is a reason people created https://github.com/Araq/Nimrod/wiki/Community-Projects |
22:58:03 | dom96 | Well then you already have a list of packages. |
22:58:54 | Araq | well I can't say "xyz download this list", nor "update it" |
23:03:08 | dom96 | well, i'm tired and it's late. |
23:03:18 | Araq | alright me too |
23:08:34 | Araq | good night |
23:08:40 | dom96 | bye |