Re: Who wants to join a cool open source project?

2024-10-24 Thread Wagner
I have no experience with open-source. But this project seems interesting. I would like to learn more about it. Em qua., 23 de out. de 2024, 07:21, Michael Voronov < michael.voro...@gmail.com> escreveu: > I would like to have more information... > Michael > > воскресенье, 20 октября 2024 г. в 15:

Re: Fresh Clojure Tutorial

2009-03-29 Thread Andrew Wagner
Excellent tutorial. I pretty much zipped right through it, even though I'm on osx and had to figure out the right way to get a git client for myself. Thanks! On Sun, Mar 29, 2009 at 3:34 PM, Curran Kelleher wrote: > > Hello, > > I've created an introductory tutorial for Clojure and Emacs here: >

Re: Fresh Clojure Tutorial

2009-03-29 Thread Andrew Wagner
Oh, I should point out that it looks like your abs examples, under "Learning basic clojure" got mangled. On Sun, Mar 29, 2009 at 3:34 PM, Curran Kelleher wrote: > > Hello, > > I've created an introductory tutorial for Clojure and Emacs here: > > http://lifeofaprogrammergeek.blogspot.com/2009/03/l

ICFP 2009

2009-04-20 Thread Andrew Wagner
It would be fun to have a team of clojure programmers work on the ICFP '09 contest. Has this been done previously? Anybody interested? I'm new to clojure and to lisps in general, but have a pretty good grasp of functional programming (mostly from haskell). It would be great fun to work with some mo

Re: ICFP 2009

2009-04-23 Thread Andrew Wagner
> > Sounds like a fun thing to try. Could someone give a brief > description of what would be required in terms of time commitment to > participate on a team? (Sadly, spare time is hard to come by...) > It's just one weekend. As much or as little time as you can commit to for that weekend. --~-

Re: PeepCode screencast

2009-04-25 Thread Andrew Wagner
Just to provide a review - I must say, I really wanted to like this screencast, and failed, unfortunately. It tries to cover everything from "what is functional programming?" (tracing through passing functional arguments, and basic map/reduce stuff, for example) to the intricacies of STM use and cl

Re: PeepCode screencast

2009-04-27 Thread Andrew Wagner
ly very good,especially as it gives a >> good overview of how to break up your code and about packaging. It >> does go a bit quick, but I found that by re-watching + reading the >> code at the same time very helpful. It a useful demo to see the power >> and conciseness of clo

Re: What's the function that returns the opposite of a predicate?

2009-04-30 Thread Andrew Wagner
I think maybe you want complement: http://clojure.org/api#complement On Thu, Apr 30, 2009 at 1:50 PM, samppi wrote: > > I know there's a core function that takes a predicate and returns its > opposite: > > (defn mystery [predicate] > (fn [x] (not (predicate x > > I'm having a lot of trouble

Re: ANN: Full, continuously updated documentation for clojure.contrib

2009-05-04 Thread Andrew Wagner
Absolutely brilliant. Exactly what clojure-contrib and the clojure community needed. Thank you! On Mon, May 4, 2009 at 2:41 AM, Tom Faulhaber wrote: > > Hello everybody, > > As many of you know, I have been working on a "contrib autodoc robot" > for the last little while. > > It is now up and run

with-open macro

2009-05-12 Thread Andrew Wagner
I just saw this on the JavaWorld article (great article by the way: http://www.javaworld.com/javaworld/jw-05-2009/jw-05-clojure.html ) (defmacro with-open [bindings & body] `(let bindings (try @body (finally (

Re: with-open macro

2009-05-12 Thread Andrew Wagner
ive that means > assigning rdr to function (reader file). So now it is pretty obvious that > what you need is the variable, rdr, (in side the scope) and that's why > clojure takes only the first element of the vector.I guess that's logical. > > Emeka > > > > > > On

Re: with-open macro

2009-05-12 Thread Andrew Wagner
Wow. Ok, yeah, I'm glad he didn't put that version in the article :) On Tue, May 12, 2009 at 1:17 PM, Stephen C. Gilardi wrote: > > On May 12, 2009, at 12:30 PM, Andrew Wagner wrote: > >> It seems like this idiom would be easy to implement in this macro. Or am I >>

Re: with-open macro

2009-05-12 Thread Andrew Wagner
Oh, it's just significantly harder to read if you don't know clojure, that's all. On Tue, May 12, 2009 at 2:43 PM, Emeka wrote: > Why? > > > On Tue, May 12, 2009 at 5:37 PM, Andrew Wagner wrote: > >> Wow. Ok, yeah, I'm glad he didn't put that ver

Enclojure problem

2009-05-15 Thread Andrew Wagner
Hi everyone, Trying to set up a new project using enclojure. I created the new project, then put a new .clj file in Project Sources. In that file, I typed: (defn main [] (print "hi")) ...which works in a REPL. But when I try to build the project, I get a big old stack trace (http://paste.lisp.org

Re: Clojure at JavaOne

2009-05-18 Thread Andrew Wagner
I can only speak from my experience, but the thing that really got my attention was the idea of 'code as data'. In particular, for me, looking through Koza's Genetic Programming book blew my mind. It would be cool to come up with a nice GP demo. On Mon, May 18, 2009 at 8:36 AM, Rich Hickey wrote:

Re: Saving the Clojure.org webiste

2009-05-19 Thread Andrew Wagner
Can I get it in a bedtime-story format too? :) On Tue, May 19, 2009 at 3:49 PM, Kei Suzuki wrote: > > I wanted to save the Clojure.org website so that I can read it when > I'm off-line. The problem is that none of the website downloader tools > I found is satisfactory; the pages don't look right

Architecture for a clojure project

2009-05-25 Thread Andrew Wagner
I'm trying to wrap my head around how to architect this project. I've got some functional programming experience (with Haskell), but am pretty new to Lisps, and feel a bit lost without the type system. So. The project is a chess AI. Now the nice thing is, there's a protocol for interacting with a

Re: Programming Clojure Arrives!

2009-05-28 Thread Andrew Wagner
I ordered mine today and look forward to getting it soon! On Thu, May 28, 2009 at 8:51 PM, Sean Devlin wrote: > > I just got my copy of Programming Clojure in the mail today. This is > the only time I expect to see the book in pristine condition, as I > know it will get bookmarked, highlighted,

Re: filter on sequence

2009-06-02 Thread Andrew Wagner
> > You can use destructuring in your predicate's arg list: > > Not to hijack the thread but...is there some reason clojure doesn't just just call this pattern-matching? Is it different somehow? --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: filter on sequence

2009-06-02 Thread Andrew Wagner
> > Why doesn't Ruby just call it destructuring like Lisp has been doing > for decades? ;) > > So that non-academics have a prayer at not getting scared away by an unnecessarily-technical name? --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: filter on sequence

2009-06-02 Thread Andrew Wagner
The same is true of irrefutable patterns in haskell. > > The difference is that a pattern match can fail, and in that case > other patterns are tried. Clojure's destructuring assumes that the > value has the right structure. If it doesn't, then you will get an > exception thrown. > > --~--~-

Re: unit testing private methods?

2009-06-03 Thread Andrew Wagner
Well, of course this is a classic situation in OO, if you think about it. Googling around may shed some interesting light on the subject. Essentially, the question is: are you sure that's what you want to do? Why not concentrate your unit tests on the public interface in such a way that the private

Silly question from Programming Clojure

2009-06-04 Thread Andrew Wagner
Hey ya'all! Just got my copy of Programming Clojure last night (great book, kudos Stuart!). I've got a silly question now. There's a comment in the book about one piece of code where it says "the symbol gets associated with a var which gets bound to a value". That sounds strange to my ear. Wouldn't

Re: ICFP 2009

2009-06-07 Thread Andrew Wagner
Just an update on this thread - it turns out my wife and I are out of town at a wedding the weekend of the contest this year, so if anyone wants to organize a clojure team, don't depend on me to organize it. Good luck! On Thu, Apr 23, 2009 at 1:34 PM, Jason Wolfe wrote: > > I'm interested, altho

Re: The "->" & "." nested usage

2009-06-08 Thread Andrew Wagner
Just to be clear, is (String.) a macro? I thought it was just a special form. On Mon, Jun 8, 2009 at 3:47 PM, Stephen C. Gilardi wrote: > > On Jun 8, 2009, at 12:38 PM, ronen wrote: > > user=> (-> String. String.) > java.lang.ClassNotFoundException: String. (NO_SOURCE_FILE:7) > > expanding the m

Re: The "->" & "." nested usage

2009-06-09 Thread Andrew Wagner
So there's a different macro analogous to "String." for a bunch of different classes, and it doesn't work for arbitrary classes? On Tue, Jun 9, 2009 at 2:55 AM, Konrad Hinsen wrote: > > On 08.06.2009, at 21:59, Andrew Wagner wrote: > > > Just to be clear, is

Re: Very minor problem in the REPL

2009-07-17 Thread Andrew Wagner
Sounds like a good application of the broken window principle to me. On Fri, Jul 17, 2009 at 9:05 AM, AlamedaMike wrote: > > This is so trivial from a technical standpoint I'm embarrassed to > mention it. The REPL is accepting more than one sexp on a line and > then generating output for all of

Uncle Bob looking for clojure help!

2009-08-12 Thread Andrew Wagner
http://blog.objectmentor.com/articles/2009/08/11/jarvis-march-in-clojure --~--~-~--~~~---~--~~ 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 fr

defstruct-extend

2009-10-17 Thread Nick Wagner
Several times now, I've found it useful to have structures defined with similar keys -- not necessarily for any particular OO or type system, just similar datasets. I wasn't sure if something like this already existed, but.. (defmacro defstruct-extend "Defines a new structure with all the keys

Re: Any interest in a Nova Clug?

2009-12-16 Thread Andrew Wagner
There's a possibility I might be interested in joining such a group. It would mostly depend on scheduling. On Wed, Dec 16, 2009 at 8:35 PM, Seth wrote: > Matt, > > (conj nova-clug :me) > > Seth > > On Dec 16, 1:14 pm, Matt wrote: > > I'm looking into setting up a Northern Virginia Clojure User

REPL in a browser

2010-03-07 Thread Jozef Wagner
Hi, I'm wondering how hard it would be to make a clojure REPL accessible from a browser. Something like at http://www.simplyscala.com/ Some approaches I have thought of: a) Java Applet Downsides: need to have Java 1.6 enabled in a browser, less cool visual presentation :) Upsides (for some): Runn

Re: REPL in a browser

2010-03-09 Thread Jozef Wagner
   - beanshell * >    - clojure >    - groovy * >    - javascript * >    - python * >    - ruby * >    - scala * >    - scheme > > using Google App Engine as backend > > Angel "Java" Lopezhttp://www.ajlopez.comhttp://twitter.com/ajlopez > > > > On Su

Re: [ANN] tawny-owl 0.11

2013-05-22 Thread Andrew Wagner
I went looking for the same thing. There are a few partial examples in the docs directory that might be worth looking at. On Wed, May 22, 2013 at 8:06 AM, atkaaz wrote: > For those who don't know the concepts (aka me) can we get a working > example of what can be done ? I'm having a strange fee

Re: core.async

2013-06-29 Thread Jozef Wagner
This is great news! Especially that it is designed also to support other hosts besides JVM. BTW how do IOC threads compare (e.g. in performance and ability to use ForkJoinPool) to coroutines such as those in pulsar? [1] [2] [1] http://blog.paralleluniverse.co/post/49445260575/quasar-pulsar [2]

ns defaults

2013-07-18 Thread Jozef Wagner
Compiler loads and refers clojure.core namespace for each new namespace. In my projects, I often have one or two namespaces I use nearly in every other namespace. (e.g. clojure.tools.logging or clojure.string). It would be convenient if I could specify ns defaults somewhere and those declaration

Re: ns defaults

2013-07-19 Thread Jozef Wagner
On Friday, July 19, 2013 4:20:36 PM UTC+2, Stuart Sierra wrote: > > On Thursday, July 18, 2013 4:34:49 AM UTC-4, Jozef Wagner wrote: > > > Compiler loads and refers clojure.core namespace for each > > new namespace. In my projects, I often have one or two > > namespaces

Re: Can we please deprecate the :use directive ?

2013-07-23 Thread Jozef Wagner
+1, :use is IMO an antipattern. I hate it mainly in blogs, where they explain some new API. They :use like 3 namespaces and you have to guess which fn is from which ns :) JW On Tuesday, July 23, 2013 5:50:50 PM UTC+2, Greg Slepak wrote: > > I think I read somewhere that :use is no longer encou

[ANN] ClojureScript Benchmarks

2013-07-24 Thread Jozef Wagner
I have some performance sensitive code in my ClojureScript program, so I've done some benchmarks to determine the best approach. I've streamlined the benchmarking process and made it public. You can find it at http://wagjo.github.io/benchmark-cljs/ May it help you make more performant ClojureSc

Evaluation of metadata by reader

2013-07-24 Thread Jozef Wagner
I have a hard time understanding the rules for the evaluation of the metadata in the reader. Following example illustrates this: (let [x :foo v1 (quote ^{x 4} [1 2 3]) v2 ^{x 4} [1 2 3]] (println (meta v1) v1) (println (meta v2) v2)) prints {x 4} [1 2 3] {:foo 4} [1 2 3].

Re: Evaluation of metadata by reader

2013-07-25 Thread Jozef Wagner
, spencer wrote: > > I wrote a blog post about this last year: > http://spencertipping.com/posts/2012.0819.clojure-metadata.html > > On Wednesday, July 24, 2013 3:09:11 PM UTC-7, Jozef Wagner wrote: >> >> I have a hard time understanding the rules for the evaluation of the

Re: Evaluation of metadata by reader

2013-07-25 Thread Jozef Wagner
Hi, I was just going to post exactly the same. I've looked in the Compiler.java and the evaluation of metadata happens together with evaluation of the form. So it is a desired behavior after all. Regarding empty vector, I've already created a ticket for it, http://dev.clojure.org/jira/browse/C

Re: ANN: substantiation, An opinionated nested maps validations library

2013-07-27 Thread Jozef Wagner
Hi, Some feedback and questions, as I've made something similar in the past. - allow normal fns and classes as a predicates. - having one global Var for predicates is an antipattern - can you compose predicates logically (AND/OR)? - can you validate a contents of the vector? As an inspiration, t

T-shirts?

2013-07-28 Thread Isaac Wagner
There was a discussion a while ago about stickers which led to http://clojure.org/swag. Could we get some sanctioned T-shirts as well? There are a few Clojure shirts on Zazzle, but what I would be interested in is some black, grey, and white shirts with nothing but a big Clojure logo on the fro

butlast with reducers

2013-08-08 Thread Jozef Wagner
Is it possible to implement efficient butlast (and drop-last, take-last) with reducers? The only solution I can think of needs additional reduce to compute count, which may often be undesirable. Or is it OK to say that reducers are not designed for such cases? JW -- -- You received this mes

Re: butlast with reducers

2013-08-08 Thread Jozef Wagner
/coll-reduce >> coll >> (fn [q x] >> (let [q (conj q x)] >> (if (<= (count q) n) >> q >> (pop q clojure.lang.PersistentQueue/EMPTY) >> f1 init >> >>

Re: Debugging a custom reader literal for a sorted-set

2013-08-08 Thread Jozef Wagner
The problem is the evaluation. PersistentTreeMap evaluates to the PersistentArrayMap (or PersistentHashMap). user=> (class (to-sorted-map '(1 2 3 4))) clojure.lang.PersistentTreeMap user=> (class #sorted-map (1 2 3 4)) clojure.lang.PersistentArrayMap user=> (class #sorted-map (1 2 3 4 5 6 7 8 9 0

Re: Debugging a custom reader literal for a sorted-set

2013-08-08 Thread Jozef Wagner
It seems there is something else in data reader which causes this change. user=> (class '#foo/sm (1 2 3 4)) clojure.lang.PersistentArrayMap user=> (class (read-string "#foo/sm (1 2 3 4)")) clojure.lang.PersistentTreeMap It's quite puzzling. In both cases the evaluation does not take place, but s

Re: Debugging a custom reader literal for a sorted-set

2013-08-08 Thread Jozef Wagner
d take a look. I wonder if it may > be a Clojure reader bug. > > On Thu, Aug 8, 2013 at 3:55 PM, Jozef Wagner > > > wrote: > > It seems there is something else in data reader which causes this > change. > > > > user=> (class '#foo/sm (1 2 3 4))

Re: Debugging a custom reader literal for a sorted-set

2013-08-09 Thread Jozef Wagner
This ticket may be related, http://dev.clojure.org/jira/browse/CLJ-1093 On Friday, August 9, 2013 12:08:06 AM UTC+2, Jozef Wagner wrote: > > It may be a bug somewhere in a Compiler. I've lost track at > https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compi

Re: butlast with reducers

2013-08-23 Thread Jozef Wagner
x) 100 JW On Thursday, August 8, 2013 4:46:37 PM UTC+2, Jozef Wagner wrote: > > Wow, thank you very much! A perfect solution. > > At the end, wouldn't be good if the reducers would implement alongside > CollReduce also a Seqable interface, so that reducers could be used as a

Re: butlast with reducers

2013-08-23 Thread Jozef Wagner
ng reducer 5050 user> (clojure.core.reducers/fold + x) ;; using folder 5050 JW On Thursday, August 8, 2013 4:46:37 PM UTC+2, Jozef Wagner wrote: > > Wow, thank you very much! A perfect solution. > > At the end, wouldn't be good if the reducers would implement alongside > CollReduce also a S

Re: butlast with reducers

2013-08-23 Thread Jozef Wagner
+ x) 5050 Best, JW On Thursday, August 8, 2013 4:46:37 PM UTC+2, Jozef Wagner wrote: > > Wow, thank you very much! A perfect solution. > > At the end, wouldn't be good if the reducers would implement alongside > CollReduce also a Seqable interface, so that reducers could be u

Re: ANN: clj-tuple, efficient small collections

2013-08-24 Thread Jozef Wagner
Hi, I've did something similar for CLJS, see http://dev.clojure.org/jira/browse/CLJS-453 and https://groups.google.com/forum/#!searchin/clojure/arrayvector/clojure/yDvTRP0gYLA/Tb5MJC8Z0K8J In CLJS, it is comparable in performance to use array instead of specialized type for each arity. Did you ch

lazy seq from reducers with core.async

2013-08-25 Thread Jozef Wagner
Hi, A distinctive feature of reducers is that "reducing is a one-shot thing". The common understanding is that reducers are fast for cases where you want to process whole collection at once, but for infinite and lazy seqs, you have to use good old seqs. With core.async, it is now easy to creat

Re: ClojureScript: Keyword Breaking Change Around the Corner

2013-08-28 Thread Jozef Wagner
Will identical? correctly handle keywords under advanced compilation, with keywords constants emited? On Wed, Aug 28, 2013 at 3:29 PM, David Nolen wrote: > ClojureScript has long represented symbols and keywords as JavaScript > Strings as a performance optimization around hash maps. However mod

Re: [ANN] core.typed 0.2.0 - Production Ready

2013-08-29 Thread Jozef Wagner
How about annotating clojure.core API. Is it needed, provided, optional? On Thursday, August 29, 2013 12:28:35 AM UTC+2, Ambrose Bonnaire-Sergeant wrote: > > Hi, > > After 10 months and 26 0.1.x releases of transitioning core.typed from an > ambitious student project, I am finally comfortable re

Re: lazy seq from reducers with core.async

2013-09-02 Thread Jozef Wagner
lose! c)) c)) chans (doall (map send-fn colls))] (loop [val init s (cycle chans)] (let [c (first s) x (https://gist.github.com/wagjo/6335189 JW On Sunday, August 25, 2013 7:47:14 PM UTC+2, Jozef Wagner wrote: > > Hi, >

Re: Emacs Clojure mode : No syntax highlighting for #_

2013-09-03 Thread Jozef Wagner
This is the convention I would like to see in an ideal clojure highlighter theme: ;; comments are highlighted so that they stand out. Comments are meant to be read, not forgotten. (comment ) form is for example code, so it is highlighted as a normal clojure code #_ is used for disabling parts

Re: Clojure, floats, ints and OpenGL

2013-09-09 Thread Jozef Wagner
You can typehing ints for locals (let, loop), restrictions are just for function arguments. AFAIK the reason is combinatorial explosion at https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/IFn.java#L91 I have the same problem with char. Because I cannot typehint e.g. my whitespace

Re: docs for ^:once

2013-09-12 Thread Jozef Wagner
There is also a recent discussion on IRC about that, http://clojure-log.n01se.net/date/2013-08-29.html#10:47 and official documentation mentions it at the end of http://clojure.org/lazy JW On Thu, Sep 12, 2013 at 8:56 PM, Brian Craft wrote: > I still don't really understand ^:once. Are there

Re: Set equality bug?

2015-01-22 Thread Jozef Wagner
More on this behavior http://dev.clojure.org/jira/browse/CLJ-1036 On Thu, Jan 22, 2015 at 2:00 PM, Nicola Mometto wrote: > > Looking at the PHM impl, this looks like it's caused by (float 0.5) and > (double 0.5) hashing differently. > > user=> (= (float 0.5) (double 0.5)) > true > user=> (map ha

Re: Set equality bug?

2015-01-22 Thread Jozef Wagner
>> false > > >> user=> (= (float 1.5) (double 1.5)) > > >> true > > >> > > >> I.e. = (and ==) will return true when comparing floats with doubles > IFF > > >> the float's .doubleValue roundtrips to the same double it's

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-26 Thread Jozef Wagner
With CLJ-979 applied, lein may crash when doing :aot :all. This is caused when lein forces recompilation of already compiled classes. Not sure whether this should be considered a lein of clojure bug though. See https://github.com/wagjo/aotbug for contrived example. Jozef On Saturday, January 1

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-29 Thread Jozef Wagner
Thank you very much Nicola! On Thu, Jan 29, 2015 at 7:24 PM, Nicola Mometto wrote: > > Jozef, I looked into this and opened a ticket with a proposed patch to > fix this issue: http://dev.clojure.org/jira/browse/CLJ-1650 > > Jozef Wagner writes: > > > With CLJ-979 appl

[ANN] Dunaj project, an alternative core API for Clojure

2015-03-05 Thread Jozef Wagner
tter. -- Jozef Wagner [1] http://www.dunaj.org/ -- 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

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-06 Thread Jozef Wagner
I'm planning to introduce experiments every other day, starting later today. On Fri, Mar 6, 2015 at 12:05 AM, Alex Baranosky < alexander.barano...@gmail.com> wrote: > Yeah, I'm excited to see some of the 10 write-ups. What's the ETA on the > first one? > > On Thu, Mar 5, 2015 at 6:02 PM, Alex Mil

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-06 Thread Jozef Wagner
, but this list is handled by separate API presets that can be extended and customized. You can read more about this experiment at http://www.dunaj.org -- Jozef On Thu, Mar 5, 2015 at 10:33 PM, Jozef Wagner wrote: > I'm happy to announce a project called Dunaj [1], which pro

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-07 Thread Jozef Wagner
IMO. > > On 6 March 2015 at 18:49, Jozef Wagner > > wrote: > >> Experiment #1 >> >> *Deconstructing Core API* >> >> While Clojure provides its functionalities in multiple namespaces (e.g. >> clojure.string, clojure.zip), the majority of it is

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-07 Thread Jozef Wagner
t to write long emails here, you can read more about this experiment at http://www.dunaj.org . Best, Jozef On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote: > > I'm happy to announce a project called Dunaj [1], which provides an > alternative core API for Clo

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-10 Thread Jozef Wagner
usual, you can read more about this experiment at http://www.dunaj.org Regards, Jozef On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote: > > I'm happy to announce a project called Dunaj [1], which provides an > alternative core API for Clojure. Its main aim is to

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-11 Thread Jozef Wagner
changes how compiler recognizes special symbols and makes them fully qualified. You can read more about this experiment at http://www.dunaj.org Jozef On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote: > > I'm happy to announce a project called Dunaj [1], which

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-12 Thread Jozef Wagner
that uses reducers by default - Enhance reducers to support straightforward conversion to lazy sequences - Provide full API support for transducers You can read more about this experiment at http://www.dunaj.org Best, Jozef On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote: >

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-16 Thread Jozef Wagner
http://www.dunaj.org Best, Jozef On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote: > > I'm happy to announce a project called Dunaj [1], which provides an > alternative core API for Clojure. Its main aim is to experimentally test > major additions to the lan

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-17 Thread Jozef Wagner
ble optimizations You can read more about this experiment at http://www.dunaj.org Regards, Jozef On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote: > > I'm happy to announce a project called Dunaj [1], which provides an > alternative core API for Clojure. Its main aim is

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-17 Thread Jozef Wagner
ing unpacked reduction... https://www.refheap.com/98510 Jozef On Wednesday, March 18, 2015 at 1:05:16 AM UTC+1, Herwig Hochleitner wrote: > > 2015-03-12 12:15 GMT+01:00 Jozef Wagner > >: > >> >> Experiment #5: Reducers First >> >> > Wow! There are some g

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-18 Thread Jozef Wagner
resources * Devise abstraction for composing resources into 'systems' You can read more about this experiment at http://www.dunaj.org Regards, Jozef On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote: > > I'm happy to announce a project called Dunaj [

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-19 Thread Jozef Wagner
http://www.dunaj.org Best, Jozef On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote: > > I'm happy to announce a project called Dunaj [1], which provides an > alternative core API for Clojure. Its main aim is to experimentally test > major additions to the lan

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-19 Thread Jozef Wagner
s experiments at the documentation section of Dunaj at http://www.dunaj.org/doc.html Best, Jozef Wagner On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote: > > I'm happy to announce a project called Dunaj [1], which provides an > alternative core API for Clojure.

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-21 Thread Jozef Wagner
e! > > Thank you for putting yourself and your ideas out there in this way, and > for reminding us not to settle for what we have now, but to continually > push towards ever greater heights. > > Best, > James > > On Friday, March 20, 2015 at 6:35:37 AM UTC+1, Jozef Wagner

[ANN] Dunaj lite, a library-only version of Dunaj

2015-04-13 Thread Jozef Wagner
o focus on Dunaj's individual features and its usage in real world cases. Best, Jozef Wagner [1] http://www.dunaj.org [2] http://lite.dunaj.org [3] http://blog.wagjo.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gro

Re: Advice when running java -jar rather than a managed server like tomcat?

2015-05-26 Thread Jozef Wagner
We were using http://wrapper.tanukisoftware.com/doc/english/download.jsp for deploying uberjars as a service under linux (AWS), and were quite satisfied with it. On Tue, May 26, 2015 at 3:15 PM, Shantanu Kumar wrote: > I'm doing some of those things at work (http-kit, > logback+slf4j+MDC+clojure

Re: [ANN] Dunaj lite, a library-only version of Dunaj

2015-06-01 Thread Jozef Wagner
Wagner wrote: > > Hi all, > > I've just released a version 0.4.0 of Dunaj [1], that contains some > bugfixes and is built on top of Clojure 1.7.0 beta1. Dunaj provides an > alternative core API for Clojure, introducing a set of core language > experiments aimed to improv

Re: Where should 'if-let-all' macro go?

2015-06-09 Thread Jozef Wagner
Dunaj has support for multiple bindings in if-let since version 0.5. http://www.dunaj.org/dunaj.flow.api.html#if_let Related design page that discusses possible approaches is at https://github.com/dunaj-project/dunaj/wiki/Conditionals Jozef On Tuesday, June 9, 2015 at 4:00:35 PM UTC+2, Lars An

Re: Rxtx Serial Dependency issues with ARM processor

2014-07-18 Thread Jozef Wagner
Hi, AFAIK RXTX is obsolete, you may have more luck with JSSC [1]. Including it in your Clojure project is easy, just add [org.scream3r/jssc "2.8.0"] While it's not perfect, its pretty solid from my experience. There is a support for ARM, but I've been using it only in x86-64 Linux. [1] https://g

Re: unexpected behavior of clojure.core/empty

2014-07-19 Thread Jozef Wagner
While the c.l.MapEntry is a persistent vector, there is no such thing as an empty MapEntry persistent vector. Returning empty HAMT persistent vector instead is not a good solution, as 2 elements HAMT vector does not implement IMapEntry interface. One approach on how to solve this is in Zach's c

Re: unexpected behavior of clojure.core/empty

2014-07-19 Thread Jozef Wagner
. Not sure why empty should be an exception. IMapEntry > only provides key, val, and java.util.Map.MapEntry, and probably if you're > modifying map entries, you don't mind losing that functionality. > > On Saturday, July 19, 2014 3:04:13 PM UTC-5, Jozef Wagner wrote: > >>

Re: Create an instance of a record using a string to define the record's symbol

2014-08-06 Thread Jozef Wagner
You can use record's positional constructor: user> (defrecord R [a]) user.R user> ((find-var (symbol "user/->R")) 5) #user.R{:a 5} JW On Wednesday, August 6, 2014 12:51:11 PM UTC+2, Ambrose Bonnaire-Sergeant wrote: > > Hi Colin, > > If you must call the Java constructor, you need reflection. >

Re: Clojure 1.7 and invokeStatic

2014-08-06 Thread Jozef Wagner
See this WIP branch https://github.com/clojure/clojure/tree/direct On Wednesday, August 6, 2014 12:54:32 PM UTC+2, Robin Heggelund Hansen wrote: > > Just read this blog post about Oxen ( > http://arrdem.com/2014/08/05/of_oxen,_carts_and_ordering/?utm_source=dlvr.it&utm_medium=twitter). > > In i

Re: Transducers are Coming

2014-08-06 Thread Jozef Wagner
Thank you for another great technique and concept!. I've been using reducers a lot lately and I've found that it is in some cases better (performance, fold support) to wrap local state in the intermediate result, rather than to keep it in an atom. See this *very* simplified example for compari

Re: Can I compare ::logging from one namespace with ::logging from another?

2014-08-09 Thread Jozef Wagner
Keep in mind that :: is just a syntax sugar that is processed by the reader, before the compiler kicks in. ::foo is a shorthand for :your.current.ns/foo. Its purpose is to make it easy to create keywords that do not clash with other ones. Keywords are equal (and identical) only when both of th

Re: Can I compare ::logging from one namespace with ::logging from another?

2014-08-09 Thread Jozef Wagner
ct, but to give some examples: >> >> (ns example.core >> (:require [example.other :as other])) >> >> (= ::foo :example.core/foo) >> (= ::other/foo :example.other/foo) >> >> (not= :foo :example.core/foo) >> (not= :example.core/foo :example.othe

Re: Success Stories w/US Government Projects

2014-08-10 Thread Jozef Wagner
For the context, recent discussion about EPL Vs Government https://groups.google.com/forum/#!topic/clojure/jNEYM04TLiU Jozef On Sunday, August 10, 2014 1:19:48 PM UTC+2, Paul Butcher wrote: > > Out of interest, which aspect(s) of the EPL are your lawyers objecting to? > > -- > paul.butcher->msgC

Re: What to use for serializing reference types?

2014-08-10 Thread Jozef Wagner
Assign a unique name to the prototype object. Serialize instances as map and put the reference to the prototype object under one of their keys. Something like {:prototype-components {:r10k {:resistance 10, :type :fixed, :unit :kΩ}} :components [{:name "resistor 1", :proto :r10k}, {:name "resistor

Re: Transducers are Coming

2014-08-14 Thread Jozef Wagner
This is not safe usage, as you are not calling the 'flushing' method or handle reduced objects. Correct use would be (def xform (comp (filter odd?) (map #(* % % (def strip-reduced [x] (if (reduced? x) @x x)) (let [r (xform conj)] (strip-reduced (r (strip-reduced (r #{1 2 3} 7) ;=> #{1 3 2

Re: how do you name your protocols?

2014-09-05 Thread Jozef Wagner
I use IBlah (camel cased, prefixed with capital i) in both Clojure and ClojureScript. It looks better than PBlah and is consistent with how ClojureScript names its protocols. Jozef On Fri, Sep 5, 2014 at 11:52 AM, Dave Sann wrote: > I saw a comment on protocol naming here: > https://groups.goog

Re: how do you name your protocols?

2014-09-06 Thread Jozef Wagner
Clojure API exposes types to the user (Agent, Ref, Var, ...), so it is benefical to see on the first glance whether the name is of a type or interface/protocol. If the API would be built solely on the protocols/interfaces, those prefixes would be of less use. Moreover, I think that names of types

Re: [ANN] Clojure 1.7.0-alpha2

2014-09-08 Thread Jozef Wagner
FYI the ticket about volatile is at http://dev.clojure.org/jira/browse/CLJ-1512 and the same question was raised there. On Mon, Sep 8, 2014 at 4:25 PM, Frantisek Sodomka wrote: > Hello, > I posted a question about volatiles on the github commit: > https://github.com/clojure/clojure/commit/6044097

Re: [ANN] Clojure 1.7.0-alpha2

2014-09-11 Thread Jozef Wagner
FYI transients no longer enforce thread locality, and you may now call them from any thread [1]. More options for handling mutable state is not a bad thing (as Clojure is a practical language), though more discipline will be needed. Jozef [1] CLJ-1498 On Thu, Sep 11, 2014 at 9:41 AM, Arnout Roem

Re: Surprised by behaviour of `compile` vs positional constructor fns

2014-09-22 Thread Jozef Wagner
It looks like following not so well known bug http://dev.clojure.org/jira/browse/CLJ-979 On Mon, Sep 22, 2014 at 8:55 AM, Peter Taoussanis wrote: > Hi all! > > Ran into some behaviour today that I wasn't expecting and am wondering if > someone could shed some light. > > Steps to reproduce (reprod

Re: [ANN] async-sockets - work with sockets using core.async channels

2014-10-08 Thread Jozef Wagner
One way how to handle this elegantly in Java is to add support for java.nio.channels.SelectableChannel in core.async buffer. That way you could select on any combination of core.async channels and io resources, waiting for core.async channels to free and resources to have data ready. Jozef On Wed

  1   2   3   >