Fork me on GitHub
#hoplon
<
2016-10-19
>
mynomoto00:10:32

Double dose of Alan and Micha, this is pretty cool!

jumblerg06:10:59

@onetom: you’ll want to pull this update, resolves a nasty little bug that wreaks havoc when loop-tpl based macros containing hoplon/ui elems are used.

onetom07:10:05

@jumblerg thanks. i think we might have hit that issue a few times and we were just wrapping the loop-tpl into extra elems to work around it

adamfrey14:10:19

I’m using the hoplon/google-maps library and I need to set my API key. I’m following the example here from the demos: https://github.com/hoplon/demos/blob/master/google-maps/src/index.cljs.hl#L8 But it looks like that causes 1 JS request with the API key (to "https://www.google.com/jsapi?key=AIza…”) and then a callback JS request without the API key I set (to "https://maps.googleapis.com/maps/api/js?v=3&amp;sensor=false&amp;libraries=geometry&amp;callback=google.loader.callbacks.maps”). That’s causing a Google Maps API error in the console, and my map looks like this:

adamfrey14:10:40

In the code from hoplon-demos I see the same warnings in the console, but the map still loads. My map was loading up until a few days ago, without any code change, so I think they cut me off for too many unauthenticated requests to their API. It looks like a bug in the hoplon/google-maps library

jamieorc16:10:37

@alandipert and @micha I started listening to the cognicast. I always enjoy your talks and presentations. I didn’t know you’d worked with Craig. I know him from our days consulting at RoomKey. Looking forward to the hoplon interview.

zilvinasu17:10:58

hey, is there any support for hoplon on cursive ?

mynomoto17:10:48

@zilvinask not for .hl files. If you use it from .cljs it should work fine.

mynomoto17:10:07

Ops sorry, it was @zilvinasu

mynomoto17:10:05

And as long you don't use ns+ on your .cljs files.

flyboarder17:10:32

Hey guys I'm prepping a presentation for the Toronto Clojure Meetup, I wanted to ask what the number 1 issue you have when learning hoplon is, so that these things can be addressed??? @onetom @jjttjj @mynomoto any ideas?

adamfrey17:10:14

For my hoplon/google-maps issue I inlined the google-maps code in my app and fixed a couple of things. When I get some time I’ll make a PR.

dm317:10:34

@flyboarder documentation, higher level design patterns (like re-frame provides)

mynomoto17:10:33

@flyboarder I think you need to ask people that are starting now, but I would guess that more docs for beginners is still an issue. We should try to improve this a bit before the cognicast goes live. It would be nice to have more/better intros for new hoploners.

mynomoto17:10:14

I think learning boot should be an obstacle for people used to lein. I don't know because when I started it was boot 1 😉

flyboarder18:10:05

Ok sounds good, I am going to do a quick intro to boot as well

jjttjj18:10:50

what i always liked about hoplon is how far just a very basic knowledge of html and excel gets you. as for things that gave me trouble, the template macros, specifically the cell-let inside of them kinda always led me sort aimlessly wrapping things in cells until things worked for awhile

alandipert18:10:41

@flyboarder not really my issue, but we get a steady stream of reports from newcomers about problems with the templates

alandipert18:10:07

i think because they're set up to bring the latest versions of everything, which don't necessarily always work. seems like it would be good to pin deps there

flyboarder18:10:34

@alandipert: that should be pretty easy to fix up

alandipert18:10:56

yeah i think so, i just keep forgetting

alandipert18:10:02

if anyone wants to jump on it, would be much obliged

mynomoto18:10:40

@flyboarder also a Hoplon 6 release would be great because working from alphas do not give a great first impression. We are used to but new people will judge us 😉

flyboarder18:10:42

@mynomoto: yeah I need to get the GCL stuff tested before next release

mynomoto18:10:30

@flyboarder wdyt about marking it as experimental and fixing bugs on minor/patch releases? New people shouldn't be affected as long as they use the default.

flyboarder18:10:25

@mynomoto: agreed that was mentioned by @alandipert the other day, I am partial to a clear baseline tho

flyboarder18:10:50

@jumblerg: is there anything in any branches that are needed for hoplon/UI? Or is that still depending on master?

jumblerg18:10:33

we're on master again

mynomoto19:10:17

Something that would be nice is to having Hoplon running on Klipse. That way people could start using it without any setup. I have a minimal version working but no macros which means no cell= and no fun 😉 But cell works hoplon javelin

micha19:10:48

@mynomoto does Klipse support cljs macros written in cljs?

mynomoto19:10:14

@micha according to @viebel it does, I was chatting with him on #klipse other day.

mynomoto20:10:04

And we can use defn so I think that is right.

vigilancetech20:10:27

Can someone point me to a website or tell me exactly how one goes from a fresh hl project to cider-jack-in to a REPL from development branch of spacemacs? It seems like it should be something pretty easy after much searching I haven't been able to figure out how to do it.

vigilancetech20:10:23

And if someone shows me, and its not already clearly documented on the wiki, I'll write it up myself

micha20:10:45

@mynomoto so i can put defmacro ... in a .cljs file and Klipse will compile the macro?

mynomoto20:10:28

@micha I think it needs to be a .cljc file iiuc

micha20:10:57

@mynomoto so it does use a clojure runtime?

micha20:10:08

not just clojurescript?

mynomoto20:10:53

It doesn't. It will read the #cljs reader and the namespaces it depends needs to be available in cljs.

mynomoto20:10:16

It uses the bootstrapped cljs

micha20:10:19

so .cljc doesn't seem relevant

mynomoto20:10:12

I'm unfamiliar with the internals.

micha20:10:31

if (defmacro ... works in cljs in there we could rewrite the macros in clojurescript

micha20:10:38

then it would all work in there

mynomoto20:10:58

So, you need to port the macros to clojurescript

[6:28]  
There is the same problem with `core.match`

micha20:10:08

unfortunately macros written in cljs can't be used with advanced optimizations

mynomoto20:10:27

Those are his words ^

micha20:10:31

yeah makes sense

micha20:10:48

we'd need a separate jar though

micha20:10:12

like hoplon/hoplon-klipse or something

micha20:10:32

and that version wouldn't be compatible with optiizations in cljs compiler

mynomoto20:10:00

Yeah, I had to delete a bunch of code only to make it run. I don't think it would be fun to have all that not optimized.

micha20:10:46

to use the bootstrapped cljs you need to add megabytes of compiler stuff to the js you ship to the client

micha20:10:25

we were thinking about things you could do with localstorage and iframes though

micha20:10:49

to make a sort of maven cache type thing in the browser

mynomoto20:10:00

And currently klipse gets libs from github requesting each file necessary. This is not for performance.

micha20:10:38

seems like the amount of shenanigans is comparable to what you have with boot anyway

mynomoto20:10:36

To make it work yes but once working you just go to a page and live code there. No setup necessary for the user until he wants a library 😉

micha20:10:48

i'll see about how difficult it would be to port the javelin macros to cljs

flyboarder22:10:59

@micha @alandipert making the readme pretty 😛

flyboarder23:10:46

If anyone else would like to help organize things for the next release, I created a target project here: https://github.com/hoplon/hoplon/projects/1

micha23:10:32

interesting, i haven't used this feature before

micha23:10:27

nice and simple

flyboarder23:10:31

yeah I just recently read the blog post about it, figured why not right