/srv/irclogs.ubuntu.com/2014/12/01/#juju-gui.txt

=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54 is now known as kadams54-away
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54 is now known as kadams54-away
lazyPowerhatch: just open a MP against trunk, it'll make it's way into the queue15:00
hatchlazyPower: yup found that out :) took about a day to get into the queue :)15:01
hatchahhh -30C gota love it15:03
hatch-42C with windchill15:04
urulamahatch: awesome!15:04
urulama:D15:04
hatchlol15:05
hatchit's really early for temps this low - I hope this isn't a sign of things to come15:06
urulamaoh, man, hatch, i missed to comment the PR666! 15:27
hatchlol you did15:28
hatchman this would be nice to have https://support.leankit.com/entries/30469547-Merge-2-Cards-Together15:34
hatchteslanick: hey I was looking at lisps this last weekend but could not find an answer to whether CL has any features that Clojure does not15:40
teslanickCL has better macro support.15:41
hatchwhich isn't relaly too interesting because macros are only executed at compile15:41
hatchreally*15:41
teslanickThat's actually most of the power of Lisp15:42
hatchyeah I know lol15:42
hatchin my head it's only syntactic sugar over just creating  a wrapper function 15:43
hatchmaybe I'm thinking of that wrong15:43
teslanickYeah, definitely thinking about that wrong15:43
teslanickMacros let you do really powerful source code transformations, which is also their biggest danger. It's easy to write a macro that makes your code incomprehensible to the average dev.15:44
teslanicke.g. I wrote a Clojure macro that looks for symbols in the form <SomethingService> and replaces them with instances of a Hessian remote interface.15:44
hatchdo you know of any examples which show it being useful beyond just a wrapper fn? 15:44
hatchit's essentially like a built in transpiler then?15:45
teslanickIn clojure, go-style CSP is implemented as a macro.15:46
teslanickSo, inside a (go ...) s-expression, the semantics of the language are entirely different.15:46
hatchblah I need to do more research - I was initially looking at Lisps for the macro support but couldn't find anything which 'clicked' to show the power other than being like a wrapper/transpiler15:49
teslanickWell, it is a transpiler in a sense. It translates one set of symbols to a different set of symbols. For domain-specific problems it's a really valuable affordance.15:50
hatchI was actually initially looking for runtime macro support :) 15:50
hatchbut to do that you need a special version of CL15:51
teslanickI don't know what you mean by "runtime macro"15:51
teslanickIn Clojure, the difference between read-time and run-time is pretty blurry.15:51
teslanicke.g., I can write a macro in the repl and then immediately use it on my clojure code.15:52
hatchat compile Fn A calls fn B but depending on some interaction Fn A now calls G 15:52
rick_h_uiteam call in 9 kanban please15:52
hatchand that's a source code change, not just a conditional15:52
teslanickWell, you could write a macro that captures that specific logic. But to capture any arbitrary logic, you're folding a ton of logic into your build step15:53
hatchexactly15:53
hatchso there is a version of CL which maintains the source which you can then modify and recompile15:54
hatchbut the CL landscape is a wash with custom versions heh15:55
hatchnot sure I want to wade into that, which is why I started looking at Clojure - but that didn't quite get me where I wanted15:55
hatchjs and it's prototype tree could be used to do something similar 15:56
hatchwell in that it would call the same fn name but it would be a different fn15:56
teslanickYeah, the problem with CL (as I understand it, I've not played with it at all, really) is that the moment you've bootstrapped yourself into good and usable code, you're no longer writing CL anymore.15:58
teslanickClojure is nice because it's way closer to good and usable code without a ton of bootstrapping.15:58
hatchCL also doesn't have a good entry point15:59
teslanickBut it's a tradeoff -- you don't get fully-featured reader macros.15:59
teslanickAlso, it really sounds like you want to use a clojure multimethod for the problem you have in mind16:00
teslanickWhich is basically a multiple-dispatch function based on some arbitrary logic.16:01
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
hatchI'll look into that16:07
hatch__maybe I can come up with a way of doing it with goroutines16:19
teslanickWhat problem are you trying to solve?16:19
hatch__a totally arbitrary academic made up one :) 16:20
hatch__basically I wanted to investigate a script in which a function would be multi purposed16:20
hatch__but not by conditionals but by code-rewriting 16:20
teslanickWell, from a technical standpoint, compiled clojure code can't do dynamic code rewriting because it all gets flattened into java bytecode.16:25
teslanickEven in JS, you'd have to either write a meta-interpreter or eval() the rewritten code.16:25
hatch__yeah I was hoping to find a language which allowed such a thing16:27
hatch__I was even thinking something compiled (Go C C++) which could compile a new 'dll'esk module  16:28
teslanickRight, and you can do dynamic compilation in most languages (it's a pain in the ass), but it's a serious code smell.16:32
teslanickI'm pretty sure you could write a clojure interpreter in clojure pretty easily. It comes with an excellent set of reader libs.16:32
hatch__this is probably all nonsense anyways - but I couldn't find any papers or anything that actually showed it being functional16:41
hatch__lots of talk about it16:41
hatch__but no examples16:41
hatch__but maybe my google fu is failing me16:41
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
hatch__rick_h_: will there still be the category drop down with the ac removal?17:50
rick_h_hatch__: no, because we'll be moving to tags and a different search/filter method in the future17:51
hatch__sounds like a plan17:52
hatch__*ctrl+a del*17:52
rick_h_:)17:52
hatch__I can tell Huw wrote the code I'm working on right now because 'else' is on a new line18:25
hatch__lol18:26
hatch__#idotoomanycodereviews18:26
rick_h_:P18:27
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
hatch__yuilibrary.com is down, I pinged some of the guys on the old YUI team to look into it - we may not have YUI docs for a bit....who knows20:43
rick_h_heh20:43
* teslanick awaits yuidoc.juju.ubuntu.com20:51
hatch__lol20:52
hatch__lazyPower: have you had a chance to give the latest Ghost release a try?20:53
lazyPowerhatch__: i haven't20:53
lazyPowerbeen a bit preoccupied being out of state20:53
hatch__ahh20:54
=== kadams54-away is now known as kadams54
hatchsomehow the ac removal has caused the inspector tests to break :/21:30
rick_h_hatch: lol21:31
hatchI do not get it, it's very confusing21:31
rick_h_hatch: let me know if you need another set of eyes21:33
=== perrito6` is now known as perrito666
hatchok well I figured out what the problem is, but I am not sure why it started now.21:36
hatchquery selectors which are querying on things like [name=mediawiki/7] or [data-bind=config.admin]21:37
=== kadams54 is now known as kadams54-away
hatchchange it to be  [name="mediawiki/7"] or [data-bind="config.admin"]21:37
hatchand they pass21:38
rick_h_hmm, no idea21:40
hatchyeah just switched back to develop and they all pass21:40
hatchI'm going to checkpoing this commit and push it up21:40
hatchmaybe some fresh eyes can see what's up21:40
hatchrick_h_: https://github.com/juju/juju-gui/pull/669/files21:42
hatchif you get a moment21:42
=== kadams54-away is now known as kadams54
rick_h_hatch: race? is databinding all in place?21:48
rick_h_hatch: but yea nothing jumps out at me21:48
hatchwell the issue is that it can't find the element so I debugger it and indeed it can't21:49
hatchI wrap the names and such in " and it works21:49
hatchbut there are hundreds of places where this is done21:49
rick_h_oh, huh strange21:49
hatchAND it works fine in develop...21:49
rick_h_is container different at all? 21:50
rick_h_from develop to this, exact same node/path? 21:50
hatchyeah - it's not that the container doesn't exist - it's that the query for it returns undefined if they aren't quoted21:50
hatchit makes a little sense because they are special characters..but I'm pretty sure it was valid21:51
rick_h_hatch: yea, I'm wondering if there's some diff in native dom element type or something before/after the code change?21:51
rick_h_but yea, no idea off the top of my head21:51
hatchI think I'll start a new branch and remove code/run tests21:51
hatchand see what triggers it21:52
rick_h_ok21:52
hatch1000+loc code removal is sure gona be nice though :)21:52
rick_h_hey! that's more of my code! :P21:52
hatchlol21:53
hatchwho knows maybe there will be some revolutionary blog post come out of this21:54
hatch...or I deleted a comma somewhere...21:54
hatch:P21:54
huwshimiMorning22:13
hatchhey huwshimi22:24
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
hatchok the failures were caused by removing the 'autocomplete' module 22:34
hatchwhich is not used anywhere in the codebase22:34
hatchugh22:34
=== kadams54 is now known as kadams54-away
hatchuiteam lf reviews and qa on https://github.com/juju/juju-gui/pull/670 22:57
MakyoOn it22:57
hatchthanks22:58
hatchdoh22:58
hatchlint error22:58
hatchsorry will fix22:58
hatchupdate22:59
hatchd22:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!