Fork me on GitHub
#clojure
<
2016-05-08
>
thug.nasty01:05:12

does anyone happen to know what would be causing my data to not be coerced? http://pastebin.com/awmV9cHy

thug.nasty02:05:28

wow, seems that I needed to restart the server, got a whole different load of issues now! #progress 😉

pedroiago03:05:15

what's the natural way to represent a time signal in clojure? I am in between a vector (not sure if persistance saves memory here) and datomic (which seems too much, since specter solves my queries just fine).

plexus10:05:08

hitting some java weirdness using browse-url. If I give it a http:// url it opens the correct default browser, Firefox. If I give it a file:/// url it opens chrome. Awesome stuff to debug.

plexus11:05:01

passing it the file name without a uri scheme does what I want so I guess I'm going with that for now ¯\(ツ)

triss12:05:34

hey all. What's up with my namespace declaration?

triss12:05:50

(ns pooper-looper.touch-osc
  (:refer-clojure :exclude [send])
  (:refer [clojure.core.async :as async :refer [<!]]
          [clojure.string :as string])
  (:use overtone.live))

triss12:05:19

I'm getting ClassCastException clojure.lang.PersistentVector cannot be cast to clojure.lang.Symbol clojure.core/find-ns (core.clj:3996)

Alex Miller (Clojure team)12:05:33

You want require not refer

bojan.matic19:05:42

If i want to write a cross platform gui app in clojure, what would be the best approach tool and library-wise?

bojan.matic19:05:28

Something like a swing wrapper or go the light table approach and use electron and web tech with cljs etc?

sveri19:05:06

bojan.matic: I guess JavaFX is the way to go, however, the two clojure wrappers that exist are not production ready. I also had a hard time using them . I think https://github.com/daveray/seesaw is the most mature clojure library, wrapping swing. I cannot comment on electron or similar stuff, never tried it. And in the end you can still write a web app which is the most cross platform it can get 😉

bojan.matic19:05:58

It cant be web app, has to run locally

sveri19:05:02

AFAIK a jar runs locally 😉

mtnygard20:05:19

@sveri @bojan.matic I’ve got a biggish project using JavaFX. You don’t need a wrapper lib. Calling it with interop works great.

sveri20:05:47

@mtnygard: that sounds good, did you get code reload through the repl working?

mtnygard22:05:12

@sveri Mostly. The only tricky bit is initializing JavaFX. I used the “Swing JFXPanel” trick to force JavaFX to load when I load Clojure namespaces. If you don’t do that first, then even importing classes from javafx.* will cause exceptions during load-lib.

mtnygard22:05:40

That namespace should never be reloaded. Everything else worked fine.

mtnygard22:05:00

I did have to write a Java class to load Clojure. From there, it starts a REPL.