Re: Monitoring Clojure applications in production

2017-07-10 Thread Sanel Zukan
You can try with Riemann (http://riemann.io) as it has few JMX collectors. Also, there is riemann-clojure-client (https://github.com/riemann/riemann-clojure-client) that can be integrated with your application to pull custom metrics. It requires some knowledge (scripting is done in Clojure) to c

Re: [ANN] lein-codeindex 0.1.0 - Easy code indexing and referencing for Emacs, Vim and other editors

2016-12-30 Thread Sanel Zukan
Pedro Santos writes: > Played around with it and it was pretty cool. Did have to change your code > to specify a full path for ctags on my machine. Thanks! I'll add this as TODO for the next version. > The thing is, when I tried something like namespace/function it didn't > follow... that would

Re: [ANN] lein-codeindex 0.1.0 - Easy code indexing and referencing for Emacs, Vim and other editors

2016-12-30 Thread Sanel Zukan
Daniel writes: > What is the benefit of tags over cider's go to definition functionality or > docs functionality? Plenty of functions comes without docs strings, especially private ones. Also, go-to-definition will jump to implementation of current function/ns only; you are not able to use auto

[ANN] lein-codeindex 0.1.0 - Easy code indexing and referencing for Emacs, Vim and other editors

2016-12-28 Thread Sanel Zukan
Hi everyone, I'm happy to announce first version of lein-codeindex, source code indexer that will scan and reference your project files and all dependencies used by the project. This is Leiningen plugin that can generate references for Emacs (with etags) or Vim and other editors (with ctags). Yo

Re: Setting the font size

2016-10-06 Thread Sanel Zukan
Cecil Westerhof writes: > I saw that I already had: > (use 'seesaw.core) > and called: > (invoke-later > > So I changed your call also into (invoke-later. Is this OK, or is > there a reason to do it your way? That is fine. It is more idiomatic to use 'require' to avoid namespace conflicts

Re: Setting the font size

2016-10-06 Thread Sanel Zukan
Cecil Westerhof writes: > Two points: > When using: > (seesaw/invoke-later > I get: > Exception in thread "main" java.lang.RuntimeException: No such > namespace: seesaw > > What do I need to do to get rid of this? (require '[seesaw.core :as seesaw]) > Is it possible to increase the font

Re: Setting the font size

2016-10-05 Thread Sanel Zukan
Hi Cecil, Setting fonts under Seesaw isn't the most intuitive option, so you'd have to dig into Swing core for this and investigate java.swing.UIManager documentation. Here is a function that I often use in my applications: (defn set-font "Set default font for the whole Swing application. Make

Monroe 0.3.0 released

2016-08-05 Thread Sanel Zukan
Monroe, an easy to use Emacs client for Clojure, got a new release. Notable changes are: * Support for ClojureScript stacktraces. * Allow urls with 'nrepl://' prefix * Added support for decoding negative numbers in protocol (thanks to @technomancy) * Added support for custom nREPL operators (tha

Lisp Devroom at FOSDEM 2015: Call for Participation [UPDATED]

2014-11-18 Thread Sanel Zukan
Sorry guys for spamming, I put the wrong mailing list. Now is updated. ->8- Dear Lispers, I'm pleased to announce, for the first time, Lisp Devroom @ FOSDEM, the biggest FLOSS event in Europe, that will be held in Brussels on January 31st to February 2nd, 2015. This is a call to

Lisp Devroom at FOSDEM 2015: Call for Participation

2014-11-17 Thread Sanel Zukan
Dear Lispers, I'm pleased to announce, for the first time, Lisp Devroom @ FOSDEM, the biggest FLOSS event in Europe, that will be held in Brussels on January 31st to February 2nd, 2015. This is a call to propose your talks for FOSDEM. The topic of the devroom includes all Lisp-inspired dialects,

[ANN] Monroe 0.2.0 - nrepl client for Emacs

2014-10-27 Thread Sanel Zukan
Hi, I'm happy to announce the release of Monroe 0.2.0, a new nREPL client for Emacs. This release comes with a bunch of fixes and some new features, like support for interrupting remote evaluations, reading from stdin, getting exception details and more. Release changes and download link are on

Re: [ANN] Monroe 0.1.0 - nrepl client for Emacs

2014-09-26 Thread Sanel Zukan
, Bozhidar Batsov wrote: > > Btw, you’re using CIDER’s old bencode parser, which was flawed (big > requests break it due to deep recursive calls). We recently reworked it and > the new version is much more robust. > > — > Cheers, > Bozhidar > > On September 25, 2014 a

Re: [ANN] Monroe 0.1.0 - nrepl client for Emacs

2014-09-26 Thread Sanel Zukan
t syntax > highlighting. Any ideas? > > On Thursday, September 25, 2014 8:32:05 PM UTC+8, Sanel Zukan wrote: >> >> Thanks for reply with the details, Bastien :) >> >> > As someone new to CIDER (probably only use 10% of its features), what's >> the differ

Re: [ANN] Monroe 0.1.0 - nrepl client for Emacs

2014-09-25 Thread Sanel Zukan
Thanks for reply with the details, Bastien :) > As someone new to CIDER (probably only use 10% of its features), what's the difference between this and CIDER? I think you already answered it :) I find Cider amazing project, but is a bit biggish for my taste, especially if you would like to get

Re: [ANN] Monroe 0.1.0 - nrepl client for Emacs

2014-09-24 Thread Sanel Zukan
7;t support code completion? > > 2014-09-25 0:50 GMT+08:00 Sanel Zukan >: > >> Hi everyone, >> >> Here <https://github.com/sanel/monroe> is initial release for Monroe, a >> new Clojure nREPL client for Emacs. The main idea behind Monroe is to be >> si

[ANN] Monroe 0.1.0 - nrepl client for Emacs

2014-09-24 Thread Sanel Zukan
Hi everyone, Here is initial release for Monroe, a new Clojure nREPL client for Emacs. The main idea behind Monroe is to be simple, easy to install (just put it in your *load-path*) and to work like inferior modes (inferior-lisp or inferior-scheme), providing c

Re: Help getting Clojure/Leiningen 2.0 building with LWJGL

2012-07-11 Thread Sanel Zukan
Try to add in project.clj: :jvm-opts ["-Djava.library.path=native/linux"]) where it will point to folder with OS specific libraries. Regards, Sanel On Monday, July 9, 2012 4:26:05 AM UTC+2, Karl Smeltzer wrote: > > Is anybody willing and able to walk me through getting a simple project >

Re: ANN: Clojure/dev Google Summer of Code 2012 Proposals Selected!

2012-04-24 Thread Sanel Zukan
> These proposals were selected as they not only had the best overall > score as determined by the mentoring group I'm just curious: "Improved Clojars System" was rejected but is the second one with highest scores in the list? Sanel On Tuesday, April 24, 2012 5:03:02 AM UTC+2, David Nolen wrote

Re: [ANN] analyze 0.1.3

2012-04-10 Thread Sanel Zukan
Hi, Hm, look at the following output: user=> (= (->> '(1 2) ast :val class) (->> [1 2] ast :val class)) true user=> This is intended (both will return LazySeq as type)? Greetings, Sanel On Tuesday, April 10, 2012 3:16:33 PM UTC+2, Ambrose Bonnaire-Sergeant wrote: > > Hi Sanel,

Re: [ANN] analyze 0.1.3

2012-04-10 Thread Sanel Zukan
Congrats! I'm just curious: reading your example on gist, (ast [1 2]) will yield '{:op :constant, :env {:locals {}, :ns {:name analyze.core}}, :val (1 2)}'. After downloading 0.1.4 version and running (ast '(1 2)), I'm getting the same; is it possible to get object type as part of output, e.g.

Re: Clojure code optimizer

2012-04-06 Thread Sanel Zukan
it uses the global n defined outside the let. > > Andru Gheorghiu > > On Apr 6, 10:56 am, Sanel Zukan wrote: > > This looks really nice; good work! > > > > To force evaluation of lazy constructs, you can use 'doall' and 'dorun'. > > Can

Re: Google Summer of Code 2012 Application

2012-04-06 Thread Sanel Zukan
ard the results > to you. > > On Thursday, April 5, 2012 1:35:05 PM UTC+2, Sanel Zukan wrote: >> >> Hi, >> >> Thank you for showing interest, specially for NativeClojure (you already >> got extremely good advices about your second application, related to >&g

Re: Clojure code optimizer

2012-04-06 Thread Sanel Zukan
as trying to apply another function (namely > replace-if) on the result of eval-deep. To get around this I converted > the lazy sequence into a persistent list, but this lead to that ugly > application of functions in the let in optimize. How could I have > avoided this? > >

Re: Google Summer of Code 2012 Application

2012-04-05 Thread Sanel Zukan
Hi, Thank you for showing interest, specially for NativeClojure (you already got extremely good advices about your second application, related to pluggable backend). The one of ideas behind NativeClojure, beside compiling Clojure code, were to explore possibility of reusing Java (or whatever l

Re: Clojure code optimizer

2012-03-21 Thread Sanel Zukan
out of both > worlds: a tree shaker and constant folding implementation + an > automated program which detects recursions and replaces them with more > efficient versions and a rule-based system to cover some cases which > the first approach misses. > > Andru Gheorghiu >

Re: Clojure code optimizer

2012-03-19 Thread Sanel Zukan
Hi Andru and thank you for expressing interest in this proposal. > Could you please give more details (or examples) on the types of > optimizations the optimizer should be able to do? Also, what is a tree > shaker implementation? > As David wrote, this is dead code elimination and in LISP wor

Re: Which emacs packages?

2012-03-13 Thread Sanel Zukan
Or Evil (http://gitorious.org/evil) >:) On Monday, March 12, 2012 8:03:52 PM UTC+1, Sean Devlin wrote: > > vim :-p > > On Thursday, March 8, 2012 12:10:15 PM UTC-5, AndyK wrote: >> >> Curious about which emacs packages folks use for increased Clojure >> productivity (beyond the obvious, like slim

Re: idiomatic list-ify

2012-03-09 Thread Sanel Zukan
Not sure what kind of input you can get, but apply-ing list only on strings would decompose them, so your function can be written as: (defn ls [x] (cond (string? x) (apply list (list x)) :else (apply list x as '(apply list nil)' will yield '(). Or, you can write i

Re: classpath issues

2012-03-06 Thread Sanel Zukan
If you are going to play with feedparser-clj from repl, maybe the best way would be to run 'lein repl' inside feedparser-clj folder you just downloaded. In this case, lein would automatically setup classpath for you. However, if you are planning to use it inside your project, create it with 'le

Re: Google Summer of Code 2012 - any mentors?

2012-02-29 Thread Sanel Zukan
Another two ideas were added :) (Native Clojure and Code optimizer). Hoping readers will not mind for putting myself as mentor on one of them, but if there are better candidates, feel free to take it :) I did a little bit gcj + Clojure playing and I'm eager to see native Clojure without jvm. Alth

Re: Clojure for Cocoa

2012-01-26 Thread Sanel Zukan
LOL, clojure-py is the project I was planning for some time. I'm very glad someone started it first :) Will be any wiki pages or mailing list any time soon so interest parties could get into current internals and planned roadmap? Thanks, Sanel On Jan 24, 3:37 pm, Timothy Baldridge wrote: > > Cl

Re: ANN: Hubris 0.1.0 released

2012-01-18 Thread Sanel Zukan
be of great use. > > > > > > > > On Tue, Jan 17, 2012 at 10:44 AM, Sanel Zukan wrote: > > Hi all, > > > I'm pleased to announce initial release of Hubris, HBase alternative > > shell[1]. > > > The main aim of hubris is to address hbase she

ANN: Hubris 0.1.0 released

2012-01-17 Thread Sanel Zukan
Hi all, I'm pleased to announce initial release of Hubris, HBase alternative shell[1]. The main aim of hubris is to address hbase shell weakness, providing solid ground for writing extensions using simple DSL and extending shell features in directions other than HBase authors intended. Clojure u

Re: implement a shell in repl

2011-09-20 Thread Sanel Zukan
I had quite similar task, integrating custom shell with clojure repl, where all expressions between parenthesis were interpreted as clojure code and rest as custom shell programs. The best way to do this is to explore (clojure.main/repl) function. One of the parameters will be :eval function; ther

Re: generating a list of random numbers

2010-07-28 Thread Sanel Zukan
> (repeatedly 100 #(rand-int 10)) Hm... on 1.1.: user=> (repeatedly 100 #(rand-int 10)) java.lang.IllegalArgumentException: Wrong number of args passed to: core$repeatedly (NO_SOURCE_FILE:0) user=> but, could be solved with: user=> (take 100 (repeatedly #(rand-int 10))) -- You received th

Re: Could not apply function with keyword

2010-07-19 Thread Sanel Zukan
Hi, > (apply hash-map :a 1 [:b 2]) or (apply hash-map :a 1 :b 2 nil) ...or we could be more explicit and put: user=> (apply hash-map :a 1 :b 2 {}) {:a 1, :b 2} Best. On Jul 19, 9:00 am, Meikel Brandmeyer wrote: > Hi, > > On Jul 19, 8:56 am, boyan wrote: > > > I have a question about  apply