fluid-tech IRC Logs-2013-08-15

fluid-tech IRC Logs-2013-08-15

[11:45:32 CDT(-0500)] <Bosmon> kasparnet - yzen had to make widespread changes to all the solutions to make them work again with current transformations

[11:45:33 CDT(-0500)] <Bosmon> https://github.com/yzen/universal/commit/eb74e821bb842ec4e4b64732594ca581bf865525

[11:45:44 CDT(-0500)] <Bosmon> But the changes look pretty verbose and redundant - is there any way to avoid this?

[11:46:06 CDT(-0500)] <yzen> Bosmon: btw it works now

[11:46:18 CDT(-0500)] <Bosmon> yzen - thanks

[11:47:38 CDT(-0500)] <kasparnet> Bosmon: yeah - all the windows registry related stuff is sort of shitty right now

[11:47:51 CDT(-0500)] <Bosmon> kasparnet - it's because of the multiple output issue?

[11:47:56 CDT(-0500)] <Bosmon> But what caused it to flare up now?

[11:48:34 CDT(-0500)] <kasparnet> no, this stuff is because I changed the valuemapper to actually expand the stuff from "outputValue" – so we could have expanders in there

[11:48:40 CDT(-0500)] <kasparnet> which wasn't the case befor

[11:50:07 CDT(-0500)] <kasparnet> But another issue with these entries is that we should pull out the "dataType" entries of the transformations, and have them in the options block of the solutions registry entry instea

[11:50:10 CDT(-0500)] <kasparnet> d*

[11:50:34 CDT(-0500)] <kasparnet> as they are independent on transformations (and always the same for each of the settings)

[11:50:56 CDT(-0500)] <kasparnet> so instead of being part of transformations, they should be options passed to the windows registry settingshandlers

[11:58:00 CDT(-0500)] <kasparnet> dont know if that made any sense

[13:04:59 CDT(-0500)] <yzen> Bosmon: so have we reached some sort of consensus on what to do with the matchmakers?

[13:17:16 CDT(-0500)] <Bosmon> Hi yzen - just looking at your diff from last night and trying to figure out why it is necessary

[13:17:35 CDT(-0500)] <yzen> Bosmon: you are talking about solutions?

[13:17:43 CDT(-0500)] <Bosmon> yzen - yes

[13:17:57 CDT(-0500)] <Bosmon> I'm on with KASPARNET now

[13:18:22 CDT(-0500)] <yzen> because somehow the value field trumps the whole object that contains it

[13:18:39 CDT(-0500)] <yzen> so what we get is a field with the value of value

[13:18:50 CDT(-0500)]

<yzen> and not

Unknown macro: {value}

[13:20:21 CDT(-0500)] <Bosmon> yzen, kasparnet - wouldn't it be reasonable to expect the following to work:

[13:20:23 CDT(-0500)] <Bosmon> "expander": {

[13:20:23 CDT(-0500)] <Bosmon> "type": "fluid.model.transform.literalValue",

[13:20:23 CDT(-0500)] <Bosmon> "value": {

[13:20:23 CDT(-0500)] <Bosmon> "value": 1,

[13:20:23 CDT(-0500)] <Bosmon> "dataType": "REG_DWORD"

[13:20:24 CDT(-0500)] <Bosmon> }

[13:20:24 CDT(-0500)] <Bosmon> }

[13:20:29 CDT(-0500)] <Bosmon> And... would it work?

[13:21:56 CDT(-0500)] <kasparnet> It would be reasonable.. but it doesn't currently work as "value" is a reserved word, and the system interprets "REG_DWORD" as a path into the source tree

[13:22:14 CDT(-0500)] <Bosmon> kasparnet - surely the "value" element of "literalValue" is different

[13:22:25 CDT(-0500)] <Bosmon> You would expect that that one just does what it says

[13:23:43 CDT(-0500)] <Bosmon> I see that the code responsible for hoiking "value" is at line 367 of ModelTransformations.js for me

[13:23:56 CDT(-0500)] <Bosmon> Interestingly it has a TODO next to it for "proper escaping rules" : P

[13:24:09 CDT(-0500)] <Bosmon> But I can't even remember what this rule helps

[13:26:15 CDT(-0500)] <Bosmon> I can't even find any test cases that seem to test this "value hoisting" branch

[13:26:27 CDT(-0500)] <Bosmon> Nothing in ModelTransformationTests.js seems to have "value" as a key

[13:27:02 CDT(-0500)] <Bosmon> Except for a test case which is testing exactly the form that yzen has now written in the solutions

[13:27:17 CDT(-0500)] <Bosmon> yzen - where did you get this form from, is it somewhere in one of the pilot branches?

[13:27:41 CDT(-0500)] <yzen> from the chat with kasparnet

[13:27:51 CDT(-0500)] <Bosmon> Which chat?

[13:27:52 CDT(-0500)] <kasparnet> yzen: yeah, I convinced him that was the way to go

[13:27:55 CDT(-0500)] <Bosmon> !!!

[13:27:57 CDT(-0500)] <kasparnet>

[13:28:03 CDT(-0500)] <Bosmon> DAMMN YOOOUUU,, KASSSPPPARNETTTTT!

[13:28:09 CDT(-0500)] <kasparnet> it was JURA that put me up to a skype chat

[13:28:20 CDT(-0500)] <yzen> lol

[13:33:57 CDT(-0500)] <Bosmon> Or - even more so - taking advantage of the perversion of "value", why couldn't we just write:

[13:33:59 CDT(-0500)] <Bosmon> "value": {

[13:33:59 CDT(-0500)] <Bosmon> "value": 1,

[13:33:59 CDT(-0500)] <Bosmon> "dataType": "REG_DWORD"

[13:33:59 CDT(-0500)] <Bosmon> }

[13:34:30 CDT(-0500)] <yzen> we could, couldn't we?

[13:34:55 CDT(-0500)] <yzen> kasparnet: ^

[13:35:04 CDT(-0500)] <Bosmon> yzen - he is muttering to me "it might make sense"

[13:35:14 CDT(-0500)] <Bosmon> Against the background of huge thrashing of pots and running water

[13:36:29 CDT(-0500)] <kasparnet> ok... yeah, that should work

[13:36:33 CDT(-0500)] <kasparnet> Bosmon, yzen

[13:43:19 CDT(-0500)] <kasparnet> yzen: So antranig is totally right - we should just change the entries from craziness to Bosmons example above

[13:43:55 CDT(-0500)] <kasparnet> We also decided, along with the other work on model transformation, we should change the "value" name to "literalValue" to make it clear what it does

[14:01:13 CDT(-0500)] <yzen> kasparnet: is that future work ?

[14:11:36 CDT(-0500)] <Bosmon> yzen - kasparnet is at work on the "new transforms" now and this will be done as part of that work

[14:11:44 CDT(-0500)] <Bosmon> This is for FLUID-5026

[14:12:05 CDT(-0500)] <Bosmon> He has drafted this piratePad which may or may not be comprehensible

[14:12:07 CDT(-0500)] <Bosmon> http://piratepad.net/aWVSkN6668

[14:12:24 CDT(-0500)] <Bosmon> But his plan is that we adjust the meaning of transforms such that they only attempt to output to the document if they have an "outputPath" set

[14:12:36 CDT(-0500)] <Bosmon> And if they do so, their direct return value is "undefined"

[14:12:54 CDT(-0500)] <Bosmon> We talked through a few of the cases and it doesn't seem insane, but he is going to come up with a draft implementation to see what breaks

[14:13:33 CDT(-0500)] <Bosmon> kasparnet - actually, you could fold in the "value" -> "literalValue" change earlier, as part of your pull to rename "expander" -> "transform"

[14:13:45 CDT(-0500)] <Bosmon> Given that will cause every current document to break anyway, and it doesn't depend on any other work

[14:14:36 CDT(-0500)] <Bosmon> yzen - as for the repositories issue, I think for now we should stop at the stage where you have broken out "canopy" as an example, and tolerate the fact that it depends on all of universal

[14:14:49 CDT(-0500)] <yzen> k

[14:14:51 CDT(-0500)] <Bosmon> Given we are yet to put together a sufficiently good toolset that makes working with large numbers of repositories workable

[14:15:01 CDT(-0500)] <Bosmon> but we should table this point for future community meetings about grunt