Re: complex numbers in clojure

2015-11-06 Thread Mars0i
I leave it to others to assess the tradeoffs, but: Anything that's done to 
better support scientific computing has potential to pay off in the long run 
with greater popularity for Clojure.  Most, or many scientists work in 
universities.  Professors have students--lots of students, over time.  So 
getting n scientists using Clojure has the potential to result in (* n s y) new 
Clojure users, eventually.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unum in Clojure/ClojureScript?

2015-11-06 Thread Richard Davies
Unum is a number representation system that is a superset of IEEE integers 
and IEEE floats which avoids many problems (especially in floating point 
arithmetic) as it has no rounding, no overflow to infinity, no underflow to 
zero, and is safe to parallelize.

I was wondering if anyone has implemented or is interested in implementing 
this in Clojure/ClojureScript (or Java/JavaScript)?

There is an existing reference implementation written in Mathematica and it 
appears a port has already been done to Python: 
https://github.com/jrmuizel/pyunum

For more details of unum see
https://www.youtube.com/watch?v=jN9L7TpMxeA
https://www.crcpress.com/The-End-of-Error-Unum-Computing/Gustafson/9781482239867
http://arith22.gforge.inria.fr/slides/06-gustafson.pdf


-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ANN: ClojureScript 1.7.170, Enhanced Build Pipeline

2015-11-06 Thread Nathan B
Just some early results on our builds show a roughly 30% decrease in compile 
time when using cljsbuild auto. That helps a lot during development.

Awesome work as usual, thanks!

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: org-mode Clojure babel

2015-11-06 Thread Phillip Lord

If you are willing to entertain a slightly different interaction model,
you might want to take a look at the lentic package

https://github.com/phillord/lentic

Instead of Clojure snippets which you can pop out and edit, this gives
you two buffers, one entirely valid clojure (which syntax highlights,
you can eval, test and so forth) and one entirely valid org (which you
can publish, show-hide and so forth). You can edit either one (the
Clojure view or the Org-mode view) and changes percolate backward.

This video shows it working with org-mode and Emacs-lisp.

https://vimeo.com/116078853

And this video shows it working with latex and clojure.

https://vimeo.com/116141808

I don't have a video of it working with org and clojure, but it does
work with them. My tawny-owl library is being (slowly) ported to this
form of literate development.

https://github.com/phillord/tawny-owl/blob/master/src/tawny/owl.clj

It also allows integration with asciidoc, and clojure. I wrote these
slides:

http://homepages.cs.ncl.ac.uk/phillip.lord/download/tawny/icbo_2015/2015_lisbon.html

as literate clojure source.

Have fun.

Phil



Johannes Brauer  writes:

> Hi Karsten,
>
> thank you for the links to your project. But until now, I haven’t succeeded to
> setup my Emacs so that I can evaluate Clojure code snippets in an org file.
>
> Johannes
>> Am 03.11.2015 um 19:56 schrieb Karsten Schmidt :
>>
>> Hi Johannes, checkout my leiningen template for org-mode projects
>> here: http://thi.ng/babel and an example project using this template
>> here: http://thi.ng/fabric
>>
>>
>> On 3 November 2015 at 13:03, Stuart Sierra  
>> wrote:
>>> Hi Johannes
>>>
>>> I have a working Org babel & Clojure in my Emacs setup. It's idiosyncratic
>>> to my preferences, but maybe it will be useful:
>>> github.com/stuartsierra/dotfiles
>>>
>>> –S
>>>
>>>
>>>
>>> On Tuesday, November 3, 2015 at 3:25:51 AM UTC-5, Johannes wrote:

 Hi,

 I am looking for a working environment for using org-mode with Clojure
 babel. Googleing for the issue I can only find some apparently outdated
 hints. I am using org-mode version 8.2.10, Clojure 1.6.0, Leiningen 2.5.1,
 and CIDER 0.10.0.

 Any hints, where I can find the right configuration?

 Johannes

>>> --
>>> 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, send email to
>>> clojure+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google Groups
>>> "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to clojure+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Karsten Schmidt
>> http://postspectacular.com | http://thi.ng | http://toxiclibs.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 post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Clojure" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/clojure/PldQTR3yB3A/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> 
>
>
> Staatlich anerkannte private Fachhochschule
> NORDAKADEMIE
> Gemeinnützige Aktiengesellschaft
> Köllner Chaussee 11
> 25337 Elmshorn
>
> Vorstand:
> Prof. Dr. Georg Plate (Vorsitzender), Dipl.-Ing. Jörg Meier (stellv. Vorstand)
>
> Vorsitzender des Aufsichtsrats:
> Dr. h.c. Hans-Heinrich Bruns
>
> Sitz:
> Elmshorn, Amtsgericht Pinneberg, HRB 1682

-- 
Phillip Lord,   Phone: +44 (0) 191 208 7827
Lecturer in Bioinformatics, Email: phillip.l...@newcastle.ac.uk
School of Computing Science,
http://homepages.cs.ncl.ac.uk/phillip.lord
Room 914 Claremont Tower,   skype: russet_apples
Newcastle University,   twitter: phillord
NE1 7RU 

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

[ANN] core.memoize 0.5.8

2015-11-06 Thread Alex Miller
I released a new version of core.memoize today (0.5.8) with a fix for 
CMEMOIZE-21, which was a race condition in the internal delay 
implementation.

There was a core.memoize release (0.5.7) way back in January that bumped 
the core.cache dependency (that had the long-standing reflection warning) 
as well as some other fixes. 

More info at https://github.com/clojure/core.memoize#change-log

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] org.clojure/java.classpath "0.2.3"

2015-11-06 Thread Stuart Sierra
java.classpath — utilities to examine the Java classpath from Clojure 
programs.

https://github.com/clojure/java.classpath

Release 0.2.3.

Leiningen dependency: [org.clojure/java.classpath "0.2.3"]

This is a bugfix release. Changes:


   - Fix CLASSPATH-7 : 
   ignore classloaders which do not implement URLClasspath


See Change Log 


This is a Clojure Contrib 
 project.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ANN: ClojureScript 1.7.170, Enhanced Build Pipeline

2015-11-06 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code.

README and source code: https://github.com/clojure/clojurescript

Leiningen dependency information:

[org.clojure/clojurescript "1.7.170"]

This release includes a major refactor of the build pipeline thanks to
Juho Teperi. This change along with some greatly simplified
recompilation logic will mean much faster cold build times for larger
projects (some users have already reported >10X).

This is a breaking change for existing tooling. You will need to
upgrade lein-cljsbuild, lein-figwheel, and boot-cljs if you intend to
adopt this version of ClojureScript. All the mentioned tools have
already accounted for this change. Refer to the appropriate
documentation for your tooling to determine which version number you
should adopt.

Other interesting changes and fixes include newer Google Closure
Compiler and Library dependencies, self hosting tweaks, a Google
Closure modules (:modules compiler option) regression,
improved warnings, and minor REPL enhancements.

As always feedback welcome!

### Enhancements
* Refactor build pipeline
* CLJS-1478: Self-host: Allow static-fns opt

### Changes
* Generate larger range of random UUIDs
* make browser REPL file reloads less chatty
* CLJS-1475: indicate that cljs.reader/read is safe
* CLJS-1470: Bump GCL Dependency
* bump Google Closure dep

### Fixes
* in system-time check that js/process.hrtime is actually a thing
* CLJS-1228: cljs.util/topo-sort is polynomial on larger dependency graphs
* check that performance.now method actually exists
* CLJS-1476: Self-host: Protocol prefixing broken for three- (or more)
segment namespaces
* CLJS-1472 Patch for CLJS-1467 causes regression for nodejscli
* CLJS-1469 :modules regression
* CLJS-1445: Syntax error for var args in protocol methods
* Warn if protocol impl methods do not match its protocol
* CLJS-1451 Protocol impl do not support qualified method names
* CLJS-1422: cljs.js/eval-str fails for ns form on node.js with simple
optimizations
* CLJS-1423: self-host: Requiring analyzer/compiler breaks unchecked Boolean
* CLJS-1466: Improperly munged output path for GClosure JavaScript
* CLJS-1467: Foreign Libraries not included when using :main with :simple
or :advanced

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.