Re: What do Clojure developers use for recurring functions, other than at-at

2018-12-17 Thread Adam Clements
t for years because it just works and even though it's used in production nobody has found any issues or needed it to do anything it doesn't already do. I think the same is probably true of at-at. Adam On Mon, 17 Dec 2018, 9:46 pm James Reeves, that does sound like the right way to g

Re: [ANN] lein-tools-deps 0.4.1 - Use deps.edn with Leiningen

2018-06-19 Thread Adam Frey
The link you posted goes to the Cronut library. Here's a working link: https://github.com/RickMoynihan/lein-tools-deps Thanks for lein-tools-deps, btw! -- Adam Frey On Mon, Jun 18, 2018, at 6:50 PM, Rick Moynihan wrote: > Hi all, > > Some of you may have seen earlier ve

Re: Clojure/flutter

2018-04-28 Thread 'Adam Tait' via Clojure
I've been considering the same trade-offs recently. I looked at ClojureScript->RN but found the levels of indirection, the heavy number of libraries and lack of concurrency (important on mobile devices) make me unenthusiastic. I've also looked at Flutter (& DartLang) but coming from Clojure I w

Re: Clojure android activity?

2017-07-01 Thread Adam Clements
and 2) maintaining a single patch on top of otherwise vanilla clojure is a much less arduous task, but I'd love to see a better solution for that. Adam On Fri, Jun 30, 2017 at 5:25 PM Alex Miller wrote: > It's not really lack of interest from the core team, just a matter of no

Re: Clojure android activity?

2017-06-30 Thread Adam Clements
in touch and we'll see what we can do) Adam On Wed, Jun 28, 2017 at 5:12 PM Michael Blume wrote: > My impression is that if you want to write Clojure on Android in 2017 you > use React Native and write ClojureScript. Re-natal is a good starting point > > On Fri, Jun 23, 2017, 3:5

Re: The soul of case

2017-06-26 Thread Adam Clements
value. It actively discourages naming magic constants if you don't want to fall back to slower condp or a map lookup. Adam On Sun, 25 Jun 2017, 10:53 p.m. David Nolen, wrote: > On Sat, Jun 24, 2017 at 1:49 PM, Matching Socks > wrote: > >> >> At any rate, I would l

Re: Compiling gen-class runs static initializers: workarounds, solutions?

2017-03-28 Thread Adam Clements
Potentially relevant? I posted a patch two years ago for some static initialisers still running in 1.8, not yet merged. It was actually the type hints causing the initialisers to be run at compile time http://dev.clojure.org/jira/browse/CLJ-1714 On Tue, Mar 28, 2017 at 10:21 AM 'Gunnar Völkel' vi

ClassNotFoundException in macroexpand1()

2016-12-08 Thread Justus Adam
When executing `macro expand1()` with the compiler unresolvable symbols aren't an issue, except if they are fully qualified and their corresponding namespace does not exist, in which case a ClassNotFoundException is thrown. I find this to be inconsistent behaviour, since unresolvable symbols the

Re: Awesome Clojure Engineer Opportunity

2015-10-12 Thread Adam Clements
Hi Rameen, I have attached my CV for your consideration, but be aware that I am only currently considering remote working roles, and so more information would be required. Thanks, Adam Clements On Mon, Oct 12, 2015 at 9:07 PM Rameen Fattahi wrote: > Hi Everyone, > > My name is Ramee

Re: ANN: ClojureScript 0.0-3308, fixes & enhancements

2015-07-27 Thread Adam Morgan
) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.lang.Var.invoke(Var.java:383) at clojure.lang.AFn.applyToHelper(AFn.java:156) at clojure.lang.Var.applyTo(Var.java:700) at clojure.main.main(main.java:37) Hope this helps. Adam -- You received this

Reflection warnings in async/go-loop

2015-07-23 Thread Adam Krieg
Hi all, I have an issue with references to closed over references outside the go block not resolving types. The first function resolves fine. The second one cannot resolve (.readLine buf-reader) (defn parser-process-good "Consumes lines from a file, transforms entries of interest and puts t

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-20 Thread Adam Krieg
Wow, I've upgraded a couple of projects and builds are roughly 50% faster over 1.7.0. Is that to be expected? On Saturday, July 18, 2015 at 9:12:12 AM UTC-4, Alex Miller wrote: > > Clojure 1.8.0-alpha1 and 1.8.0-alpha2 are now available. > > Try it via > - Download: > https://repo1.maven.org/ma

Re: Using @ alone

2015-05-20 Thread Adam Morgan
Hi Pierre, If I understand you correctly, you are attempting to crack open a sequence, as ~@ would do in a macro. You are probably looking for apply. For example: (apply + '(1 2 3)) 6 On Wednesday, May 20, 2015 at 6:07:13 PM UTC-6, Pierre Thibault wrote: > > No: > > (type '()) > clojure.lan

Re: Clarity Keyboard by SwiftKey - Written in Clojure

2015-05-08 Thread Adam Clements
nd of what we're getting at the moment on Android, so it might need some different optimizations before becoming a viable option there. In theory it should be doable though. Adam On Fri, 8 May 2015 7:05 pm adrians wrote: > Just tried the keyboard on my old Galaxy Nexus and I have to say tha

Clarity Keyboard by SwiftKey - Written in Clojure

2015-05-08 Thread Adam Clements
ted to know your thoughts and comments, and if you're interested we are currently hiring here at SwiftKey, both for this project and in general. Thanks, Adam Clements -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Streaming a large file onto a channel

2015-03-18 Thread Adam Clements
It's possible you are simply not seeing the println output from a background thread, depending on how your repl etc is set up. On Wed, 18 Mar 2015 3:19 pm Adrian Mowat wrote: > Hi Erick > > Thanks for getting back to me. On my system, I wasn't seeing the contents > of my file being listed in th

Re: Workaround for CLJ-1604?

2015-02-21 Thread Adam Krieg
gt; another alternative to the ones you mentioned. > > Andy > > On Thu, Feb 19, 2015 at 8:10 PM, Adam Krieg > wrote: > >> I'm running into what appears to be the same issue described in CLJ-1604 >> <http://dev.clojure.org/jira/browse/CLJ-1604>, where a li

Workaround for CLJ-1604?

2015-02-19 Thread Adam Krieg
I'm running into what appears to be the same issue described in CLJ-1604 , where a library that I'm using (Korma) has a function that clashes with a new function in Clojure core with 1.7, update. At the point of invocation, I get the compilation exce

Re: Clojurescript to target JVM?

2015-01-28 Thread Adam Clements
I'm currently using the fastload branch against alpha5, and it's pretty good. You have to be careful though with namespace declarations as you may end up loading more than you need to. I'm currently in the process of breaking my app down into "runlevels", where it loads the minimum needed to get st

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-22 Thread Adam Clements
e any other repercussions though. On Thu Jan 22 2015 at 17:49:37 Adam Clements wrote: > I think I am seeing static initialisers being run at AOT time when the > class is used as a type hint tag. This isn't a regression from previous > versions of clojure, but with the forNameNonLoadin

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-22 Thread Adam Clements
I think I am seeing static initialisers being run at AOT time when the class is used as a type hint tag. This isn't a regression from previous versions of clojure, but with the forNameNonLoading changes that have gone in recently I was under the impression that this shouldn't be a problem any more.

CLJS-in-CLJS; building ClojureScript from source; and stuff

2015-01-18 Thread Adam Avramov
I'm working on a multimedia framework targeting Node.js (and, at some point in the future, sooner rather than later, browsers). Since I need the homoiconicity of a Lisp for my intended feature set, ClojureScript is pretty much my only option -- and it's a very enjoyable language anyway. I'm usi

Re: Clojurescript to target JVM?

2015-01-15 Thread Adam Clements
in using this to get something working in the short term. Adam On Sat Nov 22 2014 at 04:29:47 Sam Beran wrote: > The code is still half-baked, but in leu of a blog post or code, I can > summarize my reasoning and approach: > > > *ClojureScript is Designed With UI Responsivenes

Re: How can I remove the nils in the result?

2014-12-24 Thread Adam Clements
Colin, minor code review point that makes no real difference for this example but is a good habit to get into: try not to use last on vectors, use peek instead, otherwise it calls seq and steps through the entire sequence on each call. peek on the other hand does what you'd expect. For long lists t

Re: Google Clojure REPL

2014-11-24 Thread Adam Clements
There are a number of issues with clojure on lollipop, the ART compiler doesn't like the bytecode generated by closure for various reasons. I have just today opened a dialogue with the ART developers at Google and at least some of the issues have been fixed for the next release of Android. Others m

Re: multimethod, record, type, and protocol pitfalls?

2014-11-05 Thread Adam Krieg
erally > not recommended. > > Extend-type is easier to use interactively than inline protocol extensions > (which are faster) as it's modifying dynamic globals. > > On Wed, Nov 5, 2014 at 6:03 PM, Adam Krieg <mailto:adammkr...@gmail.com>> wrote: >

Re: multimethod, record, type, and protocol pitfalls?

2014-11-05 Thread Adam Krieg
My experience with protocols is that the implementations can't be redefined, e.g changing an implementation. So if you change one of the applied protocols, you may need to restart your REPL. YMMV. Using records outside of their declared namespace is also really weird. You need to both require

Converting Leiningen project.clj to Gradle

2014-09-17 Thread Adam Markham
I'm following this guide: https://github.com/DevonStrawn/Clojuresque-Boilerplate/blob/master/UberJar/build.gradle Any pointers would be great. Thanks, Adam -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: Locking macro generated bytecode

2014-07-23 Thread Adam Clements
e was that I was inadvertently including both org.clojure/clojure and my patched org.clojure-android/clojure due to transitive dependencies). I've submitted a patch and ticket http://dev.clojure.org/jira/browse/CLJ-1472 Adam On Wed, Jul 23, 2014 at 1:28 PM, Adam Clements wrote: > I&#

Locking macro generated bytecode

2014-07-23 Thread Adam Clements
hat the condition is that every instruction where the monitorenter/exit tally > 0 should be within a catch all block, which it isn't in the clojure version, there's all sorts going on which isn't within the finally's scope. Any insight would be appreciated, Adam -- You rec

Re: Deploying to Clojars no longer works

2014-07-03 Thread Adam Clements
Have you tried upgrading leiningen to the latest version? I don't think you can deploy from old versions, at least that's been a problem for me in the past. On 2 Jul 2014 20:55, "Jacob Goodson" wrote: > I have been deploying the same project to clojars for quite a while now(5 > months?); for some

Reading Metadata from Vars in scripts

2014-07-01 Thread Adam Krieg
is related to CLJ-120, where metadata is lost on AOT, or am I missing something more basic? Thanks in advance, Adam -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts

Re: Functional programming and security

2014-05-04 Thread Adam Saleh
Well, what does it mean to write secure programs? Citation needed :) I remember a lengthy discussion with coleague of mine about writing cryptography primitives in haskell. I suggested, that haskells strong typing and syntax well suited for expressing mathematics, combined with good speed makes

Core.logic appendo for string?

2014-05-04 Thread Adam Saleh
at is still an lvar. Does it mean that I would need to implement a similar type for string (ie LStr), and then reimplement conso/firsto/lasto/appendo/e.t.c? If you know of simpler solution, that would still give me a nice string interface, I would like to hear about it :-) Thanks! Adam PS:

Re: Performance trouble with Processing jar

2014-03-29 Thread Adam Clements
lready, so possibly not... Adam Adam On Sat, Mar 29, 2014 at 6:20 AM, tamichan wrote: > Hi All > > I'm writing graphic clojure code with Processing jars. > When I wrote heavy draw code, I found clojure code is slower than an > equivalent of java. > > Probably, the cause is j

Re: Sharing optional arguments among functions

2014-03-17 Thread Adam Krieg
Thanks, Luc! On Mar 17, 2014, at 11:08 AM, Luc Prefontaine wrote: > Use (apply base-fun opts) > > Luc P. > > >> I'm trying to define a couple of functions that support the same options, >> but return different return types. >> >> I have one function that is the "base" function that provide

Sharing optional arguments among functions

2014-03-17 Thread Adam Krieg
I'm trying to define a couple of functions that support the same options, but return different return types. I have one function that is the "base" function that provides the most raw access, and some other functions that call this base function and do their thing. I would like to make these k

Problems getting function metadata

2014-03-14 Thread Adam Krieg
I'm trying to get the meta data off a function that was stored in a map, (defn my-fun [x] x) (def fun-map {:function my-fun}) (meta (var my-fun)) ; this works (meta (var (:function fun-map))) ; This fails with CompilerException java.lang.ClassCastException: clojure.lang.PersistentList cannot b

Re: [GSoC 2014] Looking for mentors: cljs graphics package (in the spirit of p5.js / quil / three.js)

2014-03-14 Thread Adam Clements
t and the exact semantics smoothed over, but what do people think in principle to a more declarative graphics library which could then be optimised far more than manual api calls ever could while encouraging a clean functional, testable approach. Adam Adam On Thu, Mar 13, 2014 at 10:37 PM, Omer

Re: case statement and java constants

2014-03-02 Thread Adam Clements
Oops, I already filed http://dev.clojure.org/jira/browse/CLJ-1367. Should probably link/mark as dupe - I don't appear to be able to do anything other than comment. Adam On Sun, Mar 2, 2014 at 4:35 PM, Herwig Hochleitner wrote: > Created: http://dev.clojure.org/jira/browse/CLJ-1368 &g

Re: case statement and java constants

2014-02-28 Thread Adam Clements
request on clojure core? Thanks, Adam Adam On Fri, Feb 28, 2014 at 4:21 PM, Ambrose Bonnaire-Sergeant < abonnaireserge...@gmail.com> wrote: > I'm not 100% sure if this works, but have you tried writing a macro that > gets the > Java field value, and inserting into the case s

case statement and java constants

2014-02-28 Thread Adam Clements
symbol instead. Is there a way to do this without resorting to condp = or am I stuck? Should this be a something that case handles by default? I can't think of a reason these couldn't be converted to literals... Thanks, Adam -- You received this message because you are subscribed to t

Re: A faster clojure startup

2014-02-28 Thread Adam Clements
Is it just a tweaked Var class or is there more to it? Adam On Fri, Feb 28, 2014 at 3:16 PM, Gal Dolber wrote: > Here're some notes on the lean compiler I've been working on for > clojure-objc > > http://galdolber.tumblr.com/post/78110050703/reduce-startup > > Fe

Re: weird bug with cljs.core.async + macros

2014-02-18 Thread Adam Clements
I have had a similar thing happen with the core.match/match macro - a lot of examples simply break when put inside a go block. I thought it might have been something to do with aot compilation but I'm not sure. Adam On 18 Feb 2014 05:33, "t x" wrote: > Building on Michal&#x

[ANN] latest-clojure-libraries emacs plugin

2013-10-22 Thread Adam Clements
es without restarting your program! Further details and installation instructions are in the README at: https://github.com/AdamClements/latest-clojure-libraries Many thanks to Yannick Scherer (xsc) for incorporating the necessary command into lein-ancient Adam Clements [1] https://github.com/xsc/le

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

2013-10-11 Thread Adam Clements
t the deps inline and automatically add it to your running nrepl. Adam Clements +44 7947 724 795 -- This email and any files transmitted with it are confidential. If you are not the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication i

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

2013-10-11 Thread Adam Clements
That's great, gets exactly the information I need from all the repositories. I'll go fix up my library to use this instead. Thanks for the tip off. Adam Clements +44 7947 724 795 -- This email and any files transmitted with it are confidential. If you are not the intended recipien

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

2013-10-10 Thread Adam Clements
was using a supported api! 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 Adam Clements +44 7947 724 795 -- This email and any files transmitted with it are confidential. If you are not the intended recipient, you

Re: [ANN]: ova 0.9.6 - the bestest mutable array ever! (with lots of documentation)

2013-10-02 Thread Adam Clements
m and allows you to query for sets of entities affected by a given system really easily in a threadsafe way. Thanks! Adam On Mon, Sep 30, 2013 at 1:33 AM, zcaudate wrote: > http://z.caudate.me/ova/ > > ova has been designed especially for dealing with shared mutable state in > multi-thre

Re: [ANN] XCLJB v0.1.0: X protocol Clojure-language Binding

2013-09-25 Thread Adam Clements
Have you looked at core.async for shuttling asynchronous events back and forth. This sounds to me like the sort of thing it was designed for On 10 Sep 2013 06:30, "Vincent Chen" wrote: > Hello everyone, > > XCLJB is a Clojure language binding for the X Window System, similar > to the XCB (the X p

Safely flush old value out of an atom

2013-09-19 Thread Adam Clements
x27;user/a => (flush! a []) [1 2 3 4] => @a [] Is there already a standard library fn I should be using for this? Is this a bad idea for some reason I don't fathom? Adam https://github.com/AdamClements -- -- You received this message because you are subscribed to the Google Groups &quo

Re: Safely flush old value out of an atom

2013-09-19 Thread Adam Clements
type operation. Adam Adam Clements +44 7947 724 795 -- This email and any files transmitted with it are confidential. If you are not the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. On Thu, Sep 19, 2013

core.logic - using membero to generate list?

2013-07-06 Thread Adam Saleh
entException Don't know how to create ISeq from: clojure.core.logic.LCons clojure.lang.RT.seqFrom (RT.java:505) I guess I need to somehow convert the "logic-based" list to "clojure-based", how do I do it? Thanks! Adam -- -- You received this message because yo

Re: Anybody has tried to (re)write re-match in core.logic?

2013-07-05 Thread Adam Saleh
Apologies, forgot that this is not a forum. 1) What would environment trimming provide me? Because right now I am using core.logic quite naively, mostly just applying recursion and some pattern matching. 2) for starting I have implemented a simple regular grammar engine, seems to work :) (d

Re: Anybody has tried to (re)write re-match in core.logic?

2013-07-05 Thread Adam Saleh
What does that mean? Because right now I am using core.logic quite naively, mostly just applying recursion and some pattern matching. Adam -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Anybody has tried to (re)write re-match in core.logic?

2013-07-04 Thread Adam Saleh
get out of it a tool for easily generating/unifying strings. Do you think it would be a good idea? Has anybody tried? Thanks for feedback! Adam -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Making things go faster

2013-06-05 Thread Adam Rulli-Gibbs
What's wrong with midje's (autotest) in the REPL? I save code or test and the tests relevant to the namespace are automatically run. On Wednesday, 5 June 2013 05:16:39 UTC+1, red...@gmail.com wrote: > > midje makes each test a top level form, so test runs happen as a side > effect of code loadin

Re: Beginners question - emacs & compiling tests

2013-05-30 Thread Adam Getchell
On Tuesday, March 19, 2013 4:22:59 PM UTC-7, John SJ Anderson wrote: > > > I had this same issue when working through the tutorial. The text > makes it sound like you should replace the entire contents of the test > file, but that's not the case -- you just need to replace the (deftest > ...)

Knowledge derivation in core.logic?

2013-05-25 Thread Adam Saleh
ypted [:pk A] [:nonce A]], I also know the [:nonce a]. Anybody has any hints? So far I managed to implement some of this, but it is a tangled mess of recursive pattern matching, membero, nonmembero and macros :-/ Thanks for any pointers, Adam -- -- You received this message because yo

Re: [ANN] conf-er 1.0.1

2013-05-06 Thread Adam Clements
> 42)) If you do that for now, I'll include a tests util in the next release which does the same from a guaranteed stable api function Adam On 6 May 2013 01:46, "Russell Mull" wrote: > This looks simple and useful, thanks! > > Supposing I had a function that call

[ANN] conf-er 1.0.1

2013-05-02 Thread Adam Clements
nf-er. You can do this like so: (ns my.library > (:require [conf-er :refer [config]])) > (config ::number) => 42 Here :number will expand out to the namespaced keyword :my.library/number, which we put in our configuration file earlier. Hope this is of use to some peo

Re: [ANN] Schejulure 0.1.3

2013-04-15 Thread Adam Clements
I forgot to mention, schejulure can be obtained from the normal places: Github: https://github.com/AdamClements/schejulure Clojars: [schejulure "0.1.3"] Adam Clements +44 7947 724 795 -- This email and any files transmitted with it are confidential. If you are not the intended reci

[ANN] Schejulure 0.1.3

2013-04-15 Thread Adam Clements
0.1.3 - Bugfix release fixing a discrepancy between clj-time and cron's representation of Sunday (thanks dwwoelfel) *What is Schejulure?* Schejulure is a lightweight, cron-inspired, minute resolution scheduling library. It has a neat, concise api and no stateful central scheduler. It's tiny (~

Re: Leiningen exception when run inside a project

2013-04-10 Thread Adam Clements
Your project.clj probably has unmatched brackets, this error means it hit the end of a file it was reading while still scanning for a closing bracket. On 10 Apr 2013 09:22, "Dmytro Kozhukhar" wrote: > Hello everyclojurer! > > Today I have problem with installing lein on WinXP. > > Lein run just f

Re: Superset goal in clojure.core.logic?

2013-04-07 Thread Adam Saleh
I forgot to run it with multiple goals, it seems it behaves the same :-/ -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patie

Re: Superset goal in clojure.core.logic?

2013-04-07 Thread Adam Saleh
This seemed to do the trick :) (defne superseto "A relation where x, y are proper collections, such that y is superset x" [x y] ([() y]) ([[a . d] y] (membero a y) (superseto d y))) I modified appendo ... will try to create subseto goal in similar fashion so that I see where

Superset goal in clojure.core.logic?

2013-04-07 Thread Adam Saleh
d a goal that enforces that "l" is a superset of "s". Any hints? Thanks! Adam -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from ne

Re: How to use clojure.core.logic to generate strings?

2013-04-04 Thread Adam Saleh
Thanks, this got me quite far. But I'd like to create goals with string, for example currently I have no idea, how would I write a substring goal. Thanks for any suggestion! Adam -- -- You received this message because you are subscribed to the Google Groups "Clojure" group.

How to use clojure.core.logic to generate strings?

2013-04-04 Thread Adam Saleh
quot;" "Squirrell" "\""] "Squirrell"]) But I can't figure out how to force query to unify to a string: (l/run 1 [test-line] (l/fresh [query result] (l/== query (str "\"" result "\"")) (l/membero result (map

[ANN] quit-yo-jibber 0.4.3 (Jabber library)

2013-03-27 Thread Adam Clements
Quit-yo-jibber is a fork of xmpp-clj based less around direct-response chatbots. It allows you to listen for presence changes, set availability and status messages and send messages unprompted among other things. It is stable and auto-reconnects if the network should drop. I use it in two proje

Re: [ANN] Timbre, an all-Clojure logging library

2013-03-15 Thread adam . neilson
I'd just like to thank you for writing this. It's perfect. On Monday, May 28, 2012 12:17:30 PM UTC+1, Peter Taoussanis wrote: > > Hi everyone, > > I recently lost it after spending 5+ hours trying to figure out why Log4j > had suddenly started swallowing all my messages [again]. Anyway, decided

Re: fold over a sequence

2013-03-12 Thread Adam Clements
a fair few minutes). How would feeding a line-seq into this compare to iota? And how would that compare to a version of iota tweaked to work in a slightly less eager fashion? Adam On Tuesday, March 12, 2013 1:34:43 PM UTC, Paul Butcher wrote: > > So this turned out to be pretty easy. I&

Automatically looking up and adding dependencies

2013-02-22 Thread Adam Clements
would be nice. Anyway, have a play and let me know what you think, Adam -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - ple

Re: Loading in jars with dependencies at runtime into separate classloaders with independent classpaths

2013-02-19 Thread Adam Clements
rk out how to do just the classloading/dependency resolution part. I can't seem to find anything though. Does that happen within the JBoss AS part of it rather than in clojure? Any input is much appreciated, thanks Adam On Monday, February 18, 2013 7:07:21 PM UTC, Toby Crawley wrote: > &

Loading in jars with dependencies at runtime into separate classloaders with independent classpaths

2013-02-18 Thread Adam Clements
lojure for evaling in other classloaders, but I can't find any examples of doing both at once, and my experiments have so far been unsuccessful. Any hints would be much appreciated, Thanks, Adam -- -- You received this message because you are subscribed to the Google Groups "Clojur

[ANN] sampling - A Clojure library for random sampling

2013-01-22 Thread Adam Ashenfelter
BigML is happy to open source our Clojure random sampling library . The library offers: - Three varieties of sampling depending on your memory requirements (simple sampling, reservoir sampling, stream sampling) - Sample with r

Re: [ANN] Schejulure 0.1.1

2013-01-19 Thread Adam Clements
affecting subsequent scheduled tasks, which I think is a reasonable restriction to make given the resulting simplicity. Thanks again for the useful feedback. Adam On 19 Jan 2013 09:53, "Marko Topolnik" wrote: > There is no need to wrap the Executor Service in a* delay* because

Re: [ANN] Schejulure 0.1.1

2013-01-18 Thread Adam Clements
more stopping/starting scheduled tasks and automatically cleaning up the executor service if it's no longer needed that would be great. Adam Clements On Fri, Jan 18, 2013 at 9:50 PM, Marko Topolnik wrote: > > This looks great. I was building a couple of applications that run >> p

Re: [ANN] Schejulure 0.1.1

2013-01-17 Thread Adam Clements
A URL would probably help: https://github.com/AdamClements/schejulure On Thursday, January 17, 2013 5:56:40 PM UTC, Adam Clements wrote: > > So there are a few scheduling libraries around, I wanted one for cron-like > job scheduling and my options were quite limited, there are things li

[ANN] Schejulure 0.1.1

2013-01-17 Thread Adam Clements
So there are a few scheduling libraries around, I wanted one for cron-like job scheduling and my options were quite limited, there are things like clj-cronlike and quartzite but I found the syntax quite clunky and didn't like the central stateful scheduler idea. There are also things like at-at,

[ANN] clj-bigml - Clojure bindings for BigML's machine learning API

2013-01-17 Thread Adam Ashenfelter
clj-bigml is a Clojure library for interacting with BigML's machine learning API . As of now, BigML offers decision tree models (and their ensembles like random decision forests) for supervised learning. Wi

Re: [ANN] Dire, Erlang-style error handling

2012-12-29 Thread Adam Clements
unnecessary complexity here, you just need a supervise function which takes responsibility for catching errors and lets you re-use handlers Adam On Friday, December 28, 2012 7:14:34 PM UTC, Michael Drogalis wrote: > > Hey folks, > > After watching The Language of the System and being

Re: Countdown numbers game in clojure.core.logic

2012-12-13 Thread Adam Clements
/elegant/faster, tips are much appreciated! Thanks Adam Clements On Saturday, August 18, 2012 3:36:01 PM UTC+1, David Powell wrote: > > > I just had a go of solving the Numbers Game from the UK gameshow Countdown > [1] in clojure.core.logic. > > https://gist.github.com/3374505

Re: New web-like protocol

2012-12-08 Thread Adam Perry-Pelletier
Thanks, That looks like a good start. On Saturday, December 8, 2012 1:11:58 PM UTC-8, Daniel Pittman wrote: > > On Sat, Dec 8, 2012 at 10:31 AM, Adam Perry-Pelletier > > wrote: > > Are there any clojure projects/frameworks that would help me write a > brand > >

New web-like protocol

2012-12-08 Thread Adam Perry-Pelletier
Are there any clojure projects/frameworks that would help me write a brand new web-like protocol (e.g. newprotocol://)? I've written basic servers in clojure, but would like to forego the low-level stream reading and get write to higher-level constructs. Thanks in advance. -- You received th

Re: pmap performance degradation after 30-40 min of work?

2012-10-12 Thread Adam
If you have the memory you could just increase the heap size to a higher value (like -Xmx2048m or something). But even if you do that I would still run jconsole to see what's happening. ~Adam~ On Fri, Oct 12, 2012 at 9:41 AM, Jim foo.bar wrote: > No i haven't profiled memory ,

Re: pmap performance degradation after 30-40 min of work?

2012-10-12 Thread Adam
Have you tried running jconsole to monitor the memory usage? It sounds like maybe you're running out of heap space and you're mainly seeing the garbage collector doing it's thing vs your actual program. ~Adam~ On Fri, Oct 12, 2012 at 9:23 AM, Jim foo.bar wrote: > Hi all, &

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-13 Thread Adam King
's REPL (mainly playing with WebGL as it ties into my day job. :) I just want to have the option to compile it out to C and then release in the App Store(s). Cheers, Adam On Tue, Jul 10, 2012 at 3:29 PM, Mark Probst wrote: > Hey Adam, > > > I've spent a couple

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-10 Thread Adam King
lvm. I also don't know much about LLVM, other than using clang++ for iOS work - so maybe it is all possible with enough time and money.. *shrug* I'll keep at getting iOS/AndroidNDK working as that is what interests me. LLVM does look cool though :) Adam > Timothy > >

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-10 Thread Adam King
renced from: _slurp_file in cljc.o "_g_strndup", referenced from: _FN_G__36582 in cljc.o "_g_strdup_printf", referenced from: _FN_G__36452 in cljc.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-10 Thread Adam King
Please don't bypass C! Almost all platforms have some sort of C compiler - it's like javascript for native platforms, instead of the web. With C output, I can probably get it working on iOS (my main work target platform, along with Android) - I had Boehm GC compiled and working sometime ago for

Re: Clojure type of Java array

2012-07-01 Thread Adam Esterline
Try... (.isArray (type (.toCharArray "Clojure"))) => true On Sunday, July 1, 2012 9:35:38 AM UTC-6, Warren Lynn wrote: > > Somebody asks me to add handling of Java array in clj-cc/last. But I am > confused what will be the type of Java array in Clojure. Fox example: > > (type (.toCharArray "Cloj

Re: Accessing defrecord from another namespace

2012-04-16 Thread Adam Markham
n its name. Something so trivial caused so much trouble. Thanks everyone for the input. Adam On Apr 16, 5:09 pm, Mark Fredrickson wrote: > Does app.two.b have a hyphen? If so, make it an underscore when importing. > I've been bitten by that issue before. > > Also, +1 to correct names s

Re: Saving Java objects/Clojure forms to text file

2012-04-16 Thread Adam Markham
Thanks. Ended up going the Clojure 1.4 instant literal way as I just wanted to read and write the dates not use them for anything else. Thanks, Adam On Apr 16, 3:37 pm, David Powell wrote: > > How can I store the date in a text file and read it back without > > falling

Saving Java objects/Clojure forms to text file

2012-04-16 Thread Adam Markham
nd read it back without falling back on Java serialization? Thanks, Adam -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please

Accessing defrecord from another namespace

2012-04-12 Thread Adam Markham
I have two namespaces as follows: (ns app.one.a (:require [ns.app.two.b]) (:import [ns.app.two.b Book])) (def b (Book. "A Book" "Adam")) (ns app.two.b) (defrecord Book [title author]) However whenever I try to import the defrecord I get a ClassNotFoundException

Converting proxy to a macro

2012-03-27 Thread Adam Markham
java.util.Observer [] (update [o arg] (println arg))) I am having a hard time getting access to the arg parameter on the update method I am implementing outside of proxy. If anyone could help that would be great. Thanks, Adam -- You received this message because you are

Re: clojure thesis opportunity

2012-02-22 Thread Adam
Have you looked at Akka <http://akka.io/> at all? ~Adam~ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be p

Suggestions for using MPI in Clojure

2012-02-08 Thread Adam Getchell
able in Clojure, and in theory it should be nearly as fast as OpenMPI. Does anyone else have experience or perspectives on this? Should I just give up and rewrite in C++? Thanks for any infomration, Adam -- "Invincibility is in oneself, vulnerability in the opponent." -- Sun Tzu --

Documenting Clojure Design without UML

2012-01-20 Thread Adam Markham
anything like UML that can be applied to Clojure for these purposes? It is quite important that I document the design of the software on paper so any suggestions on doing this would be great. Thanks, Adam -- You received this message because you are subscribed to the Google Groups "Cl

  1   2   >