This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-07
Channels
- # admin-announcements (54)
- # announcements (1)
- # beginners (145)
- # boot (122)
- # cider (10)
- # cljs-dev (25)
- # cljsrn (20)
- # clojure (173)
- # clojure-art (4)
- # clojure-austria (1)
- # clojure-berlin (3)
- # clojure-germany (1)
- # clojure-nl (2)
- # clojure-russia (117)
- # clojure-switzerland (1)
- # clojure-uk (3)
- # clojurebridge (6)
- # clojurecup (36)
- # clojurescript (218)
- # clojurex (1)
- # core-typed (17)
- # cursive (23)
- # data-science (1)
- # datavis (2)
- # datomic (28)
- # emacs (3)
- # flambo (1)
- # hoplon (28)
- # ldnclj (19)
- # lein-figwheel (2)
- # leiningen (1)
- # luminus (1)
- # off-topic (1)
- # om (158)
- # portland-or (1)
- # re-frame (72)
- # reagent (48)
- # remote-jobs (1)
- # slack-help (7)
or an example of using boot checkout in an actual project?
@flyboarder: did you see the docstring?
yeah but it wasnt working for me
i run one instance from the dep project folder and the other from parent project folder?
am I required to pass in the deps I want to checkout?
calling (checkout)
will not do it for all of them?
I guess i assumed it would just do it for all of the listed deps if you didnt specify
it says it cannot find the dep artifact on clojars?
(checkout :dependencies '[[lounge.toolbar "0.1.0"]])
ah yes! im missing the org ns
the quoting of the ns symbols keeps getting me caught up
do we have a feel for how close is the v2.5 release? who is using it for daily development? im just asking because adi was throwing some strange errors and my tests ran slower and slower with every run:
Exception in thread "Thread-6" java.io.IOException: Stream closed, compiling:(adi/core/connection.clj:12:1)
@onetom: with 2.5.0-SNAPSHOT or 2.4.2?
I think the pod leak fix is in 2.4.2 already
but the fix for stream closed stuff is in 2.5.0
maybe give 2.5.0-SNAPSHOT a try?
I’m not sure what’s blocking 2.5.0, think it’s related to the changes in gpg handling ...
changelog for 2.5.0 is as long as changes for all other versions combined 😄
on my personal machine i can't even compile it now though, but maybe i just have to sleep on it
has anyone tried http2/spdy support for jetty?
i was wondering how much faster could the load time be on localhost of an :optimization :none
hoplon project
re: 2.5.0 we want to release but micha wanted to back out the recent gpg changes
which turned out to be tricky
I tried to chuck jetty9 into boot-http based on the http://sunng.info/blog/blog/2015/07/25/ring-on-http2/ article but im getting this error:
java.lang.IllegalStateException: ALPN not available
java.lang.IllegalStateException: ALPN must be in the boot classloader
org.eclipse.jetty.alpn.server.ALPNServerConnectionFactory.<init> ALPNServerConnectionFactory.java: 52
org.eclipse.jetty.alpn.server.ALPNServerConnectionFactory.<init> ALPNServerConnectionFactory.java: 40
ring.adapter.jetty9/create-server jetty9.clj: 127
ring.adapter.jetty9/run-jetty jetty9.clj: 187
...
pandeiro.boot-http.impl/server impl.clj: 108
i have no idea what is a bootclasspath but i saw some conversation about that a few days ago
i tried to add -Xbootclasspath/p:org.mortbay.jetty.alpn:alpn-boot
to BOOT_JVM_OPTIONS
but that doesn't seem to be enough
@onetom you have to download the jar matching you JMV version and then give path to the jar to -Xbootclasspath
Version should match this - http://www.eclipse.org/jetty/documentation/current/alpn-chapter.html#alpn-versions
#!/usr/bin/env bash
if [ -z "$ALPN_JAR_PROVIDED" ]; then
if [ -z "$ALPN_JAR_PATH" ]; then
boot_classpath=`boot show -c`;
IFS=':' read -ra boot_classpath <<< "$boot_classpath";
for i in "${boot_classpath[@]}"; do
if [[ `echo "$i" | grep "alpn-boot"` ]]; then
ALPN_JAR_PATH=$i;
fi
done
fi
echo "ALPN jar found at: $ALPN_JAR_PATH";
ALPN_JAR_OPT="-Xbootclasspath/p:$ALPN_JAR_PATH";
else
echo "ALPN jar already provided"
fi
export PANDA5_SSL_TRUSTSTORE=${PANDA5_SSL_TRUSTSTORE:-"../../certs/server.truststore"}
export PANDA5_SSL_KEYSTORE=${PANDA5_SSL_KEYSTORE:-"../../certs/server.keystore"}
read -d '' BOOT_JVM_OPTIONS<<-EOF
$JAVA_OPTS $ALPN_JAR_OPT -Xmx2g -client -XX:+UseCompressedOops -XX:+TieredCompilation \
-XX:TieredStopAtLevel=1 -Xverify:none -Dclojure.compiler.disable-locals-clearing=true \
-XX:-OmitStackTraceInFastThrow -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC -XX:MaxGCPauseMillis=200 \
-XX:ParallelGCThreads=10 -XX:ConcGCThreads=4 -XX:InitiatingHeapOccupancyPercent=75 \
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=${PANDA5_JDPA_PORT:-5005}
EOF
BOOT_JVM_OPTIONS="$BOOT_JVM_OPTIONS" boot "$@";
For deployment you'd want to just have the jar somewhere else and pass it to the java
command
thx. i also just had it downloaded with boot but didnt think about the :boot "test" bit.
It would just be dead load, since you have to have it outside the archive you run to provide it on the boot classpath
based on your avatar u still have a lot of hair... i suspect i lost most of my hair while compiling linux kernels are trying to configure x11 servers with multiple monitors or the poulsbo chipset by excluding some video memory regions to avoid random freezes and allow wake from sleep. i have fraction of the problems on macs compared to that...
Actually, the avatar is misleading - I'm 25 and while I have long-ish hair on the side, I am totally balding on the top : |
I also had some problems with Linux, but not as big as yours and I really appreciate being able to run xmonad.
I probably wouldn't be able to live without a tiling wm, especially now that my cat trashed my second screen and I'm force to work on one '
@jaen: since im trying to just use it as a local dev server, can i just run it without encryption? or even without encryption i still need this ALPN thing?
ah, i just read https://www.cloudflare.com/http2/what-is-http2/ but not closely enough. it indeed states: > HTTP/2 does not technically require an encrypted connection, but the majority of implementations only support HTTP/2 when used in conjunction with SSL/TLS. > No browsers currently support HTTP/2 over an unencrypted connection.