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

OutOfMemoryError using coljure.contrib.duck-streams

2009-07-24 Thread Alexander Stoddard
I am a very new clojure user but I believe I have found a bug when using the clojure.contrib.duck-streams library. My attempt to stream process a very big file blows up with "java.lang.OutOfMemoryError: Java heap space". I can reproduce the problem with the following simple code which I think ru

Re: Proposal: clojure.io

2010-01-01 Thread Alexander Kjeldaas
My 2c. In any clojure.io library, make sure none of the warts that are planned to be fixed in NIO2 are codified. JDK7 includes work on Path, large directory traversal, event notifications etc. See http://java.sun.com/developer/technicalArticles/javase/nio/ Alexander 2010/1/1 Phil Hagelberg

Re: What's the best way to do this?

2010-01-22 Thread Neill Alexander
Wow, thanks very much guys. It's a really useful learning experience to read these different solutions. I'm not yet thinking in Clojure, but this thread will surely take me another step closer. On Jan 22, 6:42 am, David Nolen wrote: > Oops you're right :) And better written as well :D > > On Fri,

Can't get Ring to reload namespace

2010-02-23 Thread Neill Alexander
Can anyone help me to work out why Ring isn't reloading my namespace? ;; (ns com.nwalex.sponge.server.core [:require [ring.adapter.jetty :as jetty] [ring.middleware.reload :as reload]]) (defn app [req] {:status 200 :headers {"Content-Type" "text/

Re: Can't get Ring to reload namespace

2010-02-24 Thread Neill Alexander
Great, that makes sense. Thanks very much guys. On Feb 24, 1:00 am, James Reeves wrote: > Ah yep, (var app) is probably a better idea than #(app %). > > - James > > On Feb 23, 11:55 pm, Mark McGranaghan wrote: > > > > Basically because wrap-reload is a function, so app is evaluated > > > before

Re: Clojure syntax highlight for web sites

2010-03-01 Thread Neill Alexander
I use http://alexgorbatchev.com/wiki/SyntaxHighlighter plus the Clojure highlighter listed at http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/ On Feb 28, 10:57 pm, Ivan wrote: > Hello All, > > Do you happen to know of any JavaScript syntax highlighting library, > alikehtt

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-05 Thread Neill Alexander
I'll add my 2 cents worth. I've come from a Java development background to Clojure. A couple of years ago our company migrated from Ant to Maven. At first I really really hated it. I found it difficult to make it do what I wanted it to do. Nowadays, though, it is my build tool of choice. The turni

Sponge: A Clojure App with a Swing Interface

2010-04-23 Thread Neill Alexander
Just in case anybody is interested I have written a tool to aid developing against a web-service. It sits between the Soap client and the Soap service and acts as a router (a bit like SoapTrace). You can use it to record Soap sessions then replay them. See http://github.com/NeillAlexander/spon

Re: Why is using (not (empty? coll)) not idiomatic?

2013-05-27 Thread Alexander L.
I really liked your take on this *Brian*. You kinda convinced me to use (if (not-empty? foo)) from now on :) Alexander On Monday, May 27, 2013 2:58:38 AM UTC+3, Brian Marick wrote: > > > On May 26, 2013, at 5:47 AM, "Alex L." > > wrote: > > First, the u

Gloss parsing question

2013-05-30 Thread Alexander Duscheleit
Hi, I'm trying to parse a "binary" file with the help of gloss. My problem is, the data is in a format that gloss seeminglydoesn't deal with at all. The file start with a plaintext header, followed by some binary data, which may be compressed in various formats. What I'm trying to do is parse the

Re: Clojure in production

2013-06-18 Thread Alexander Kehayias
We're using Clojure at Shareablee, http://www.shareablee.com, a funded startup in the competitive social analytics space. Currently it powers data collection, an API proxy for maximizing data extraction from external APIs, and MapReduce jobs (via cascalog). AK On Monday, June 10, 2013 5:47:25

ANN: faster zipper implementation

2013-06-30 Thread Alexander Hudek
I've updated the clojure.zip implementation to use records internally. This achieves a speedup of roughly 2x. You can find the library below and on clojars: https://github.com/akhudek/fast-zip It's a drop in replacement for clojure.zip in terms of interface and usage. However, since the internal

Re: ANN: faster zipper implementation

2013-06-30 Thread Alexander Hudek
; > [1] > https://github.com/ztellman/fast-zip/commit/ee7a64630389f36a539771658586a093369f7939 > > On Sunday, June 30, 2013 1:18:05 PM UTC-7, Alexander Hudek wrote: >> >> I've updated the clojure.zip implementation to use records internally. >> This >> achieves a sp

Ring's session cookie-store

2013-07-06 Thread Alexander Solovyov
Hi all, I wrote a small site using compojure and friend and naturally I used ring's own wrap-session to handle sessions. My code looks like this: (def app (-> app-routes (friend/authenticate {:credential-fn (partial creds/bcrypt-credential-fn

Re: Ring's session cookie-store

2013-07-06 Thread Alexander Solovyov
On Sat, Jul 6, 2013 at 10:07 PM, Thomas Heller wrote: > Hey, > > cookie-store does not expect a string but a map like (cookie-store {:key > your-key}) otherwise it will generate a random new key each restart, which > you observed. > > You can also set some options for the cookie itself, see :cook

Re: Can't figure out how to merge this dern map.

2013-07-08 Thread Alexander Solovyov
The simplest way I see is (apply merge (filter identity '({:apple "red and crunchy"} nil nil {:Numb 1} nil nil {:Field "FRUIT.Description"}))) results in {:Field "FRUIT.Description", :Numb 1, :apple "red and crunchy"} On Mon, Jul 8, 2013 at 6:01 PM, VaedaStrike wrote: > So I have data struct

Re: Can't figure out how to merge this dern map.

2013-07-08 Thread Alexander Solovyov
Actually, drop filter - just (apply merge sequ) is enough. On Mon, Jul 8, 2013 at 6:16 PM, Alexander Solovyov wrote: > The simplest way I see is > > (apply merge (filter identity '({:apple "red and crunchy"} nil nil {:Numb > 1} nil nil {:Field "FRUIT.Description

Clojure: Elegance vs. Performance?

2013-07-09 Thread Alexander Gunnarson
Hello everyone! It's great to be here with all you fellow Clojurians. Just so you know, this is my first post on this group, so don't shoot me if it's terrible ;) As background, I've been working through SICP and have been loving Scheme. It's almost breathtaking how elegant and clean the code

Re: Clojure: Elegance vs. Performance?

2013-07-09 Thread Alexander Gunnarson
Perhaps I didn't choose my examples in a very illustrative way. It was meant to be a general approach. There are probably several other examples where the need for performance causes elegance to suffer, but I'm drawing a blank right now because I'm not a Clojure expert. As I familiarize myself

Re: Clojure: Elegance vs. Performance?

2013-07-09 Thread Alexander Gunnarson
> > This is not implementing expt as it is usually known, it looks more like >> repeated squaring to me. >> > > Agreed. There's a certain irony that the OP declares the code pure, > simple, and beautiful, when it isn't correct code. Seems to me that if you > can't tell at a glance what a 3-li

Re: Clojure: Elegance vs. Performance?

2013-07-09 Thread Alexander Gunnarson
Good point... it was rather a sloppily done example. If I wanted to do an iterative solution, I could have written: (define (expt x n) (define (iter x1 n1 result) (cond ((= 0 n1) 1) ((= 1 n1) result) (else (iter x1 (- n1 1) (* x1

Re: Clojure: Elegance vs. Performance?

2013-07-09 Thread Alexander Gunnarson
Mikera, you hit on exactly what I was trying to say. Great post. I wonder what the feasibility would be to do what you and I are suggesting... It seems like it would take a while to get implemented, if it ever were implemented. Heaven knows I don't want to "get down and dirty with the compiler"

Re: Clojure: Elegance vs. Performance?

2013-07-09 Thread Alexander Gunnarson
> > A reasonably simple optimisation would be to automatically identify > self-recursion in tail position and convert it directly to "recur". I think > that's possibly the kind of optimisation pass that the OP was suggesting. > That's exactly the kind of thing I was thinking about with recur.

Clojure: Superset of XML, HTML, CSS, JavaScript, Flash (SVG/ActionScript), etc.?

2013-07-10 Thread Alexander Gunnarson
This idea's been on my mind lately: could Clojure be used as a unifying force for all those disparate file formats and frameworks like: - XML / XLink / XPointer / XQuery, - JSON, - HTML / XHTML, - CSS, - JavaScript / jQuery, - Flash (SVG/ActionScript), - SQL, - and (of course) Java? As a disclaim

Clojure: Superset of XML, HTML, CSS, JavaScript, Flash (SVG/ActionScript), etc.?

2013-07-11 Thread Alexander Gunnarson
No comments? -- -- 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 this group, se

Clojure: One language to rule the Web

2013-07-11 Thread Alexander Gunnarson
This idea's been on my mind lately: could Clojure be used as a unifying force for all those disparate file formats and frameworks like: - XML / XLink / XPointer / XQuery, - JSON, - HTML / XHTML, - CSS, - JavaScript / jQuery, - Flash (SVG/ActionScript), - SQL, - and (of course) Java? As a disclaim

Re: Clojure: One language to rule the Web

2013-07-11 Thread Alexander Gunnarson
> > With the exception of XML and Flash, my framework covers all of that > https://github.com/runexec/chp > Your framework seems very promising. I'll have to play around with it. Any plans for extending it to enclose XML? ActionScript/Flash seems to have been addressed somewhat by las3r

Re: Clojure: One language to rule the Web

2013-07-11 Thread Alexander Gunnarson
As a side note, maybe we can keep a running list of "Clojure-ized" technologies we're aware of: - XML - *clojure/data.xml * - XLink + XPointer + XQuery - *clojure/data.xml * - JSON -* Clojure Home Page (CHP)

ClojureScript concurrency?

2013-07-12 Thread Alexander Gunnarson
One of Clojure's main selling points is the ability to implement concurrency in a fairly straightforward way. I know that ClojureScript doesn't support concurrency because JavaScript's VM doesn't support it. I mean, of course you can try to get around that by doing crazy tricks with asynchronou

Re: ClojureScript concurrency?

2013-07-12 Thread Alexander Gunnarson
> > To learn more Rob Pike gave a good presentation on 'Concurrency Is Not > Parallelism': http://vimeo.com/49718712 > Good video. Thanks for the link. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: --> macro proposal

2013-07-17 Thread Alexander Yakushev
What a twist. Does any of the participants care to comment on this one? A hundred posts of bashing a person from the position of authority while the macro in question already sits in Core. I am against the usage of it myself, and closely followed previous discussions on this topic to understand

Re: --> macro proposal

2013-07-17 Thread Alexander Yakushev
is, and was rejected by Rich and company. Have anything changed in Clojure since then, that arguments against as-> are no longer valid? On Wednesday, July 17, 2013 7:55:37 PM UTC+3, Nelson Morris wrote: > > Note the original discussion was from 2010. > > > On Wed, Jul 17, 2013 at

Re: --> macro proposal

2013-07-17 Thread Alexander Yakushev
solve. They were primarily added to eliminate: > > (let [x ... > x ... > x ...] >...) > > Which is pretty ugly and also it's pretty easy to get into trouble. > > David > > > On Wed, Jul 17, 2013 at 12:49 PM, Alexander Yakushev > wrote: > >

Can't get namespace metadata

2013-07-20 Thread Alexander Yakushev
Example: user=> (meta (find-ns 'clojure.set)) nil user=> (meta (find-ns 'clojure.string)) nil user=> (meta (find-ns 'clojure.core)) {:doc "Fundamental library of the Clojure language"} clojure.core is the only namespace that has metadata. Apparently because it has metadata set differently https

Re: Can't get namespace metadata

2013-07-23 Thread Alexander Yakushev
I just > updated. > > [CLJ-130]: http://dev.clojure.org/jira/browse/CLJ-130 > > -S > > > > > On Saturday, July 20, 2013 8:50:18 AM UTC-4, Alexander Yakushev wrote: >> >> Example: >> >> user=> (meta (find-ns 'clojure.set)) >&g

Re: querying a clojure data structure

2013-07-25 Thread Alexander Solovyov
On Wed, Jul 24, 2013 at 3:16 PM, Phillip Lord wrote: > What I'd really want to be able to do is to use some sort of query; so I'd > write a data structure like so: > > {:annotation > #{(label ? "it")}} > Some time ago I wrote a little library to act as a model layer for browser apps: https://gi

Re: [ANN] immutable-bitset: smalller, faster integer sets

2013-07-31 Thread Alexander Hudek
Nice! Thanks for this Zach! I also have an immutable bitset for integers based on BigInteger, should anyone need backwards compatibility with older jvms. However, you look to have put significantly more time into optimization than I did. My implementation does have a few extra functions (shifts

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Alexander Yakushev
This initial version looks very mature already! I wonder what will become of it by the time of the release. Great job, Zach! Eagerly waiting to see Nightcode's future. On Friday, August 2, 2013 4:03:03 PM UTC+3, Zach Oakes wrote: > > I’ve been working on a simple IDE for the past few months. It

[ANN] Compliment - a completion library you deserve

2013-08-09 Thread Alexander Yakushev
Dear community, I've just released the initial version of my clojure-complete fork, Compliment. I decided to move it into a separate project after I rewrote most of it. Here is project's link: https://github.com/alexander-yakushev/compliment . There is a rationale in README, where

lein-undertow-adapter

2013-08-18 Thread Alexander Solovyov
I was looking at techempower benchmarks [1] and noticed that fastest (by their measurements) Java HTTP server - Undertow - had no Ring adapter. I felt like it and wrote one just for fun: https://github.com/piranha/ring-undertow-adapter Installation and usage is pretty standard, put [ring-und

core.async and channel flushing

2013-09-14 Thread Alexander L.
Hello all, I am developing an application and I use core.async to push data from multiple threads within an infinite (go (while true (let [data (http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To un

core.async and channel flushing

2013-09-14 Thread Alexander L.
h a core.async channel or the only way is to re-create the channel? Thank you for your time. Regards, Alexander -- -- 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 p

[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

[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

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

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

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

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

[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

[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

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

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

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

[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

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

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

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

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

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

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

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

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

[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

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

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

[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

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

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

  1   2   3   >