Light Table

57 views
Skip to first unread message

Brian Marick

unread,
Sep 1, 2012, 5:05:46 PM9/1/12
to fp...@googlegroups.com
I've added a section to the Introduction about using Light Table. If you're using it and run into any problems, let me know.

-----
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Occasional consulting on Agile
Writing /Functional Programming for the Object-Oriented Programmer/: https://leanpub.com/fp-oo


Matt Mower

unread,
Sep 3, 2012, 6:19:40 AM9/3/12
to fp...@googlegroups.com
On Saturday, 1 September 2012 22:06:33 UTC+1, Brian Marick wrote:
I've added a section to the Introduction about using Light Table. If you're using it and run into any problems, let me know.

I've been playing with it for a while and it's a great for experimentation but, and I'm not sure if this is something I'm doing wrong, it doesn't seem to run all Clojure code. I've had integer overflows that I don't get in the Lein repl as well as problems with protocol implementation that worked in Lein and gave strange exceptions in LT.

But, as I say, I'm not familiar enough with Clojure to understand if it's me - or the current state of LT development.

Kind regards,

Matt

Brian Marick

unread,
Sep 3, 2012, 9:05:22 PM9/3/12
to fp...@googlegroups.com

On Sep 3, 2012, at 5:19 AM, Matt Mower wrote:

> I've been playing with it for a while and it's a great for experimentation but, and I'm not sure if this is something I'm doing wrong, it doesn't seem to run all Clojure code. I've had integer overflows that I don't get in the Lein repl as well as problems with protocol implementation that worked in Lein and gave strange exceptions in LT.

Were these problems with examples or exercises from the book?

Matt Mower

unread,
Sep 4, 2012, 3:40:39 PM9/4/12
to fp...@googlegroups.com
Hi Brian.

On Tuesday, 4 September 2012 02:05:39 UTC+1, Brian Marick wrote:
> I've been playing with it for a while and it's a great for experimentation but, and I'm not sure if this is something I'm doing wrong, it doesn't seem to run all Clojure code. I've had integer overflows that I don't get in the Lein repl as well as problems with protocol implementation that worked in Lein and gave strange exceptions in LT.

Were these problems with examples or exercises from the book?

No they were from another book on Clojure. The integer overflow was from defining the factorial function with the same function working correctly under Lein.

I haven't got around to trying the exercises from this book yet. Although I bought it when it was announced I've waited a few releases for it to get the point where I can follow along :)

Kind regards,

Matt

Brian Marick

unread,
Sep 13, 2012, 2:56:46 PM9/13/12
to fp...@googlegroups.com

On Sep 4, 2012, at 2:40 PM, Matt Mower wrote:

> Hi Brian.
>
> On Tuesday, 4 September 2012 02:05:39 UTC+1, Brian Marick wrote:
> > I've been playing with it for a while and it's a great for experimentation but, and I'm not sure if this is something I'm doing wrong, it doesn't seem to run all Clojure code. I've had integer overflows that I don't get in the Lein repl as well as problems with protocol implementation that worked in Lein and gave strange exceptions in LT.
>
> Were these problems with examples or exercises from the book?
>
> No they were from another book on Clojure. The integer overflow was from defining the factorial function with the same function working correctly under Lein.

This may be a version issue. Until Clojure version 1.3, Clojure would automatically promote integer overflow to "bignums" (potentially infinite integers). In 1.3, for performance reasons, integer overflow throws an exception. You can find out which Clojure version you're running like this:


user=> *clojure-version*
{:major 1, :minor 4, :incremental 0, :qualifier nil}
Reply all
Reply to author
Forward
0 new messages