I would rather think the wiki page needs revision because that is
applicable to j602 only.
Сб, 15 фев 2014, William Szuch писал(а):
Need to add stdlib to the list of scripts in scripts.ijs for open 'stdlib'
to work as in Wiki.
Regards
Bill Szuch
I speak only J. Once Raul translated awk I could understand what it was
doing. Here is how I would think of the problem as a native speaker of J.
]A=:11;13;15
---T--T--┐
│11│13│15│
L--+--+---
A
11 13 15
2{.A
11 13
+/2{.A
24
]B=: :+/2{.A
24
B;' WEEKS'
What I can't understand is how to match what he is starting with which is
not 11;13;17
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of linda
Sent: Saturday, February 15, 2014 5:13 AM
To:
I'm not actually sure what he is starting with. (And I am not sure I would
want to replace awk - it works fine for what it does.)
It might be fun, though, to design and write some J words and phrases to
represent traditional unix concepts, and then wrap J in something (a shell
script initially
This is how I would do it:
lines =: 0 : 0
1;3
2;5
)
FS=:';'
_1[\ +/1 . each FS cut each LF cut lines
outputs
4
7
lines can also be replaced with:
lines=: freads 'c:/temp/t.txt'
compare to:
gawk BEGIN{FS=;}{print $1+$2} t.txt
4
7
c:\tempcat t.txt
1;3
2;5
On Sat, Feb 15, 2014 at 6:21
I think the ultimate 5 minute experience is a combination of:
1. Video
- Here is Kona's intro: http://www.youtube.com/watch?v=bmiq47E5N-w and
- Here is a Kona's wow factor:
http://www.youtube.com/watch?v=WBXsCeW9qfc(we could do the same with
the latest websockets implementation fairly
easily I
In order to create a shortcut to start jqt I had to move QtGui4.dll from
folder jqt to folder j801
Once I did that using windows vista i got:
JVERSION
Engine: j701/2011-01-10/11:25
Library: 8.01.020
Qt IDE: 1.0.23/4.8.5
Platform: Win 32
Installer: j801 install
InstallPath:
I love AWK; it (and perl) have saved my bacon many times. If your problem
involves processing fields within lines of an I/O stream in a *nix environment,
of course you or I should use AWK. Particularly me, since I'd never be given a
processing task involving more math than a gozinta or
Thank you all for your kind replies! And to those saying how I should
really use awk for this job- I know, I was just curious! I am very
impressed by the variance in answers, and how different J really is
compared to other languages.
Thanks again,
Lee
P.S. As for the input, just numbers was
No you should create shortcut of the jqt.cmd instead.
Alternatively, you can first unstaill/remove the j801 folder.
and then download and install the windows AIO (All-in-one)
installer from the same j801 download webpage. It will do
everything for you.
Сб, 15 фев 2014, Linda Alvord писал(а):
Hey,
Is there anyone hosting a public facing JHS server? It would be nice
to have access to J on any computer connected to the Internet! I would
set one up, but my ISP has connectivity issues.
Kind regards,
Lee
--
For
Patrick,
I am wondering if your comments are indirectly related to my
experience/confusion with the Mac launching JHS801? Are you suggesting that the
version 8 is getting confused with the existing version 7 at launch?
---
(B=)
Conceptually speaking, J has three atomic data types:
Numeric
Literal
Boxed
Numeric types support arithmetic: 1+1
Literal types are what might be called character types in other languages.
(ascii or unicode)
Boxed types are what might be called reference types in other languages.
J tries to
The issue is what, exactly, one wishes to convey by a short, introductory,
video. One possibility is an advertising blurb that tells who uses the language
and for what wonderful purposes. Another starts out with some fundamental
notions of the language (you form an array like this, assign it to
It might be fun to run something like this on a disposable ec2 box (or
maybe one of the alternatives, like hostgator or liquidweb, or whatever),
ideally in a readonly chroot partition (partition to work around some ..
issues).
Thanks,
--
Raul
On Sat, Feb 15, 2014 at 11:00 AM, Lee Fallat
Love it! Think I'm gonna get a lot from Linda's and Norman's paper. Now I
wonder if I missed it or forgot it.
On Feb 14, 2014, at 7:00 PM, Henry Rich henryhr...@nc.rr.com wrote:
Ian Clark's NuVoc project is a great start at making J easier for newcomers.
As part of that effort, the
What I am thinking we want is 5 minutes that leaves the user thinking,
Wow. That was cool. They did all that and it was so fast and short.
I want to learn how they did that. The demo should make extensive use
of libraries and packages to get a job done. It needs to be a job that
takes some
Raul, I was thinking the same thing earlier on. Personally, with J
available on iOS and Android it handles most cases I would need while away
from the computer.
A web hosted J with a persistent session or locale per user would be neat.
I recall there is a bot on the irc channel on freenode. I
Just append
7744881
On 15-02-14 17:16, Jim Russell wrote:
Can't get there, from here at least...
Google reports 404 error.
On Feb 15, 2014, at 2:54 AM, R.E. Boss r.e.b...@planet.nl wrote:
What about this one
https://plus.google.com/u/0/photos/101244335910217616226/albums/598024084706
...loops? From what I've seen loops are built into some verbs (+/ -/
etc), but what if you wanted to do say: add every number in the
vector, but for every number add 2.91, then divide that by 0.4?
In python:
range() generates a list of numbers from 0 to 9.
for x in range(0,10)
y += (x
string manipulation in J is non-trivial...
The scary code from Raul was trying to replace a default space as a fill
character.
'hi' ,: 'there'
produces a list of 2 5 long strings
'hi '
'there'
Passing 3 or more parameters to a verb
an explicit verb can have its first line be:
'a b c' =. y
The first of those two is nicely done.
However -- and here I play a Devil's advocate -- is the example all that
impressive? Yes, the function leap he defines is fairly terse. But even
terser, in a certain language I also use, is the pre-defined function:
LeapYearQ
Moreover, while that Kona
In other words, not only are loops built into some verbs (+/ -/) but they
are built into all verbs. But we don't really think of them as having
loops. Ken Iverson told the following anecdote: In J we say, move the
army from Boston to New York; in a scalar language you'd say for i in
range (0,n)
I misread the question and the Python statements. You need a +/ in front
of each expression. Thus:
In J:
+/ ((i. 10) + 2.91) % 0.4
or
+/ (2.91 + i. 10) % 0.4
or
+/ 0.4 %~ 2.91 + i. 10
You didn't ask, but the partial sums would be:
+/\ 0.4 %~ 2.91 + i. 10
On Sat, Feb 15, 2014
Perhaps it is also worth noting that we are not going to impress everyone,
nor should we want to.
J currently caters to some high powered wallstreet types, high quality
engineering types and so on. But it's hardly the only language in use for
any of those categories.
... anyways we should
My idea about that is, we need to appeal to young programmers. The more
experience people have with scalar languages, the less able they are to
learn J. The more experience they have with other languages in a class
with J, the less they need to learn J.
The application needs to be of
On Sat, Feb 15, 2014 at 12:04 PM, Lee Fallat ircsurfe...@gmail.com wrote:
Thanks for the explanation Raul.
I think I understand now that string manipulation in J is
non-trivial...
Hi Lee, this list of standard string functions may be of help:
Hi Henry and Raul,
I think that the audience being young programmers is a good start towards the
issues that Raul raises. As an additional challenge, I think that we would want
to use an example that is user friendly once their interest has been attracted.
There are some areas of J that have
Hi, I'm a novice in J and I was trying to define a noun as a multi-line text
like this:
txt =: 0 : 0
ab
cd
fg
hi
jk
ij
)
I tried first executing the first line (txt =: 0 : 0) and then pasting (ctrl v)
my text. The result was only 'ij'.
I tried then to execute the first line and press F8
Usually put it into .ijs, but you can copy it into .ijx, then select it
all in the .ijx, and do Run|Selection.
Henry Rich
On 2/15/2014 1:06 PM, Asdasd Asdasd wrote:
Hi, I'm a novice in J and I was trying to define a noun as a multi-line text
like this:
txt =: 0 : 0
ab
cd
fg
hi
jk
ij
)
I
I came across
http://waterstreetgm.org/throwing-in-the-towel-on-becomming-a-programmer/this
on HN. And
http://sdawncasey.wordpress.com/about/ in that page. Maybe these pages
might be useful to consider how newcomers take to concepts. These pages are
fascinating to me because it shows that even
I didn't use any foreigns in my version of the verb. The only point I'm
trying to make is that a: and $0 are different.
Henry Rich
On 2/15/2014 1:10 PM, Raul Miller wrote:
Does it have to be a domain error? We had an example bug involving a limit
error just a few days ago. Or are foreigns
The scope of J seems to be very constrained to mathematics.
It would be nice to use J as a system programming language!
Are there any examples of people doing these things?
What are the requirements of a system programming language these days? In
the old days (and my age is showing :-), it
Something to keep in mind is that good programs take time to write, and you
do not have to solve or understand everything all at once. Also, you need
to start somewhere and it's going to be frustrating sometimes.
On the other hand, you need to find some fun and joy in the programming,
which
Vijay,
Like another recent post to the forum, yours got mangled, somehow.
The correct link is as follows, if it survives.
http://waterstreetgm.org/throwing-in-the-towel-on-becomming-a-programmer/
Otoh, the mangled link to which I was sent, provide another intriguing,
though irrelevant blog.
Certainly,
3!:0 a: NB. boolean
1
3!:0 $0 NB. integer
4
But what we are working with here is two representations of the same value
-- most differences which do not involve foreigns should probably be
thought of as errors.
--
Raul
On Sat, Feb 15, 2014 at 1:19 PM, Henry Rich
Someone recently linked to Ron Jeffery's blog re throwing in the towel on
learning J. I developed a respect for Ron back when I hung out on Ward
Cunningham's original Wiki. Ward once raved about J, even though he thought he
had fully groked it in a weekend or so.
On Feb 15, 2014, at 1:16
I thought the first rule was: Q: When is the best time to optimize? A: Not yet!
On Feb 15, 2014, at 1:36 PM, Raul Miller rauldmil...@gmail.com wrote:
Something to keep in mind is that good programs take time to write, and you
do not have to solve or understand everything all at once. Also,
That was probably my fault.
I tried to show him how I used J, not realizing that he had a very strong
preference for a different style of coding.
:(
--
Raul
On Sat, Feb 15, 2014 at 1:44 PM, Jim Russell jimsruss...@yahoo.com wrote:
Someone recently linked to Ron Jeffery's blog re throwing
Raul, I fully agree with everything you've said.
Brian, Sorry for the link mangling. You have the correct link in your
message.
On Sat, Feb 15, 2014 at 1:49 PM, Raul Miller rauldmil...@gmail.com wrote:
That was probably my fault.
I tried to show him how I used J, not realizing that he had a
You are right, but what verb (without foreigns) would expose that
difference?
Henry Rich
On 2/15/2014 1:41 PM, Raul Miller wrote:
Certainly,
3!:0 a: NB. boolean
1
3!:0 $0 NB. integer
4
But what we are working with here is two representations of the same value
-- most
In an earlier post in the awk-like J sentences I used wrong part of
speech where adverse conjunction was correct. Yes, awk gracefully
handles bad data. And it's well worth learning if you use files. On
DOS system I install mingw or cygwin. There might be a native version
of gawk as well.
Python isn't quite so bad.
sum((x + 2.91) / 0.4 for x in range(10)) # python
185.250003
I find the sum function somewhat windows like in that some common
operations are especially easy. The reduce function was demoted from
builtin to a library in python3. Why work under these
The problem is that pasting multiple lines somehow only results in the last
one being seen in the GUI's. In the console it does work as expected.
This is a point where I think the GUI's are a bit counter intuitive.
The workarounds have been given by others.
Kind regards,
Jan-Pieter
2014-02-15
If you are using the J ide,
rather than pasting the clipboard contents in to the terminal, use the menu
command Run | Clipboard. (pasting in to a jconsole session works fine)
On Feb 16, 2014 9:05 AM, Jan-Pieter Jacobs janpieter.jac...@gmail.com
wrote:
The problem is that pasting multiple lines
Well reducing your audience by a few orders of magnitude is still reducing your
audience, even it does remain largish. :)
And as a balance to Sturgeon's Law (which is discouragingly true), I present
this quote from Ira Glass that applies to all those (even programmers!) that
dare to make
What if we leveraged the 'calculator on steroids' aspect of J?
There are lots of students who would benefit from an experimental approach to
math that comes with using J.
You show them an IDE, do a few calculations, tease them with the way you can
combine functions, and point them towards
You can enter multiline text exactly as you listed. In processing that, J
interpreted the line
text =: 0 : 0 as the instruction to read the characters input in the
following lines, including the line feeds until it received a line beginning
with ). At that point it assigned the input to the
One teaser ought to be a list of the very many powerful J features that are
unique to the language. Then a getting started intro to the JSoftware site:
the existence of, and how to search, the site, the wiki, the forums, and the
code. Them perhaps a guided tour, with links, of some of the
Is this better?
JVERSION
Engine: j701/2011-01-10/11:25
Library: 8.01.020
Qt IDE: 1.0.23/4.8.5
Platform: Win 32
Installer: j801 beta install
InstallPath: c:/users/owner/j801
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
Excellent point, I need to remember this.
Thanks,
--
Raul
On Sat, Feb 15, 2014 at 3:24 PM, robert therriault bobtherria...@mac.comwrote:
Well reducing your audience by a few orders of magnitude is still reducing
your audience, even it does remain largish. :)
And as a balance to
Repression is in the eye of the beholder?
I can point out any number of things about python that trouble me, I am not
sure that that would accomplish anything useful but we can do that in
private (or on the chat forum) if you feel like it.
Meanwhile, reduce works well with the design of J.
Brian,
I can verify your reported problems with OSX 891 JHS app launcher.
The jhs801.app has an error such that when it is launched it leaves
the red J icon bouncing in the dock until J is terminated. The server
is running and you can access it from your browser, but the bouncing
icon is very
I see two problems with that.
One is that email line-wrap garbled your url for me. Here's a workaround:
http://tinyurl.com/kkwozwq
The other is that it's not in J.
http://www.jsoftware.com/jwiki/Plot/Optionsreminds me that plot has a
contour option, so it should be doable, but I
really ought to
Looks great. good decisions on everything,
a thought for an alternative for strings would be putting
'--at start'
'and end '
this assumes that space is the fill. a unique colour for text is good for '123'
I'm not completely sure why J doesn't do that already, but if the goal is to
not
why not this - even though it uses spaces instead of semicolons for
separators. while this may not be just what you want, at least the
result is numerical and can be operated on numerically.
file=:1 2;4 5;6 7
file
1 2
4 5
6 7
+/1 file
3 9 13
or this
+/|: file
3 9 13
file2=:1 2 3;4 5
I installed alongside J6 and there was no problem. I just moved some of
my own scripts over and am rolling.
(win 7 64bit)
Don
On 14/02/2014 6:17 AM, km wrote:
I have installed J801 and modified my j701jhs icon so it calls up JHS801.
Evidence
J Http Server
i.2
0 1
Updating server
Perhaps I would use awk to format the data to J-friendly data :)
On Sat, Feb 15, 2014 at 7:33 PM, Don Kelly d...@shaw.ca wrote:
why not this - even though it uses spaces instead of semicolons for
separators. while this may not be just what you want, at least the result is
numerical and can be
]page1 =: 1 2 , 3 4 ,: 5 6
1 2
3 4
5 6
]page2 =: 2 * page1
2 4
6 8
10 12
]book1 =: page1 ,: page2
1 2
3 4
5 6
2 4
6 8
10 12
]book2 =: page2 ,: page2
2 4
6 8
10 12
2 4
6 8
10 12
]library =: book1 ,: book2
1 2
3 4
5 6
2
Some other people have said similar things on this topic, but here are
my thoughts:
Your way of thinking does need to change in order to use J. It's not an
unnatural change, or even a hard change, in the sense that the J way of
thinking is just as natural and as easy as the Python (or other
Windows AIO installers are updated to include a shortcut of
JHS in program group menu.
--
regards,
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
61 matches
Mail list logo