Re: is intellij idea a good ide for clojure development?

2013-07-28 Thread Mike
On a related note (If I need to post this elsewhere, just let me know): What do people use for ClojureCLR development? If I *ever *get started, this is where I will need to be working. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: [ANN] Nightcode 0.1.0, a Clojure IDE

2013-09-25 Thread Mike
Probably a dumb question, but for those of us who would love to use Clojure under Windows, is there a way to use this IDE in a Clojure-CLR environment? In any case, thank you for your efforts. On Wednesday, September 25, 2013 8:33:47 AM UTC-5, Zach Oakes wrote: > > Nightcode is an IDE written in

Re: Demoralising experience trying to install on Win 7

2014-10-28 Thread Mike
You guys are so funny...for a real challenge try to get any clojure-clr environment up and useable on Win anything. Nightcode is close, but there are still some interesting things you have to do. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Does using clojure/clara this make sense in this project?

2014-12-10 Thread Mike
I have a new project that begs the use of a rules-based engine. I'm wondering if *clara *is an appropriate tool to use for this project. Part of some rules will involve querying remote webservices for facts. For example: Rule 1 is true if 1. http://www.abc.com/webservice responds with act

Beginner question

2015-07-29 Thread Mike
Hello, I have decided what my first Clojure project will be, but I could use some guidiance. I would like to be able to make SOAP calls to a webservice on another machine. I have done some searching, and there is an old clj-soap library which Sean Corfield has mostly abandoned. How are peopl

Newbie trying HTML parsing

2015-10-14 Thread Mike
Hello, For my first real Clojure project I am attempting to get an HTML page and locate a particular ** tag within the page. I have my program GETting the page, but I am having trouble parsing it. I am trying to use *clj-tagsoup* to parse the page, but I get an error message when I try to ;req

Re: Newbie trying HTML parsing

2015-10-14 Thread Mike
Thanks James! You helped me get another step along the way, I got this working. Of course you mentioned Crouton; you should and I asked for advice on my approach. So please allow me to expand the problem statement and you may advise me further... Once I get this HTML parsed, I know that some

Re: Newbie trying HTML parsing

2015-10-14 Thread Mike
So now I'm trying to make the conversion to Crouton. Of course that is not going well. Here is a chunk of code: (ns one.core (:gen-class)) (require '[clj-http.client :as client] '[clojure.zip :as z] '[clojure.data.zip :as dz] '[clojure.data.zip.xml :as dzx]

Re: Newbie trying HTML parsing

2015-10-15 Thread Mike
> > I've read the clojure.data.xml.zip docs carefully and looked at many > examples, but I don't understand this behavior: > (require '[clj-http.client :as client] '[clojure.zip :as z] '[clojure.data.zip :as dz] '[clojure.data.zip.xml :as dzx] '[crouton.html

How do you process this over multiple values?

2015-10-16 Thread Mike
I'm still new at this, thanks for any help. The following line extracts a value from a data structure: (:value (first (filter #(= (:name %) "abc") input-attrs))) *input-attrs* is a seq of hashes that for example looks like: ({:src "a.png", :name "abc", :value "a"} {:name "def", :src "b.gif", :v

Using cookies with clj-http.client

2015-11-08 Thread Mike
Hello, I have a web site that uses cookies for authentication. You logon to a specific URL with your username and password using a POST (which I have working; I get a 200 status back) which should create a cookie; then you use the cookie for all future access to the web site. I have all of th

Ring Xss library

2013-04-24 Thread mike
I'm trying to create a library to help with XSS (escaping input) in ring based projects. I've looked at some solutions so far and I haven't seen anything where you set it and forget it, or don't have to worry about it at all. Most solutions require manually escaping. I want to create somethin

New Forms Library

2013-05-04 Thread mike
I created a forms library called Formula over the last week or so, and I wanted to share it with the community. The library uses hiccup underneath and includes it's own validation (which is optional). It's built to handle validation inline, so you would just pass any errors (into the same form

Re: New Forms Library

2013-05-05 Thread mike
Here is the link https://github.com/codedreams/formula On Saturday, May 4, 2013 11:57:20 PM UTC-4, mike wrote: > > I created a forms library called Formula over the last week or so, and I > wanted to share it with the community. The library uses hiccup underneath > and inclu

Re: beginning to learn Clojure after imperative programming my whole life

2017-08-09 Thread Mike
https://purelyfunctional.tv 3. https://www.youtube.com/channel/UCaLlzGqiPE2QRj6sSOawJRg 4. https://www.youtube.com/channel/UC6yONKYeoE2P3bsahDtsimg 5. https://lambdaisland.com/episodes 6. https://learnxinyminutes.com/docs/clojure/ Hope, it will help. Mike. -- You received this message because yo

Re: [ANN] spec.alpha 0.1.134

2017-10-07 Thread Mike
app with java -jar I got exception below. It looks like library [tongue "0.2.2"] is broken with [org.clojure/spec.alpha "0.1.134"] java -jar /Users/mike/IdeaProjects/auth-nz/target/uberjar/auth-nz.jar Exception in thread "main" java.lang.ExceptionInInitializer

Re: Releasing scope-capture, a library for easing REPL-based debugging

2017-10-08 Thread Mike
Cool! Thanks, Val! воскресенье, 8 октября 2017 г., 10:09:19 UTC+3 пользователь Val Waeselynck написал: > > Hi, I'm happy to release a tiny Clojure/Script library called > scope-capture . > > https://github.com/alvalval/scope-capture > > Loosely

why java version in 10 times faster?

2017-10-15 Thread Mike
so slow? Mike. -- 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. To unsubscribe from

Re: why java version in 10 times faster?

2017-10-15 Thread Mike
https://clojure.org/reference/refs correct link -- 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. To

Re: why java version in 10 times faster?

2017-10-18 Thread Mike
льзователь Daniel Compton написал: > > Hi Mike > > A few thoughts > > * In my experience it is not unusual that idiomatic Clojure could be 10x > slower than the equivalent Java. > * Where did you do your timing on the ref calculation? In the Clojure > version it calculates

Re: why java version in 10 times faster?

2017-10-18 Thread Mike
the right places for new contions. So here is business values for Clojure: - dead simple logic; - reduced T2M; - less code less bugs; - fast enough. (Sold to business.) Mike. среда, 18 октября 2017 г., 20:33:28 UTC+3 пользователь Lubomir Konstantinov написал: > > Among other things (yo

Re: Slow -main function termination by pmap

2017-12-19 Thread Mike
last line in -main should be (System/exit 0) or (shutdown-agents). 1 min awaiting it is documented behaviour of clojure. вторник, 19 декабря 2017 г., 23:08:09 UTC+3 пользователь Justin Smith написал: > > any Clojure program that uses the built in thread pools (future, agent, > pmap, core.async,

Re: [ANN] debux 0.5.0 is out

2018-09-08 Thread Mike
Hello. I can't run debux on JVM 10. Issue is created https://github.com/philoskim/debux/issues/11 Mike. суббота, 8 сентября 2018 г., 19:56:14 UTC+3 пользователь Philos Kim написал: > > Debux is a trace-based debugging library for Clojure and ClojureScript. > > https://git

Re: [ANN] Clojure 1.10.0-beta1

2018-10-06 Thread Mike
Cool! Will there be more guides how to use tap and prepl ? Is there any plans to release clj for windows? Mike. суббота, 6 октября 2018 г., 7:56:52 UTC+3 пользователь Alan Thompson написал: > > Looks good to me, tested on both prod and open source code. > Alan > > On Fri, Oct

Is this unquote dangerous?

2009-07-06 Thread Mike
t I'm interested in getting, but somehow the fact that "for" is a macro and I'm escaping x assuming it's there is disconcerting. Thanks for any style tips... Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Is this unquote dangerous?

2009-07-07 Thread Mike
ild up a variable-length list of take-nth and drop applications in the macro substitution. There probably is an easier way to do this just with a function. I looked at interleave in core.clj and was surprised to see it wasn't a macro. So I ma

Re: Is this unquote dangerous?

2009-07-07 Thread Mike
12 10 17 15)" ([slices coll] (take-helper (+ 1 (apply max slices)) slices coll)) ([n slices coll] (take-helper n slices coll Thanks again to everyone who replied! Mike --~--~-~--~~~---~--~~ You received this message because you are

Homoiconicity and printing functions

2009-07-08 Thread Mike
o get something like (deep-print a) (fn [arg1 arg2] (*built-in-+* arg1 arg2)) or whatever that anonymous lambda would actually evaluate to? Any tips greatly appreciated! Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Homoiconicity and printing functions

2009-07-08 Thread Mike
what is it? Does this make any sense? Maybe I'm not doing things right. Again, any advice on what your interactive development workflow is would be appreciated! Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Homoiconicity and printing functions

2009-07-09 Thread Mike
; annotations. (as a note: I use VimClojure for development) [snip] Thanks so much for this detailed example! Awesome. That really helps me get a leg up! Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

On laziness and with-open

2009-07-09 Thread Mike
thing. (What if the outer thing wants to rewind? etc.) Is there a pattern out there in Clojure for handling laziness at the same time as handling resource lifecycle (with-open, etc.)? Thanks again in advance, Mike --~--~-~--~~~---~--~~ You received this message

JSR 223

2009-07-31 Thread Mike
Sorry if this is a FAQ; couldn't find it on the main site nor in the group. Are there plans for Clojure to work in JSR-223 (Java Scripting Framework)? I see a lot of languages up there already. In fact, the only major JVM languages missing are Scala and Clojure. Thanks for any info...

Common Lisp-style tracing?

2009-09-29 Thread mike
ommon Lisp? Common Lisp trace works like this: ? (defun foo (x) (+ x 1)) FOO ? (defun bar (x) (+ x (foo x))) BAR ? (trace foo bar) NIL ? (bar 5) 0> Calling (BAR 5) 1> Calling (FOO 5) <1 FOO returned 6 <0 BAR returned 11 11 ? (untrace) (BAR FOO) ? (b

Re: Common Lisp-style tracing?

2009-09-30 Thread mike
Thanks! This is just what I wanted. The latest version is at: http://paste.lisp.org/display/71652 Best, Mike On Sep 30, 12:33 am, Meikel Brandmeyer wrote: > Hi, > > maybe the following comes close? > > http://groups.google.com/group/clojure/browse_thread/thread/3ea877788..

Embedding a REPL

2009-12-07 Thread Mike
he repl. Has anyone done this recently? Could someone point me in the right direction for exposing Java objects into Clojure? I've tried reading main.java and RT.java looking for hints, but I'm not too smart yet about the Clojure environment, the scope of when things live, and such. Than

Re: Embedding a REPL

2009-12-08 Thread Mike
sending Ctrl-D to the console, but either I'm doing it wrong or that doesn't work for some reason. Any ideas? I love this simple approach, I didn't have to munge hardly any code (I had been traveling down the "replace :read and :print and :prompt and :flush and..." path, and

Re: Embedding a REPL

2009-12-09 Thread Mike
do it!) wrapper around System.in wasn't implementing close() properly, so infinite calls to read(...) occurred subsequently. Thanks again everybody! Mike On Dec 8, 6:28 pm, Liam wrote: > Close the *out* stream, not the *in*. That should do it. > (. *out* close) > > It was fun w

dot dot (..) notation failing me

2009-12-09 Thread Mike
Sorry if this is a newb question. Mike -- 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. To unsu

Re: dot dot (..) notation failing me

2009-12-09 Thread Mike
Thanks to everyone who replied, this makes sense (methods with args need separation). I'll check out -> too. I appreciate it!!! Mike On Dec 9, 5:02 pm, Meikel Brandmeyer wrote: > Hi, > > Am 09.12.2009 um 20:04 schrieb Mike: > > > If I write: > > > (.setM

autocomplete

2009-12-10 Thread Mike
e work of the autocomplete...that way I can just tap into it directly. If most is written in elisp, then maybe I need to rethink how I do this. Thanks a whole bunch in advance, Mike -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Trick to getting bindings in a repl

2010-12-30 Thread Mike
hurried...I can't paste the code directly here because of NDA. If you need more details I can provide them. Thanks in advance for any ideas... Mike -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

draining file of s-expressions

2011-01-14 Thread Mike
ed in a (try ... (catch)) block for when I encounter end-of-file, but I really don't understand side effects and file handling in clojure too well. Any advice? Thanks guys... Mike -- You received this message because you are subscribed to the Google Groups "Clojure" group

Re: draining file of s-expressions

2011-01-14 Thread Mike
;foo.exprs")] (doall (read-all f))) Thanks again Meikel... Mike On Jan 14, 7:08 am, Meikel Brandmeyer wrote: > Hi, > > you can use lazy-seq: > > (def eof-marker (Object.)) > > (defn read-all >   [stream] >   (lazy-seq >     (let [x (read stream false eof-marker

defrecord constructor woes

2011-01-25 Thread Mike
make a macro here to expand my argument list at compile time? I'm thinking this is a pretty fast solution, but I'd hate to make a macro if I'm just doing it wrong. Thanks in advance, Mike -- You received this message because you are subscribed to the Google Groups "Clojure&qu

Re: defrecord constructor woes

2011-01-25 Thread Mike
thanks!!! On Jan 25, 8:55 am, Meikel Brandmeyer wrote: > Hi, > > constructors (like methods) are not first class. You have to wrap it > in a factory function. > > (defn make-foo >   [a b c d] >   (Foo. a b c d)) > > (apply make-foo [1 2 3 4]) > > Sincerely > Meikel -- You received this message

idiomatic super-map

2011-02-04 Thread Mike
m c2m ... cnm)) (supermap fs c1 c2 ... cn) => ((f1 c11 c21 ... cn1) (f2 c12 c22 ... cn2) ... (fk c1m c2m ... cnm)) Make sense? Before I go reinventing the wheel (map implementation looks hard!), I figured I would ask here...somebody must be doing this already. Thanks in advance. Mike -- Y

Re: idiomatic super-map

2011-02-04 Thread Mike
On Feb 4, 10:11 am, Ken Wesson wrote: > This does it without using juxt: > > (defn supermap [fs & cs] >   (map apply fs (apply map vector cs))) This is really nice. Even handles infinity properly: (supermap (repeat +) (range 3) (range 3)) => (0 2 4) Thanks Ken and Mei

updating some values in map

2011-10-22 Thread Mike
there a more idiomatic way to do this? Something shorter than apply-map-fn I wrote? I.e. something where I don't have to use apply- map-fn? Thanks in advance Clojure smarties. =) Mike -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: updating some values in map

2011-10-23 Thread Mike
Hey thanks Stephen and BG, and Jonas! Cool tricks I hadn't thought of. I'm especially going to study this one; I had thought update-in might be applicable but I wasn't sure how (still learning it). I appreciate it! Mike On Oct 23, 2:10 am, Jonas wrote: > Another way to do

Losing your head with side effects

2011-10-25 Thread Mike
g wrong? Maybe I should change my approach, and try to generate a Java Iterator over these values, and just use iterator-seq? Thanks in advance for any ideas... Mike -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: Losing your head with side effects

2011-10-25 Thread Mike
testing it properly. Sorry to bother folks! Mike -- 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 firs

need help eliminating ordinary recursion/thinking the Clojure way

2011-11-11 Thread Mike
et rid of the ordinary recursion in merge-spans, or B) approach this problem from a different angle I'm not thinking about? Thanks in advance everybody… Mike -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: need help eliminating ordinary recursion/thinking the Clojure way

2011-11-11 Thread Mike
done reverse it. Thanks! Makes perfect sense. I'll have to remember this. Mike On Nov 11, 10:33 pm, Michael Gardner wrote: > Since you're given a sorted list of intervals, you don't actually need to > restart the whole merging process from the start after each merge; you ca

Re: Why the CLR languages fail?

2013-06-07 Thread Mike Chaliy
Visual Studio and all around it is almost the only point why people use CLR. If language does not have VS integration (or integration is basic) there is no point to restrict yourself to CLR and this makes people to go with JVM versions of language as this give more wider options for deployment.

ANN: vectorz-clj 0.10.0

2013-06-22 Thread Mike Anderson
Pleased to announce the latest 0.10.0 release of vectorz-clj, a matrix/vector maths library for Clojure vectorz-clj is designed so that you don't have to compromise: offering both high performance (about as fast as you can get on the JVM) and an idiomatic high-level Clojure API. New and notabl

cljs.core.async: Uncaught ReferenceError: state_machine__5113__auto____$1 is not defined

2013-07-16 Thread Mike Longworth
I'm trying to use cljs.core.async to convert async code to synchronous, I've hit a problem chaining some calls. I'm getting a runtime state machine problem, here is a test case for the issue: (defn td [id t] > (let [c (chan)] > (window/setTimeout (fn [] (go (>! c (name id t) > c >

Re: cljs.core.async: Uncaught ReferenceError: state_machine__5113__auto____$1 is not defined

2013-07-16 Thread Mike Longworth
Thanks Tassilo, As you point out, if I move the nested function outside the go then the problem is fixed. This test case is only a simplification of the original code so I can't do this in my actual code however after much head scratching I now understand the purpose of take! and it addresses

Re: In-order triggering of watches on mutable state

2013-07-31 Thread Mike Drogalis
new-state rather than the reference, you >>>> should not see your problem. >>>> >>>> --Aaron >>>> >>>> >>>> On Wed, Jul 31, 2013 at 11:00 AM, Michael Drogalis >>>> wrote: >>>> >>>>> Prob

Re: In-order triggering of watches on mutable state

2013-07-31 Thread Mike Drogalis
refs. > > Timothy Baldridge > > > On Wed, Jul 31, 2013 at 10:08 AM, Mike Drogalis wrote: > >> Thanks for the link. :) I understand that the behavior I'm seeing is >> correct. Any idea how to achieve the desired behavior, though? >> >> >

Re: In-order triggering of watches on mutable state

2013-07-31 Thread Mike Drogalis
> Since watchers are notified outside of a ref transaction deadlocking is > impossible. Inside a transaction you'd have a instant deadlock. > > Timothy Baldridge > > > On Wed, Jul 31, 2013 at 10:47 AM, Mike Drogalis wrote: > >> I'll play around with agents for t

Re: In-order triggering of watches on mutable state

2013-08-01 Thread Mike Drogalis
, and successive sends to the same > agent from a single thread are run by the agent in the same order the > thread sent them. > > > On Wed, Jul 31, 2013 at 1:12 PM, Mike Drogalis wrote: > >> Good reasoning; that makes a lot of sense -- even if intuitively it >> doesn'

Re: In-order triggering of watches on mutable state

2013-08-01 Thread Mike Drogalis
; Something to think about though is that you probably should be dealing > with commutative operations. So instead of sending "set bank account to X" > to refs/agents, instead send "increment bank account by 10". In this way > many of these race-conditions no longer e

Re: core.async - handling nils

2013-08-27 Thread Mike Anderson
On 27 August 2013 20:45, Timothy Baldridge wrote: > The reason for not allowing nils isn't a complex one, and basically boils > down to the following: > > a) to avoid race conditions, we need a single value to signal "the channel > is closed". As mentioned, nil is the obvious choice for this as i

Re: core.async - handling nils

2013-08-27 Thread Mike Anderson
other "ground value". > > It's these Rx style programming methods that make people think they need > this feature. > > Timothy > > > > > On Tue, Aug 27, 2013 at 8:51 AM, Mike Anderson < > mike.r.anderson...@gmail.com> wrote: > >> On 27 Aug

Re: core.async - handling nils

2013-08-27 Thread Mike Anderson
On 28 August 2013 11:50, Alan Busby wrote: > On Wed, Aug 28, 2013 at 12:18 PM, guns wrote: > >> Oh, I was confused; I was thinking about sentinel values in user code. >> Yes, I imagine a single private (Object.) would work just fine, with >> very little overhead. >> > > First, I'd hope that sent

Re: macro woes (deftype generator)

2013-09-12 Thread Mike Anderson
13 15:13, Karsten Schmidt wrote: > Hi Mike, thank you, I've checked out your vectorz lib in the past and > am also aware of Zach's clj-tuple (which this concrete part is much > closer too), but I'm looking for a pure Clojure & CLJS compatible > solution (using CLJX

ANN: New core.matrix 0.11.0 release

2013-10-06 Thread Mike Anderson
still work): https://github.com/mikera/core.matrix As always, feedback / suggestions much appreciated. Mike. -- -- 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 f

Do this or that

2014-10-06 Thread Mike Fikes
Here's a style question: If you have to conditionally do one set of side effects or another set, is your preference to use when and when-not, or an if containing do blocks? Or perhaps some other construct? In terms of a concrete example: (let [boolean-value (some-predicate?)] (when boolean-va

Re: best way to edit EDN value in cljs

2014-10-10 Thread Mike Fikes
Can you use update-in or assoc-in? On Friday, October 10, 2014 2:28:26 PM UTC-4, Dustin Getz wrote: > > I have an arbitrarily nested EDN value stored in an atom in ClojureScript. > > What is the best way to make edits to an arbitrary subtree of this value? > -- You received this message because

Re: Do this or that

2014-10-11 Thread Mike Fikes
Thanks all! FWIW, the snake game in Programming Clojure has an example (where refs are conditionally updated) which is consistent with the advice given here. Two nice things I noticed in that example: 1. The first form inside do is kept on the same line (a small but nice improvement reducing

Re: Keyword comparison performance

2014-10-11 Thread Mike Rodriguez
To the point (b) it seems that this posts is saying the clj's = will not be faster for keyword than string since the runtime type checking overhead is where most time is spent. So the identity part of keyword equals doesn't show its benefit here (unless these were long strings vs long keywords I

Re: Keyword comparison performance

2014-10-11 Thread Mike Rodriguez
To the point (b) it seems that this posts is saying the clj's = will not be faster for keyword than string since the runtime type checking overhead is where most time is spent. So the identity part of keyword equals doesn't show its benefit here (unless these were long strings vs long keywords I

Re: Keyword comparison performance

2014-10-11 Thread Mike Rodriguez
To the point (b) it seems that this posts is saying the clj's = will not be faster for keyword than string since the runtime type checking overhead is where most time is spent. So the identity part of keyword equals doesn't show its benefit here (unless these were long strings vs long keywords I

Re: Keyword comparison performance

2014-10-11 Thread Mike Rodriguez
Thanks for taking the time for the (detailed) clarification. I understand what you were saying now. :) -- 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 ar

Re: Why is my function faster with eval?

2014-10-11 Thread Mike Fikes
Hey Michael, Since your eval solution essentially "cookie-cutters" out maps, each with the same keys, as fast as it can, I was playing around with what would happen if you used records, and I cobbled together something that appears to run twice as fast as the eval approach: (defn read-to-struc

Re: uniqueness of hash if computed on different jvms across different machines.

2014-10-13 Thread Mike Fikes
In addition to Andy's caveats, remember that hash code equality doesn't imply object equality. In concrete terms, a = b implies h(a) = h(b), with the useful bit being h(a) ≠ h(b) implies a ≠ b. On Monday, October 13, 2014 2:04:57 AM UTC-4, Sunil Nandihalli wrote: > > Hi, > Is the clojure

Re: Modelling in Clojure

2014-10-21 Thread Mike Haney
I can't remember if someone posted this already, and the thread is too long and I am too lazy to go back and check, so I apologize if it's already been mentioned. Anyway, I found this talk very helpful when I started learning Clojure, getting used to data-oriented thinking: http://www.infoq.co

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

2014-10-26 Thread Mike Haney
I recently ran into the & args issue as well. I'm sure I read about when I was learning clojure, but it's easy to forget. -- 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 f

Expanding The Use Of Transducers To Atoms?

2014-10-26 Thread Mike Thompson
rs and how they can be used in the case of observables, should this atom-as-seq-with-transducer be easier? Should the IAtom interface or the add-watcher function be changed to make this process easier? Just a thought. -- Mike -- You received this message because you are subscribed to the Goo

Idiomatic way to return a single value from an async function

2014-11-10 Thread Mike Haney
Eric Normand has an interesting article on this here: http://www.lispcast.com/core-async-code-style -- 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 mod

Re: Persistent Data Structures for Objective-C/LLVM

2014-11-12 Thread Mike Fikes
I'm thinking Anton's persistent collections could be useful on iOS. Out of curiosity, I made a small iOS project that compares the performance of Anton's map to ClojureScript's, when adding lots of key-value pairs (using transients): https://github.com/mfikes/persistent-objc-cljs Interestingly,

Re: If code is data why do we use text editors?

2014-11-15 Thread Mike Haney
Colin - I'm just curious if you have any experience with Jetbrains MPS? I was into it pretty heavily before I got into Clojure, and I've thought a lot about how to add support for Clojure to it (would be pretty straightforward, actually), but haven't had the time to pursue it or the conviction

Re: Clojurescript to target JVM?

2014-11-21 Thread Mike Fikes
I too was intrigued by this and cobbled together a quick test to see if this made it possible to create command-line apps that start up more quickly [1]. It appears that this is indeed the case, but, of course you still need to pay JVM startup time. I was also interested in what Sam Beran accom

Re: Thnx for clojureconj videos !!

2014-11-24 Thread Mike Haney
Seconding the recommendation for the Clojure Gazette. If you aren't subscribed already, just do it. It's a fantastic resource, and I am very grateful for Eric Normand and the tireless effort he puts into it. On a side note, I had the pleasure of meeting Eric at the Conj, and he is one of the

"rest" arguments and desctructuring / nil vs. empty

2014-11-30 Thread Mike Fikes
For "rest" arguments, as in (defn foo [x & r] r), when the remaining arguments are rolled up into a sequence, you will get nil instead of an empty sequence. Is it fair to say that the "rest" nomenclature came about back at the beginning of Clojure, when rest really did return nil, prior to the

Re: Charting Data Format Feedback Requested

2014-12-12 Thread Mike Anderson
Lucas, Thanks for kicking off the discussion - great to see your proposal on this. I think it will be really valuable if we can converge on a standard way of representing this kind of data in Clojure/ClojureScript. Copying the Incanter and main Clojure groups as well because I think there will

Re: "Multimethod dispatch based on Java classes is simply not reliable."

2014-12-13 Thread Mike Rodriguez
I'm not 100% sure and haven't really looked deeply at this comment or link you mention, but perhaps this is related to http://dev.clojure.org/jira/browse/CLJ-979. This would only be the case for Clojure-dynamically generated Java classes though, which is those from deftype or the macros built o

Re: Has the old "invalid constant tag: -57" bug been fixed?

2014-12-16 Thread Mike Fikes
I've recently seen the same error: Loading test/cljs/classroom_checkout/test1.cljs... done CompilerException java.lang.ClassFormatError: Unknown constant tag 117 in class file classroom_checkout/utils_test$eval12853, compiling:(/private/var/folders/m0/161fm8fx069fk_fny08nrmkmgp/T/form-in

Re: Has the old "invalid constant tag: -57" bug been fixed?

2014-12-16 Thread Mike Fikes
You are absolutely right, Andy. Getting out my bantha shears in order to provide a good reduction for a bug report… -- 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

Re: Has the old "invalid constant tag: -57" bug been fixed?

2014-12-16 Thread Mike Fikes
I found that the problem I'm experiencing is, in essence, the same issue as discussed (and fixed) here , but with some new tool in my toolchain (Cursive/simple-brepl/Weasel). TL;DR: Something produces a .class file that exceeds th

Re: Has the old "invalid constant tag: -57" bug been fixed?

2014-12-17 Thread Mike Fikes
I did some digging and for those interested, this appears to be the way piggieback and tools.nrepl work for ClojureScript. Details are in the Cursive ticket: https://github.com/cursiveclojure/cursive/issues/680 -- You received this message because you are subscribed to the Google Groups "Cloju

ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-27 Thread Mike Anderson
Here is a little belated Christmas present for Clojure data aficionados: ;; setup (use 'clojure.core.matrix) (set-current-implementation :vectorz) ;; create a big sparse matrix with a trillion elements (initially zero) (def A (new-sparse-array [100 100])) ;; we are hopefully smart enough

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-28 Thread Mike Anderson
7;t yet optimised for sparse operations. So any review / patches would be appreciated! > > On Saturday, December 27, 2014 4:56:55 AM UTC-5, Mike Anderson wrote: >> >> Here is a little belated Christmas present for Clojure data aficionados: >> >> ;; setup >>

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-28 Thread Mike Anderson
2014 09:43:54 UTC+8, Matt Revelle wrote: > > > On Dec 28, 2014, at 7:28 PM, Mike Anderson > wrote: > > Interesting idea. The challenge is that I'm not sure how to add > representation specification in an implementation independent way. It's a > quirk of ve

Re: [lein] compile sass?

2014-12-28 Thread Mike Haney
Cool, I'll give your fork a try. I've been using lein-shell to just run sassc directly, but it's annoying because sassc bombs if the target folder doesn't exist. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: ANN: boltzmann 0.1.1 - a deep-learning library

2015-01-04 Thread Mike Anderson
Very cool stuff! I notice that you are specialising the RBM to a specific matrix implementation (Clatrix / JBlas) in the file "jblas.clj". Are you sure you need to do that? Part of the beauty of core.matrix is that you should be able to write your algorithms in an implementation-independent man

Re: ANN: boltzmann 0.1.1 - a deep-learning library

2015-01-05 Thread Mike Anderson
On Tuesday, 6 January 2015 04:27:55 UTC+8, Christian Weilbach wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 05.01.2015 03:34, Mike Anderson wrote: > > Very cool stuff! > > Like yours! I wish nurokit was EPLed, then I could have had a look at

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2015-01-10 Thread Mike Anderson
Thanks Matt! I've just release Vectorz 0.45.0 including your changes. A lot of sparse operations are much faster now! On Monday, 29 December 2014 21:56:30 UTC+8, Matt Revelle wrote: > > Yes, will do. > > On Dec 28, 2014, at 9:58 PM, Mike Anderson > wrote: > > Loo

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-11 Thread Mike Fikes
Alex, 1.7.0-alpha5 looks OK to me. It passed with some regression testing for an AOTd http-kit compojure / core.async REST server using Lucene, clojure/java.jdbc / MySQL, Java 1.7.0_65 on Ubuntu 10.04.1 LTS. -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Clojure for Desktop UI Design Application

2015-01-13 Thread Mike Haney
I know it seems overwhelming, and if you try to keep up with all the latest "cool" libraries, -- 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 moderate

  1   2   3   4   5   6   7   8   9   >