Re: Trouble with advanced macros

2019-03-30 Thread Alexander Yakushev
No, I still don't get it. Why wouldn't this work? (def config1 {:key (fn [] (str "do something horrible complicated here" (:blah state) (:key other-state) (:something evenmorestate)))}) ;; To invoke: ((:key config1)) -- You received this message because you are subscribed to the Google Group

Re: Trouble with advanced macros

2019-03-30 Thread Alexander Yakushev
Honestly, it looks to me that you are concocting something overly complicated. Are you sure that a combination of anonymous functions and dynamic variables won't suffice? Can you, in broad strokes, describe what you want to achieve? On Sat, Mar 30, 2019, 18:31 Nathan Rogers wrote: > (def dict >

Re: regex in edn?

2019-03-29 Thread Alexander Yakushev
Not adding much to what you've already said, but a custom reader tag is exactly what I would reach out for in this situation. -- 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 post

Re: Trouble with advanced macros

2019-03-29 Thread Alexander Yakushev
Looks like you are missing a few unquotes. Is this what you expected? (def dict {:key `(str "obj isn't defined in this scope" (:blah ~'obj))}) (defmacro my-macro [my-obj & args] `(let [~'obj ~my-obj] (print ~(:key dict) ~@args))) (my-macro {:blah "thingy"} "test string") ;; obj isn't de

Re: avoiding casts with aget & friends

2019-02-01 Thread Alexander Yakushev
The "easiest" way to obtain JIT-produced native code without having to sift through mountains of it is to use JMH[1] in -perfasm mode[2]. Here's an article on how to use JMH from Clojure[3]. However, if you start to spend so much time optimizing primitive operations in Clojure (and this really,

Re: [ANN] Clojure 1.10.0-RC2

2018-11-28 Thread Alexander Yakushev
We moved from 1.9 to 1.10-RC2 (OpenJDK8) on one of our production services. Steady flight so far, thanks! On Tuesday, November 27, 2018 at 2:00:25 AM UTC+2, Alex Miller wrote: > > 1.10.0-RC2 is now available. > > You can try it with clj using: > > clj -Sdeps '{:deps {org.clojure/clojure {:mvn/ver

Re: Prototype code for enhanced CIDER code completion for Java methods

2018-11-25 Thread Alexander Yakushev
To anyone who's interested in having precise completion for Java classes – a feature like this is available in the latest CIDER snapshot: https://twitter.com/unlog1c/status/1066748173094453248. You can get a filtered completion by prepending a type tag to the next symbol. On Friday, October 12,

Re: [ANN] Clojure 1.10.0-beta8

2018-11-21 Thread Alexander Yakushev
Absolutely not trying to propel this discussion forward, but *ackchyually *even with the given semantics ("async-require should be used in asynchronous code"), the better word would be "concurrent" or "multithreaded". But I certainly didn't intend this thread to unwind so much and take away thi

Re: [ANN] Clojure 1.10.0-beta8

2018-11-21 Thread Alexander Yakushev
Could I suggest bikeshedding on the name async-require? Before I've seen the patch, my initial impression was that it loads namespaces asynchronously (that is, returns control immediately and loads them in the background). It might be somewhat confusing that a function async-require is actually

Re: [ANN] 1.10.0-beta6

2018-11-16 Thread Alexander Yakushev
Could you please give a brief rationale for why metadata-polymorphism is now opt-in? I'm wondering what kind of the undesired behavior this is meant to prevent. On Friday, November 16, 2018 at 10:04:00 PM UTC+2, Alex Miller wrote: > > 1.10.0-beta6 is now available. > > You can try it with clj us

Re: [ANN] speculative - the missing specs

2018-10-21 Thread Alexander Yakushev
Nice work, Erik! I have an immediate comment. It seems like your README example is inconsistent with the code. The README says that `(map 'lol 'lol)` fails because 'lol is not a fn?. But fn? is a very strict predicate that doesn't cover maps, keywords, etc. I've looked into the code and you use

Re: Differences in generator output for gen/fmap

2018-10-05 Thread Alexander Sedgwick
Nevermind, I see now the infinite loop I've generated.. I'll delete the post thanks! On Friday, October 5, 2018 at 1:49:12 PM UTC-5, Alexander Sedgwick wrote: > > I'm running into differences when having gen/fmap inside a s/with-gen vs > running it outside a s/with-gen

Differences in generator output for gen/fmap

2018-10-05 Thread Alexander Sedgwick
I'm running into differences when having gen/fmap inside a s/with-gen vs running it outside a s/with-gen. Am I missing something? ```clojure (ns scribble (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen])) (s/def ::some-int (s/or :zero zero? :pos pos-i

Re: Problem disposing java objects

2018-09-02 Thread Alexander Yakushev
I suspect the problem is with map which is lazy. If you discard the result of the top-level expression it might not be fully completed or not even run at all. To force a lazy collection (thus, triggering the side effects you desire) you could do the following things: (mapv close pages)

Re: Is the vector a sequence?

2018-04-28 Thread Alexander Yakushev
You might also want to check this: http://bytopia.org/2016/03/08/what-is-a-list/ On Friday, April 20, 2018 at 6:33:02 PM UTC+3, ru wrote: > > Hi, > > user=> (seq? [1 2 3 4 5]) > > false > > user=> > > > Sincerely, > > Ru > -- You received this message because you are subscribed to the Google

Re: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-04-17 Thread Alexander Yakushev
; :) > > keskiviikko 7. maaliskuuta 2018 18.13.23 UTC+2 Alexander Yakushev > kirjoitti: >> >> Looks like it's because of JDK9. I created a Github issue, let's take it >> there: https://github.com/clojure-goes-fast/clj-memory-meter/issues/1 >> >> On W

Re: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-07 Thread Alexander Yakushev
Looks like it's because of JDK9. I created a Github issue, let's take it there: https://github.com/clojure-goes-fast/clj-memory-meter/issues/1 On Wednesday, March 7, 2018 at 5:49:07 PM UTC+2, 路Ricardo M. wrote: > > Java Version: > java version "9.0.4" > Java(TM) SE Runtime Environment (build 9.0.

Re: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-06 Thread Alexander Yakushev
user=> (count nn) 25000 user=> (mm/measure nn) "940.3 KB" ;; Still shared though! user=>(mm/measure [mm nn]) "1.8 MB" -- 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

[ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-05 Thread Alexander Yakushev
I'm happy to release the first version of clj-memory-meter . It's a thin wrapper around jamm which allows measuring how much space an arbitrary object occupies. clj-memory-meter is usable from the REPL, can

Re: Why does the `def-` not exist?

2018-02-26 Thread Alexander Yakushev
o def-? > > IME the statistic strongly supports def- - and I don't see why it would > hurt. > Having def- in clojure.core will not magically result in having defmacro- > and defmulti- and xyz-. Its a false and the only counterargument I have > seen. > > It would b

Re: Why does the `def-` not exist?

2018-02-26 Thread Alexander Yakushev
Usually, it is better to use metadata rather than create an exponential explosion of names. Public/private is just one dimension, but you also have static/non-static, dynamic/non-dynamic, etc. Then you have functions, vars, macros, perhaps modified functions (like schema.core/defn). Cartesian p

Re: Amazonica s3

2018-02-23 Thread Alexander Yakushev
Hello Rohit, We use Amazonica to read files from a bucket encrypted with Server-Side Encryption (SSE). The way to do it depends on the way the files were encrypted. If the KMS key was "associated" with the encrypted file (not sure if I'm using the correct terminology, I'm no AWS expert) and th

[ANN] clj-java-decompiler - decompile any Clojure form into Java in the REPL

2018-01-29 Thread Alexander Yakushev
I'm happy to release clj-java-decompiler[1] today, a wrapper around Procyon[2] Java decompiler. With it, you can cut the feedback loop of writing a file, AOT-compiling it, and then running the classes through a decompiler to a single call in the REPL. user> (clj-java-decompiler.core/decompile

Clojure's long startup time analysis

2018-01-02 Thread Alexander Yakushev
People often ask why Clojure is so slow to boot up. In this blog post, I analyze the profile pictures of different ways to start Clojure — raw, with Leiningen, and with Boot. Enjoy! http://clojure-goes-fast.com/blog/clojures-slow-start/ -- You received this message because you are subscribed t

Re: [ANN] clj-async-profiler — embeddable profiler with flame graphs, based on Java's async-profiler

2017-12-11 Thread Alexander Yakushev
On Monday, December 11, 2017 at 4:42:23 PM UTC+2, Alexander Yakushev wrote: > > I've just released a wrapper around > https://github.com/jvm-profiling-tools/async-profiler that allows > controlling the profiler directly from the REPL of the program you want to > profile. Th

[ANN] clj-async-profiler — embeddable profiler with flame graphs, based on Java's async-profiler

2017-12-11 Thread Alexander Yakushev
I've just released a wrapper around https://github.com/jvm-profiling-tools/async-profiler that allows controlling the profiler directly from the REPL of the program you want to profile. The JAR file ships the profiling agent and the flamegraph generation script from https://github.com/brendangr

CHAMP an improvement on HAMT?

2017-08-13 Thread Alexander Hudek
I figured this would end up here eventually, so may as well cross post from HN: https://michael.steindorfer.name/publications/phd-thesis-efficient-immutable-collections.pdf It directly compares to and improves on Clojure's HAMT based data structures. -- You received this message because you

Re: Spec: Nested Cat Calls

2017-05-18 Thread Alexander Sedgwick
11:34:10 PM UTC-5, Alexander Sedgwick wrote: >> >> I'm looking to better understand how nested cats work (now that just >> sounds funny). >> >> I've found that sometimes spec/cat will generate a nested list: >> >> ```clojure >> (gen/sample (s/gen

Spec: Nested Cat Calls

2017-05-16 Thread Alexander Sedgwick
I'm looking to better understand how nested cats work (now that just sounds funny). I've found that sometimes spec/cat will generate a nested list: ```clojure (gen/sample (s/gen (s/cat :start #{\a} :content (s/cat :nothing (s/? #{\^})

Re: What to read after 3 dozen "introduction to transducers" blog posts

2017-05-16 Thread Alexander Yakushev
This was beautiful. I was held in suspense through the whole story, and I cried in the end. But I must tell you that such sacrifices to data gods are justified, so I will keep reifying and transducing until the very last drop of bytes leaks from the oblatory value. On Wednesday, May 10, 2017 at

Re: Using transducers in a new transducing context

2017-04-10 Thread Alexander Gunnarson
Thanks for clearing all of that up Alex! Very helpful. On Monday, April 10, 2017 at 3:46:45 PM UTC-4, Alex Miller wrote: > > > > On Monday, April 10, 2017 at 2:25:48 PM UTC-5, Alexander Gunnarson wrote: >> >> I think you present a key question: what assumptions can a tran

Re: Using transducers in a new transducing context

2017-04-10 Thread Alexander Gunnarson
easonable to > assume that ? > If yes, that means it's ok to use unsynchronized variables in stateful > transducers as long as they stay local. > If no, that means we'll use synchronization in all stateful transducers, > with an obvious performance penalty and a benefit

Re: Using transducers in a new transducing context

2017-04-10 Thread Alexander Gunnarson
y-accessed-by-different-threads [f] (map-indexed-transducer-base f atom #(swap! % inc)) ; or an AtomicLong variant On Monday, April 10, 2017 at 1:06:14 PM UTC-4, Alex Miller wrote: > > > On Monday, April 10, 2017 at 11:48:41 AM UTC-5, Alexander Gunnarson wrote: >> >> Léo, I de

Re: Using transducers in a new transducing context

2017-04-10 Thread Alexander Gunnarson
ciple ? I would be very interested to know what Rich > has in mind that could lead him to advise to overprotect local state of > transducers. > > > > On Monday, April 10, 2017 at 4:44:00 AM UTC+2, Alexander Gunnarson wrote: >> >> Thanks so much for your input Alex!

Re: Using transducers in a new transducing context

2017-04-10 Thread Alexander Gunnarson
4, Alex Miller wrote: > > > > On Sunday, April 9, 2017 at 9:44:00 PM UTC-5, Alexander Gunnarson wrote: >> >> >> As an aside about the stateful `take` transducer, Tesser uses the >> equivalent of one but skirts the issue by not guaranteeing that the first n >> it

Re: Using transducers in a new transducing context

2017-04-09 Thread Alexander Gunnarson
Thanks so much for your input Alex! It was a very helpful confirmation of the key conclusions arrived at in this thread, and I appreciate the additional elaborations you gave, especially the insight you passed on about the stateful transducers using `ArrayList`. I'm glad that I wasn't the only

Re: Using transducers in a new transducing context

2017-04-09 Thread Alexander Gunnarson
ed into the next call to `rf`. In other words: (-> result (rf >> x1) (rf x2) (rf x3))` trying to do that in a parallel context is next to >> impossible. Not saying there isn't a way to code a transducer-like thing to >> work with multiple threads, but the result of that w

Re: Using transducers in a new transducing context

2017-04-09 Thread Alexander Gunnarson
#x27;t a way to code a transducer-like thing to > work with multiple threads, but the result of that would look a lot more > like core.async or Reactive Extensions, than the transducers we have today. > > On Sun, Apr 9, 2017 at 4:57 PM, Alexander Gunnarson < > alexander...@gmail.com

Re: Using transducers in a new transducing context

2017-04-09 Thread Alexander Gunnarson
bc++ wrote: > > Transducers were never designed to work in parallel context. So I'd define > any behavior that arises from using the same transducers in multiple > threads *at the same time*, as undefined behavior. > > On Sun, Apr 9, 2017 at 4:39 PM, Alexander Gunnarson &

Re: Using transducers in a new transducing context

2017-04-09 Thread Alexander Gunnarson
ety guarantees, so a `volatile` in addition to a lock is indeed overkill, if that's what is happening. On Sunday, April 9, 2017 at 6:19:51 PM UTC-4, Alexander Gunnarson wrote: > > It looks that way to me too, Seth, though I'd have to comb over the > details of the locks

Re: Using transducers in a new transducing context

2017-04-09 Thread Alexander Gunnarson
the transducer in channel is protected by a lock. If that's the case > volatile isn't adding anything in terms memory barriers. > > 1: > https://github.com/clojure/core.async/blob/master/src/main/clojure/clojure/core/async/impl/channels.clj#L71 > > On Sunday, April 9, 2

Re: Using transducers in a new transducing context

2017-04-09 Thread Alexander Gunnarson
Thanks so much for your well-considered reply, Timothy! That makes sense about volatiles being used in e.g. core.async or core.reducers contexts where the reducing function that closes over the mutable value of the stateful transducer is called in different threads. Why, then, are unsynchronized

Re: Using transducers in a new transducing context

2017-04-08 Thread Alexander Gunnarson
be careful to e.g. create different `map-indexed` transducers for single-threaded (e.g. `unsynchronized-mutable` box) and multi-threaded (e.g. `atom` box) contexts. On Sunday, April 9, 2017 at 2:10:06 AM UTC-4, Alexander Gunnarson wrote: > > I was wondering the same thing, sh

Re: Use of volatile! in stateful transducers

2017-04-08 Thread Alexander Gunnarson
l to create different `map-indexed` transducers for single-threaded and multi-threaded contexts. On Sunday, April 9, 2017 at 2:11:03 AM UTC-4, Alexander Gunnarson wrote: > > I was wondering the same thing, Jörg. This thread > <https://groups.google.com/forum/#!topic/clojure/VQj0E9TJWYY&

Re: Use of volatile! in stateful transducers

2017-04-08 Thread Alexander Gunnarson
I was wondering the same thing, Jörg. This thread talks about it as well. I posted a note there which I will reproduce here for your convenience: I think it's safe to assume that since `ArrayList` uses unsynchronized mutability inte

Re: Using transducers in a new transducing context

2017-04-08 Thread Alexander Gunnarson
I was wondering the same thing, shintotomoe. This thread talks about it as well. I think it's safe to assume that since `ArrayList` uses unsynchronized mutability internally (a quick review of the GrepCode entry for `ArrayList` confi

Re: Release date for 1.9

2017-03-06 Thread Alexander Kiel
We also run Clojure 1.9-alpha with great success in production. Being alpha doesn't mean that it's buggy. It just means that the new stuff can still change. Am Dienstag, 28. Februar 2017 21:10:59 UTC+1 schrieb Dan Burton: > > Obligatory: "our team uses clojure-future-spec with clojure-1.8" -- no

[JOB] Clojure/ClojureScript Web Developer @ Kira Systems

2016-04-27 Thread Alexander Hudek
Hey all, We're hiring some more clojure developers. We prefer near Toronto Canada, but remote is welcome. You can apply here: https://kirasystems.com/careers#op-117143-clojureclojurescript-web-developer Best, Alex -- Clojure/ClojureScript Web Developer Kira Inc. is a Toronto-bas

Re: [clojure-android] ANN: turboshrimp 2.0.2, for control of Parrot AR.Drone

2016-04-17 Thread Alexander Yakushev
This is amazing! Thanks for sharing, John! I must myself get a drone now:) On Mon, Apr 18, 2016, 01:33 John Wiseman wrote: > I've released a new version of turboshrimp, my library to control the > Parrot AR.Drone. > > https://github.com/wiseman/turboshrimp > > Version 2.0.2 includes the followin

Re: [ClojureScript] Re: Clojure Google Summer of Code 2016 - Submit your project ideas!

2016-03-02 Thread Alexander
AFAIK you can email to gsoc-support and ask for feedback on your org application. On Tuesday, March 1, 2016 at 7:26:49 AM UTC+9, Alex Miller wrote: > > Nope. > > On Monday, February 29, 2016 at 4:13:43 PM UTC-6, Colin Fleming wrote: >> >>

Re: Current Cider SNAPSHOT not working??

2015-11-27 Thread alexander adhyatma
you need to add com.cemerick/piggieback to the project.clj (dependency section) as well as adding cider/cider-nrepl "0.10.0-SNAPSHOT" and refactor-nrepl to the plugin section. then in the :figwheel section, you need to add :nrepl-middleware ["cemerick.piggieback/wrap-cljs-repl" "cider.nrepl/ci

Re: Clojure, WEB and Enterprise development

2015-08-05 Thread Alexander Hudek
Immutant provides a lot of "enterprisy" things out of the box. On Wednesday, August 5, 2015 at 5:28:02 PM UTC-4, Olek wrote: > > Hi! > > I was using Clojure for a long time. It has been used for private and > commercial projects (sniffed by me and hated by others). > > Now it has been abandoned.

[bug] Reflector can't resolve a method in a non-public generic-typed abstact class

2015-07-27 Thread Alexander Yakushev
Reproducible minimal example here: https://github.com/alexander-yakushev/generics-reflection-bug . Clone it and do `lein run`. The example is small enough to paste it here. So we have a class called AbstractStorage: abstract class AbstractStorage { T thingToStore; public

Re: How to make a static variable dynamic at runtime?

2015-07-22 Thread Alexander Yakushev
Hello Yuri, You probably need something like with-redefs[1] to do mocking. Setting a var to dynamic at runtime will have impact only on code that was *compiled* after doing that. See the excerpt from Daniel's talk about this behavior[2]. [1] http://conj.io/store/v1/org.clojure/clojure/1.7.0/c

Re: How to make a static variable dynamic at runtime?

2015-07-22 Thread Alexander Yakushev
Sorry, didn't link to the exact time. The correct link is: https://youtu.be/8NUI07y1SlQ?t=217 -- 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: CLJ-703 - 10x compilation time decrease after applying one-line patch, no downsides.

2015-05-08 Thread Alexander Hudek
I'd like to chime in here in support of this, our company has been running a modified clojure build because of this for over a year now. Alex On Friday, May 8, 2015 at 2:12:50 PM UTC-4, Martin Raison wrote: > > Hi all, > > This issue has been around for a while without much activity, although a

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-05 Thread Alexander Yakushev
Awesome, thanks for the help and the clarification! On Monday, April 6, 2015 at 1:59:21 AM UTC+3, Alex Miller wrote: > > Yes, each platform defines their own platform feature so it wouldn't be > too hard to change the specified platform in the fork. However the key here > is that the conditional

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-05 Thread Alexander Yakushev
On the other hand, Clojure-Android runtime is largely similar to regular Clojure except for some small differences; so in order to use feature expressions there effectively it might make sense to wait until broader capabilities (feature combinations, feature inheritance etc.) is introduced. --

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-05 Thread Alexander Yakushev
to "add" an android feature? I'll plead > ignorance in not knowing how the Clojure > Android stuff works or where a feature indicating Android could be set > without support for custom features. Do you currently fork to support > Android? > > > > On Apr 5, 2015,

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-05 Thread Alexander Yakushev
Hello Alex, As I've understood from the dev.clojure.org page, additional features and feature combinations will become available later. Can we please get :clj/android (or :clja) still in 1.7? If so, what has to be done by me or Daniel to make it happen? Thanks! On Tuesday, March 31, 2015 at 7

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-01 Thread Alexander Gunnarson
@Alex Miller — Thanks! I appreciate it. On Tuesday, March 31, 2015 at 10:51:13 AM UTC-6, Alex Miller wrote: > > Clojure 1.7.0-alpha6 is now available. > > Try it via > - Download: > https://repo1.maven.org/maven2/org/clojure/clojure/1.7.0-alpha6/ > - Leiningen: [org.clojure/clojure "1.7.0-alpha6"

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-01 Thread Alexander Gunnarson
@Sean Corfield — That's exactly my point. I use Sublime Text and I usually just copy-paste code from various buffers / open files into a REPL buffer on my workspace. Maybe that's not the most efficient way, and I want to move to some sort of auto-reload plugin for leiningen a la figwheel for Cl

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-01 Thread Alexander Gunnarson
@Alex Miller: Thanks for letting me know. I'll unfortunately have to change my workflow accordingly. On Tuesday, March 31, 2015 at 10:51:13 AM UTC-6, Alex Miller wrote: > > Clojure 1.7.0-alpha6 is now available. > > Try it via > - Download: > https://repo1.maven.org/maven2/org/clojure/clojure/1

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-01 Thread Alexander Gunnarson
This patch is incredibly useful! Great job to everyone that contributed. One question: how do I enable conditional reading by default in the REPL as opposed to passing a properties map to /read-string/, etc.? Do I set certain system properties in the command line like "cond_read=true"? On Tuesd

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-03-31 Thread Alexander Gunnarson
This patch is great! It's much needed for my development workflow. One question: how do I enable conditional reading by default in the REPL? Do I set certain system properties in the command line like "cond_read=true" ? -- You received this message because you are subscribed to the Google Group

[JOB] Clojure/Clojurescript Web Developer

2015-03-25 Thread Alexander Hudek
Hey all, For those who saw our previous job ads, our company has renamed from DiligenceEngine to Kira. We're still focusing on legal due diligence, but now also target other areas of document analysis. We're expanding our tech team yet again looking for another full stack web developer. For

[JOB] Clojure Selenium Load Testing Consultant

2015-02-27 Thread Alexander Hudek
Here at DiligenceEngine we’re building out a load testing system for our Om-based ClojureScript and Clojure web application. We need to scale out test scenarios to 500+ concurrent users are looking for someone experienced in writing selenium tests in Clojure to give us a hand. Required skill

[ANN] defprecated 0.1.0 - deprecation made easy

2014-11-28 Thread Alexander Yakushev
https://github.com/alexander-yakushev/defprecated Regards, Alex Yakushev -- 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 pa

Re: Weird performance issue with reduce

2014-11-18 Thread Alexander L.
Clojure are you using? > > This seems like a use case where transducers could help significantly in > avoiding lazy effects and intermediate objects. > > On Monday, November 17, 2014 4:28:12 AM UTC-6, Alexander L. wrote: >> >> Hi all, >> >> I understand that

Re: Weird performance issue with reduce

2014-11-17 Thread Alexander L.
/transducers, which may clean > your design. In that case, the call to reduce should be as high in > hierarchy as possible, ideally in your top level function, with other > functions dealing with the transformation of 'step' values. > > Jozef > > On Mon, Nov 17, 2

Weird performance issue with reduce

2014-11-17 Thread Alexander L.
Hi all, I understand that the following question is a long shot without any proper proof/tests from my side but it's a little bit difficult to make a test case from the specific part of my app so I will just ask anyway in case anyone knows anything. The situation is like this: - I have a

Idiomatic way to return a single value from an async function

2014-11-10 Thread Alexander Kiel
Hi, what is the most idiomatic way to return a single value from an async function in Clojure? A: return a channel which conveys the result later; also closes the channel (defn f [x] (let [c (chan)] ; put result onto c and close c later c)) B: take a channel onto which the result is

[JOB] Clojure DevOps Engineer

2014-10-30 Thread Alexander Hudek
Note that this position is 50% Clojure development and 50% DevOps/Sysadmin. Best, Alex -- CLOJURE DEVOPS DiligenceEngine Inc. is a Toronto-based startup using machine learning to automate legal work. We’re looking for a DevOps engineer to help us manage and automate our technology stack

Re: [ANN] fast-zip 0.5.0 now with ClojureScript support

2014-10-23 Thread Alexander Hudek
tober 21, 2014 5:59:20 PM UTC-4, Robin Heggelund Hansen wrote: > > Any reason this isn't a patch to clojure proper? > > kl. 05:09:04 UTC+2 lørdag 4. oktober 2014 skrev Alexander Hudek følgende: >> >> Thanks to the wonderful work of Joel Holdbrooks, fast-zip now has &g

[ANN] fast-zip 0.5.0 now with ClojureScript support

2014-10-03 Thread Alexander Hudek
Thanks to the wonderful work of Joel Holdbrooks, fast-zip now has ClojureScript support. See the benchmarks below. The ClojureScript benchmark only uses simple compiler optimizations. Git: https://github.com/akhudek/fast-zip Clojars: [fast-zip "0.5.0"] CLJS has ~ 1.7x speedup: :clojure.zip x

Re: [ANN] New release 0.28.0 of Counterclockwise

2014-09-26 Thread Alexander Igdalov
Hi Laurent, Thanks for the great work! Regarding Counterclockwise 0.28.0 - I can see that now it is pulling git plugin dependencies. Can you please making this dependency optional? Thanks, - Alex. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: [ANN] Skummet alpha-1 released

2014-08-12 Thread Alexander Yakushev
testing it with ART yet, or just Dalvik? Great > work. > > Zach > > On Tuesday, August 12, 2014 10:18:23 AM UTC-4, Alexander Yakushev wrote: >> >> So I am finally comfortable for showing Project Skummet to the general >> public. >> Skummet is a experimental C

[ANN] Skummet alpha-1 released

2014-08-12 Thread Alexander Yakushev
t; to create an uberjar that can then be used regularly. There is a sample project that already has all necessary configuration for Skummet: https://github.com/alexander-yakushev/leantest. I'd be really grateful if you tried this project and shared your experiences (specifically disappointing one

[JOBS] Clojure/Clojurescript Web Developer + CSS/HTML UI Designer

2014-08-11 Thread Alexander K. Hudek
Hi everyone, We have two clojure-related job openings. Best, Alex Clojure/Clojurescript Web Developer DiligenceEngine Inc. is a Toronto-based startup using machine learning to automate legal work. We’re looking for a developer to work on our clojure/clojurescript/om web stack. Our team is sma

[JOBS] Clojure/Clojurescript Web Developer + CSS/HTML UI Designer

2014-08-11 Thread Alexander Hudek
Hi everyone, We have two clojure-related job openings. Best, Alex Clojure/Clojurescript Web Developer DiligenceEngine Inc. is a Toronto-based startup using machine learning to automate legal work. We’re looking for a developer to work on our clojure/clojurescript/om web stack. Our te

Re: subtle om + core.async problems

2014-07-25 Thread Alexander K. Hudek
ts will want to clean up after themselves in IWillUnmount." That should address your first problem? I'm not sure what to suggest right now about the second problem. Sean On Jul 23, 2014, at 4:19 PM, Alexander Hudek wrote: I've encountered two subtle but serious problems using om

Re: Is Korma still a good current choice for DB backend?

2014-07-23 Thread Alexander Hudek
Ditto here. We use honeysql because we need to manipulate and parse SQL statements as part of a library for managing remote browser views. On Wednesday, July 23, 2014 7:56:45 AM UTC-4, Colin Yates wrote: > > Another very satisfied honeysql user here. It matches this use case > perfectly. > > On

subtle om + core.async problems

2014-07-23 Thread Alexander Hudek
I've encountered two subtle but serious problems using om with core.async. The first one is illustrated by this code: https://github.com/akhudek/om-async-error First, one obvious solution here is to move the dump-chan inside the form state. However, it's written this way to illustrate the err

Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-07-12 Thread Alexander Semenov
Hi, David. May I ask you - in Om you queue rendering in requestAnimationFrame by passing a function which calls forceUpdate on the affected components. But as I understand forceUpdate does not guarantee to execute immediately and is also queued. So, the rendering should be out of sync with requ

Re: Instaparse - thank you!

2014-06-11 Thread Alexander Hudek
We've also used to at our company to build a query language, though not a "natural language" one. I'm curious, how are you going about making a natural language query system? Usually the problem with those is that they are not flexible enough to really be natural. On Tuesday, June 10, 2014 11:

Re: Advice on managing random number generators across threads

2014-06-07 Thread Alexander Hudek
Keep in mind that there could be accuracy reasons why you might want to use multiple random number generators (aka multiple streams). See the section "Single Versus Multiple Streams" here: http://www.cse.msu.edu/~cse808/CSIM_Notes03/cse808/html_c/16random.htm Also, the built in java random numb

ANN: zip-visit and fast-zip-visit 1.0.2

2014-05-13 Thread Alexander Hudek
The zip-visit library implements zipper-based visitors that allow one to carry and modify state during a depth first traversal of a zipper. There is an extensive description here: https://github.com/akhudek/zip-visit A short example of a zipper-based version of some. Here n is the node and s is

Re: how can I print the function name as parameter?

2014-05-02 Thread Alexander Yakushev
You need to pass not the function itself, but its Var. Because Vars are the ones that hold metadata. (show #'elementary/nothing-but-the-truth true) On Friday, May 2, 2014 4:28:49 AM UTC+2, Erlis Vidal wrote: > > Hi guys, > > I want to write a function (show) that will receive a function as > p

Re: What's clojure killer app? I don't see any.

2014-04-19 Thread Alexander Kyte
The 'killer' problem domain for clojure is the same as that of any lisp: the creation of domain-specific languages. There exist a plethora of problems which are awkward to solve using conventional programming, and clojure's macros make it easier. An example is twitter's storm project. It's a real-

Re: ANN: om-sync

2014-02-23 Thread Alexander Hudek
zation though, or how does OT > work with undo? > > DerbyJS also seems to have a relatively pluggable system, compared to say, > Meteor, but pluggable takes more work and tends to make things more generic. > > J > > > On Thursday, February 20, 2014 3:19:55 PM UTC-6, Alexand

Re: ANN: om-sync

2014-02-20 Thread Alexander Hudek
(Dave and I work together). I suspect it will be easy to come to a reasonable license. My own preferences would be EPL or MIT, and EPL only because it's common in the community. Beyond that, something like chord isn't actually the big problem in a scheme like this. The real issue is ensuring

Re: core.async over websocket + cljs + clojure

2014-01-23 Thread Alexander Hudek
We've had something like this working for a while now, though our system uses browserchannel rather than websockets since we need to support older browsers. On the plus side, browserchannel handles some issues already such as managing the state of the connection to the server and retrying when i

Re: Extracting a database schema and using it to synthesize and check SQL queries at compile time

2014-01-08 Thread Alexander Hudek
Hey Luc, Our use case is quite a bit different. We treat our database schema as part of our applications data model. In contrast, it seems that your problem is one of data integration. That's a much more difficult problem to solve. If I understand correctly, you have a code that generates a da

Re: Extracting a database schema and using it to synthesize and check SQL queries at compile time

2014-01-08 Thread Alexander Hudek
This looks interesting. Hopefully it's a more consistent interface than information_schema. I'll try it out, thanks! On Wednesday, January 8, 2014 3:32:49 AM UTC-5, Shantanu Kumar wrote: > > >> The approach to read the database to generate code is pretty interesting. >> There is a more portable

Extracting a database schema and using it to synthesize and check SQL queries at compile time

2014-01-07 Thread Alexander Hudek
Hey everyone, We've been exploring ways to make working with database code more efficient and less error prone. For complex queries, we prefer working directly with SQL. However, like for many others, a lot of our queries are very simple and repetitive. For example, retrieving or updating sing

Re: Is Clojure right for me?

2013-12-26 Thread Alexander Hudek
You can define vars to be private to a namespace in clojure, thus preventing (1). In practice, I've found that (2) never comes up. Ultimately, you won't truly appreciate what is being said in this conversation without giving it a chance and trying it out. On Thursday, December 26, 2013 4:02:49

Re: Advice on choosing the right data structure

2013-12-07 Thread Alexander Hudek
{:l (vec (take i cs)) > :pnodes (if path (conj (:pnodes path) > node) [node]) > :ppath path > :r (vec (drop (inc i) cs))}] >(meta loc))) >

Re: Advice on choosing the right data structure

2013-12-04 Thread Alexander Hudek
Additionally, if you need more complex access patterns you could see if this helps: https://github.com/akhudek/zip-visit For performance, there is a fast-zip library that is api compatible with clojure.zip. You can just swap the clojure.zip namespace for the fast-zip namespace. Note that you'd

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-23 Thread Alexander Hudek
> entities, since it flows :entities through all the DSL constructs). > > How much impact would it have on you, Alexander, if the java.jdbc.sql > namespace went away? > > Sean Corfield -- (904) 302-SEAN > An Architect's View -- > http://corfield.org<http://www.googl

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-21 Thread Alexander Hudek
> > > Is anyone using the java.jdbc.sql namespace? (besides World Singles :) > > We are using it but not the DDL. We also use honeysql in places where jdbc.sql cannot express the query. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

  1   2   3   >