This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-28
Channels
- # beginners (8)
- # boot (49)
- # cljs-dev (29)
- # cljsrn (9)
- # clojure (238)
- # clojure-dev (3)
- # clojure-gamedev (1)
- # clojure-italy (7)
- # clojure-norway (11)
- # clojure-russia (39)
- # clojure-sanfrancisco (3)
- # clojure-spec (116)
- # clojure-sweden (2)
- # clojure-uk (53)
- # clojurescript (90)
- # cursive (13)
- # datomic (12)
- # defnpodcast (2)
- # dirac (1)
- # emacs (11)
- # figwheel (2)
- # hoplon (15)
- # jobs (3)
- # jobs-discuss (48)
- # keechma (1)
- # klipse (4)
- # leiningen (16)
- # luminus (4)
- # lumo (49)
- # mount (10)
- # off-topic (1)
- # om (13)
- # onyx (15)
- # pedestal (67)
- # perun (1)
- # planck (16)
- # powderkeg (33)
- # proton (1)
- # protorepl (2)
- # re-frame (16)
- # reagent (4)
- # ring (9)
- # ring-swagger (10)
- # rum (5)
- # slack-help (1)
- # spacemacs (1)
- # uncomplicate (15)
- # untangled (19)
- # yada (58)
@qqq i think there is a compiler option for that purpose
:require
@richiardiandrea : can you point me at sample code? I only know about using it for requiring namespaces
so I need to write actual server code, instead of just use boot-http what is the recommended server side for use with boot ?
@qqq sorry I mixed up the options, it is https://github.com/clojure/clojurescript/wiki/Compiler-Options#preloads what I was talking about
@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 magical!@
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@borkdude What is the webjars dependency you are using?
@juhoteperi [org.webjars/graphiql "0.3.1-1" :scope "test"]
:file "META-INF/resources/webjars/graphiql/0.3.1-1/graphiql.js",
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
Did you define :foreign-libs
in :compiler-options
or deps.cljs
?
I wasn't sure if Cljs correctly resolves files from classpath when foreign libs are defined in compiler options
@juhoteperi Thanks again, you rock 🙂
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
:npm-deps
might work with latest Cljs compiler
@borkdude https://anmonteiro.com/2017/03/requiring-node-js-modules-from-clojurescript-namespaces/
Hmmh, might require Cljs compiler from git master 😉
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.
@m it’s not quite possible since boot’s dependency capabilities are very dynamic
Does anyone have a moment to take a look at my PR: https://github.com/boot-clj/boot/pull/597? @micha perhaps? 🙂
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 ?this worked for me:
sudo apt-get install libatlas-base-dev
LD_PRELOAD=/usr/lib/liblapack_atlas.so boot -d uncomplicate/neanderthal repl
(use '[uncomplicate.neanderthal core native])
from the post didn't work
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)
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.
okay, got OpenCL C program to work, so fault is back in java/clojure/neanderthal land now
oh, i'm on 16.04, and i don't have any nvidia stuff going
i did sudo apt-get install libatlas-base-dev
and then the boot cmd