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

2018-12-17 Thread Adam Clements
it 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 go. I'll do

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

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

Re: Clojure android activity?

2017-07-01 Thread Adam Clements
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 <a...@puredanger.com> wrote: > It's not really lack of interest from the core team, just a matter of not > being able to do everything. I personally am not

Re: Clojure android activity?

2017-06-30 Thread Adam Clements
can do) Adam On Wed, Jun 28, 2017 at 5:12 PM Michael Blume <blume.m...@gmail.com> 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
. 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, <dnolen.li...@gmail.com> wrote: > On Sat, Jun 24, 2017 at 1:49 PM, Matching Socks <phill.w...@gmail.com> > wrote: >

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'

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

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 <rameenfatt...@gmail.com> wrote: > Hi

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

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

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:

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 '())

Clarity Keyboard by SwiftKey - Written in Clojure

2015-05-08 Thread Adam Clements
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 group, send email to clojure@googlegroups.com Note that posts from new members are moderated

Re: Clarity Keyboard by SwiftKey - Written in Clojure

2015-05-08 Thread Adam Clements
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 nman...@gmail.com wrote: Just tried the keyboard on my old Galaxy Nexus and I have to say

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 adrian.mo...@gmail.com wrote: Hi Erick Thanks for getting back to me. On my system, I wasn't seeing the contents of my file

Re: Workaround for CLJ-1604?

2015-02-21 Thread Adam Krieg
to the ones you mentioned. Andy On Thu, Feb 19, 2015 at 8:10 PM, Adam Krieg adamm...@gmail.com javascript: 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 library that I'm using (Korma) has a function

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 http://dev.clojure.org/jira/browse/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

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-22 Thread Adam Clements
other repercussions though. On Thu Jan 22 2015 at 17:49:37 Adam Clements adam.cleme...@gmail.com 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

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

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

Re: Clojurescript to target JVM?

2015-01-15 Thread Adam Clements
working in the short term. Adam On Sat Nov 22 2014 at 04:29:47 Sam Beran sbe...@gmail.com 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 Responsiveness In Mind* At present, JVM Clojure

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

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

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

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

2014-11-05 Thread Adam Krieg
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 adammkr...@gmail.com mailto:adammkr...@gmail.com wrote: My experience with protocols is that the implementations can't be redefined, e.g

Converting Leiningen project.clj to Gradle

2014-09-17 Thread Adam Markham
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 email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post

Locking macro generated bytecode

2014-07-23 Thread Adam Clements
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 received this message because you are subscribed

Re: Locking macro generated bytecode

2014-07-23 Thread Adam Clements
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 adam.cleme...@gmail.com wrote

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 submissionfight...@gmx.com wrote: I have been deploying the same project to clojars for quite a while

Reading Metadata from Vars in scripts

2014-07-01 Thread Adam Krieg
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 from new members are moderated - please be patient

Core.logic appendo for string?

2014-05-04 Thread Adam Saleh
that 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: Using

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

Re: Performance trouble with Processing jar

2014-03-29 Thread Adam Clements
possibly not... Adam Adam On Sat, Mar 29, 2014 at 6:20 AM, tamichan hogehogegeheg...@gmail.comwrote: 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 java method call

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

Re: Sharing optional arguments among functions

2014-03-17 Thread Adam Krieg
Thanks, Luc! On Mar 17, 2014, at 11:08 AM, Luc Prefontaine lprefonta...@softaddicts.ca 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

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

2014-03-14 Thread Adam Clements
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 Shapira halus

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

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 hhochleit...@gmail.comwrote: Created: http://dev.clojure.org/jira/browse

Re: A faster clojure startup

2014-02-28 Thread Adam Clements
a tweaked Var class or is there more to it? Adam On Fri, Feb 28, 2014 at 3:16 PM, Gal Dolber g...@dolber.com 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 Feedback's welcome -- You

case statement and java constants

2014-02-28 Thread Adam Clements
. 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 the Google Groups Clojure

Re: case statement and java constants

2014-02-28 Thread Adam Clements
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 statement? (defmacro motion-case

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 txrev...@gmail.com wrote: Building on Michal's

[ANN] latest-clojure-libraries emacs plugin

2013-10-22 Thread Adam Clements
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/lein-ancient [2

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 recipient, you

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

2013-10-11 Thread Adam Clements
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 is strictly

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

2013-10-10 Thread Adam Clements
if it 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
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 z...@caudate.me wrote: http://z.caudate.me/ova/ ova has been designed especially for dealing with shared mutable state in multi-threaded

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 noodle...@gmail.com wrote: Hello everyone, XCLJB is a Clojure language binding for the X Window System, similar to

Re: Safely flush old value out of an atom

2013-09-19 Thread Adam Clements
. 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 at 5:21 PM, Ben

Safely flush old value out of an atom

2013-09-19 Thread Adam Clements
! 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 Clojure group. To post to this group, send

core.logic - using membero to generate list?

2013-07-06 Thread Adam Saleh
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 you are subscribed to the Google Groups Clojure group

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 to clojure

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 :)

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

2013-07-04 Thread Adam Saleh
to 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 to clojure

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 loading,

Re: Beginners question - emacs compiling tests

2013-05-31 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 ...) form.

Knowledge derivation in core.logic?

2013-05-25 Thread Adam Saleh
[: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 you

Re: [ANN] conf-er 1.0.1

2013-05-06 Thread Adam Clements
)) 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 russell.m...@gmail.com wrote: This looks simple and useful, thanks! Supposing I had a function that called this library, how could I

[ANN] conf-er 1.0.1

2013-05-02 Thread Adam Clements
/number, which we put in our configuration file earlier. Hope this is of use to some people. 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

[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: [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 recipient, you

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 dkozhuk...@gmail.com wrote: Hello everyclojurer! Today I have problem with installing lein on WinXP.

Superset goal in clojure.core.logic?

2013-04-07 Thread Adam Saleh
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 new members are moderated - please be patient with your first post

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

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

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

2013-04-04 Thread Adam Saleh
-search-table [:name]))) (l/== test-line [query result]))) ([\lvar:result__11616\ Squirrell]) When I asked on freenode, I got this response: hyPiRion asaleh: str is impure, using e.g. (fresh [x y] (== y (str x))) won't work Thanks, Adam -- -- You received this message because you

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. To post

[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

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
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've implemented a function

Automatically looking up and adding dependencies

2013-02-22 Thread Adam Clements
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 - please be patient with your first post

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

2013-02-19 Thread Adam Clements
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: Adam: You can do this exact

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

2013-02-18 Thread Adam Clements
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 Clojure group. To post

[ANN] sampling - A Clojure library for random sampling

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

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 marko.topol...@gmail.com wrote: There is no need to wrap the Executor Service in a* delay

Re: [ANN] Schejulure 0.1.1

2013-01-18 Thread Adam Clements
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 marko.topol...@gmail.comwrote: This looks great. I was building a couple of applications that run

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

2013-01-17 Thread Adam Ashenfelter
clj-bigml https://github.com/bigmlcom/clj-bigml is a Clojure library for interacting with BigML's https://bigml.com/ machine learning APIhttps://bigml.com/developers . As of now, BigML offers decision tree models (and their ensembles like random decision forests) for supervised learning. With

[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

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 like clj

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

2012-12-29 Thread Adam Clements
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 directed to Joe Armstrong's paper on error handling, I concurred that his approach

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 It works

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://blah)? 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

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 adam.perr...@gmail.com javascript: wrote: Are there any clojure projects/frameworks that would help me write a brand new

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 jimpil1...@gmail.com wrote: Hi all

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 jimpil1...@gmail.com wrote: No i haven't profiled

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

2012-07-13 Thread Adam King
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 mark.pro...@gmail.com wrote: Hey Adam, I've spent a couple of hours on this - and have run into a snag. I've got libgc compiling/linking with arm iOS and the Xcode project

Saving Java objects/Clojure forms to text file

2012-04-16 Thread Adam Markham
the date in a text file and 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

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 djpow...@djpowell.net wrote: How can I store the date in a text file and read it back without falling back

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 thrown. I tried AOT compiling

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

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 patient with your first

Suggestions for using MPI in Clojure

2012-02-08 Thread Adam Getchell
, 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 -- You received this message

Documenting Clojure Design without UML

2012-01-20 Thread Adam Markham
if there is 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 Clojure group

Good database for local storage in Clojure

2012-01-10 Thread Adam Markham
with in Clojure for local storage? 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 be patient with your first post

Re: Literate programming

2011-12-23 Thread Adam Getchell
On Thu, Dec 22, 2011 at 11:54 AM, daly d...@axiom-developer.org wrote: On Tue, 2011-12-20 at 00:26 -0800, Adam Getchell wrote: BTW I looked at marginalia+leiningen, which seems to work for my purposes except I'm unclear where to put the .tex files. I'm not sure what this sentence means

Re: Literate programming

2011-12-22 Thread Adam Getchell
require LaTeX to express what they're modelling. BTW I looked at marginalia+leiningen, which seems to work for my purposes except I'm unclear where to put the .tex files. The combination of literate + TDD seems forbidding. Damion Adam -- Invincibility is in oneself, vulnerability in the opponent

Literate programming/TDD with Leiningen + midje + marginalia

2011-12-22 Thread Adam Getchell
Thanks for all the replies! I'm trying midje first (keeping expectations in mind for later) as it seems to support writing tests and then code (i.e. top down testing). (This video https://github.com/marick/Midje/wiki/Top-down-testing was useful, thanks for making it!) In generating

TDD with Leiningen

2011-12-01 Thread Adam Getchell
a proper test suite to generate tests for functions I have defined in, say, a file called utilities.clj. Any pointers/hints? For example, what do I name a file such that my deftests get invoked by Leiningen correctly? Thanks, Adam Getchell -- Invincibility is in oneself, vulnerability in the opponent

  1   2   >