Fork me on GitHub
#boot
<
2016-11-29
>
anmonteiro04:11:39

@vinnyataide: check your resources paths, and check if they match the Ring middleware that serves them

flyboarder05:11:31

@vinnyataide have you given your target task an output dir?

vinnyataide06:11:42

@anmonteiro just checked, there's an "app.cljs.edn" only inside js

anmonteiro06:11:59

@vinnyataide: right, and what about the ring resources middleware?

vinnyataide07:11:47

@anmonteiro just added the boot-lein plugin

anmonteiro07:11:42

@vinnyataide and what's the problem you're having with om-next-fullstack?

vinnyataide07:11:26

@anmonteiro it only renders the initial load, after that no action is computed, checked the code and there is no js file output, just some libs

anmonteiro07:11:37

hrm, probably something related to windows

anmonteiro07:11:09

@vinnyataide maybe try changing js/app to js\app in the IDS

pesterhazy09:11:35

When I open a browser repl (boot-cljs-repl) using (start-repl), stop it and start it again, the browser never reconnects. Reloading the browser doesn't help. So the only way to recover is to restart the clojure repl, which take up to 2min.

pesterhazy09:11:20

There's an issue open about this: https://github.com/adzerk-oss/boot-cljs-repl/issues/38 But I'm wondering, how do people work around this problem? I feel there's something I'm missing.

pesterhazy09:11:47

I mean I guess I could just never close the open terminal window 🙂

sekao15:11:03

any plans for a new release any time soon? no rush, i'm just looking forward to a change to the repl task that is currently in master

dave18:11:24

^a wrote a little thing about boot-bookmarklet, a boot task that generates bookmarklets so you can write bookmarklets in clojurescript

richiardiandrea18:11:39

hello channel, ready for the Conj? Who is coming? 🙂

richiardiandrea18:11:08

on another note, is there a way to fetch deps from pom.xml, resolving even submodule as well? Is it something that has been worked on already for Maven+Boot mixed projects?

phreed21:11:16

I have been busy with other things for a while. I am getting back to the boot port to clojureclr. Has anybody done any more work on this @flyboarder ? I am working on porting App.java first. * Why is App.cs devoid of comments? * Can someone give me some hints about ClojureRuntimeShim ?

flyboarder21:11:53

@phreed: I keep attempting this, I don't know enough Java tho

phreed21:11:48

@flyboarder is it the ClojureRuntimeShim that is hanging you?

flyboarder21:11:50

I've been starting with the Java code

mccraigmccraig23:11:03

what's the state of the art for boot and multi-module projects now ? i've got a lein-modules project that i would like to migrate to boot...

micha23:11:58

@phreed i can tell you some things about ClojureRuntimeShim if you need

micha23:11:03

what do you need to know?

micha23:11:33

also App.java

micha23:11:02

there is also Boot.java which is the entry point to boot

micha23:11:34

also devoid of comments, unfortunately

phreed23:11:41

@micha Ultimately I need to know how to replicate its behavior in .Net My understanding is that it is used to produce separate "runtimes" in the same virtual machine. Problem is I do not understand what that means 😉 nor what the .Net equivalent might be.

micha23:11:05

i am not familiar with how .net works

micha23:11:19

it has class loaders?

micha23:11:47

like when you do new Foo(), in java the Foo class is resolved by a class loader

micha23:11:33

there can be multiple class loaders in the program that each resolve Foo to a different actual class

micha23:11:39

meaning different piece of bytecode

micha23:11:33

any code that is running runs in an environment that includes a hierarchy of class loaders that the JVM constructs in its own bootstrapping

micha23:11:12

pods are essentially separate environments that have different class loaders

micha23:11:28

so the classes that are resolved in them can be different

phreed23:11:45

@micha Right, I remembered you mentioned that before. Apparently .Net has something similar but different, https://msdn.microsoft.com/en-us/library/9x0wh2z3(v=vs.90).aspx

micha23:11:38

assemblies are kind of like jars?

micha23:11:01

the "application domains" looks like pods maybe

phreed23:11:43

So the shim is all about making independent runtime environments for the pods to run in?

micha23:11:57

yes, but they can still communicate with each other

micha23:11:47

the shim craetes a clojure runtime

micha23:11:31

on the jvm that means a classloader is created, and various clojure classes are loaded from that classloader

micha23:11:44

at that point you have a clojure.RT object basically

micha23:11:22

that RT object is the java interop interface

micha23:11:32

you can use it to call clojure functions from java

micha23:11:49

when you want to evaluate some expression in a pod you use the shim api

micha23:11:13

shim.invoke("clojure.core/inc", 42) for example

micha23:11:03

what happens there is the shim's classloader is temporarily installed as the default for the duration of the .invoke() method call

micha23:11:25

then the RT thing is used to call inc on 42

micha23:11:43

the previous classloader is restored and the result returned

micha23:11:04

that's more or less what goes on there

phreed23:11:20

Ok, that makes sense.