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

2018-12-17 Thread Adam Clements
I think iirc that at-at uses scheduledexecutor and is a very simple and stable library which only does one thing, but does it well and has no feature requests. I wrote schejulure which does a very similar job but with cron style time specifications rather than periodic and haven't touched it for

Re: Clojure android activity?

2017-07-01 Thread Adam Clements
e 1.9. > > Alex > > > On Friday, June 30, 2017 at 9:56:43 AM UTC-5, Adam Clements wrote: >> >> Hey Mike, >> >> It's a case of life getting in the way - both Alex and myself got jobs >> not in the Android space. That being said, looking at the iss

Re: Clojure android activity?

2017-06-30 Thread Adam Clements
Hey Mike, It's a case of life getting in the way - both Alex and myself got jobs not in the Android space. That being said, looking at the issues that have come up on the mailing list recently most would be fairly simple fixes, and I don't think there would be much of a problem bringing it up to

Re: The soul of case

2017-06-26 Thread Adam Clements
This came up in 2014 on the mailing list https://groups.google.com/forum/m/#!topic/clojure/3yGjDO2YnjQ And resulting enhancement requests Alex asked for: https://dev.clojure.org/jira/browse/CLJ-1367 https://dev.clojure.org/jira/browse/CLJ-1368 For what it's worth (though I realise we don't want

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'

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

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
targeting Android + iOS. Cheers On Friday, May 8, 2015 at 7:18:50 AM UTC-4, Adam Clements wrote: Hi all, Just thought you might be interested to know that last week we (SwiftKey) released an Android app, written from the ground up in Clojure, which as of this morning has had 65k downloads

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

Re: Clojurescript to target JVM?

2015-01-15 Thread Adam Clements
I've been looking at getting my startup time down on my Clojure on android app (it needs to be at least an order of magnitude smaller before I can ship), and revisited this as a potential candidate. The biggest friction point was that I would have to change which libraries I use and revisit all

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

Locking macro generated bytecode

2014-07-23 Thread Adam Clements
I'm compiling clojure on android and running it using the new ART runtime, and all works fine apart from the locking macro which fails ART's bytecode verification. Example generated bytecode here: https://gist.github.com/AdamClements/2ae6c4919964b71eb470 The try block in java doesn't cover the

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

Re: Performance trouble with Processing jar

2014-03-29 Thread Adam Clements
Have you got type hints? If you do a java method call on something which isn't type hinted then clojure has to use reflection to look up a list of the available methods, which is slw. If however you tell it what type you expect it to be, it can better optimise it. So in the above code you

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

2014-03-14 Thread Adam Clements
I'm keen to see graphics frameworks on clojure move away from imperative api call wrappers and towards a more declarative approach, where you define as data what you want to draw. I have done this for a number of personal projects, using a hiccup like syntax to define my drawing operations, and

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:

Re: A faster clojure startup

2014-02-28 Thread Adam Clements
This sounds like an awesome shortcut to speeding things up on android/ios while we're waiting for CinC and friends. Do you know how much work it would be to port your changes to clojure-android and try it out there? I'd be very interested to test it out and do some debugging on android. Is it just

case statement and java constants

2014-02-28 Thread Adam Clements
I'm having some trouble with java constants in a case statement. I know I could use condp, but these are things I could put in a java switch statement and so it's annoying to give up constant time dispatch: (case (.getActionMasked event) MotionEvent/ACTION_POINTER_DOWN :down

Re: case statement and java constants

2014-02-28 Thread Adam Clements
[...] `(case .. ~MotionEvent/ACTION_POINTER_DOWN ... ~ MotionEvent/ACTION_UP ... )) On Sat, Mar 1, 2014 at 12:15 AM, Adam Clements adam.cleme...@gmail.comwrote: I'm having some trouble with java constants in a case statement. I know I could use condp, but these are things I could

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
Perfect timing, I just sat down to solve this exact problem, sketched out a vague idea of what I wanted and then saw this which does everything I needed but better! It's really handy for Component/Entity/System designs, as it essentially takes care of the whole entity part of the program and

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
Hi, I have been working on a setup where I batch a number of updates in a queue, which I store in an atom with multiple threads potentially adding things to it. Periodically I want to flush that queue, leaving an empty list in the atom and passing the current batch of values on for further

Re: [ANN] conf-er 1.0.1

2013-05-06 Thread Adam Clements
} (...)) I'm not trying to open the dynamic scoping can of worms here; this library clearly is a choice for people already willing to work in that way. On Thursday, May 2, 2013 9:40:29 PM UTC+9, Adam Clements wrote: A very simple library for loading application level config from a configuration

[ANN] conf-er 1.0.1

2013-05-02 Thread Adam Clements
A very simple library for loading application level config from a configuration file in a nice way, with caching and reloading functionality. Any other configuration libraries I found were either massively overkill for my needs (full on validation schemas built in), too complicated to set up

[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.

[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: fold over a sequence

2013-03-12 Thread Adam Clements
I've had exactly this problem trying to use reducers over a large file that wouldn't fit in memory. I tried iota, but had the issue that it was still scanning and memory mapping the entire file before it would start doing anything (pulling the whole thing through ram and taking a fair few

Automatically looking up and adding dependencies

2013-02-22 Thread Adam Clements
Hi, I made a thing: https://github.com/AdamClements/latest-clojure-libraries It's an emacs command which when you do M-x insert-latest-clojure-library will ask you for the name of a library on clojars. It will then pull the clojars page, look at the latest version and insert the text e.g.

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

2013-02-19 Thread Adam Clements
the same container. [1]:http://immutant.org Adam Clements writes: I'm working on a web api wrapper around a number of java/clojure libraries. One problem that I have run into is transitive dependency conflicts, especially when some of the projects are older than others. What I

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

2013-02-18 Thread Adam Clements
I'm working on a web api wrapper around a number of java/clojure libraries. One problem that I have run into is transitive dependency conflicts, especially when some of the projects are older than others. What I want to do is have each API endpoint's final handler function in its own

Re: [ANN] Schejulure 0.1.1

2013-01-19 Thread Adam Clements
. Regrettably, no obvious solutions come to mind. On Saturday, January 19, 2013 1:00:26 AM UTC+1, Adam Clements wrote: Hi Marko, I've addressed some of your concerns by re-using a single thread pool for multiple schedule calls in the current master. The original use case was one set

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] 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
Hey, I really like the idea of pulling out exception handling from the function bodies. The try catch form has always bugged me a little bit. One thing that worries me though. While this is fine for examples where you simply log the exception and move on, what if you need to do something more

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