Re: Getting highlighted clojure code into a presentation

2013-05-18 Thread Karsten Schmidt
Btw. Has anyone managed to run htmlize or htmlfontify with rainbow delimiters enabled? Both throw errors like this for me (but I really would like to export w/ rainbow brackets): Wrong type argument: symbolp, "rainbow-delimiters-depth-1-face" Thanks, K. -- -- You received this message because

Re: End user applications

2013-06-13 Thread Karsten Schmidt
Hey, just recently I've completed my first full Clojure client project, the new identity for Leeds College of Music. Some pretty pictures: http://flickr.com/toxi/sets/72157630719227308/ The project is a 3-tier system, consisting of: 1) OSX app with custom OpenGL GUI to create & preview new brand

Re: Clojure in production

2013-06-13 Thread Karsten Schmidt
Just for completeness' sake, my two pence: https://groups.google.com/d/msg/clojure/Z995K48BZGA/IDSAEm-PKFkJ >> On Monday, June 10, 2013 5:47:25 PM UTC-4, Plinio Balduino wrote: >>> >>> Hi there >>> >>> I'm writing a talk about Clojure in the real world and I would like to >>> know, if possible, wh

generating core.logic queries

2013-06-21 Thread Karsten Schmidt
Hi all, am toying around with the thought of generating core.logic queries dynamically. However, I'm stuck at square one since all the core.logic functions are macros and am not sure how to refer to logic vars within a query generator fn. E.g. given this list of facts... (def myfacts [[:karsten

Re: generating core.logic queries

2013-06-21 Thread Karsten Schmidt
Thanks, David! I wasn't aware the macros are just sugar. Time to study the source more closely! The above code was very naive indeed, but for sake of illustration only. These queries would only ever deal with a small subset of facts, which have already been selected from a number of indexes. K. --

lazy-seq with meta

2013-07-12 Thread Karsten Schmidt
Hello, what is the correct way (assuming there is one) to create a lazy-seq with metadata attached? The below works for short seqs, but causes a stack overflow for large ones, which obviously means the lazy-seq mechanism is altered/broken if wrapped with `with-meta`. So I guess there must be anothe

Re: lazy-seq with meta

2013-07-12 Thread Karsten Schmidt
apart from attaching to every single triple in the seq (which seems like overkill). Are there any other options I'm missing here? On 12 July 2013 14:42, Karsten Schmidt wrote: > Hello, what is the correct way (assuming there is one) to create a lazy-seq > with metadata attached? The

Re: [ANN] Vertigo: fast, idiomatic C-style structs

2013-07-15 Thread Karsten Schmidt
" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visi

Re: PoC: Combining Wikidata and Clojure logic programming

2013-08-07 Thread Karsten Schmidt
Hi Mingli, FYI for the past 3 months I've been working almost fulltime on a lightweight, modular RDF Clojure toolkit, which I plan to opensource in the near future, once the core API has more solidified. The kit so far features: * core RDF datatype protocols (URIs, blank nodes, literals, containe

Re: Wrong documentation of contains?

2013-08-07 Thread Karsten Schmidt
The fact, that the docs refer to checking if a "key" is present in the collection, should make it obvious which types are supported, no? Only vectors, maps and sets have keys. Lists and seqs do not. Of course it never hurts to be more explicit about it... On 7 Aug 2013 12:49, "Marcus Lindner" wrot

Re: PoC: Combining Wikidata and Clojure logic programming

2013-08-07 Thread Karsten Schmidt
rent approach, and benchmark them. > > I am new to this area, and trying to learn more! Thanks again. > > Regards, > Mingli > > > > > On Wed, Aug 7, 2013 at 7:53 PM, Karsten Schmidt > wrote: >> >> Hi Mingli, >> >> FYI for the past 3 months I'

Re: Feature toggles via Leiningen profiles

2013-08-12 Thread Karsten Schmidt
Hi Michal, have a look at this gist to see how this can be done: https://gist.github.com/postspectacular/6214886 Best, K. -- Karsten Schmidt http://postspectacular.com | http://toxiclibs.org | http://thi.ng -- -- You received this message because you are subscribed to the Google Groups

Re: hashing binary data

2013-09-04 Thread Karsten Schmidt
On 4 September 2013 17:52, Brian Craft wrote: > This gives me a number of reflection warnings, on field ba, on equals, and > on hashCode. I can eliminate the one on hashCode by type hinting the ba > parameter of BAHashable. > > The one on (.ba g) and equals remains. Is there any way to hint these

macro woes (deftype generator)

2013-09-11 Thread Karsten Schmidt
Hi, I'm (once again) despairing over some issues trying to integrate one macro with another. Both are supposed to be used together to generate a bunch of deftypes. Firstly, here's the one working correctly (stripped out error checking for simplicity): (defmacro swizzle* "Takes a class name, sour

Re: macro woes (deftype generator)

2013-09-12 Thread Karsten Schmidt
.com/mikera/vectorz-clj > And core.matrix: https://github.com/mikera/matrix-api > > If vectorz-clj and/or core.matrix doesn't quite fit your needs, could you > let me know why? I'm keen to address all the common vector use cases that > people have in Clojure, so that peopl

Re: macro woes (deftype generator)

2013-09-12 Thread Karsten Schmidt
wrote: > Karsten Schmidt writes: > > > Now, where things go wrong is when I try to use this swizzle macro > > from within the 2nd macro which generates the deftype skeleton (also > > stripped down): > ... > > > (defvec 3) > > CompilerException java.lang.Illega

[ANN] thi.ng collection update (CLJ/CLJS)

2015-02-24 Thread Karsten Schmidt
n the above site were created with these... [1] https://github.com/thi-ng/geom/blob/master/geom-svg/src/examples.org [2] https://github.com/thi-ng/trio/blob/master/src/query.org [3] http://orgmode.org/ -- Karsten Schmidt http://postspectacular.com | http://thi.ng/ -- You received this message

Re: [ClojureScript] [ANN] thi.ng collection update (CLJ/CLJS)

2015-02-25 Thread Karsten Schmidt
rest of it and loved your use of it at The Barbican. I > need to get my head around it all. I'm wondering if I can use it for > some of the geographic and other charting things I do a lot of). > > cheers, > Bruce > > On Wed, Feb 25, 2015 at 5:06 AM, Karsten Schmidt wr

Re: [ClojureScript] [ANN] thi.ng collection update (CLJ/CLJS)

2015-02-25 Thread Karsten Schmidt
7;t seem to have constructive solid geometry for things which aren't > meshes.) > > -Jason > > On Wed, Feb 25, 2015 at 4:13 PM, Karsten Schmidt wrote: >> >> That's a good point, Bruce! To be honest, I don't know anymore, but it >> makes complete se

Re: [ClojureScript] [ANN] thi.ng collection update (CLJ/CLJS)

2015-02-25 Thread Karsten Schmidt
ht that map was a photo of 3d printed shapes, but it makes > sense that you're using luxrender now. Is there a video of the animation > online somewhere? > > On Wed Feb 25 2015 at 6:13:25 PM Karsten Schmidt wrote: >> >> That's a good point, Bruce! To be honest, I

Re: [ClojureScript] [ANN] thi.ng collection update (CLJ/CLJS)

2015-03-13 Thread Karsten Schmidt
015 at 6:13 PM, Karsten Schmidt wrote: > That's a good point, Bruce! To be honest, I don't know anymore, but it > makes complete sense to change it. Consider it done! :) > > As for your mapping question, yes, of course! I've done a few of them. > E.g. the first pic on

nested transducers

2015-03-25 Thread Karsten Schmidt
Just a quick sense checking question, since I can't find much info/examples about this: Is this use of `eduction` the most efficient and/or idiomatic way to create a 1:N mapping? I.e. in the example below for each value in `cells` N transformed values are created... Could this be also achieved vi

Re: Deterministic macro expansion for Clojure?

2015-03-31 Thread Karsten Schmidt
.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more opt

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-03-31 Thread Karsten Schmidt
e subscribed to the Google Groups > "Clojure Dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure-dev+unsubscr...@googlegroups.com. > To post to this group, send email to clojure-...@googlegroups.com. > Visit th

[ANN] thi.ng additions/updates

2015-05-31 Thread Karsten Schmidt
Hi Clojurians, had a bit of a release train this weekend w/ some new (and old, overdue) additions to the thi.ng library collection (all including examples): http://thi.ng/simplecl - OpenCL wrapper http://thi.ng/structgen - Interop between C structs & Clojure data structures (maps/vectors) http://

Re: Advice when running java -jar rather than a managed server like tomcat?

2015-06-01 Thread Karsten Schmidt
legroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en >

[ANN] thi,ng/geom 0.0.856 (new dataviz module)

2015-06-13 Thread Karsten Schmidt
.856 version: - added voxel/isosurface examples - updated dependencies (clj-1.7,0-RC1, cljs-3308, thi.ng/ndarray 0.2.0) Enjoy! K. -- Karsten Schmidt http://postspectacular.com | http://thi.ng | http://toxiclibs.org -- You received this message because you are subscribed to the Google Groups &quo

Re: [ClojureScript] [ANN] thi,ng/geom 0.0.856 (new dataviz module)

2015-06-14 Thread Karsten Schmidt
15 at 04:58, Marc Fawzi wrote: > Does the viz module aspire to catch up with d3 on the transitions front? > Awesome stuff and will definitely try out the API and make some requests! > > Sent from my iPhone > >> On Jun 13, 2015, at 5:01 PM, Karsten Schmidt wrote: >> >

Re: [ANN] ClojureCL - OpenCL 2.0 Clojure library (GPGPU and high performance parallel computing)

2015-06-14 Thread Karsten Schmidt
re subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Karsten Schmidt http://postsp

Re: [ANN] ClojureCL - OpenCL 2.0 Clojure library (GPGPU and high performance parallel computing)

2015-06-14 Thread Karsten Schmidt
what made you choose one JOCL over another? :) On 14 June 2015 at 19:23, Karsten Schmidt wrote: > Hi Dragan, this looks great & will check it out ASAP! Just one > question about your OSX note - for http://thi.ng/simplecl (also based > on JOCL) I didn't have to jump through ext

[ANN] thi.ng/color 0.3.0

2015-06-15 Thread Karsten Schmidt
osines[1] [thi.ng/color "0.3.0"] [1] https://github.com/thi-ng/color/blob/master/src/gradients.org#presets -- Karsten Schmidt http://postspectacular.com | http://thi.ng | http://toxiclibs.org -- You received this message because you are subscribed to the Google Groups "Clojure&

Re: [ANN] ClojureCL - OpenCL 2.0 Clojure library (GPGPU and high performance parallel computing)

2015-06-15 Thread Karsten Schmidt
ork out of the box... > > On Sunday, June 14, 2015 at 8:24:06 PM UTC+2, Karsten Schmidt wrote: >> >> Hi Dragan, this looks great & will check it out ASAP! Just one >> question about your OSX note - for http://thi.ng/simplecl (also based >> on JOCL) I didn't hav

Re: [ANN] thi,ng/geom 0.0.856 (new dataviz module)

2015-06-15 Thread Karsten Schmidt
t is still missing (from my > perspective) are 3D visualizations (not OpenGL 3D, but any xyz axis 3D). Is > there any hope you'd add that, an if yes - what are your plans? > > > On Sunday, June 14, 2015 at 2:01:25 AM UTC+2, Karsten Schmidt wrote: >> >> Hi all, >&g

Re: Clojure on AWS Lambda?

2015-06-15 Thread Karsten Schmidt
patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to

Re: 1.7.0b2, lein, cljc and tests

2015-06-19 Thread Karsten Schmidt
Hi Alex, I looked at this a couple of weeks ago and it actually also has to do with the bultitude fn called within that fn you patched. Bultitude has been fixed and there was a new release end of May, but not sure if lein has been updated meanwhile... https://github.com/Raynes/bultitude/commit/d8

Re: 1.7.0b2, lein, cljc and tests

2015-06-19 Thread Karsten Schmidt
Colin, in the meantime you can still test by stating your ns as arg: lein test my.ns.test.core On 19 Jun 2015 18:21, "Karsten Schmidt" wrote: > Hi Alex, > > I looked at this a couple of weeks ago and it actually also has to do with > the bultitude fn called within that fn

Recur arg type problem

2015-06-20 Thread Karsten Schmidt
I just encountered a problem with recur, I never came across before. Am trying to generate `coll-reduce` implementations over primitive nd-arrays and get bitten by special type restrictions on recur args if they're an initially primitive value (using 1.7.0-RC2): (loop [acc (aget ^bytes a 0) i 1]

Re: Recur arg type problem

2015-06-20 Thread Karsten Schmidt
Ah, wrapping the initial `acc` val in `(num)` works... On 20 June 2015 at 15:05, Karsten Schmidt wrote: > I just encountered a problem with recur, I never came across before. > Am trying to generate `coll-reduce` implementations over primitive > nd-arrays and get bitten by spe

Re: [ANN] thi,ng/geom 0.0.856 (new dataviz module)

2015-06-21 Thread Karsten Schmidt
ause you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Karsten Schmidt http

Re: [ANN] superstring - A string manipulation library

2015-06-21 Thread Karsten Schmidt
ved this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Karsten Sc

DevArt Co(de)Factory open source release

2014-08-20 Thread Karsten Schmidt
r nature :) Well, I hope some of you find this release useful & educational. All my best, K. -- Karsten Schmidt w: http://postspectacular.com w: http://thi.ng/ w: http://toxiclibs.org -- You received this message because you are subscribed to the Google Groups "Clojure" grou

Re: [ClojureScript] DevArt Co(de)Factory open source release

2014-08-20 Thread Karsten Schmidt
t; Bruce > > On Wed, Aug 20, 2014 at 1:31 PM, Karsten Schmidt wrote: >> Hi fellow Clojurians, >> >> it's my absolute pleasure to finally announce the open source release >> of an art project I've been working on full-time since beginning of >> the ye

Re: [ClojureScript] Re: DevArt Co(de)Factory open source release

2014-08-23 Thread Karsten Schmidt
e Closure compiler indirectly...) On 23 Aug 2014 10:24, "Zubair Quraishi" wrote: > So does this mean that Google is experimenting with Clojurescript then? > > On Wednesday, August 20, 2014 1:31:13 PM UTC+1, Karsten Schmidt wrote: > > Hi fellow Clojurians, > > > >

ClassCastExecption with conj on deftype

2014-09-03 Thread Karsten Schmidt
Hi all, I've defined a custom vector type and implemented various clj/cljs protocols, but now ended up hitting my head against some weird behaviour with conj (or rather cons, internally). The type defines a 2-element vector-like construct and my cons implementation would simply return a standard c

Re: ClassCastExecption with conj on deftype

2014-09-03 Thread Karsten Schmidt
K. On 3 September 2014 18:13, Karsten Schmidt wrote: > Hi all, > > I've defined a custom vector type and implemented various clj/cljs > protocols, but now ended up hitting my head against some weird behaviour > with conj (or rather cons, internally). The type > defines a 2-element

Re: ClassCastExecption with conj on deftype

2014-09-03 Thread Karsten Schmidt
might want to look at > > https://github.com/ztellman/clj-tuple/blob/master/src/clj_tuple.clj > > > > On Wed, Sep 3, 2014 at 1:13 PM, Karsten Schmidt wrote: >> Hi all, >> >> I've defined a custom vector type and implemented various clj/cljs >> pro

[ANN] thi.ng/crypto - GPG/OpenPGP keypair generation, file/stream encryption helpers

2014-10-23 Thread Karsten Schmidt
-key "alice.pub.asc")) ; => nil ;; decrypt with secret key & passphrase (decrypt-stream "foo.gpg" "foo-decrypted.txt" (secret-key "alice.sec.asc") "hello") ; => # (slurp "foo-decrypted.txt") ; => "hello world!" Best, K. -

Re: [ANN] thi.ng/crypto - GPG/OpenPGP keypair generation, file/stream encryption helpers

2014-10-23 Thread Karsten Schmidt
already exist that: https://github.com/greglook/clj-pgp > And not directly related to pgp but reladed with bouncycastle and encryption > api: https://github.com/niwibe/buddy > > Would be awesome to colaborate! > > Greetings. > Andrey > > 2014-10-23 18:26 GMT+02:00 Karsten

corrupted clojars deploys & broken downstream projects - what are immediate alternatives?

2014-11-09 Thread Karsten Schmidt
Hi people, two things: 1) I've just filed an issue about recent deployment failures to clojars and would like to know if anyone else has been experiencing this problem 2) Since the broken deploys only seem to copy the .jar files, but no POMs and also fail to update maven-metadata.xml any downstre

Re: Library to create/apply patches of clojure data

2014-11-15 Thread Karsten Schmidt
d - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscrib

Re: Library to create/apply patches of clojure data

2014-11-15 Thread Karsten Schmidt
ov. 2014 kl. 23.09 skrev Karsten Schmidt : >> >> Hi Robin, I just found a link to this library in the depths of the >> Liberator docs: >> >> https://github.com/daviddpark/clj-json-patch >> >> Maybe that's more helpful... (haven't tried it mysel

Re: [ANN] clj-fl 0.1.0.prealfa5 - Frame language library for Clojure

2014-11-19 Thread Karsten Schmidt
Hi Luciano, I never heard of this Frame language, but this seems closely related to RDF and triple stores, something I've been working on for the past year (not as often as I wished): http://thi.ng/trio This project is actually designed to only address the non-RDF aspects of triple stores, with

Re: ring jetty adaptor: any way to abort on unrecoverable error?

2014-11-27 Thread Karsten Schmidt
Would this maybe help? (try (run-jetty handler {:port 8080}) (catch java.net.BindException e (println "Can't launch jetty:" (.getMessage e)) (System/exit 1))) On 27 November 2014 at 03:51, Brian Craft wrote: > If jetty fails to bind a port because it's in use an exception is thrown,

Workshop report: Generative design systems with Clojure

2016-06-26 Thread Karsten Schmidt
mai46g3no Since this isn't a very much talked about topic in this community, I hope some of you find it interesting... Best, K. -- Karsten Schmidt http://thi.ng -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this grou

Re: Reflection needed ? More precise types returned from higher-order function (i.e. comp and partial) ?

2016-06-28 Thread Karsten Schmidt
email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/

Re: Destructure Date Object

2016-08-10 Thread Karsten Schmidt
unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > T

Re: Datomic evals clojure subset in datalog - how can I do this?

2017-09-03 Thread Karsten Schmidt
d this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.

Re: Writing a text adventure in Clojure

2018-03-30 Thread Karsten Schmidt
at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. &

new thi.ng website and additions

2015-10-08 Thread Karsten Schmidt
Just a quick heads up that I've been re-working the website for my collection of 20+ libraries, now with a bit more one-stop info, stats and projects filterable via tags. The site now also features recent additions like: http://thi.ng/#thi.ng/fabric 0.0.376 Flexible compute graph framework, fact

Re: org-mode Clojure babel

2015-11-03 Thread Karsten Schmidt
t;Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Karsten Schmidt http://postspectacular.com | http://thi.ng | http://toxiclibs.

Data visualization workshops post-mortem

2015-11-19 Thread Karsten Schmidt
For those interested in data visualization with CLJ/CLJS, my thi.ng libs, reagent & figwheel, I've recently been teaching two 3-day workshops in London and published repos with fully commented source code, incl. a lengthy report of the last workshop here: https://medium.com/@thi.ng/workshop-report

Re: range-sum

2014-02-06 Thread Karsten Schmidt
ribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. &

CLJX & CLJS problem

2014-02-13 Thread Karsten Schmidt
I've been busy working on a few libraries targetting both Clojure & ClojureScript, however so far have only tested the CLJ side and now that it comes to addressing CLJS am running in circles (and on fumes) unsuccessfully trying to tweak my project settings to make things work. All my source is usi

Re: Clojure code for detecting overlap of 3d shapes (specifically tetrahedra)?

2014-02-15 Thread Karsten Schmidt
or more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to c

Re: CLJX & CLJS problem

2014-02-15 Thread Karsten Schmidt
JAR (contains both .clj & .cljs >>>>> versions). >>>>> >>>>> So I then assumed the reasons for this are the non-standard names for >>>>> the source folders. But adding this line at the root level of >>>>> project.clj will no

Re: Clojure code for detecting overlap of 3d shapes (specifically tetrahedra)?

2014-02-16 Thread Karsten Schmidt
auses are checked. K. [1] https://gist.github.com/postspectacular/9021724 On 15 February 2014 17:25, Lee Spector wrote: > > > On Feb 15, 2014, at 11:49 AM, Karsten Schmidt wrote: > >> Hi Lee, I've already implemented the algorithm described in this paper >> and it will b

Lein, Speclj & clojure 1.6.0-beta1

2014-02-17 Thread Karsten Schmidt
Hi all, am trying to test out the new hashing approach for my datatypes in 1.6 but it seems that even though I'm referring to the latest beta in my project.clj, Speclj is overriding that dependency with 1.5.1 and I can't run my tests. How can I force it to honor my setting and use 1.6.0-beta1? I gu

Re: Lein, Speclj & clojure 1.6.0-beta1

2014-02-17 Thread Karsten Schmidt
Oh I just saw that's a known issue with Speclj and its setting of `:eval-in :leiningen` https://github.com/slagyr/speclj/issues/78 I guess i will have to switch to another test framework then... On 17 Feb 2014 12:09, "Karsten Schmidt" wrote: > Hi all, am trying to test o

Macro writing macro fails with CLJS

2014-02-23 Thread Karsten Schmidt
Hi, I've written a macro to build inline expanded math expressions and it's working well in Clojure, however fails with a compile exception in CLJS. I'm not sure if this is a shortcoming of the CLJS compiler or (much more likely) a mistake with my macro. (ns macromath.core) (defmacro defmathop

Re: Macro writing macro fails with CLJS

2014-02-23 Thread Karsten Schmidt
, "Karsten Schmidt" wrote: > Hi, I've written a macro to build inline expanded math expressions and > it's working well in Clojure, however fails with a compile exception > in CLJS. I'm not sure if this is a shortcoming of the CLJS compiler or > (much more lik

Re: Macro writing macro fails with CLJS

2014-02-23 Thread Karsten Schmidt
~f2 " ~{})") a# b# c#)) ([a# b# c# d#] (list '~'js* (str "((~{} " ~f " ~{}) " ~f2 " (~{} " ~f " ~{}))") a# b# c# d# (defmathop madd "*" "+") Thanks for any answers! On 23 February 201

Re: Macro writing macro fails with CLJS

2014-02-23 Thread Karsten Schmidt
; you're encountering is a long outstanding wart that ClojureScript macros > resolve symbols in Clojure not ClojureScript. Instead of + (which is > actually clojure.core/+) you want to specify cljs.core/+: > > (defmathop cljs.core/+ cljs.core/+) > > > On Sun, Feb 23, 2014 at 2:47 PM

[ANN] thing-babel: lein template for org-mode babel projects

2014-02-23 Thread Karsten Schmidt
Just a heads up for anyone interested in creating their new project(s) in a literal programming style with org-mode: I've just pushed a new configurable Leiningen project template to Clojars which creates a bunch of .org files together with a suitable tangle script to generate (and regenerate) a c

Re: Macro writing macro fails with CLJS

2014-02-23 Thread Karsten Schmidt
s." > [name f f2] > `(defmacro ~name > ([a# b# c#] `(~'~f2 (~'~f ~a# ~b#) ~c#)) > ([a# b# c# d#] `(~'~f2 (~'~f ~a# ~b#) (~'~f ~c# ~d#) > > On Sunday, February 23, 2014, Karsten Schmidt wrote: >> >> T

Re: Clojure code for detecting overlap of 3d shapes (specifically tetrahedra)?

2014-02-25 Thread Karsten Schmidt
gist once more... I verified symmetric results of your test case and also compared once more with the C version. https://gist.github.com/postspectacular/9021724/revisions Hth! K. On 25 February 2014 20:21, Lee Spector wrote: > On Feb 16, 2014, at 5:07 PM, Karsten Schmidt wrote: > >>

Re: Macro writing macro fails with CLJS

2014-02-27 Thread Karsten Schmidt
ob/master/index.org Thanks once more for the pointers! On 24 February 2014 15:10, David Nolen wrote: > If I recall you are allowed to splice in references to Java objects so this > works out in Clojure. > > > On Sunday, February 23, 2014, Karsten Schmidt wrote: >> >> Oh

[ANN] 1st public release of thi.ng geometry toolkit (CLJ & CLJS)

2014-03-10 Thread Karsten Schmidt
It is my absolute pleasure to finally announce the first public release of the 2d/3d geometry library/toolkit: thi.ng/geom Having worked on this regularly since late 2011 as successor of my Java-based toxiclibs.org project, the new project has already undergone three complete overhauls as I've bee

[ANN] 1st public release of luxor - 3d scene compiler for Luxrender

2014-03-10 Thread Karsten Schmidt
Following up on the announcement of thi.ng/geom, I've also just pushed the first release of a related support library: thi.ng/luxor, a 3d scene compiler & mesh exporter for creating high definition & high resolution renders with Luxrender. Luxrender.net is an open source, physically based, unbiase

[ANN] thi.ng/validate - purely functional validation & correction

2014-03-10 Thread Karsten Schmidt
Last release of today, I promise... :) thi.ng/validate is (by now) yet-another-validation library, but actually is almost a year old and AFAIK has some unique features I dearly missed in other contenders and maybe you've (missed them) too: - pure functions, no macros - composable validator fns -

Re: Do I have to have knowlegde about Lisp

2014-03-10 Thread Karsten Schmidt
ure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.g

Re: [ANN] 1st public release of thi.ng geometry toolkit (CLJ & CLJS)

2014-03-15 Thread Karsten Schmidt
m/reasonsto/439416380761591809 [2] http://hg.postspectacular.com/toxiclibs/ [3] https://devart.withgoogle.com/#/project/16501507 On 11 Mar 2014 07:07, "Baishampayan Ghose" wrote: > Brilliant work. Major kudos for writing a literate program. ~BG > > On Tue, Mar 11, 2014 at

Re: [ANN] 1st public release of thi.ng geometry toolkit (CLJ & CLJS)

2014-03-15 Thread Karsten Schmidt
dges/lines, but lines have bounding rects/circles too etc. Since all of these types and operations are working via protocols, I could see no better way than what I've currently done. If anyone has some clever idea to improve on this (and is CLJS compatible), I'm all ear! On 15 Mar 2014 1

[ANN] thing-babel 0.2.0: lein template for org-mode babel projects

2014-03-15 Thread Karsten Schmidt
A new version of this configurable, literate programming template is available: https://github.com/thi-ng/babel The template is aimed at an x-platform CLJX project structure. v0.2.0 includes the following changes/additions: - generated .org files are now placed in dedicated src & test sub folde

Re: (bytecode 'function-that-you-want-to-view-bytecode-of) ?

2014-03-16 Thread Karsten Schmidt
Jules, there's also the no.disassemble lein plugin which works for any repl: https://github.com/gtrak/no.disassemble On 16 Mar 2014 00:13, "Jules" wrote: > > H > > Looks like it's time I figured out how to use Cider - it appears to have > support for decompiling funcs at the repl... > >

[ANN] thi.ng/morphogen - Declarative 3D form evolution through tree-based transformations

2014-03-21 Thread Karsten Schmidt
Hi all, I've just pushed the first (promising) beginnings of a new project to GH and would like to share with you: https://github.com/thi-ng/morphogen/ Building on top of its companions, the recently announced thi.ng/geom & thi.ng/luxor libraries, morphogen provides a set of extensible building b

Re: Real World Example

2014-04-10 Thread Karsten Schmidt
Hi Anthony, unfortunately I can't point you to actual code examples (since this was work for a client), but I've got some screenshots & screenrecordings of a few OpenGL/CL desktop apps written in Clojure. Both of them don't use Swing for UI, but a custom widget system sitting straight on OpenGL2+ (

Re: clojure.test parameterized tests

2014-05-02 Thread Karsten Schmidt
You can use the `testing` macro and wrap it in a function, which accepts your type/protocol implementation or even individual protocol methods as args. Example here: https://github.com/thi-ng/geom/blob/master/test/core.org#callable-contexts On 2 May 2014 18:08, "Brian Craft" wrote: > Thanks. I d

Re: Looking for help with a Stack Overflow error

2014-05-17 Thread Karsten Schmidt
Hi Brad, I can't help you with your solution, but just wanted to mention that the core.logic library might be a great tool for this kind of problem (plus I'd be v.interested in seeing a solution using this myself... :) K. On 16 May 2014 22:15, "Brad Kurtz" wrote: > I have since fixed the origina

Extend-protocol to numbers fails with zero in CLJS

2014-06-06 Thread Karsten Schmidt
I'm trying to extend-protocol for numbers and various other types (incl. collections & nil) in CLJS, so have been doing something like this (reduced email version): (defprotocol PDeltaEq (delta= [a b])) (extend-protocol PDeltaEq js/Number (delta= [a b] :yay) nil (delta= [_ b] (nil? b)))

Re: Extend-protocol to numbers fails with zero in CLJS

2014-06-06 Thread Karsten Schmidt
...actually, this would be sufficient: if (goog.isDefAndNotNull(and__3466__auto__)) { ... } On 6 Jun 2014 17:57, "Karsten Schmidt" wrote: > I'm trying to extend-protocol for numbers and various other types (incl. > collections & nil) in CLJS, so have been doing som

Re: ClojureScript & Clojure 1.6.0

2014-06-06 Thread Karsten Schmidt
+1 On 6 Jun 2014 16:59, "David Nolen" wrote: > Clojure 1.6.0 introduced Murmur3 for much improved collection hashing and > several new functions & macros. There's very little incentive to continue > to support 1.5.X given these enhancements. > > David > > > On Fri, Jun 6, 2014 at 11:48 AM, Joshua

Re: Extend-protocol to numbers fails with zero in CLJS

2014-06-08 Thread Karsten Schmidt
shouldn't extend any js/* type > > On Friday, June 6, 2014 9:57:38 AM UTC-7, Karsten Schmidt wrote: >> >> I'm trying to extend-protocol for numbers and various other types (incl. >> collections & nil) in CLJS, so have been doing something like this (reduced &

Re: ClojureScript & Clojure 1.6.0

2014-06-09 Thread Karsten Schmidt
Hi David, this is great! I've switched to this branch, updated all hashing impls of deftypes in my library and it works without a hitch and see much less hash collisions in large 3d meshes as a result. Awesome! K. On 8 Jun 2014 18:07, "David Nolen" wrote: > 1.6.0 branch is ready to be tested > h

Re: A drawback of the less-parentheses approach

2014-06-10 Thread Karsten Schmidt
roup, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from t

Re: OSGi manifest creation for Clojure projects

2013-09-22 Thread Karsten Schmidt
archive.org to the rescue: http://web.archive.org/web/20130430195826/http://paudo.posterous.com/clojure-osgi http://web.archive.org/web/20130430195755/http://paudo.posterous.com/clojure-and-osgi-sitting-in-a-tree Hth! -- -- You received this message because you are subscribed to the Google Gro

Re: clojars.org image for latest version of a project

2013-10-10 Thread Karsten Schmidt
On 11 October 2013 00:01, Adam Clements wrote: > I find it ridiculously useful not having to go to my browser to look up the > latest version of libraries I use all the time. Adam, you might want to check out this leiningen plugin then... https://github.com/xsc/lein-ancient K. -- -- You recei

Re: ANN: ClojureScript 0.0-1933

2013-10-11 Thread Karsten Schmidt
- please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscrib

Re: Are there any GUI based Clojure apps out there?

2013-10-17 Thread Karsten Schmidt
If you mean examples of Clojure apps featuring a GUI, here are a couple of identity generators, both using my own GUI lib directly building on OpenGL (all controllers are VBOs). I've been meaning to release this for a long time, but haven't gotten around cutting a release & writing docs... http://

Re: Bluetooth LE sensors in Clojure

2013-10-21 Thread Karsten Schmidt
to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- Karsten Schmidt http://postspectacular.com | http://t

Re: maintainability, DSLs, declarative APIs, etc.

2013-11-15 Thread Karsten Schmidt
To me macros & DSLs are just an instance/extension of the DRY principle and not that much different to using functions (albeit with more syntactic freedom, e.g. by supplying a body expression to be wrapped or transformed into something more complex). Of course there's the potential loss of control

  1   2   >