Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-20 Thread Fabian Page
What i found with saving and loading:
- If i try to save to a folder it will not be created and there is no error 
message.
- It will not load a file which is in the root folder.
- If i created the ws folder by hand i can load and save without problems.

Fabian

Am 20.02.2014 um 08:43 schrieb Fabian Page faebu3...@gmail.com:

 Very nice project!
 
 I can save but not load a worksheet on my machine. (OS X, Chrome) If somebody 
 else has the same problem i can open an issue on github.
 
 Fabian
 
 Am 19.02.2014 um 22:23 schrieb Jony Hudson jonyepsi...@gmail.com:
 
 Hi All,
 
  I'm pleased to announce the first release of Gorilla REPL, a rich REPL in 
 the notebook style:
 
 https://github.com/JonyEpsilon/gorilla-repl
 
 From the README:
 
 You can think of it like a pretty REPL that can plot graphs, or you can 
 think of it as an editor for rich documents that can contain interactive 
 Clojure code, graphs, table, notes, LaTeX formulae. Whatever works for you! 
 One of the main aims is to make it lightweight enough that you can use it 
 day-to-day instead of the command-line REPL, but also offer the power to 
 perform and document complex data analysis and modelling tasks. Above all 
 else, Gorilla tries not to dictate your workflow, but rather to fit in to 
 the way you like to work, hopefully putting a bit more power to your elbow.
 
 You might like to take a look at a video introduction that shows what it 
 does better than my poor prose describes it:
 
 https://vimeo.com/87118206
 
 I hope you like it and find it useful. In particular I really hope it fits 
 in to your workflow, and if not it would be great to know why. Bear in mind 
 it is very new and hasn't had a lot of testing, so caveat evaluator. In 
 particular:
 
 * I've done very limited testing other than on Safari on Mac. I've checked 
 that it works in most of the major browsers on Windows and Mac, but that's 
 about it!
 
 * At the moment you can only open one window otherwise it breaks 
 (silently!). I'd love some help on the bug that's blocking this from someone 
 who understands nREPL better than me. 
 https://github.com/JonyEpsilon/gorilla-repl/issues/10
 
 * It relies on an internet connection at the moment, at least until it 
 caches various fonts. Need to get in touch with someone at clojars about 
 size limitations.
 
 
 I think there's a lot still to be done, and there are some areas that would 
 really benefit from feedback from clojure developers more experienced than 
 me. Directions I'd love to see explored:
 
 * More work on plotting. Still very green, and much could be improved.
 
 * Incanter integration. If I've understood correctly, Incanter can generate 
 SVG, so shouldn't be too difficult.
 
 * Content-types. Currently values are tagged to indicate they should be 
 rendered specially by the front-end. Is this the right way to do it? What 
 about tagged literals?
 
 * UI as a value. There's a lot that could be done with custom rendering of 
 values. Mathematica is particularly impressive in this regard, and it would 
 be interesting to think where this could go with clojure. I know Kovas 
 Boguta has thought about this a lot.
 
 * Clojurescript! I think this is a _really_ interesting one. I'd love to see 
 a pure-client-version that uses a clojurescript REPL server in a web-worker 
 or similar. I came to write Gorilla through thinking about this angle 
 originally, having previously messed around with javascript based data 
 analysis in the browser (see http://monkeycruncher.org - cute idea, but 
 no-one wants to use js to analyse their data!). In my opinion there's some 
 really important work to be done on opening up analysis - I'd love to 
 publish scientific papers not with a snapshot of my analysis, but with my 
 real, living, breathing analysis in them. And I love to do it on an open, 
 ubiquitous platform :-)
 
 Anyway, let me know what you think. Comments, issues and pull requests all 
 very, very welcome ;-)
 
 
 Jony
 
 -- 
 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/groups/opt_out.
 

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

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-19 Thread Fabian Page
Very nice project!

I can save but not load a worksheet on my machine. (OS X, Chrome) If somebody 
else has the same problem i can open an issue on github.

Fabian

Am 19.02.2014 um 22:23 schrieb Jony Hudson jonyepsi...@gmail.com:

 Hi All,
 
  I'm pleased to announce the first release of Gorilla REPL, a rich REPL in 
 the notebook style:
 
 https://github.com/JonyEpsilon/gorilla-repl
 
 From the README:
 
 You can think of it like a pretty REPL that can plot graphs, or you can 
 think of it as an editor for rich documents that can contain interactive 
 Clojure code, graphs, table, notes, LaTeX formulae. Whatever works for you! 
 One of the main aims is to make it lightweight enough that you can use it 
 day-to-day instead of the command-line REPL, but also offer the power to 
 perform and document complex data analysis and modelling tasks. Above all 
 else, Gorilla tries not to dictate your workflow, but rather to fit in to the 
 way you like to work, hopefully putting a bit more power to your elbow.
 
 You might like to take a look at a video introduction that shows what it does 
 better than my poor prose describes it:
 
 https://vimeo.com/87118206
 
 I hope you like it and find it useful. In particular I really hope it fits in 
 to your workflow, and if not it would be great to know why. Bear in mind it 
 is very new and hasn't had a lot of testing, so caveat evaluator. In 
 particular:
 
 * I've done very limited testing other than on Safari on Mac. I've checked 
 that it works in most of the major browsers on Windows and Mac, but that's 
 about it!
 
 * At the moment you can only open one window otherwise it breaks (silently!). 
 I'd love some help on the bug that's blocking this from someone who 
 understands nREPL better than me. 
 https://github.com/JonyEpsilon/gorilla-repl/issues/10
 
 * It relies on an internet connection at the moment, at least until it caches 
 various fonts. Need to get in touch with someone at clojars about size 
 limitations.
 
 
 I think there's a lot still to be done, and there are some areas that would 
 really benefit from feedback from clojure developers more experienced than 
 me. Directions I'd love to see explored:
 
 * More work on plotting. Still very green, and much could be improved.
 
 * Incanter integration. If I've understood correctly, Incanter can generate 
 SVG, so shouldn't be too difficult.
 
 * Content-types. Currently values are tagged to indicate they should be 
 rendered specially by the front-end. Is this the right way to do it? What 
 about tagged literals?
 
 * UI as a value. There's a lot that could be done with custom rendering of 
 values. Mathematica is particularly impressive in this regard, and it would 
 be interesting to think where this could go with clojure. I know Kovas Boguta 
 has thought about this a lot.
 
 * Clojurescript! I think this is a _really_ interesting one. I'd love to see 
 a pure-client-version that uses a clojurescript REPL server in a web-worker 
 or similar. I came to write Gorilla through thinking about this angle 
 originally, having previously messed around with javascript based data 
 analysis in the browser (see http://monkeycruncher.org - cute idea, but 
 no-one wants to use js to analyse their data!). In my opinion there's some 
 really important work to be done on opening up analysis - I'd love to publish 
 scientific papers not with a snapshot of my analysis, but with my real, 
 living, breathing analysis in them. And I love to do it on an open, 
 ubiquitous platform :-)
 
 Anyway, let me know what you think. Comments, issues and pull requests all 
 very, very welcome ;-)
 
 
 Jony
 
 -- 
 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/groups/opt_out.

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

How can i typecast a JavaObject?

2014-01-20 Thread Fabian Page
Hi 

I want to output some sound with javax.sound.sampled. 

But from AudioSystem.getSourceDataLine i get a AbstractDataLine which i 
need to typecast to a SourceDataLine. How can i make this typecast in 
clojure? 

Thanks
Fabian

-- 
-- 
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/groups/opt_out.


Re: How can i typecast a JavaObject?

2014-01-20 Thread Fabian Page

I get a:
java.lang.IllegalArgumentException: Can't call public method of non-public 
class: public final void 
com.sun.media.sound.AbstractDataLine.open(javax.sound.sampled.AudioFormat,int) 
throws javax.sound.sampled.LineUnavailableException 

From a tutorial i saw that they first typecast the AbstractDataLine to a 
SouceDataLine. I wanted to make this typecast.

Kind regards
Fabian

Am Montag, 20. Januar 2014 10:15:04 UTC+1 schrieb Meikel Brandmeyer 
(kotarak):

 Hi,

 Am Montag, 20. Januar 2014 09:46:23 UTC+1 schrieb Fabian Page:


 I want to output some sound with javax.sound.sampled. 

 But from AudioSystem.getSourceDataLine i get a AbstractDataLine which i 
 need to typecast to a SourceDataLine. How can i make this typecast in 
 clojure? 


 Why do you need a typecast?

 Kind regards
 Meikel
  


-- 
-- 
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/groups/opt_out.


Re: How can i typecast a JavaObject?

2014-01-20 Thread Fabian Page
From what i understood cast only checks if a-instance can be a 
SourceDataLine. But it doesn't cast the AbstractDataLine to a 
SourceDataLine?

Thanks Fabian

Am Montag, 20. Januar 2014 09:58:51 UTC+1 schrieb Gaofeng Zeng:

 (cast SourceDataLine a-instance)

 On Monday, January 20, 2014 4:46:23 PM UTC+8, Fabian Page wrote:

 Hi 

 I want to output some sound with javax.sound.sampled. 

 But from AudioSystem.getSourceDataLine i get a AbstractDataLine which i 
 need to typecast to a SourceDataLine. How can i make this typecast in 
 clojure? 

 Thanks
 Fabian



-- 
-- 
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/groups/opt_out.


Re: How can i typecast a JavaObject?

2014-01-20 Thread Fabian Page
Thanks a lot! That problem is solved now :)

Fabian

Am Montag, 20. Januar 2014 12:51:43 UTC+1 schrieb Meikel Brandmeyer 
(kotarak):

 Hi,

 Am Montag, 20. Januar 2014 11:34:29 UTC+1 schrieb Fabian Page:


 I get a:
 java.lang.IllegalArgumentException: Can't call public method of 
 non-public class: public final void 
 com.sun.media.sound.AbstractDataLine.open(javax.sound.sampled.AudioFormat,int)
  
 throws javax.sound.sampled.LineUnavailableException 

 From a tutorial i saw that they first typecast the AbstractDataLine to a 
 SouceDataLine. I wanted to make this typecast.


 Ok. What you need is a type hint in the interop call, so that the compiler 
 can emit a call to the right interface.

 (.open #^SourceDataLine abstract-data-line-thingy 1)

 If you had to do the several calls with that interface, you could the type 
 hint at a more central spot.

 (let [abstract-data-line-thingy #^SourceDataLine (obtain-thingy)]
   (doto abstract-data-line-thingy
 (.open 1)
 (.otherMethod 2)))

 Hope that helps.

 Meikel



-- 
-- 
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/groups/opt_out.