Re: Calling J from Python

2013-03-10 Thread gosinn
Den lördagen den 9:e mars 2013 kl. 19:34:09 UTC skrev Mark Lawrence: On 09/03/2013 18:49, gos...@gmail.com wrote: Den måndagen den 5:e februari 2007 kl. 14:48:49 UTC skrev Gosi: It is quite easy to call J from Python

Re: Calling J from Python

2013-03-09 Thread gosinn
Den måndagen den 5:e februari 2007 kl. 14:48:49 UTC skrev Gosi: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e84b75667f5f64e http://www.jsoftware.com/jwiki/Scripts/qjide -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling J from Python

2013-03-09 Thread Mark Lawrence
On 09/03/2013 18:49, gos...@gmail.com wrote: Den måndagen den 5:e februari 2007 kl. 14:48:49 UTC skrev Gosi: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e84b75667f5f64e http://www.jsoftware.com/jwiki/Scripts/qjide Got a right

Re: Calling J from Python

2007-02-10 Thread greg
Alexander Schmolck wrote: how would you code a program that gives the following output ('skewed' sierpinski-triangle) in python? * ** * * * * ** ** * * * * * *

Re: Calling J from Python

2007-02-10 Thread Nick Craig-Wood
George Sakkis [EMAIL PROTECTED] wrote: On Feb 9, 9:20 pm, [EMAIL PROTECTED] wrote: This is a bit simpler, but probably there are simpler solutions using modular arithmetic: l = [1] for _ in range(15): print ''.join( *[x] for x in l) l = [1] + [l[i+1]^l[i] for i in

Re: Calling J from Python

2007-02-09 Thread Ant
On Feb 6, 12:21 am, greg [EMAIL PROTECTED] wrote: ... Yes, but with Python you wouldn't have to spend a couple of weeks sitting and thinking before starting to type that line... This is a good point often overlooked. You often get these threads on c.l.python about How can I do this in one

Re: Calling J from Python

2007-02-09 Thread Alexander Schmolck
[restoring context] Ant [EMAIL PROTECTED] writes: On Feb 6, 12:21 am, greg [EMAIL PROTECTED] wrote: Alexander Schmolck wrote: For example I once wrote this (slow) code to display part of a mandelbrot fractal: load'viewmat' viewmat+/2:|((j.~/~(%~i:)99)+@:*:)^:(i.32)0

Re: Calling J from Python

2007-02-09 Thread Martin Lüthi
Alexander Alexander Schmolck [EMAIL PROTECTED] writes: I can think of two nice ways in J, 13 and 16 characters long respectively and each expressing something essential and non-trival about the problem in a way that would be more cumbersome in python. Here's the first one: (,,.~)^:4,'*'

Re: Calling J from Python

2007-02-09 Thread bearophileHUGS
ant: and in debugging it far outweighs the time you'd spend on all of that typing in a clean but more verbose language such as Python. Typing time counts a bit too. A language like Java is even more verbose than Python, and that probably slows down the actual programming, compared to less

Re: Calling J from Python

2007-02-09 Thread George Sakkis
On Feb 9, 9:20 pm, [EMAIL PROTECTED] wrote: ant: and in debugging it far outweighs the time you'd spend on all of that typing in a clean but more verbose language such as Python. Typing time counts a bit too. A language like Java is even more verbose than Python, and that probably slows

Re: Calling J from Python

2007-02-09 Thread Hendrik van Rooyen
Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Thu, 8 Feb 2007 10:55:17 +0200, Hendrik van Rooyen [EMAIL PROTECTED] declaimed the following in comp.lang.python: I am under the impression that Loki had a daughter called Hel ... One of his few normal offspring... After all, Loki also was

Re: Calling J from Python

2007-02-08 Thread Robin Becker
Tina I wrote: .. It's also a village in Norway: http://en.wikipedia.org/wiki/Hell,_Norway In German it's bright -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling J from Python

2007-02-08 Thread [EMAIL PROTECTED]
I may have mistook the source code licence for the use licence.. I will look into a little further to see what it can do.. Looks like you are not allowed to redistribute k for profit. Some day I will look up letters a random in the search engine to see what I come up with. On Feb 6, 2:05 am,

Re: Calling J from Python

2007-02-08 Thread Gosi
On Feb 8, 12:00 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I may have mistook the source code licence for the use licence.. I will look into a little further to see what it can do.. Looks like you are not allowed to redistribute k for profit. Some day I will look up letters a random in

Re: Calling J from Python

2007-02-08 Thread Hendrik van Rooyen
Tina I [EMAIL PROTECTED] wrote: Gosi wrote: On Feb 7, 3:46 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: In [EMAIL PROTECTED], Gosi wrote: I like to use J for many things and I think that combining Python and J is a hell of a good mixture. I was able to follow this sentence up to

Re: Calling J from Python

2007-02-08 Thread Tina I
Hendrik van Rooyen wrote: I am under the impression that Loki had a daughter called Hel ... - Hendrik Yes. And Hel was the queen of the underworld which was also called 'Hel' (Which of course is 'hell', in modern Norwegian : helvete) --

Re: Calling J from Python

2007-02-07 Thread Gosi
On Feb 6, 9:08 pm, [EMAIL PROTECTED] wrote: Gosi: There are a number of graphics examples, utilities and demos you can use in J and combine it with Python. Some of those graphic examples are very nice, I have seen a big site filled with complex fractals, chaotic attractors, etc. Python

Re: Calling J from Python

2007-02-07 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Gosi wrote: I like to use J for many things and I think that combining Python and J is a hell of a good mixture. I was able to follow this sentence up to and including the word hell… :-) Ciao, Marc 'BlackJack' Rintsch --

Re: Calling J from Python

2007-02-07 Thread Gosi
On Feb 7, 3:46 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: In [EMAIL PROTECTED], Gosi wrote: I like to use J for many things and I think that combining Python and J is a hell of a good mixture. I was able to follow this sentence up to and including the word hell... :-) Ciao,

Re: Calling J from Python

2007-02-07 Thread Tina I
Gosi wrote: On Feb 7, 3:46 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: In [EMAIL PROTECTED], Gosi wrote: I like to use J for many things and I think that combining Python and J is a hell of a good mixture. I was able to follow this sentence up to and including the word hell...

Re: Calling J from Python

2007-02-06 Thread Gosi
On Feb 6, 3:04 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Feb 5, 8:48 am, Gosi [EMAIL PROTECTED] wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... There are a couple of issue that should be adressed. Am I going to

Re: Calling J from Python

2007-02-06 Thread Gerard Flanagan
On Feb 5, 3:48 pm, Gosi [EMAIL PROTECTED] wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... As I understand it, the k language, which is similar to J, is used to interact with streamed realtime financial data, where I imagine

Re: Calling J from Python

2007-02-06 Thread Bruno Desthuilliers
Gosi a écrit : On Feb 6, 3:04 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Feb 5, 8:48 am, Gosi [EMAIL PROTECTED] wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... There are a couple of issue that should be adressed.

Re: Calling J from Python

2007-02-06 Thread bearophileHUGS
Gosi: There are a number of graphics examples, utilities and demos you can use in J and combine it with Python. Some of those graphic examples are very nice, I have seen a big site filled with complex fractals, chaotic attractors, etc. Python Zen seems somewhat opposed to part of the J spirit,

Calling J from Python

2007-02-05 Thread Gosi
It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e84b75667f5f64e -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling J from Python

2007-02-05 Thread Diez B. Roggisch
Gosi wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e84b75667f5f64e What is J, and why should we care? Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling J from Python

2007-02-05 Thread Gosi
On Feb 5, 2:59 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Gosi wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... What is J, and why should we care? Diez J is in many ways similar to Python. J has very many advanced

Re: Calling J from Python

2007-02-05 Thread Bjoern Schliessmann
Gosi wrote: J is in many ways similar to Python. The only one I see at the moment is that they're both some kind of programming languages. J has very many advanced operations. Sure. Mh, just looking at some advanced J source taken from wikipedia.org makes me feel sick: | Here's a J program

Re: Calling J from Python

2007-02-05 Thread skip
Gosi J is in many ways similar to Python. Gosi J has very many advanced operations. Gosi http://www.jsoftware.com/ Doesn't look like open source of any variety. If a person uses Python with various add-ons (RPy, numpy, matplotlib, etc) why would they want to switch to a closed

Re: Calling J from Python

2007-02-05 Thread hg
Bjoern Schliessmann wrote: Gosi wrote: J is in many ways similar to Python. The only one I see at the moment is that they're both some kind of programming languages. J has very many advanced operations. Sure. Mh, just looking at some advanced J source taken from wikipedia.org

Re: Calling J from Python

2007-02-05 Thread Diez B. Roggisch
Gosi wrote: On Feb 5, 2:59 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Gosi wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... What is J, and why should we care? Diez J is in many ways similar to Python. J has

Re: Calling J from Python

2007-02-05 Thread George Sakkis
On Feb 5, 12:23 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Gosi wrote: On Feb 5, 2:59 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Gosi wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... What is J, and why should

Re: Calling J from Python

2007-02-05 Thread Alexander Schmolck
[EMAIL PROTECTED] writes: Gosi J is in many ways similar to Python. Gosi J has very many advanced operations. Gosi http://www.jsoftware.com/ Doesn't look like open source of any variety. If a person uses Python with various add-ons (RPy, numpy, matplotlib, etc) why would

Re: Calling J from Python

2007-02-05 Thread Larry Bates
Bjoern Schliessmann wrote: Gosi wrote: J is in many ways similar to Python. The only one I see at the moment is that they're both some kind of programming languages. J has very many advanced operations. Sure. Mh, just looking at some advanced J source taken from wikipedia.org

Re: Calling J from Python

2007-02-05 Thread Robin Becker
Dennis Lee Bieber wrote: On Mon, 05 Feb 2007 17:52:27 +0100, Bjoern Schliessmann [EMAIL PROTECTED] declaimed the following in comp.lang.python: Mh, just looking at some advanced J source taken from wikipedia.org makes me feel sick: | Here's a J program to calculate the average of a list

Re: Calling J from Python

2007-02-05 Thread Alexander Schmolck
Robin Becker [EMAIL PROTECTED] writes: Dennis Lee Bieber wrote: On Mon, 05 Feb 2007 17:52:27 +0100, Bjoern Schliessmann [EMAIL PROTECTED] declaimed the following in comp.lang.python: Mh, just looking at some advanced J source taken from wikipedia.org makes me feel sick: |

Re: Calling J from Python

2007-02-05 Thread Alexander Schmolck
Larry Bates [EMAIL PROTECTED] writes: And why is that superior to this: def avg(l): return float(sum(l))/len(l) avg([1,2,3,4]) 2.5 Apart from being less to type and it is superior in that it's generalizes much better, e.g: avg.^. NB. geomtric mean avg.%NB. harmonic mean avg M

Re: Calling J from Python

2007-02-05 Thread Laurent Pointal
Diez B. Roggisch wrote: m=: @(0{) v=: @(1{) h=: @(2{) qu =: @(3{) z=: [EMAIL PROTECTED]: ret =: |[EMAIL PROTECTED]: init =: z;z;z;i. f1m =: (m,[EMAIL PROTECTED]);v;h;[EMAIL PROTECTED] f5m =: (z;(v,{:@m);h;qu,[EMAIL PROTECTED]) @ (f1m^:5) f1h =:

Re: Calling J from Python

2007-02-05 Thread Bjoern Schliessmann
Alexander Schmolck wrote: Apart from being less to type Cool. Less to type. and it is superior in that it's generalizes much better, e.g: avg.^. NB. geomtric mean avg.%NB. harmonic mean avg M NB. column mean of matrix M avg1 M NB. row mean of matrix M Is there any

Re: Calling J from Python

2007-02-05 Thread Stef Mientki
Mh, just looking at some advanced J source taken from wikipedia.org makes me feel sick: | Here's a J program to calculate the average of a list of numbers: |avg=: +/ % # |avg 1 2 3 4 | 2.5 And here is the Python way of calculating the average mean([1,2,3,4]) 2.5 sorry, I

Re: Calling J from Python

2007-02-05 Thread Bruno Desthuilliers
Gosi a écrit : On Feb 5, 2:59 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Gosi wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... What is J, and why should we care? Diez J is in many ways similar to Python. J has

Re: Calling J from Python

2007-02-05 Thread Bruno Desthuilliers
Gosi a écrit : On Feb 5, 2:59 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Gosi wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... What is J, and why should we care? Diez J is in many ways similar to Python. So are

Re: Calling J from Python

2007-02-05 Thread Bruno Desthuilliers
Larry Bates a écrit : def avg(l): return float(sum(l))/len(l) avg([1,2,3,4]) 2.5 def avg(*args): return float(sum(args)) / len(args)) Which can actually be read and debugged in the future! in_my_arms(tm) -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling J from Python

2007-02-05 Thread Bruno Desthuilliers
Alexander Schmolck a écrit : Larry Bates [EMAIL PROTECTED] writes: And why is that superior to this: def avg(l): return float(sum(l))/len(l) avg([1,2,3,4]) 2.5 Apart from being less to type and it is superior in that it's generalizes much better, e.g: avg.^. NB. geomtric

Re: Calling J from Python

2007-02-05 Thread Bruno Desthuilliers
Diez B. Roggisch a écrit : Gosi wrote: On Feb 5, 2:59 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Gosi wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... What is J, and why should we care? Diez J is in many ways

Re: Calling J from Python

2007-02-05 Thread Alexander Schmolck
Bjoern Schliessmann [EMAIL PROTECTED] writes: Alexander Schmolck wrote: Apart from being less to type Cool. Less to type. Yes. Readability is more important in many context, but for something designed for interactive experimentation and exploration little typing is absolutely essential.

Re: Calling J from Python

2007-02-05 Thread John Salerno
Alexander Schmolck wrote: Would you use a calculator that would require Java-style boilerplate to add two numbers? This isn't a Java newsgroup, so your metaphor is irrelevant. People use Python because it *isn't* Java and does not succumb to the problem you seem to be accusing it of. --

Re: Calling J from Python

2007-02-05 Thread Laurent Pointal
Bruno Desthuilliers wrote: Gosi a écrit : On Feb 5, 2:59 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: J has very many advanced operations. what's an advanced operation ? An operation which dont stay in place. -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling J from Python

2007-02-05 Thread Bruno Desthuilliers
Alexander Schmolck a écrit : Bjoern Schliessmann [EMAIL PROTECTED] writes: Alexander Schmolck wrote: Apart from being less to type Cool. Less to type. Yes. Readability is more important in many context, but for something designed for interactive experimentation and exploration

Re: Calling J from Python

2007-02-05 Thread Bruno Desthuilliers
Laurent Pointal a écrit : Bruno Desthuilliers wrote: Gosi a écrit : On Feb 5, 2:59 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: J has very many advanced operations. what's an advanced operation ? An operation which dont stay in place. You meant something like a good camembert ?-)

Re: Calling J from Python

2007-02-05 Thread Alexander Schmolck
Bruno Desthuilliers [EMAIL PROTECTED] writes: No, thanks. But hopefully we have Python : Python 2.4.1 (#1, Jul 23 2005, 00:37:37) [GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)] on linux2 Type help, copyright, credits or license for more information. 3 + 4 7

Re: Calling J from Python

2007-02-05 Thread greg
Alexander Schmolck wrote: For example I once wrote this (slow) code to display part of a mandelbrot fractal: load'viewmat' viewmat+/2:|((j.~/~(%~i:)99)+@:*:)^:(i.32)0 It'll likely require you more typing in python, Yes, but with Python you wouldn't have to spend a couple of weeks

Re: Calling J from Python

2007-02-05 Thread [EMAIL PROTECTED]
On Feb 5, 8:48 am, Gosi [EMAIL PROTECTED] wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... There are a couple of issue that should be adressed. Am I going to jail if I write a program and then redistribute all the files

Re: Calling J from Python

2007-02-05 Thread Paddy
On Feb 5, 2:48 pm, Gosi [EMAIL PROTECTED] wrote: It is quite easy to call J from Python http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... Hii Gosi, From reading what has gone before, you seem to have got it in the neck from some pythonistas. I'd just like to say from