It does seem as though there is no way to meet all the criteria, unless the
support for it comes from Java/Oracle. That said, I feel like having a
complex type with reasonable performance is better than having nothing at
all.
What I would like is a complex type that plays well with Clojure's
My two cents:
I started to develop some support to complex numbers in Clojure, but I
don't know if the Core Team/Rich Hickey has any intererest in this subject.
Even it's an unfinished work, I didn't notice any lost of performance so
far.
Regards
Plínio Balduino
On Tue, Apr 28, 2015 at 9:35
This library is pretty interesting, but you might want to change the
single-segment namespace you have. A single-part namespace is compiled as a
bare class without an associated package, and this can result in issues
around Java interop and AOT compilation. While a single-segment namespace
is
To put is simply, it would be nice to have a complex type in Clojure, not
as a separate namespace, but something that is part of the language. It
should interoperate with other Clojure types (like adding a double to a
complex), as well as clojure.core.arithmetic. That's what I meant about
Many choices….
We can start from BitmapIndexedNode assoc:
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/PersistentHashMap.java#L686
although you might argue that if you read
http://lampwww.epfl.ch/papers/idealhashtrees.pdf you know what’s in there. So
maybe a classic
Persistent collections, STM, and the compiler are all deep veins. One may
also muse on how these were also some of the earliest things in Clojure.
On Tuesday, April 28, 2015 at 6:04:48 PM UTC-5, Renzo Borgatti wrote:
Many choices….
We can start from BitmapIndexedNode assoc:
I think this is a bug in the fairly old tools.analyzer version used in the
latest released version. That's actually been updated for the next release
and does not seem reproducible to me there.
On Tuesday, April 28, 2015 at 6:04:19 PM UTC-5, Chap Lovejoy wrote:
I'm running into a strange
I'm running into a strange exception trying to handle exceptions within a
go block. So far this is the simplest test case I've gotten to fail:
(ns test-async
(require [clojure.core.async :refer [go !]
:as async]))
(defn test-chan
[chan]
(go
(try
(! chan)
Your messages are a bit confusing. Playing nice with collection functions
would depend on the collection, not on its contents.
Maybe you could elaborate a bit more on what you're trying to accomplish?
If you do not care about performance, you need to decide whether you want
your type to work
Most of Clojure's collections already can hold arbitrary type values inside
of them, with no additional work required, whether those types are built
into Clojure or not. That is because most collections treat all contained
items as Java Object references.
The only exceptions I can think of are
You can do virtually all of that already with the Apache commons Complex
class. Any Java object can be just fine used with map / reduce / filter /
seqs etc.
If you want to avoid Java interop and make things more Clojure-like then
a lightweight wrapper library is all that is needed (my
On Friday, 17 April 2015 16:25:34 UTC+1, Jamie Orchard-Hays wrote:
Excellent. I tried to watch on periscope, but it never showed up.
Jamie
On Apr 17, 2015, at 10:20 AM, Marc Fawzi marc.fa...@gmail.com wrote:
yes, will post link here sometime next week
all 3 presentations were screen
How do we use a container class with a proxy?
Given the following class signature, how would we write the proxy?
```java
public abstract class FooInitializerF extends Foo
```
```clojure
(proxy [FooInitializer ???] []
```
--
You received this message because you are subscribed to the Google
Not that tricky, really. But there's a lot of repetitive work.
I changed the Clojure readers to understand the a+bi format, created a
ComplexNumber class and changed the class on charge of arithmetic to work
with complex numbers.
So it's possible to make any operation mixing Numbers, Ratios and
What would you say is the most complex, hard-to-grok code in Clojure
codebase?
--
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
Hello, all,
I've brought up the idea of some sort of Clojure community organisation
a few times on this mailing list. The ideas is to help grow the Clojure
community by doing things like supporting GSoC students, run
infrastructure like Clojars, help run conferences, etc. I have decided
to
Hi there,
I've written a new test runner for clojure.test. It does 2 main new things:
parallelization, and *much* better output, error reporting, and some
surrounding formatting/running features.
All the features were extracted from stuff I've accumulated in my app's
user namespace over the
On 28 April 2015 at 07:39, Atamert Ölçgen mu...@muhuk.com wrote:
Perhaps you can write a function that builds a function somewhere and then
outputs a string containing JavaScript code that invokes it.
(defn js [ body]
(eval `(defn fn-name# [] ~@body))
(str function() { your.ns. fn-name#
Thanks everyone for their answers and extra efforts. They are really
helpful.
On Mon, Apr 27, 2015, 18:56 Alex Miller a...@puredanger.com wrote:
I fleshed out some of this a bit more in a blog post with perf numbers in
case anyone's interested:
http://insideclojure.org/2015/04/27/poly-perf/
clj-try : Clojure Try / Error macros 0.1.0 is now available.
https://github.com/martincooper/clj-try
--
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
On Tue, Apr 28, 2015 at 10:44 AM, Gary Verhaegen gary.verhae...@gmail.com
wrote:
On 28 April 2015 at 07:39, Atamert Ölçgen mu...@muhuk.com wrote:
Perhaps you can write a function that builds a function somewhere and
then
outputs a string containing JavaScript code that invokes it.
(defn
21 matches
Mail list logo