Re: [Jgeneral] FW: tutorial
Roelof I would do my own lab (Studio, Author) as I did. Very easy. The presentation can then be tailored to the audience and based on your own experience. Select carefully the minimum stuff that you want to pass. You will probably have prepared too much, if the audience asks questions during your talk. Don't forget to define at least one invertible verb. Then tell your audience that the system can define its inverse: yes, you don't need to write the program! Ain't that for us, lazy people? This will impress an audience of programmers. They will remember. Example: from system\main\convert.ijs and Chris Burke's article in Vector 12-2: dfh=: 16 #. '0123456789ABCDEF' i. ] dfh'FF' 255 dfh inv 255NB. no need to define the program! FF hfd=: dfh inv hex2 =: . (dfh :. hfd) 'FF' - hex2 '22' DD ~ Gilles -- Original Message --- From: Björn Helgason [EMAIL PROTECTED] To: General forum general@jsoftware.com Sent: Wed, 20 Sep 2006 05:40:03 + Subject: Re: [Jgeneral] FW: tutorial And while you are at it Try the Studio/Demos... part You can spend hours there ... --- End of Original Message --- -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jgeneral] Erasing locales in flwor.ijs
Erasing locales in flwor.ijs from http://www.jsoftware.com/jwiki/DB/Flwor#flwor.ijs destroy is 3 : 0 coerase schema codestroy'' ) Is coerase schema intended to erase the numbered locales of tables? That sentence does not do it. schema +-+-+-+--+---+ |J|P|S|SP|SPJ| +-+-+-+--+---+ .schema +--+--+--+--+--+ |41|42|43|44|45| +--+--+--+--+--+ Should it not be coerase . schema ? Thanks, Oleg, for your nice Wiki pages, examples and add-ons. Do you still have time to rest? ~Gilles -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jgeneral] Canada and free software
Canada has a Request for Information (RFI) related to No-Charge Licensed Software (typically referred to as Free and Open Source Software or FOSS and also applicable to freeware). http://www.merx.com/English/SUPPLIER_Menu.Asp?WCE=ShowTAB=1PORTAL=MERXState=7id=PW-%24%24EE-015-18733FED_ONLY=0hcode=Au64x22Vv9pVNE3IKtFp3Q%3d%3d Closing 2009-02-19, with a possibility of being read if submitted later. The objective is to develop internal guidelines related to such software. ~ Gilles -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Teaching
On using primitive names, Alex wrote: there are dis-advantages and the most glaring one is the loss of tacit programming. Really? plus times minus plus times minus (plus times minus)f. + * - 5(plus times minus)f. 4 9 5(plus times minus) 4 9 That said, I see other disadvantages, one being that there is no J literature using those primitive names. They should be only a short-term softener for exposure. Learning the glyphs is not that difficult; always have a copy of the vocabulary sheet available; have three of them in your house! ~ Gilles -- Original Message --- From: Björn Helgason gos...@gmail.com To: General forum general@jsoftware.com Sent: Mon, 23 Feb 2009 07:16:22 + Subject: Re: [Jgeneral] Teaching Very good! I guess we need more of such easy introductions. 2009/2/23 Alex Rufon alex_ru...@ist-systems.com Hi Guys, I would just like to suggest as looking at this in a different perspective. I have a few/limited success in teaching J using the standard symbols but I do have a better success in teaching J with the primitives add-on. Of course the there are dis-advantages and the most glaring one is the loss of tacit programming. foo=: monad define NB. Look at the following while turning off your J knowledge NB. Create 2 copies of a 10 by 5 integer data=. 2 copy integers 10, 5 NB. Create a new command which would sum a table sumtable=. plus table NB. Get the primary key, first column primarykey=. 1 take rank 1 data NB. Remove the primary key data=. drop rank 1 data NB. get the total value by each key sumdata=. (nub primarykey) stitch primarykey sumtable key data ) fubar=: 3 : 0 data=. 2 #i. 10 5 primarykey=. 1 {.1 data sumdata=. (~. primarykey),. primarykey +/ /. }. 1 data ) But if you would take into consideration me teaching 10 programmers J using primitives add-on and all of them remembered a few of the commands in comparison to teaching 10 programmers using J notation and 8 to 9 of the students walking away confused. So if your objective is to teach, I would start them with general concepts and use the primitives addon then later on ... for advance topics, you slowly introduce the actually J notation. It works for me. I believe somebody else here has done this too (just forgot who he is). r/Alex -- For information about J forums see http://www.jsoftware.com/forums.htm -- Björn Helgason, Verkfræðingur ... --- End of Original Message --- -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Existe-t-il quelque documen tation J en fran ç ais?
To my knowledge, there is no current J documentation in French. Essentiellement cela n'existe pas présentement. Vers 1993-94, Alain Delmotte a traduit le Manuel _J Introduction Dictionary_ et il l'a publié; je lui en ai acheté un exemplaire. Cependant cette traduction n'a pas suivi l'évolution et n'a pas été republiée; en 1998, il m'a confirmé ne pas vouloir poursuivre. Je n'arrive pas à trouver mon exemplaire en ce moment (je l'ai peut-être prêté!). Alain Delmotte fut président du Comité de programme de la conférence APL94 tenue en Belgique. Vous pouvez tenter de le joindre par la toile en partant de l'information suivante: http://www.math.uwaterloo.ca/apl_archives/apl/conference/apl94/program.part.1 Vous pouvez aussi demander à Michel Dumontier qui je crois réside dans la région parisienne; son adresse est dans ce message http://www.jsoftware.com/pipermail/programming/2009-February/013772.html . Le dictionnaire J comporte plusieurs termes techniques très précis; Alain a trouvé de bons équivalents. Toutefois pour consulter l'abondante documentation en anglais, il faut se résoudre à comprendre quelques mots de Shakespeare. De plus, la communauté est petite, même minuscule rendant l'effort de traduction moins attrayant. Enfin laissez-moi connaître vos découvertes si vous en faites. ~ Gilles à Québec -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] J on the Palm Pre
However it may come someday ... On May 25, in http://www.jsoftware.com/pipermail/general/2009-May/033013.html , Eric wrote: We don't currently build a J Engine for that platform (Linux Arm). The next release will take some steps that will make it easier for us to support a broader range of platforms in the future. ~ Gilles -- Original Message --- From: neit...@gaertner.de To: general@jsoftware.com Sent: Sun, 28 Jun 2009 11:30:19 GMT Subject: Re: [Jgeneral] J on the Palm Pre skip Looking on the J software download pages, there is a J for Linux, and a skip J for the pocket PC, which I believe is an ARM machine. Which of skip these would be the one I should try for the Palm Pre, which is an ARM skip processor, with a Linux-based OS? None of those will run. Operating system AND pProcessor architecture must be matching, and Jsoftware doesn't provide a J for Linux-on-ARM. Martin -- For information about J forums see http://www.jsoftware.com/forums.htm --- End of Original Message --- -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] J on Pocket PC (was:Array Based Languages)
Instructions are given on http://www.jsoftware.com/stable.htm . Please report where you stumble so that someone can diagnose and help. ~ Gilles -- Original Message --- From: DIETER ENSSLEN ultrarun...@shaw.ca To: General forum general@jsoftware.com Cc: General forum general@jsoftware.com Sent: Tue, 04 Aug 2009 10:24:33 -0600 Subject: Re: [Jgeneral] Array Based Languages what is the trick of getting J into my (hp ipaq a210) pocket pc?? thanks -- For information about J forums see http://www.jsoftware.com/forums.htm --- End of Original Message --- -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] GB_Flip RNG seed
From: Jose Mario Quintana josemarioquint...@2bestsystems.com The authors of the Mersenne Twister algorithm (which has a larger period than GB_FLIP by many orders of magnitud) have warned for a long time about using directly these kind of random number generators for encrypting purposes (see http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/efaq.html). For more than a decade, your desktop has had an electronic RNG based on thermal noise. Here is an intro (not very useful): http://www.intel.com/assets/pdf/manual/298029.pdf Your OS will let you use it. Linux reference: http://www.kernel.org/doc/Documentation/hw_random.txt Note that I never used it. ~ Gilles -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Library loading failed
Heinz See the following thread: http://www.jsoftware.com/pipermail/general/2009-August/033252.html ~ Gilles -- Original Message --- From: Dr. Heinz Schild heinz.sch...@schild-partner.com To: general@jsoftware.com Sent: Sun, 6 Jun 2010 16:06:19 +0200 Subject: [Jgeneral] Library loading failed After moving the J-folder to the Applications folder on my MacBook OS X version 10.6.3 and clicking on the red J-icon I get the message „Load Library /Applications/j602/bin/libjnative.jnlib failed“. Please advise how to overcome that problem. Regard Heinz Schild -- For information about J forums see http://www.jsoftware.com/forums.htm --- End of Original Message --- -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Will J run on plug computers?
On May 25, 2009, Eric Iverson wrote: We don't currently build a J Engine for that platform (Linux Arm). The next release will take some steps that will make it easier for us to support a broader range of platforms in the future. On Fri, May 22, 2009 at 8:26 AM, Devon McCormick devonmcc at gmail.com wrote: These (http://www.plugcomputer.org/index.php/home) are small, low-power devices that run Linux on an ARM-compatible chip. -- Devon McCormick, CFA Is it still an objective of Jsoftware to support ARM-compatible chips? The Nokia N900 is a portable computer and a phone, somewhat similar in design to an Apple iPhone. But it is an _open_ Linux machine. Although not officially available in Canada, it is nevertheless easy to order one south of the border. The Nokia N900 also uses an ARM-compatible chip. http://en.wikipedia.org/wiki/Nokia_N900. http://maemo.nokia.com/n900/ ~ Gilles -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Keyboard shortcuts
I agree with this too. If a newcomer loses his session accidentally by hitting Esc instead of F1, there is a big chance he will go away at the next hurdle. And the probability of that next hurdle is 100%! A recent newcomer lost his session and wrote about it (xprogramming.com); real bad publicity for J. ~ Gilles -- Original Message --- From: Brian Schott schott.br...@gmail.com To: General forum general@jsoftware.com Sent: Tue, 8 Feb 2011 18:48:45 -0500 Subject: Re: [Jgeneral] Keyboard shortcuts I think I agree totally with Ric. To clarify this, I find it terrible when in JGTK the Esc key loses all my steps in jijx, because I do not always work with an ijs page. So it is not enough for me for an Esc to only look for unsaved ijs pages; an Esc needs to check for a nonempty ijx, also. On the other hand, I am happy for the Esc key to dismiss separate plot or grid windows, for example. On Tue, Feb 8, 2011 at 2:37 PM, Tikkanz tikk...@gmail.com wrote: Yes, before we make a decision it would be useful to know if there is anyone who likes Esc to close the session (with or without confirm). Personally I like it for dismissing dialogs (e.g. File|Open, Find in Files etc) but don't think it should close an application. IOW, if noone feels strongly that the option to close the J Gtk IDE using Esc is needed, then EscClose isn't needed. If there are supporters then I'd support the EscClose (default 0) proposal. I note that when I'm working on a problem I can have significant amounts of work stored in the Term session that aren't captured by making sure that scripts are saved. -- (B=)... --- End of Original Message --- -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jgeneral] Font size in JHS
Eric, Is it really required to specify an ABSOLUTE font size? css supports RELATIVE font sizes (http://websitetips.com/css/typography/). Is it to obtain an equivalent look on various browsers? The font size should be the area of THE USER, not the designer. Let me adjust it relative to MY preferences. I made the same recommendation years ago to JSoftware. ~ Gilles -- Original Message --- From: Eric Iverson eric.b.iver...@gmail.com To: General forum general@jsoftware.com Sent: Thu, 10 Feb 2011 12:06:28 -0500 Subject: Re: [Jgeneral] JHS configuration jhelp Config jump at the top of the page does in fact jump to the very short Config section. As it is near the bottom of the page, most browser only scroll until it is visible so Config isn't at the top of the page unlike other jumps. This can be confusing, but don't see what to do about it. File jhs_default.ijs requires careful reading. In most cases you want to copy jhs_default.ijs to be jhs.ijs in the same folder. Then edit it as required. This is the place to change only the nouns listed such as PORT or LHOK. There isn't currently a clean way to change things such as font size. Changes for all users is not to bad, but changes just for your particular platform of browser is more difficult. Run sentence: 'PC_' names_jhs_ 0 NB. platform configuration Experiment with changes. PC_FONTSIZE_jhs_=: '24px' You need to reload the page (esc then j) to see the change. You could add these to your startup ijs file if you want. For font size I find the normal browser (ctrl+- or ctrl+=) to be pretty handy. On Thu, Feb 10, 2011 at 11:10 AM, Brian Schott schott.br...@gmail.comwrote: Having found the following two links, I am having trouble executing some changes. ~addons/ide/jhs/config/jhs_default.ijs ~system/util/configure.ijs First a comment on a likely error. http://127.0.0.1:65001/jhelp#config is one of the main links on the JHS help page and it takes the user to the JUM config instructions, not to JHS config instructions. I cannot find any JHS config instructions on that page. I believe the user should be instructed how to make JHS configurations and that main link should be destroyed or should refer to a JHS configure. jhs_default.ijs is very careful to say it should not be altered and instead copied versions should be used. How should configure.ijs be used? Should it be copied, too. One change I would like to explore is increasing the font sizes of the jhs windows, but I do not know how. I have Elizabeth Castro's book HTML for the World Wide Web 5th edn, which tells me a lot about CSS but I don't quite see how or where to create a style sheet for this purpose. Another question is what is the meaning of the _nox option in Browser_nox? I am unfamiliar with this. Does it mean no unix? And what does that mean for someone like me on a Mac? Thx, -- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm --- End of Original Message --- -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Interpreting a J script.
linuq@TosSaA70 ~/j701/bin $ ./jconsole -js a=.23 b=.3 echo a*b exit 0 69 linuq@TosSaA70 ~/j701/bin $ See also: http://www.jsoftware.com/docs/help701/user/cmdline.htm The last example of the above page is incorrect. Someone to correct the User Manual? Chris? When reading the User Manual, it would be very useful to see the path nodes leading to the current page and thus to be able to navigate. Most sites provide this. ~ Gilles -- Original Message --- From: Raul Miller rauldmil...@gmail.com To: General forum general@jsoftware.com Cc: peasth...@shaw.ca Sent: Mon, 12 Dec 2011 17:03:09 -0500 Subject: Re: [Jgeneral] Interpreting a J script. You are probably looking for http://www.jsoftware.com/docs/help701/user/hashbang.htm -- Raul On Mon, Dec 12, 2011 at 3:45 PM, peasth...@shaw.ca wrote: I've installed j701a_linux in Debian Squeeze and again considered the question of interpreting a J script or text. Suppose the file ~/t contains this text. 2+3 How can interpretation be invoked with a linux command? Something such as this for example. peter@joule:~$ ~/j701/bin/jconsole ~/t Appears to fail and I've hunted unsuccessfully in http://www.jsoftware.com/ for an answer. Thanks, ... Peter E. -- New telephone 1 360 639 0202. Old telephone 1 360 450 2132. bcc: peasthope at shaw.ca Work http://carnot.yi.org/;. http://members.shaw.ca/peasthope/index.html#Itinerary;. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm --- End of Original Message --- -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jgeneral] input log replica
My session blew on my nose. I would like to reproduce the steps of my session. With J7+gtkide, there is an input log. NB. if inputlog preserved between sessions KeepInputLog=: 1 Where is it on file? How often is it written to file? Is there a parm for this? When a line is recalled, the original line is removed. Can I avoid this? In general, how do I get a replica (unretouched) of a session, including the very last line? with emacs? ~ Gilles -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] input log replica
This works perfectly! Thanks, Devon. [Not knowing about readtext, I searched the forums and found your thread of a year ago.] I haven't given up on emacs, just postponed. ~ Gilles -- Original Message --- From: Devon McCormick devon...@gmail.com To: General forum general@jsoftware.com Sent: Thu, 15 Mar 2012 10:39:00 -0400 Subject: Re: [Jgeneral] input log replica Yes, once again, emacs saves the day. However, if you're still reluctant to convert to that particular religion, you may want to use a function key definition which will write your session log to a file. If you select Edit/Configure/Function Keys and add the following line to the config file that comes up, you'll have an F3 key to do this. 3,0,Save session log file, 0!:1 '(];(readtext_0_) fwrites ]) ''~temp/JGTK'',(;(_4,5$_2){..(''00'',[: :[:.0.5+]).6!:0),''.txt''' (restart your session for it to take effect) This won't help you in the case where you unexpectedly lose your session - you might still have to be dragged, kicking and screaming, into the realm of emacs for that. On Wed, Mar 14, 2012 at 6:50 PM, Gilles Kirouac gkiro...@riq.qc.ca wrote: My session blew on my nose. I would like to reproduce the steps of my session. With J7+gtkide, there is an input log. NB. if inputlog preserved between sessions KeepInputLog=: 1 Where is it on file? How often is it written to file? Is there a parm for this? When a line is recalled, the original line is removed. Can I avoid this? In general, how do I get a replica (unretouched) of a session, including the very last line? with emacs? ~ Gilles -- For information about J forums see http://www.jsoftware.com/forums.htm -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm --- End of Original Message --- -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jgeneral] J6 Require gtkwd; scripts in duplicate
JVERSION NB.MS-Win Installer: j602a_win.exe Engine: j602/2008-03-03/16:45 Library: 6.02.051 13!:0]1 NB. Enable suspension load'~addons\gui\util\cobrowse.ijs' |file name error: script | 0!:0 y[4!:55'y' y C:\Documents and Settings\GK\j602\gtkwd C:\Documents and Settings\GK\j602\system\main\coutil.ijs C:\Documents and Settings\GK\j602\system\extras\util\scripdoc.ijs wd +---+ ¦11¦!:¦0¦ +---+ Why the need for (gtk)wd emulation? This is MS-Win and wd is defined. Besides, (still under J6+MS-Win) there are two csv.ijs in those directories: C:\Documents and Settings\GK\j602\addons\tables\csv C:\Documents and Settings\GK\j602\system\packages\files They are not equivalent! different contents - source,target: csv.ijs 30-May-2010 23:03:31 3191 csv.ijs 25-Feb-2012 18:22:09 1338 Confusing! Which one should my application require? In the addon one, I read: require 'tables/dsv'. What is its meaning? To require all scripts in that directory and/or subds or what? In general, it would help if Package Manager would, as is done in Linux, find and propose to install dependencies, isn't it? It is not easy to diagnose: |file name error: script | 0!:0 y[4!:55'y' specially when suspension is not enabled by default and the value of y is undefined. Should I report such problems? Do we still care about J6? I hope we do. ~ Gilles -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] J6 Require gtkwd; scripts in duplicate
Thanks again Bill. Once more I had not restarted J after updating! Why not add a reminder at the end of the log? ~ Gilles -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] How to advance chapters in labs
My question should more correctly phrased as how to select chapters in labs. Hi Chen It's unfortunate that this option has been left out of J7. The only short term remedy I see would be to use J version 6. Only a few labs use this functionality, mostly those written by Ken Iverson himself, the creator of J. ~ Gilles -- For information about J forums see http://www.jsoftware.com/forums.htm