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
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
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
Alexander Schmolck wrote:
how would you code a program that gives the following
output ('skewed' sierpinski-triangle) in python?
*
**
* *
* *
** **
* * * *
* *
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
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
[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
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,'*'
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
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
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
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
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,
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
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
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)
--
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
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
--
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,
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...
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
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
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.
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,
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
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
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
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
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
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
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
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
[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
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
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
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:
|
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
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 =:
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
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
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
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
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
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
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
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.
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.
--
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
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
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 ?-)
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
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
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
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
54 matches
Mail list logo