Fork me on GitHub
#boot
<
2017-03-28
>
richiardiandrea00:03:07

@qqq i think there is a compiler option for that purpose

qqq00:03:06

@richiardiandrea : can you point me at sample code? I only know about using it for requiring namespaces

qqq03:03:04

so I need to write actual server code, instead of just use boot-http what is the recommended server side for use with boot ?

qqq05:03:57

@richiardiandrea : ah, this is amazing so 1. I create a namespace, called foo.dev 2. I put all the stuff I want to "pre load" in foo.dev 3. Then I specify :preloads foo.dev [email protected]

qqq07:03:02

does boot have an option for specifying which port nREPL starts on?

borkdude10:03:20

I want to add a webjars dependency to the foreign libs compiler option in boot-cljs. I’m trying the following:

:foreign-libs
                                [{:file "webjars/graphiql/0.3.1-1/graphiql.js",
                                  :provides ["graphiql"],
                                  }]
but I get the error message: adzerk.boot_cljs.util.proxy$clojure.lang.ExceptionInfo$ff19274a: /…/myproject/app/webjars/graphiql/0.3.1-1/graphiql.js (No such file or directory) from: :boot-cljs

borkdude10:03:25

What to do?

juhoteperi10:03:43

@borkdude What is the webjars dependency you are using?

borkdude10:03:06

@juhoteperi [org.webjars/graphiql "0.3.1-1" :scope "test"]

juhoteperi10:03:02

:file "META-INF/resources/webjars/graphiql/0.3.1-1/graphiql.js",

juhoteperi10:03:20

In > The path is classpath-relative and the contents of the resources/ directory are added to the classpath The resources refers to the project resources directory, not directory inside the jar file

borkdude10:03:22

I’m re-trying.. hope this works

juhoteperi10:03:34

Did you define :foreign-libs in :compiler-options or deps.cljs?

borkdude10:03:53

Cool, seems to work 🙂 In :compiler-options

juhoteperi10:03:18

I wasn't sure if Cljs correctly resolves files from classpath when foreign libs are defined in compiler options

borkdude10:03:48

@juhoteperi Thanks again, you rock 🙂

borkdude11:03:14

Any tips on how to include an NPM module in cljs? It’s the same library. I noticed on webjars it’s a really old version

borkdude11:03:26

hmm, I can add one on webjars I see

borkdude11:03:45

Hmm, no luck with that yet. Looking into the NPM options

juhoteperi11:03:11

:npm-deps might work with latest Cljs compiler

borkdude11:03:44

Is that documented somewhere?

juhoteperi12:03:31

Hmmh, might require Cljs compiler from git master 😉

m13:03:09

hi! anyone here knowledgeable about boot's internal dependency fetching? I'm developing a tool (boot2nix) which needs to predict and prefetch ideally all the outgoing requests boot would do on building.

martinklepsch14:03:40

@m it’s not quite possible since boot’s dependency capabilities are very dynamic

pesterhazy14:03:35

Does anyone have a moment to take a look at my PR: https://github.com/boot-clj/boot/pull/597? @micha perhaps? 🙂

qqq20:03:46

sudo apt-get install libatlas-base-dev
LD_PRELOAD=/usr/lib/liblapack_atlas.so lein repl
from https://bigsolutions.io/2017/02/01/how-to-run-neanderthal-with-atlas-blas-from-ubuntu-repositories/ does not work in boot. Do I need to do something different for boot ?

alandipert21:03:54

this worked for me:

sudo apt-get install libatlas-base-dev
LD_PRELOAD=/usr/lib/liblapack_atlas.so boot -d uncomplicate/neanderthal repl

alandipert21:03:33

(use '[uncomplicate.neanderthal core native]) from the post didn't work

alandipert21:03:31

so instead i did

(require '[uncomplicate.neanderthal.core :as c])
(require '[uncomplicate.neanderthal.native :as n])
(def x (n/dv 1 2 3))
(def y (n/dv 10 20 30))
(c/dot x y)

qqq21:03:22

I needed two preloads liblapack_atlas.so and libcblas.so

qqq21:03:04

https://github.com/uncomplicate/neanderthal/blob/master/test/uncomplicate/neanderthal/examples/guides/tutorial_opencl_test.clj#L117-L122 <-- this code here from the tutorial is throwing an exception: OpenCL error; CL_INVALID_PLATFORM so clearly my opencl install is buggy. I have ubuntu 16.10; I have the nvidia-opencl-dev installed. I'm not sure what to try next to get OpenCL / Neanderthal working.

qqq21:03:16

hmm, just ran the minimal OpenCL C program:

qqq21:03:21

gota en error: failed to load kernel.

qqq21:03:30

so looks like fault is not neanderthal, but my OpenCL installation

qqq21:03:39

okay, got OpenCL C program to work, so fault is back in java/clojure/neanderthal land now

alandipert21:03:12

oh, i'm on 16.04, and i don't have any nvidia stuff going

qqq21:03:34

so you have neanderthal/lapack+blas+atlas, but not neanderthal/opencl-on-nvidia ?

alandipert21:03:36

i did sudo apt-get install libatlas-base-dev and then the boot cmd

qqq21:03:57

yeah, the lapack + blas + atlas part is working for me now

qqq21:03:12

my problem is: openCL works fine via a C program that I copied/pasted; but I can't get it working via neandertheral

qqq21:03:20

and I'd really like to use my 980 GTX Ti 🙂

qqq22:03:31

1) I just realized this is boot, not uncomplicate; worry for following up in wrong channel 2) I got it working, via with-default-1 (for legacy since nvidia is behind on opencl) instead of with-default