Re: how to reload Clojure files while connected to Clojurescript browser repl in Emacs?

2013-10-06 Thread George Oliver
On Sunday, October 6, 2013 11:15:26 PM UTC-7, George Oliver wrote: > > > I could be wrong but my understanding is that the browser is just > connecting to your cljs repl which actually is in the 'clojure repl'. > Certainly if you refresh the page state built up in the browser is reset, > but s

Re: how to reload Clojure files while connected to Clojurescript browser repl in Emacs?

2013-10-06 Thread George Oliver
On Sunday, October 6, 2013 1:26:21 PM UTC-7, Tim Visher wrote: > > > That sounds really cool. I was not aware that Austin could do this. Do > you have any pointers to documentation about it? Again, my model of > how the system works is that the browser _is_ the repl, so refreshing > the browse

Re: How to suppress warnings?

2013-10-06 Thread Andy Fingerhut
One way to avoid these warnings being generated in the first place is not to "use" core.async, but "require ... as" it, e.g.: (ns message-bus.latam (:require [core.async :as a])) The down side is that then you must prefix all uses of symbols in core.async with the alias "a/". You can also :exc

How to suppress warnings?

2013-10-06 Thread Gary Zhao
Hello I'm using core.async, but always see the following warnings. How do I suppress them? WARNING: map already refers to: #'clojure.core/map in namespace: message-bus.latam, being replaced by: #'clojure.core.async/map WARNING: into already refers to: #'clojure.core/into in namespace: message

Re: clj-ldap - Clojure LDAP client

2013-10-06 Thread Korny Sietsma
Hi - is anyone maintaining any of these ldap libraries? I ask because: - neither has updates in 2 years - the underlying umboundid library now supplies a "bindAndRevertAuthentication" function that implements what was discussed previously in this thread - you can bind without mutating the existing

Re: boolean java interopt puzzle/bug?!

2013-10-06 Thread Andy Fingerhut
There is also this page on ClojureDocs that might shed some light on this quirk: http://clojuredocs.org/clojure_core/clojure.core/if On Sun, Oct 6, 2013 at 6:14 PM, Rob Browning wrote: > Gary Trakhman writes: > > > Clojure's false and true are Boolean/FALSE and Boolean/TRUE, and for > spe

Re: boolean java interopt puzzle/bug?!

2013-10-06 Thread Rob Browning
Gary Trakhman writes: > Clojure's false and true are Boolean/FALSE and Boolean/TRUE, and for speed > reasons (I think) anything that checks for truthiness uses java's ==, which > will fail on any new Boolean object. Usually, this isn't a problem, but > sometimes it is. You can see that this ass

ANN: New core.matrix 0.11.0 release

2013-10-06 Thread Mike Anderson
Hi all, New version of core.matrix now available on Clojars: https://clojars.org/net.mikera/core.matrix/versions/0.11.0 Key items of note: - Dmitry's GSoC NDArray project is now the default core.matrix implementation - this is a big milestone, congrats Dmitry! - Everything is now AOT-compiled.

How to go about 'proving' why dynamically typed languages are better

2013-10-06 Thread Brad Bowman
> zcaudate Oct 05 08:35PM -0700 I'm a little bit miffed over this current craze of `types` and `correctness` of programs. It smells to me of the whole `object` craze of the last two decades. I agree that types (like objects) have their uses, especially in very well defined problems, but they hav

Re: boolean java interopt puzzle/bug?!

2013-10-06 Thread Gary Trakhman
Clojure's false and true are Boolean/FALSE and Boolean/TRUE, and for speed reasons (I think) anything that checks for truthiness uses java's ==, which will fail on any new Boolean object. Usually, this isn't a problem, but sometimes it is. You can see that this assumption is pervasive by looking

boolean java interopt puzzle/bug?!

2013-10-06 Thread Pablo Nussembaum
Hey Devs, I have fighting against an issue that can summarized in the following line: user=> (not (new java.lang.Boolean false)) false Is that behavior correct? Because if I run: user=> (type false) java.lang.Boolean Can someone help me to understand it? Thanks, -- Bauna -- -- You received

Re: how to reload Clojure files while connected to Clojurescript browser repl in Emacs?

2013-10-06 Thread Tim Visher
On Wed, Oct 2, 2013 at 3:17 AM, George Oliver wrote: > On Sunday, September 29, 2013 8:12:23 PM UTC-7, Tim Visher wrote: > >> Now with nrepl's ability to have multiple sessions open at once (an >> ability I haven't taken any advantage of personally), you should be >> able to have a JVM nrepl open

Re: Newbie seeks advice

2013-10-06 Thread James Reeves
The key to writing an algorithm functionally is to break it up into simple components. You're performing three calculations: (def x (myfunc x)) (def buffer (in_buffer buffer x)) (+ (nth buffer 1) (nth buffer 3)) Let's tackle each in turn. The first is a continually changing value

Newbie seeks advice

2013-10-06 Thread vMac
Hello, I'm new to closure and functional programming and need some adviec/help with my oldschool programming style. I've written the following little program and hope someone could help me to improve it. The programm computes numbers through an iterative function , put the numbers in a 'shift

Re: Trying to use Heroku and Postgresql

2013-10-06 Thread Zeynel
Yes, it turned out that 'export' is for unix, I had to use 'set' and it worked. This was suggested by juan.facorro at SO: http://stackoverflow.com/questions/19204548/how-do-you-connect-to-local-postgresql-in-heroku#comment28425326_19204548 On Saturday, October 5, 2013 5:13:53 PM UTC-4, Bruce Ada

Re: Who uses HtmlUnit?

2013-10-06 Thread Niels van Klaveren
I've used HTMLunit, but the Javascript implementation used is rather slow compared to regular JS in browsers. Since the webframework I need to test is rather JS heavy, this is a pretty big problem. I had hopes that they would switch from Rhino to Nashorn, but there currently aren't plans for tha

Re: How to go about 'proving' why dynamically typed languages are better.

2013-10-06 Thread Greg
I support the sentiment expressed in your email. +1 Type systems are nice, just don't force them upon anyone. Keep the C++ at bay. -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Oct 6, 2013, at 7:16 AM, Chris Zheng wrote: > Thanks Mike for your r

Re: Who uses HtmlUnit?

2013-10-06 Thread John D. Hume
WebDriver's HtmlUnitDriver is only one of many supported drivers. Most Selenium-using teams I've been on have driven real browsers using another driver (which among other benefits allows one to generate realistic screen shots). The one team I was on that used HtmlUnit (a couple years ago) blamed i

Re: Who uses HtmlUnit?

2013-10-06 Thread Kelker Ryan
 I've never tried it for unit testing, but it's the de facto Java library for headless browsers and it's the driving force behind products such as Selenium WebDriver => http://seleniumhq.org/ I mostly use it for bot creation/automation and it supports many versions of popular web browsers such as F

Who uses HtmlUnit?

2013-10-06 Thread Mimmo Cosenza
Hi all, did anyone give a try to this java based HTMLUnit headless browser for cljs unit test to be used of phantomjs? http://htmlunit.sourceforge.net/ Thanks Mimmo -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: How to go about 'proving' why dynamically typed languages are better.

2013-10-06 Thread Chris Zheng
Thanks Mike for your reminder to be pragmatic. It is definitely the way to go. Clojure's an incredible language for this. This is going to be a longish post as I should better explain my position. It is just a brief sketch of the problem but I think that we should be thinking about it more as a

Re: How to go about 'proving' why dynamically typed languages are better.

2013-10-06 Thread Mikera
I suspect you are going to have zero success "proving" the superiority of dynamic languages (in an academic proof sense). For a start, people are even going to disagree about the precise definition of "better". What matters more: Runtime performance? Flexibility with respect to changing require