Re: [Jgeneral] J602 image3
I have a fairly recent installation of J6 (64-bit) under Windows 7 that gives me no problem loading image3. What are the particulars of your set-up and what does the error look like? On Mon, Jun 11, 2012 at 10:36 AM, Cliff Reiter reit...@lafayette.edu wrote: Hi, Doing a clean install of J6.02, doing a base update, and installing the image3 addon produces a control error when loading image3.ijs. Very frustrating to not be able to give my students a reasonable way to install the addon. Best, Cliff -- Clifford A. Reiter Lafayette College, Easton, PA 18042 http://webbox.lafayette.edu/~reiterc/ -- 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
Re: [Jgeneral] J602 image3
Also, have you tried the J7 versions of image modules? They require some code changes to the calling routines - one big difference I noticed is that readimg_jgtk_ returns an M x N array of integers 256^3 instead of an M x N x 3. On Mon, Jun 11, 2012 at 10:43 AM, Devon McCormick devon...@gmail.com wrote: I have a fairly recent installation of J6 (64-bit) under Windows 7 that gives me no problem loading image3. What are the particulars of your set-up and what does the error look like? On Mon, Jun 11, 2012 at 10:36 AM, Cliff Reiter reit...@lafayette.edu wrote: Hi, Doing a clean install of J6.02, doing a base update, and installing the image3 addon produces a control error when loading image3.ijs. Very frustrating to not be able to give my students a reasonable way to install the addon. Best, Cliff -- Clifford A. Reiter Lafayette College, Easton, PA 18042 http://webbox.lafayette.edu/~reiterc/ -- For information about J forums see http://www.jsoftware.com/forums.htm -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Accessing the dictionary
Hi - glad to hear you're excited about this. You probably have a local copy of all the documentation, including the dictionary, on your machine if you've installed J and its packages. I don't know where things go on a Mac, but on my PC, I can find the vocabulary page here (for J7 under Windows 7): file:///D:/Program%20Files%20%28x86%29/j64-701/addons/docs/help/dictionary/vocabul.htm . You can search for this file vocabul.htm and browse to it as it's a good starting point for all the elements of the language. You can also find this online at http://www.jsoftware.com/help/dictionary/vocabul.htm . Hope this helps, Devon On Sun, May 13, 2012 at 1:55 PM, jake wilson jakewilso...@gmail.com wrote: Hello! I am new to J but not new to programming, and I am very excited about learning J. I am reading the Primer, and I have a problem about the dictionary. I have a Mac laptop, but have windows 7 installed on it. Due to this, my function keys (F1, F2, etc) don't work, they are just used for settings like brightness, volume, etc. Is there a way I can access the J dictionary without typing F1? Or if there isn't, does anyone know a driver to install to allow me to use function keys? Thanks a lot! -- 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
Re: [Jgeneral] How do I get user input?
Hi - this is a recurring question but the answer keeps changing as Raul indicated. The extensive answer here - http://www.jsoftware.com/jwiki/RicSherlock/Temp/InteractivePrompt - is out of date with J7, so I attempted to figure out how to update it. It looks like you can do this from the J7 GTK interface: load '~addons/gui/gtkwd/jinput.ijs' input_result=: 3 : 'RESPONSE=: y' create_jinput_ 'Hi to create a window with the prompt Hi and return the result in the global RESPONSE. Unfortunately, this breaks silently on the try. line in a_ok_button_jinput_ because COCREATOR is not defined; this is supposed to be a callback to the user-defined input_result verb (as in the example shown above) in the namespace that created the prompt. My klugy fix for it is to re-define a_ok_button_jinput_ as follows - by hard-coding the base namespace - then ensuring that you run from this (which is the default) namespace: a_ok_button_jinput_=: 3 : 0 wd 'pclose' try. input_result_base_ edit catch. end. destroy'' ) So, after loading jinput.ijs, re-defining as shown and creating input_result as shown, when you run create_jinput_ 'Hi' you'll get a (character vector) variable RESPONSE with the user's input. On Mon, May 7, 2012 at 10:58 AM, Raul Miller rauldmil...@gmail.com wrote: On Mon, May 7, 2012 at 10:20 AM, James Bragg jsbr...@att.net wrote: First, I'm really enjoying learning J. That is good to hear. Is there a prompt verb? Would get input be a prompt verb? Is it possible to get input from a user in the J Term gtk window or J console and assign it to a variable? There is, but it's ... it's not exactly deprecated, but neglected might be accurate. For most purposes, the J command line is the best prompt verb. For many other purposes, you should be building a UI rather than a command line interface. If you are going to stick to a command line interface, the J command line is usually the best tool for the job. This leaves a neglected niche for the spurious cases where you want a prompt. In j6.02, this worked in the GUI and I think worked in jconsole on linux/mac (but not in jconsole on windows): require'misc' prompt '$ ' $ 1 2 3 1 2 3 In J7.01, with its various front ends for jconsole (including the browser, via jhs) I do not think that this mechanism is supported robustly. (But I have not kept up to date on everything that's going on in J7.01 so maybe that aspect has been built out.) FYI, -- Raul -- 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
Re: [Jgeneral] live stream conference
On a similar topic - will there be any kind of print proceedings available of talks? Maybe an electronic-only version after the conference? You'd have to ask speakers to provide an e-copy. It would be nice if people provided editable ones for proofing but less work to provide access to PDFs (+ text for script files) on the J wiki. On Wed, Apr 18, 2012 at 5:34 PM, Eric Iverson eric.b.iver...@gmail.com wrote: I doubt there will be live streaming of the conference. There is some chance that there will be some recording and that will be made available after the conference as appropriate. On Wed, Apr 18, 2012 at 11:04 AM, Brian Schott schott.br...@gmail.com wrote: Having just read about the live streaming device below, and noticing that the talks at the conference are not in parallel, makes me wonder if there is any chance jsoftware would offer live streaming of the talks? I'd pay US$50 for that. http://www.engadget.com/2012/04/17/livestream-broadcaster-hands-on/ -- (B=) -my sig Brian Schott -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
Re: [Jgeneral] live stream conference
Wandering a bit off-topic A major problem with doing a good job of putting things up on the wiki is the incompatibility of an easy presentation format, like a word document, versus a wiki format. I'm currently reviving the SIGAPL web-page by adding links to relevant articles and I shamelessly put a few of my own J-related ones in the mix. I'm fond of the presentation I did for the functional programming Meetup (http://www.jsoftware.com/jwiki/DevonMcCormick/FunctionalJ) last year but what I have up is 30 JPGs. The original is a Word doc and the JPGs are simply screenshots of that - such is my aversion to PowerPoint. I think it looks OK but the JPGs are opaque to web searches (and there's some image degradation due to I-don't-know-what) - I really need to put up the text of the material. But that's a lot of work, so I haven't done it. /Wandering a bit off-topic If anyone has good suggestions for this - specifically Word to wiki - I'd love to hear it and it would make it more likely that J conference talks will end up on the wiki in a suitable format. I've done cut-and-paste from Word into GUI mode on the wiki. It kind-of works, mostly, but leaves a horrific, uneditable mess in wikispace if you have any tables. This is the best I've found but it's not really very good, though it may be good enough. On Wed, Apr 18, 2012 at 6:54 PM, Eric Iverson eric.b.iver...@gmail.com wrote: I don't think we'll organize anything formally before the conference. When we work out the detailed agenda for the conference we will encourage speakers to have relevant material to put up at the conference wiki after the fact. The success of that will depend on the energies of the speakers and the community. On Wed, Apr 18, 2012 at 5:40 PM, Devon McCormick devon...@gmail.com wrote: On a similar topic - will there be any kind of print proceedings available of talks? Maybe an electronic-only version after the conference? You'd have to ask speakers to provide an e-copy. It would be nice if people provided editable ones for proofing but less work to provide access to PDFs (+ text for script files) on the J wiki. On Wed, Apr 18, 2012 at 5:34 PM, Eric Iverson eric.b.iver...@gmail.com wrote: I doubt there will be live streaming of the conference. There is some chance that there will be some recording and that will be made available after the conference as appropriate. On Wed, Apr 18, 2012 at 11:04 AM, Brian Schott schott.br...@gmail.com wrote: Having just read about the live streaming device below, and noticing that the talks at the conference are not in parallel, makes me wonder if there is any chance jsoftware would offer live streaming of the talks? I'd pay US$50 for that. http://www.engadget.com/2012/04/17/livestream-broadcaster-hands-on/ -- (B=) -my sig Brian Schott -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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 -- 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
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
[Jgeneral] NYCJUG meeting materials for tonight + tele-conference info on J wiki...
...at http://www.jsoftware.com/jwiki/NYCJUG/2012-03-14 -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] J7 debugger
I usually just use the command-line debugger commands: 13!:0]1Debugging on 13!:0]0Debugging off 13!:3 'fnc 1 2 3' Set stops in (3 : 0)fnc at lines 1, 2, and 3 13!:3 'fnc : 1 2 3' Set stops in dyadic fnc at lines 1, 2, 3 13!:1 '' Show stack 13!:4 '' Resume execution at current line 13!:6 '' Cut back stack? On Wed, Mar 14, 2012 at 12:04 PM, Gilles Kirouac gkiro...@riq.qc.ca wrote: I am starting with J7-32 under Linux. Is the debugger available in J7? With the gtkide menus, I do not see the usual debugger offer with short-cut Ctl-k. Why not? BTW, I also note that the menu items which deploy a dialog do not follow the convention of ... at the end. Why not? If I type Ctl-k, I get callback run error: sv_key_press_0_ |file name error: dbgtk | 0!:0jpath'~addons/ide/gtk/debugs.ijs' Where should I find this script? In an addon? which one? I checked the Not installed packages, but could not find a related description. JVERSION Engine: j701/2011-01-10/11:25 Library: 7.01.059 Platform: Linux 32 Installer: j701a_linux32.sh InstallPath: /home/linuq/j701 And this time I did restart J after my last upgrade! ~ 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
Re: [Jgeneral] Setting up emacs
I'm not sure how much help I'll be with the mode file but I can answer your last question and offer a couple of tips for running J under emacs. I like emacs primarily because I use it a lot and my fingers know the commands well and it's handy to work in an integrated environment: I also have a command-line session running under the same instance of emacs and I can do things like run an ftp session under that same instance as well. This makes it easy to manipulate data in different environments and move it between them. This is particularly handy when I have a data file - probably tab-delimited - and I need to make a few adjustments to it - in preparation to reading it into J as a suitable array - or check details of it if I'm getting funny results, e.g. if there's an unusual numeric format for a few items or something is mis-spelled or otherwise incorrect. Also, I have a few little macros to do common J tasks. One of the handiest is one I call time-this (shown below): it wraps the expression at the cursor in the timing foreign 6:!2 'expression', doubling any single quotes in the expression when it puts quotes around it. One thing to be aware of using J under emacs is that it may garble foreigns recalled from the entry buffer because it will attempt function name completion which picks up !: and interprets this as something to do with regexps. I use the following script (courtesy of Raul?) to turn off this feature in a J session: ;* disable-substitution-on-recall.el: prevent unwanted interpretation of !: in J. (defun disable-substitution-on-recall() Avoid unwanted interpretation of '!:' in J. (interactive) ; Necessary to be able to run from interactive key sequence? (setq comint-input-autoexpand nil) (setq comint-dynamic-complete-functions nil)) ;EG NB. (disable-substitution-on-recall) [C-x C-e] (fset 'time-this-line [?\C-k ?\C-x ?b ?* ?t ?i ?m ?e ?l ?i ?n ?e return ?\C-y ?\C-a escape ?r ?' return ?' ?' return ?\C-e ?' ?\C-a ?6 ?! ?: ?2 ? ?' ?\C-a ?\C-k ?\C-x ?k return ?\C-y]) On Thu, Mar 8, 2012 at 10:54 PM, Gilles Kirouac gkiro...@riq.qc.ca wrote: emacs aficionados I met a student willing to have a look at J. He is familiar with emacs and I want to meet him there. I tried a setup of emacs with J602 for Linux with partial success after reading http://www.jsoftware.com/jwiki/Guides/Syntax%20Coloring http://www.jsoftware.com/help/user/emacs.htm both of which refer to http://j-mode.sourceforge.net/ However that last text with its j-mode.el file are for J5.03! Things have changed! Where are UP-TO-DATE instructions with a current j-mode.el file? What is the equivalent of ~/j504/jw now (user manual)? BTW, why do you like the emacs environment? for the power of its editor? ~ 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
Re: [Jgeneral] Setting up emacs
If it wasn't you, it might have been Joey Tuttle. On Fri, Mar 9, 2012 at 12:17 PM, Raul Miller rauldmil...@gmail.com wrote: On Fri, Mar 9, 2012 at 11:18 AM, Devon McCormick devon...@gmail.com wrote: something to do with regexps. I use the following script (courtesy of Raul?) to turn off this feature in a J session: I doubt that was me, but it's not impossible. FYI, -- Raul -- 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
Re: [Jgeneral] Setting up emacs
OK - then I forget who gave me that useful bit o'lisp. On Fri, Mar 9, 2012 at 5:04 PM, Joey K Tuttle j...@qued.com wrote: Nope, not me, sorry... On 2012/03/09 10:15 , Devon McCormick wrote: If it wasn't you, it might have been Joey Tuttle. On Fri, Mar 9, 2012 at 12:17 PM, Raul Millerrauldmil...@gmail.com wrote: On Fri, Mar 9, 2012 at 11:18 AM, Devon McCormickdevon...@gmail.com wrote: something to do with regexps. I use the following script (courtesy of Raul?) to turn off this feature in a J session: I doubt that was me, but it's not impossible. FYI, -- Raul -- 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
[Jgeneral] Why does 64-bit J install in Program Files (x86)?
According to Rami, Microsoft Answers Support Engineer at http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/program-files-x86-and-program-files/b71d79fe-cd9c-4a23-a114-aa397946d621, Program files (x86) provides you with the location for 32bit software, and the Program files folder is the one for your 64bit software. Shouldn't j64-602 and j64-701 install into the Program Files directory? -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jgeneral] Esc A does not advance lab in JHS
I'm experimenting with JHS and attempting to run one of the labs but the command that's supposed to advance it - ESC A - has no effect except printing A in the session. Does anyone know the name of the advance command that this is supposed to invoke? I'm running this under Firefox. Thanks, Devon -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Esc A does not advance lab in JHS
Yes - thanks. On Tue, Jan 24, 2012 at 4:11 PM, Lettow, Kenneth klet...@thomasnet.comwrote: Hey Devon, Try (Ctrl .) I just tried it on firefox and it advances the lab. Ken -Original Message- From: general-boun...@jsoftware.com [mailto:general-boun...@jsoftware.com] On Behalf Of Devon McCormick Sent: Tuesday, January 24, 2012 4:02 PM To: J-general forum Subject: [Jgeneral] Esc A does not advance lab in JHS I'm experimenting with JHS and attempting to run one of the labs but the command that's supposed to advance it - ESC A - has no effect except printing A in the session. Does anyone know the name of the advance command that this is supposed to invoke? I'm running this under Firefox. Thanks, Devon -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
Re: [Jgeneral] Data from csv files
It should be but right now it's just something I swiped from Dan Bron: whereDefined=: 3 : '(4!:4{.;:y) {:: (4!:3),''Source of definition not found for '',''.'',~y' On Mon, Jan 9, 2012 at 8:28 AM, Tom Szczesny tav...@gmail.com wrote: I'm guessing thatwhereDefinedis in one of the other addons. Which one? whereDefined 'writecsv' |value error: whereDefined | whereDefined'writecsv' On Sun, Jan 8, 2012 at 10:20 PM, Devon McCormick devon...@gmail.com wrote: Yes - I see that if I load the addons version, it appears to used the dsv modules I've been using explicitly of late. On Sun, Jan 8, 2012 at 10:14 PM, Ric Sherlock tikk...@gmail.com wrote: Looks like you have the tables/csv addon installed but I suspect that to load it you did: load 'csv' NB. or require By default this will load the old version csv code from ~system\packages\files\csv.ijs PUBLIC_j_{~ ('csv') (i.~ {.1) PUBLIC_j_ +---+--+ |csv|~system\packages\files\csv.ijs| +---+--+ You can make sure that you are loading the addon version like this: load 'tables/csv' If you want to to force a J602 installation to use the addon version instead of the old version when you use ( load 'csv' ) then the Installation section of http://www.jsoftware.com/jwiki/Addons/tables/csv explains how to do that. On Mon, Jan 9, 2012 at 3:16 PM, Devon McCormick devon...@gmail.com wrote: In J6, I get this: 'search' jpkg 'csv' +--+-+-++ |tables/csv|1.0.7|1.0.7|Read and write CSV files and strings| +--+-+-++ |tables/csvedit|0.0.6|0.0.6|Grid based editor for CSV files | +--+-+-++ whereDefined 'writecsv' C:\Program Files\j602\system\packages\files\csv.ijs On Tue, Jan 3, 2012 at 7:56 PM, Ric Sherlock tikk...@gmail.com wrote: Interesting. You get different results to me. Are you using the tables/csv addon and if so which version? load 'pacman' 'search' jpkgv 'csv' ┌──┬─┬─┬┐ │tables/csv│1.0.7│1.0.7│Read and write CSV files and strings│ └──┴─┴─┴┘ load 'tables/csv' (i. 5 5) writecsv '~temp/foo.csv' 70 fread '~temp/foo.csv' 0,1,2,3,4 5,6,7,8,9 10,11,12,13,14 15,16,17,18,19 20,21,22,23,24 On Wed, Jan 4, 2012 at 1:43 PM, Devon McCormick devon...@gmail.com wrote: (i. 5 5) writecsv 'foo.csv' 120 fread 'foo.csv' 0,1,2,3,4 5,6,7,8,9 10,11,12,13,14 15,16,17,18,19 20,21,22,23,24 Also, I was long under the impression that literal data in a csv file should be quoted but apparently this is not the case. It's hard to say for sure as there is no real spec for this format, and I don't remember what disabused me of this notion (perhaps taking the behavior of Excel as the paradigm?) On Tue, Jan 3, 2012 at 6:35 PM, Ric Sherlock tikk...@gmail.com wrote: Note that the tables/csv addon is just a special case of the tables/dsv addon that sets the delimiters. From memory the tables/csv addon will quote literal data but not numeric data. Of course that means that numbers in literal form will end up being quoted. When you refer to spurious double-quotes, are there occasions where quotes appear that they shouldn't? On Wed, Jan 4, 2012 at 9:59 AM, Devon McCormick devon...@gmail.com wrote: At some of the recent NYCJUGs, Ken Lettow pointed me to the dsv versions of this which are more general (Delimiter-Separated Values). I use these now as I usually prefer tab-delimited files and want to avoid the spurious double-quotes the csv modules put around data. See http://www.jsoftware.com/jwiki/Addons/tables/dsv?highlight=%28dsv%29. On Mon, Jan 2, 2012 at 12:59 PM, Tom Szczesny tav...@gmail.com wrote: When I tryrequire 'csv' I get not found: /home/tom/jgplsrc/j/addons/tables/csv/csv.ijs However, I can get to http://www.jsoftware.com/jwiki/Addons I should be able to get what I need from there. Thanks. On Mon, Jan 2, 2012 at 12:38 PM, Raul Miller rauldmil...@gmail.com wrote: Try this: require 'csv' T=: readcsv '/home/tom/t.csv' -- Raul On Mon, Jan 2, 2012 at 12:22 PM, Tom Szczesny tav...@gmail.com wrote: Some languages, like q, have a built-in command for reading, parsing
Re: [Jgeneral] image3
Cliff - I use the image3 functions in J7 but only for basic reading and writing of JPGs. It's been so long since I looked at anything else here but have been reading about HDR (high dynamic range) processing and am wondering if there are tools for processing luminosity in image3? I seem to recall that you (?) had an article about this a number of years ago, possibly in Vector. Regards, Devon On Mon, Jan 9, 2012 at 1:04 PM, Cliff Reiter reit...@lafayette.edu wrote: Howdy, This week I am working with a student to see what can be done about moving image3 fvj3 to more platforms. I discovered that the current image3 does not install any longer on J32 win. I thought this was fixed months ago. It looks like someone really likes having error messages on 64 bit, which are not supported, at the expense of 32bit, which is supported, not working. Sigh. That aside, this is all pretty much a mess in J7 so I would really appreciate any wisdom from the web. Does it make sense try to overlay image3 on platimg? How feasible is it for platimg to move to 64 bit? How well does platimg work in J7? Best, Cliff -- Clifford A. Reiter Lafayette College, Easton, PA 18042 http://webbox.lafayette.edu/~reiterc/ -- 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
Re: [Jgeneral] Data from csv files
In J6, I get this: 'search' jpkg 'csv' +--+-+-++ |tables/csv|1.0.7|1.0.7|Read and write CSV files and strings| +--+-+-++ |tables/csvedit|0.0.6|0.0.6|Grid based editor for CSV files | +--+-+-++ whereDefined 'writecsv' C:\Program Files\j602\system\packages\files\csv.ijs On Tue, Jan 3, 2012 at 7:56 PM, Ric Sherlock tikk...@gmail.com wrote: Interesting. You get different results to me. Are you using the tables/csv addon and if so which version? load 'pacman' 'search' jpkgv 'csv' ┌──┬─┬─┬┐ │tables/csv│1.0.7│1.0.7│Read and write CSV files and strings│ └──┴─┴─┴┘ load 'tables/csv' (i. 5 5) writecsv '~temp/foo.csv' 70 fread '~temp/foo.csv' 0,1,2,3,4 5,6,7,8,9 10,11,12,13,14 15,16,17,18,19 20,21,22,23,24 On Wed, Jan 4, 2012 at 1:43 PM, Devon McCormick devon...@gmail.com wrote: (i. 5 5) writecsv 'foo.csv' 120 fread 'foo.csv' 0,1,2,3,4 5,6,7,8,9 10,11,12,13,14 15,16,17,18,19 20,21,22,23,24 Also, I was long under the impression that literal data in a csv file should be quoted but apparently this is not the case. It's hard to say for sure as there is no real spec for this format, and I don't remember what disabused me of this notion (perhaps taking the behavior of Excel as the paradigm?) On Tue, Jan 3, 2012 at 6:35 PM, Ric Sherlock tikk...@gmail.com wrote: Note that the tables/csv addon is just a special case of the tables/dsv addon that sets the delimiters. From memory the tables/csv addon will quote literal data but not numeric data. Of course that means that numbers in literal form will end up being quoted. When you refer to spurious double-quotes, are there occasions where quotes appear that they shouldn't? On Wed, Jan 4, 2012 at 9:59 AM, Devon McCormick devon...@gmail.com wrote: At some of the recent NYCJUGs, Ken Lettow pointed me to the dsv versions of this which are more general (Delimiter-Separated Values). I use these now as I usually prefer tab-delimited files and want to avoid the spurious double-quotes the csv modules put around data. See http://www.jsoftware.com/jwiki/Addons/tables/dsv?highlight=%28dsv%29. On Mon, Jan 2, 2012 at 12:59 PM, Tom Szczesny tav...@gmail.com wrote: When I tryrequire 'csv' I get not found: /home/tom/jgplsrc/j/addons/tables/csv/csv.ijs However, I can get to http://www.jsoftware.com/jwiki/Addons I should be able to get what I need from there. Thanks. On Mon, Jan 2, 2012 at 12:38 PM, Raul Miller rauldmil...@gmail.com wrote: Try this: require 'csv' T=: readcsv '/home/tom/t.csv' -- Raul On Mon, Jan 2, 2012 at 12:22 PM, Tom Szczesny tav...@gmail.com wrote: Some languages, like q, have a built-in command for reading, parsing, and loading data from csv files: t: (SSDIDSSIFFFIS;enlist ,) 0: `:/home/tom/t.csv Other languages, like a+, do not, and the user needs to write a function to read, parse and load data from csv files. From a cursory review, it appears that j is in the a+ camp. Please confirm that such a facility does not exist in j, before I start writing my own. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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 -- 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 -- 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
Re: [Jgeneral] Data from csv files
Yes - I see that if I load the addons version, it appears to used the dsv modules I've been using explicitly of late. On Sun, Jan 8, 2012 at 10:14 PM, Ric Sherlock tikk...@gmail.com wrote: Looks like you have the tables/csv addon installed but I suspect that to load it you did: load 'csv' NB. or require By default this will load the old version csv code from ~system\packages\files\csv.ijs PUBLIC_j_{~ ('csv') (i.~ {.1) PUBLIC_j_ +---+--+ |csv|~system\packages\files\csv.ijs| +---+--+ You can make sure that you are loading the addon version like this: load 'tables/csv' If you want to to force a J602 installation to use the addon version instead of the old version when you use ( load 'csv' ) then the Installation section of http://www.jsoftware.com/jwiki/Addons/tables/csv explains how to do that. On Mon, Jan 9, 2012 at 3:16 PM, Devon McCormick devon...@gmail.com wrote: In J6, I get this: 'search' jpkg 'csv' +--+-+-++ |tables/csv|1.0.7|1.0.7|Read and write CSV files and strings| +--+-+-++ |tables/csvedit|0.0.6|0.0.6|Grid based editor for CSV files | +--+-+-++ whereDefined 'writecsv' C:\Program Files\j602\system\packages\files\csv.ijs On Tue, Jan 3, 2012 at 7:56 PM, Ric Sherlock tikk...@gmail.com wrote: Interesting. You get different results to me. Are you using the tables/csv addon and if so which version? load 'pacman' 'search' jpkgv 'csv' ┌──┬─┬─┬┐ │tables/csv│1.0.7│1.0.7│Read and write CSV files and strings│ └──┴─┴─┴┘ load 'tables/csv' (i. 5 5) writecsv '~temp/foo.csv' 70 fread '~temp/foo.csv' 0,1,2,3,4 5,6,7,8,9 10,11,12,13,14 15,16,17,18,19 20,21,22,23,24 On Wed, Jan 4, 2012 at 1:43 PM, Devon McCormick devon...@gmail.com wrote: (i. 5 5) writecsv 'foo.csv' 120 fread 'foo.csv' 0,1,2,3,4 5,6,7,8,9 10,11,12,13,14 15,16,17,18,19 20,21,22,23,24 Also, I was long under the impression that literal data in a csv file should be quoted but apparently this is not the case. It's hard to say for sure as there is no real spec for this format, and I don't remember what disabused me of this notion (perhaps taking the behavior of Excel as the paradigm?) On Tue, Jan 3, 2012 at 6:35 PM, Ric Sherlock tikk...@gmail.com wrote: Note that the tables/csv addon is just a special case of the tables/dsv addon that sets the delimiters. From memory the tables/csv addon will quote literal data but not numeric data. Of course that means that numbers in literal form will end up being quoted. When you refer to spurious double-quotes, are there occasions where quotes appear that they shouldn't? On Wed, Jan 4, 2012 at 9:59 AM, Devon McCormick devon...@gmail.com wrote: At some of the recent NYCJUGs, Ken Lettow pointed me to the dsv versions of this which are more general (Delimiter-Separated Values). I use these now as I usually prefer tab-delimited files and want to avoid the spurious double-quotes the csv modules put around data. See http://www.jsoftware.com/jwiki/Addons/tables/dsv?highlight=%28dsv%29. On Mon, Jan 2, 2012 at 12:59 PM, Tom Szczesny tav...@gmail.com wrote: When I tryrequire 'csv' I get not found: /home/tom/jgplsrc/j/addons/tables/csv/csv.ijs However, I can get to http://www.jsoftware.com/jwiki/Addons I should be able to get what I need from there. Thanks. On Mon, Jan 2, 2012 at 12:38 PM, Raul Miller rauldmil...@gmail.com wrote: Try this: require 'csv' T=: readcsv '/home/tom/t.csv' -- Raul On Mon, Jan 2, 2012 at 12:22 PM, Tom Szczesny tav...@gmail.com wrote: Some languages, like q, have a built-in command for reading, parsing, and loading data from csv files: t: (SSDIDSSIFFFIS;enlist ,) 0: `:/home/tom/t.csv Other languages, like a+, do not, and the user needs to write a function to read, parse and load data from csv files. From a cursory review, it appears that j is in the a+ camp. Please confirm that such a facility does not exist in j, before I start writing my own. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Data from csv files
At some of the recent NYCJUGs, Ken Lettow pointed me to the dsv versions of this which are more general (Delimiter-Separated Values). I use these now as I usually prefer tab-delimited files and want to avoid the spurious double-quotes the csv modules put around data. See http://www.jsoftware.com/jwiki/Addons/tables/dsv?highlight=%28dsv%29 . On Mon, Jan 2, 2012 at 12:59 PM, Tom Szczesny tav...@gmail.com wrote: When I tryrequire 'csv' I get not found: /home/tom/jgplsrc/j/addons/tables/csv/csv.ijs However, I can get to http://www.jsoftware.com/jwiki/Addons I should be able to get what I need from there. Thanks. On Mon, Jan 2, 2012 at 12:38 PM, Raul Miller rauldmil...@gmail.com wrote: Try this: require 'csv' T=: readcsv '/home/tom/t.csv' -- Raul On Mon, Jan 2, 2012 at 12:22 PM, Tom Szczesny tav...@gmail.com wrote: Some languages, like q, have a built-in command for reading, parsing, and loading data from csv files: t: (SSDIDSSIFFFIS;enlist ,) 0: `:/home/tom/t.csv Other languages, like a+, do not, and the user needs to write a function to read, parse and load data from csv files. From a cursory review, it appears that j is in the a+ camp. Please confirm that such a facility does not exist in j, before I start writing my own. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
Re: [Jgeneral] Interpreting a J script.
You are right. The line should read: jconsole -js a=.23 b=.3 echo a*b exit '' On Tue, Dec 13, 2011 at 12:22 PM, Gilles Kirouac gkiro...@riq.qc.ca wrote: 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 -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Data from csv files
(i. 5 5) writecsv 'foo.csv' 120 fread 'foo.csv' 0,1,2,3,4 5,6,7,8,9 10,11,12,13,14 15,16,17,18,19 20,21,22,23,24 Also, I was long under the impression that literal data in a csv file should be quoted but apparently this is not the case. It's hard to say for sure as there is no real spec for this format, and I don't remember what disabused me of this notion (perhaps taking the behavior of Excel as the paradigm?) On Tue, Jan 3, 2012 at 6:35 PM, Ric Sherlock tikk...@gmail.com wrote: Note that the tables/csv addon is just a special case of the tables/dsv addon that sets the delimiters. From memory the tables/csv addon will quote literal data but not numeric data. Of course that means that numbers in literal form will end up being quoted. When you refer to spurious double-quotes, are there occasions where quotes appear that they shouldn't? On Wed, Jan 4, 2012 at 9:59 AM, Devon McCormick devon...@gmail.com wrote: At some of the recent NYCJUGs, Ken Lettow pointed me to the dsv versions of this which are more general (Delimiter-Separated Values). I use these now as I usually prefer tab-delimited files and want to avoid the spurious double-quotes the csv modules put around data. See http://www.jsoftware.com/jwiki/Addons/tables/dsv?highlight=%28dsv%29 . On Mon, Jan 2, 2012 at 12:59 PM, Tom Szczesny tav...@gmail.com wrote: When I tryrequire 'csv' I get not found: /home/tom/jgplsrc/j/addons/tables/csv/csv.ijs However, I can get to http://www.jsoftware.com/jwiki/Addons I should be able to get what I need from there. Thanks. On Mon, Jan 2, 2012 at 12:38 PM, Raul Miller rauldmil...@gmail.com wrote: Try this: require 'csv' T=: readcsv '/home/tom/t.csv' -- Raul On Mon, Jan 2, 2012 at 12:22 PM, Tom Szczesny tav...@gmail.com wrote: Some languages, like q, have a built-in command for reading, parsing, and loading data from csv files: t: (SSDIDSSIFFFIS;enlist ,) 0: `:/home/tom/t.csv Other languages, like a+, do not, and the user needs to write a function to read, parse and load data from csv files. From a cursory review, it appears that j is in the a+ camp. Please confirm that such a facility does not exist in j, before I start writing my own. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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 -- 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
Re: [Jgeneral] End a J-console session
I usually use q'' where q is a cover for 2!:55 . Ctrl-D does something else under Windows - it doesn't seem to end a session. On Sun, Dec 11, 2011 at 10:18 PM, Tom Szczesny tav...@gmail.com wrote: Found it -- Ctrl+d On Sun, Dec 11, 2011 at 10:06 PM, Tom Szczesny tav...@gmail.com wrote: Hi - Earlier today I downloaded the J source and followed the build instructions on an i686 using Gentoo Linux. The J console fired right up and I was able to perform a few test calculations. I then checked through the J documentation for the command to end the console session in order to continue with the bin/build_defs. I can't seem to find any documentation on how to exit from a J-console session. I tried ctl-C quit exit )off $off )logoff end )end as well as many others. What is the correct command to end a J-consile session? Tom -- 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
Re: [Jgeneral] End a J-console session
Tom - This really ought to work, even under Linux: 2!:55 '' where the argument to 2!:55 is an empty vector (two single-quotes). Since I define q for myself, (i.e. it's not a standard verb) I'm not surprised that that didn't work. Since I usually use 2!:55 with an empty vector argument (''), does that mean I'm not giving a return code? Would that be like a void or void * return in C? Regards, Devon On Mon, Dec 12, 2011 at 10:54 AM, Jeff Zellner jeff.zell...@gmail.comwrote: the verb exit (2!:55) takes an argument (return code) [jz@blitz 11:05:54 ~]$ ./j701/bin/jconsole exit 2!:55 2!:55 2!:55 exit 0 [jz@blitz 11:06:16 ~]$ 2011/12/12 Björn Helgason gos...@gmail.com: Common ctrl combinations to end something ctrl + c ctrl + d ctrl + z ctrl + q http://en.wikipedia.org/wiki/Control_key also esc 2011/12/12 Devon McCormick devon...@gmail.com I usually use q'' where q is a cover for 2!:55 . Ctrl-D does something else under Windows - it doesn't seem to end a session. On Sun, Dec 11, 2011 at 10:18 PM, Tom Szczesny tav...@gmail.com wrote: Found it -- Ctrl+d On Sun, Dec 11, 2011 at 10:06 PM, Tom Szczesny tav...@gmail.com wrote: Hi - Earlier today I downloaded the J source and followed the build instructions on an i686 using Gentoo Linux. The J console fired right up and I was able to perform a few test calculations. I then checked through the J documentation for the command to end the console session in order to continue with the bin/build_defs. I can't seem to find any documentation on how to exit from a J-console session. I tried ctl-C quit exit )off $off )logoff end )end as well as many others. What is the correct command to end a J-consile session? Tom -- 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 -- Björn Helgason, Verkfræðingur Fornustekkum II 781 Hornafirði, t-póst: gos...@gmail.com gsm: +3546985532 twitter: @flugfiskur http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .---. ,' .\ / | Með léttri lund verður| ,--'_,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. |`---' | ) | (\_ _/) (`-. '--.) (='.'=) ♖♘♗♕♔♙ `. )'()_() ☃☠ -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
Re: [Jgeneral] End a J-console session
You need to separate the number in the foreign conjunction from its argument, otherwise J interprets 2!:55 0 as 2!:(55 0), e.g. 2!:55 ] 0 2!:55 (0) On Mon, Dec 12, 2011 at 11:29 AM, Tom Szczesny tav...@gmail.com wrote: Hi - exit 0works ctrl+cdoes not work ctrl+dworks ctrl+zexits, but with a message [1]+ Stopped bin/jconsole (the first time you end a session) [2]+ Stopped bin/jconsole (the second time you end a session) ctrl+qdoes not work 2!:55 '' works (when I add the the 2 single quotes at the end) 2!:55 0 does not work 2!:55 does not work (with no pair of single quotes) Thanks again, Tom On Mon, Dec 12, 2011 at 11:13 AM, Devon McCormick devon...@gmail.com wrote: Tom - This really ought to work, even under Linux: 2!:55 '' where the argument to 2!:55 is an empty vector (two single-quotes). Since I define q for myself, (i.e. it's not a standard verb) I'm not surprised that that didn't work. Since I usually use 2!:55 with an empty vector argument (''), does that mean I'm not giving a return code? Would that be like a void or void * return in C? Regards, Devon On Mon, Dec 12, 2011 at 10:54 AM, Jeff Zellner jeff.zell...@gmail.com wrote: the verb exit (2!:55) takes an argument (return code) [jz@blitz 11:05:54 ~]$ ./j701/bin/jconsole exit 2!:55 2!:55 2!:55 exit 0 [jz@blitz 11:06:16 ~]$ 2011/12/12 Björn Helgason gos...@gmail.com: Common ctrl combinations to end something ctrl + c ctrl + d ctrl + z ctrl + q http://en.wikipedia.org/wiki/Control_key also esc 2011/12/12 Devon McCormick devon...@gmail.com I usually use q'' where q is a cover for 2!:55 . Ctrl-D does something else under Windows - it doesn't seem to end a session. On Sun, Dec 11, 2011 at 10:18 PM, Tom Szczesny tav...@gmail.com wrote: Found it -- Ctrl+d On Sun, Dec 11, 2011 at 10:06 PM, Tom Szczesny tav...@gmail.com wrote: Hi - Earlier today I downloaded the J source and followed the build instructions on an i686 using Gentoo Linux. The J console fired right up and I was able to perform a few test calculations. I then checked through the J documentation for the command to end the console session in order to continue with the bin/build_defs. I can't seem to find any documentation on how to exit from a J-console session. I tried ctl-C quit exit )off $off )logoff end )end as well as many others. What is the correct command to end a J-consile session? Tom -- 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 -- Björn Helgason, Verkfræðingur Fornustekkum II 781 Hornafirði, t-póst: gos...@gmail.com gsm: +3546985532 twitter: @flugfiskur http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .---. ,' .\ / | Með léttri lund verður| ,--'_,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. |`---' | ) | (\_ _/) (`-. '--.) (='.'=) ♖♘♗♕♔♙ `. )'()_() ☃☠ -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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 -- For information about J forums see http://www.jsoftware.com/forums.htm -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail
Re: [Jgeneral] gtkide installation
I agree that the black screen with instructions may deter some people. I've wondered before why the install procedure doesn't just run the commands instead of asking the user to do it. On Wed, Nov 30, 2011 at 10:28 AM, David Mitchell davidmitch...@att.netwrote: Personally, I would prefer a fully automated install. I can see some justification for a continue or cancel prompt before performing the install, or perhaps just a notice that first time use is running the required install steps. One reason for the notice or prompt would be to allow folks with strict firewalls to set up access for curl or wget. On 11/30/2011 9:44, bill lam wrote: At present, it shows a black screen with instruction of how to install gtkide, however this requires a user to think. This is quite un-exptected to some users especially for those who have never used dos program befoer. Alternatively it may run those instruction automatically. Should we change the installation mehtod? Comments welcome. -- 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
Re: [Jgeneral] Neophyte puzzled with boxing/unboxing
I thought I liked the APL workspace when I first started using J which is why I wrote my WS package. However, if you look at it, you see that it's misnamed because I never got past the point of storing nouns to file. It turns out that what I really liked about the APL workspace is the persistence of variables. Once I'd achieved this with WS, I lost motivation to extend it to more complicated collections of objects. Loading code from scripts provides a good discipline as I find I often write a little helper function in-line but neglect to include it in a script and don't notice this until I try to run from a fresh session. Fortunately, in this case I have my saved emacs session I can go back to in order to get the missing definitions. On Sun, Oct 2, 2011 at 3:50 PM, Ian Clark earthspo...@gmail.com wrote: the same spirit of decommting workspace in flavor of scripts, that searching names inside scripts is preferable to searching names inside loaded locales. Habits of a lifetime, Bill. APL has induced an occupational deformity in me. Basically I'd agree with you, as advice to beginners. As a callow youth, they taught me to fly planes. Experienced pilots hated the idea of fly-by-wire. They wanted to know there was a direct mechanical linkage from the joystick to the control surfaces, even if (like power steering) it's only there for reassurance and can't feasibly be used on its own. To me the workspace debate in J has similarities. A lot depends on whether you're browsing someone else's code, as you find it in your system, or writing your own for release. If the latter, I'd say always work on the script itself. When all else fails, only then work on what got squirted into memory. The fact you don't have a script in APL is not a defence of workspace technology but a tribute to the stability of the full-screen (del) editor -- agonisingly evolved over decades. Just think back to APLSV on the early 3270 screens. But I shouldn't go digging up old bones. On Sun, Oct 2, 2011 at 5:51 AM, bill lam bbill@gmail.com wrote: I didn't know this verb and have never used it before. However I guess, in the same spirit of decommting workspace in flavor of scripts, that searching names inside scripts is preferable to searching names inside loaded locales. For example use FIF to search 'deb' in global names should return the same (or more) definitions as that returing from whs. That said, I rarely use FIF by now because I seldom use ide either. ymmv To sniff over any new word I've discovered, I make heavy use of my home-brewed: whs=: (@whichlocales) ; whichscript used like this: whs'deb' ┌──┬─┬─┬─┬┬┐ │/Applications/j602/system/main/strings.ijs│z│z│j│jfiw│jijs│ └──┴─┴─┴─┴┴┘ ...from which you see deb resides all over the place (in identical copies, fortunately :) I find whs egregiously useful. Most of the bugs I encounter come from what is [not] loaded, and where it is [from]. The verbs it needs: whichlocales, whichscript, along with: listnameswithprefix (just as useful) can be copied from: http://www.jsoftware.com/jwiki/Phrases/Names . It happens they are *not* part of stdlib. I think they should be. (@Ric; how about it?) -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
Re: [Jgeneral] Neophyte puzzled with boxing/unboxing
'j' and (,'j') are both arrays but the former is a scalar and the latter is a vector. I've taken to enforcing vectors as a defensive measure when I define a list like this: terms=. ,.'3';'6';'9';'12';'12p' . You may want to take a look at the slides from my talk at http://www.jsoftware.com/jwiki/DevonMcCormick/FunctionalJ , particularly starting with Example 5 - which briefly notes how scalars differ from other kinds of arrays - and the following sections about precedence (order of operations). I'm not sure how useful the slides are on their own but they do refer to a couple of issues you've raised recently. Regards, Devon On Thu, Sep 29, 2011 at 5:26 PM, Raul Miller rauldmil...@gmail.com wrote: On Thu, Sep 29, 2011 at 5:21 PM, Christopher McIntosh thegeek...@gmail.com wrote: I have a noun, BASE_LIBS, defined as: BASE_LIBS =: 'base';'ctag';'j';'jadetag';'jadecompare';'jregex';'jtask';'z' Try: BASE_LIBS =: ;:'base ctag j jadetag jadecompare jregex jtask z' The problem is that 'j' and 'z' are characters and not lists of characters. You could also use (,'j') and (,'z') instead, in your original sentence. -- Raul -- 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
Re: [Jgeneral] Error in Primer (j701)
Older versions of J (pre-5.04?) used y. and x. where we now use y and x. Some of the more long-standing documentation may not reflect this change. On Tue, Sep 20, 2011 at 2:21 PM, Christopher McIntosh thegeek...@gmail.comwrote: Having recently begun my study of J, I discovered an error in the Primer book. On the page ~addons/docs/help/primer/tacit_definition.htm the definitions for fahrenheit, fa, fb, fz, and xmean contain references to y.. This generates a spelling error. When I look back to the original definition of fahrenheit, there is no . after the y -- Have I missed something? Or is this, as I suspect, simply a syntax error in the book? Thanks for such a great tool! The Geeko --- *Let me say just how excited -- and grateful! - I am to have been given the opportunity to explore J. 35 years ago I would drool as I occasionally stumbled across articles in Byte magazine about APL. Unfortunately, neither my TRS-80 nor my Apple II+ afforded me the opportunity to get my hands into the language. Over these 35 years, I have worked with BASIC, Pascal, FORTRAN, C, C++, Java, Haskell, Lisp, Scala... but have never had the opportunity to fulfill my fantasies of exploring APL... J confirms my suspicions... true beauty lies in the use of a language as well as its design. -- 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
Re: [Jgeneral] j 701 server intended for ... ?
If, by mod_j, you mean some standard module implementing J that could be part of an Apache distribution, that has not been done. I don't know what's involved, so JHS may be functionally equivalent to this, but making J into some sort of standard plug'n'play and not a special case would be worthwhile. On Thu, Mar 17, 2011 at 7:16 PM, saul berg sbaker8...@aol.com wrote: perhaps i didn't ask the right question. you say what you see is what you get. perhaps my question should be what am i seeing? am i seeing a new front end gui? a web server? something that functions (or could function) like an apache mod_j? put it this way. i don't want to go off writing the next mod_j if j7 is essentially that. what exactly is j7? must sound like a dumb question, but i ... -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] JHS projects
Brian - thanks, but I basically just lifted this from an essay Gosi posted to the J Googlegroup as I thought it deserved wider notice as well. He's really the one who deserves credit for this. I'm not waiting for anything except maybe 30 hours in a day, so please feel free to start a page and refer to this example. Regards, Devon On Sat, Mar 12, 2011 at 8:17 AM, Brian Schott schott.br...@gmail.comwrote: Devon, http://www.jsoftware.com/jwiki/NYCJUG/2011-02-08/HelloWorldInJHS I just read your Hello World example and your grid example of JHS scripts from NYJUG. You have exposed a great deal of the subtlety of making JHS scripts work. Thank you for posting that most valuable demo. I believe your information belongs in a much more prominent document such as one of the next, which do not exist. Or maybe you and we are waiting for more complete documentation for JHS to emerge? http://www.jsoftware.com/jwiki/Guides/JHS%20IDE http://www.jsoftware.com/jwiki/Guides/JHS%20Projects -- (B=) -- 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
[Jgeneral] Is J ready for newbies?
I have to back-pedal somewhat on my original statement - I was emphasizing that the overwhelming majority of my own difficulties are due to installed base issues. J still needs a fair amount of work to be easy for newbies but appears to be heading in the right direction with no major obstacles in the way by reason of its availability in the browser (which hides installation difficulties from the end-user), and its package installation facilities (though re-instating the J6 GUI for this would be very helpful). We should all be very grateful to squeaky wheels like Professor Eisenberg for prodding us out of complacency. I just remembered another reason, having to do with the package installation and update, that I'm optimistic about the new version - the older, GUI version ran afoul of mysterious proxy issues when I was at work but the newer one works fine in that respect. -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] where is Public_j_ defined?
I never even looked in the documentation - I just figured it out based on looking at code and know about the older PUBLICFOLDERS global. I'm not sure the latter was documented either. I suspect there are other lacunas in the documentation that are part of our collective knowledge. On Thu, Mar 3, 2011 at 11:07 AM, Murray Eisenberg mur...@math.umass.eduwrote: for J701, in what script is Public_j_ defined? I searched but couldn't find its definition. Nor could I find documentation about it. -- Murray Eisenberg mur...@math.umass.edu Mathematics Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts413 545-2859 (W) 710 North Pleasant Streetfax 413 545-1801 Amherst, MA 01003-9305 -- 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
Re: [Jgeneral] where is Public_j_ defined?
I use this (courtesy of Dan): whereDefined=: 3 : 0 (4!:4{.;:y) {:: (4!:3''),'Source of definition not found for ','.',~y ) which has the advantage of handling the error case when the name is not found. On Thu, Mar 3, 2011 at 4:02 PM, Fraser Jackson fraser.jack...@xtra.co.nzwrote: It is often useful to use a simple function to find where definitions were established and simpler than using other search processes. I suspect a synonym is lurking somewhere in the system. source =: 3 : 0 (4!:4y){4!:3'' ) source 'Public_j_' ++ |C:\Users\Fraser\j701\system\util\scripts.ijs| ++ ... -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Is J ready for newbies?
Oh, good. I hadn't noticed because I'm mostly using the console version. I just tried it and it's good to see that it works, avoiding the mysterious failure in J6 I could never figure out. On Thu, Mar 3, 2011 at 2:43 PM, Ric Sherlock tikk...@gmail.com wrote: On Fri, Mar 4, 2011 at 5:18 AM, Devon McCormick devon...@gmail.com wrote: and its package installation facilities (though re-instating the J6 GUI for this would be very helpful). There are GUI versions of the package installation facilities in both JHS IDE and Gtk IDE. The Gtk IDE version is essentially a port of the old J6 GUI. I just remembered another reason, having to do with the package installation and update, that I'm optimistic about the new version - the older, GUI version ran afoul of mysterious proxy issues when I was at work but the newer one works fine in that respect. AFAIK there hasn't been any change in the mechanism for downloading files from the Internet and therefore the necessity of configuring wget to handle proxies. However as long as wget has been previously configured to work on the machine, it shouldn't need to be reconfigured for J7. -- 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
Re: [Jgeneral] J701: How load packages?
Then I've probably been overwriting it for years with my own definition and never noticed until my recent attempts to strip away my customizations: I have 205 names in the base class - time to clean house. For the time being, I can avoid re-writing existing code by over-riding the standard definition with something like dir=: 2dir_z_. However, in order to maintain compatibility between J6 and J7, I need to include something like if. IFJ6 do. ... but IFJ6 does not exist in J6, so I must preface this with something like if. -.nameExists 'IFJ6' do. IFJ6=: 1 end. Could we avoid cruft like this in the future by defining a system global IFJ7 (or, even better ISJ7 so that statements using it will avoid if. IF...) in J7? Or does someone have a better way of dealing with this? To emphasize what I said to Mr. Eisenberg, I think J7 is may be easier for newbies but more complicated for those of us with an accumulated installed base. I'm taking this opportunity to clear out un-necessary custom definitions, but it does involve painful re-thinking of my old code. On Sun, Feb 27, 2011 at 6:24 PM, chris burke cbu...@jsoftware.com wrote: On Sun, Feb 27, 2011 at 9:49 AM, Devon McCormick devon...@gmail.com wrote: It does seem complicated, doesn't it? I think much of this has to do with our own customizations. With this new version, I'm attempting to reduce the number of idiosyncratic verbs I define in my startup and to adhere to the existing customs as much as possible. However, I was dismayed to find that the supplied dir verb returns information in a much less useful format than my own simple definition dir=: 1!:0@. This definition of dir has been there almost from the start of J, but in the dir.ijs script. One reason for combining dir and other scripts into stdlib is to standardize on their use, and avoid this kind of problem. -- 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
Re: [Jgeneral] J701: How load packages?
Murray - the single-word shortcuts are kept in Public_j_, a two-column name-value pair matrix analogous to PUBLICFOLDERS_j_ in J6.02. It does seem complicated, doesn't it? I think much of this has to do with our own customizations. With this new version, I'm attempting to reduce the number of idiosyncratic verbs I define in my startup and to adhere to the existing customs as much as possible. However, I was dismayed to find that the supplied dir verb returns information in a much less useful format than my own simple definition dir=: 1!:0@. Alan Kay had a good line about how we keep re-inventing the flat tire. Regards, Devon On Sat, Feb 26, 2011 at 3:10 PM, Murray Eisenberg mur...@math.umass.eduwrote: Apparently my J701 installation is not finding any of the installed add-ons. For example, in the jhs browser window, executing load'graph' gives error: not found: D:\Language\j701/graph Where does one specify the location of such addons and the shortcut names to use in commands such as the above? (I don't see anything in profilex_template.ijs about that, and nothing at http://www.jsoftware.com/jwiki/System/Installation/J701. The links at http://www.jsoftware.com/jwiki/System/Documentation all refer to J601.) Why must it be so complicated to just get all this to work? (It's as if somebody were deliberately trying to discourage new users -- or even old J users, such as me -- from using J.) -- Murray Eisenberg mur...@math.umass.edu Mathematics Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts413 545-2859 (W) 710 North Pleasant Streetfax 413 545-1801 Amherst, MA 01003-9305 -- 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
Re: [Jgeneral] Problem with Tags
Do you know if these tags are (supposed to be) usable by emacs? On Thu, Feb 24, 2011 at 7:08 AM, Mike Day mike_liz@tiscali.co.ukwrote: Playing with JGTK, I've discovered tags (or ctags?). It's probably just my installation, under Windows Vista 32 bit, but for what it's worth: I've updated addons using the Package Manager, generated tags from Tools|Generate Tags successfully looked up using mouse-right-click/Find Tag but CTRL-] does not work - at least, nothing seems to happen. I'm quite happy to use the mouse-click option, but others might find the same behaviour - or not. Mike -- 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
Re: [Jgeneral] Problem with Tags
Just remember:vi vi vi = The Number of the Beast On Thu, Feb 24, 2011 at 10:03 AM, bill lam bbill@gmail.com wrote: ctags/etags executables provides option to generate TAGS files for emacs. However tags/jtags scripts used in J7 can only understand vi style tags files. Чтв, 24 Фев 2011, Devon McCormick писал(а): Do you know if these tags are (supposed to be) usable by emacs? On Thu, Feb 24, 2011 at 7:08 AM, Mike Day mike_liz@tiscali.co.uk wrote: Playing with JGTK, I've discovered tags (or ctags?). ... -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] :: failure
Raul - Are you showing us the correct thing? You define unbiased but show an error in unbias. When I copy your definitions for the two verbs you define, they run for hundreds of millions of times with no error. Regards, Devon On Tue, Feb 22, 2011 at 11:46 AM, Raul Miller rauldmil...@gmail.com wrote: From http://rosettacode.org/wiki/Unbias_a_random_generator biased=: 0 = ? unbiased=: i.@# { ::$: 2 | 0 3 -.~ _2 #.\ 4* biased@# ] unbias. 100#6 |length error ... -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Alex Rufon
This is very sad news. He will be sorely missed, especially his tremendous enthusiasm. On Tue, Feb 15, 2011 at 8:49 PM, chris burke cbu...@jsoftware.com wrote: Alex (bathala) Rufon (1973-2011) has passed away after a short illness. Alex worked as a J developer at a manufacturer in the Philippines, and was one of the stalwarts of the J community. He was extremely helpful in setting up and contributing to the J wiki and code repositories. In the last few days when he seemed to have recovered from liver disease, we were discussing his work on a native cocoa ide for J. He is survived by his wife and two children. -- 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
Re: [Jgeneral] Help documentation introduction
I'm all in favor of succinct expression but it might be clearer that the short names relate to the seven books. Perhaps all that needs to be done here is to re-order the sentences so that the abbreviations immediately follow the mention of the books without the interruption of the unrelated navigation information. On Mon, Jan 31, 2011 at 9:41 PM, Eric Iverson eric.b.iver...@gmail.comwrote: My feeling is that short is better, especially when full info is just an experimental click away. The full context on that page (relatively unchanged for a few releases) is: *** There are 7 books (User, Primer, J for C Programmers, Learning J, Phrases, Dictionary, Release). Every page has standard jumps: next, previous Usr Pri JfC LJ Phr Dic and Rel to that contents Voc to Vocabulary, !: to Foreigns Help jumps here and the current book is at the end On Mon, Jan 31, 2011 at 9:35 PM, Devon McCormick devon...@gmail.com wrote: I'm attempting to look at the new release as though I'm a beginner by going through the learning materials and I noticed that the Help page has the cryptic and ungrammatical line: Usr Pri JfC LJ Phr Dic and Rel to that contents where something more like this would be more informative: Section Description -- Usr User Guide - introduction to invoking J, system-level programming information Pri J Primer - complete introduction to language from first principles, with learning checkpoints JfC J for C Programmers - extensive introduction assuming prior experience with another programming language (not necessarily C) LJ Learning J - another extensive introduction arranged according to J language structure Phr Phrases - a more mathematically-oriented introduction to the language with sections on permutations, statistics, and finance. Dic J Dictionary - comprehensive overview based on learning by example Rel Release Notes for current and previous releases, detailing changes for each -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
Re: [Jgeneral] Low-level introduction with examples (school math)
Somewhat similar:J: the Natural Language for Analytic Computing - also by Norman Thomson - see review http://www.vector.org.uk/archive/v183/norm183.htm . On Mon, Nov 1, 2010 at 1:36 PM, Martin Kreuzer i...@airkreuzer.com wrote: Hi all - last week I came across this title Norman Thomson: APL Programs for the Mathematics Classroom, Springer-Vieweg 1989. Does anything similar exist written in J..? (I am aware of Linda Alvord / Norman Thomson: Easy J.) Thanks, Martin -- 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
Re: [Jgeneral] Looking for links - online or off - between J and natural language (example: English).
-- 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
Re: [Jgeneral] Eugene McDonnell
He will be missed. On Thu, Aug 19, 2010 at 12:19 PM, Jim Russell jimsruss...@comcast.netwrote: Very sad. I considered him one of the giants here. On Aug 18, 2010, at 11:12 PM, Roger Hui rhui...@shaw.ca wrote: Eugene McDonnell (1925-2010) died peacefully at home in Palo Alto in the evening of August 17, surrounded by family and friends. All of us in the APL world owe him a debt for his pioneering work in APL. I recently had the honor of writing the preface to Eugene's At Work and Play with J (a collaborate editing effort of the J community and a work of which Eugene was very proud). I reproduce it here because it gives a sense of the man and his work. In my youth, when I was just starting in APL, on receiving an issue of the APL Quote-Quad I would inevitably and eagerly first turn to Eugene McDonnell’s “Recreational APL” column. Through these columns I learned that it was possible for technical writing to be erudite, educational, and entertaining, and through them I learned a lot of APL. Thus it was with Eugene’s “At Play with J” articles in Vector. In topics ranging from primes to permutations to pyramids to pi, with a cast of characters that included Apter, Black, and Crelle, Jacob and Josephus, Blanda and Montana and Taylor, and Scholes, the articles offered up the “smoother pebbles” and “prettier shells” found while playing on the seashore bordering the great ocean of knowledge. And we are all beneficiaries of this play. I am pleased that Vector is publishing the collection of At Play with J as a book. I look forward to being educated and entertained once more. Wikipedia entry: http://en.wikipedia.org/wiki/Eugene_McDonnell Collected papers and articles: http://www.jsoftware.com/papers/eem/ Quotations and Anecdotes: http://www.jsoftware.com/papers/eem/anecdotes.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
Re: [Jgeneral] Labs from jconsole
Hi - I was able to start a lab from a console window (jee) like this: 1!:44 'C:\Program Files\j602\system\extras\labs\graphics\' lab_j_ 'openglut.ijt' Unfortunately, this is all I could do as I couldn't figure out how to advance the lab as it takes a Ctl-J sequence in the windowed J session but this is LF in my console. On Wed, May 5, 2010 at 3:02 PM, Andrew Nikitin ns...@hotmail.com wrote: Is there a way to run lab from jconsole? I found lab_j_ verb (it was right there, in the manual) that starts a lab programmatically, but it seems to be absent from jconsole profile. _ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 -- 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
Re: [Jgeneral] Function: open file, barf if doesn't exist
I suspect the reverse ordering of .=, instead of =., is why you get an error. On Fri, Mar 26, 2010 at 2:52 PM, Sprague, Webb (OFM) webb.spra...@ofm.wa.gov wrote: ... out .= fread y ... -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Function: open file, barf if doesn't exist
Also, if you know in advance your file names, why not begin your process with something like the following: fls=. 'BaseTCs.xml';'PhonyBaloney';'erf.2.xml';'NonExist.ant' fexist fls 1 0 1 0 checkFls=: 3 : 0 if. 0~:missingfls=. (]#~[:-.fexist) y do. ('Missing: ','.',~}:;(', '),~.missingfls) 13!:8]99 NB. Signal error. else. 1 end. ) foo=: 3 : 'checkFls y' foo fls |Missing: PhonyBaloney, NonExist.ant,.: checkFls | ('Missing: ','.',~}:;(', '),~.missingfls)13!:8]99 -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Function: open file, barf if doesn't exist
Sorry, this should be checkFls=: 3 : 0 if. 0~:#missingfls=. (]#~[:-.fexist) y do. ('Missing: ',_2}.;(', '),~.missingfls) 13!:8]99 NB. Signal error. else. 1 end. ) -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Interpreting debugger output, please help.
The first line of the middle window has a line of code that matches what's in your top window and this line is prefixed toJ[0] which indicates this is line zero of toJ. On Thu, Mar 25, 2010 at 3:30 PM, Sprague, Webb (OFM) webb.spra...@ofm.wa.gov wrote: I run a script after making a change to the input files, and it barfs. In my top debugger window I have this message: [0] ((10{a.)_ I.@(e.(13{a.))@]} ])@:(#~ -.@((13 10{a.)E.@,)) In the middle debugger window I have this message domain error toJ[0] ((10{a.)_ I.@(e.(13{a.))@]} ])@:(#~ -.@((13 10{a.)E.@,)) clipunfmt[0] (;._2~ e.(9 10{a.));@toj FetchCoContent[395] bxtab=. clipunfmt fread PTHLDR,str CountyFcstMain[3] FetchCoContent '' CoFcstFrm_ok_button[5] CountyFcstMain '' wdhandler_base_[10] fn~'' Note that I cut and paste the top line into my search function in the editor and can't find it, so I am not sure where it is coming from. Can someone tell me what this might mean, or give me a hint + a documentation link? Thanks again for help and patience (Henry -- your message about working directory was exactly what I was after -tx). --- W. Webb Sprague Forecast Analyst Office of Financial Management, Forecast Division GA Bldg., 3rd Floor, 318-K PO Box 43113 Olympia, WA 98504-3113 Tel: 360-902-0634 Fax: 360-725-5174 webb.spra...@ofm.wa.gov http://www.ofm.wa.gov/pop/ -- 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
Re: [Jgeneral] Interpreting debugger output, please help.
If you want to code more defensively, fexist (in files.ijs) will tell you if a file exists or not, i.e. fexist 'C:\Program Files\j602\system\main\files.ijs' 1 fexist 'C:\Not a file that exists' 0 On Thu, Mar 25, 2010 at 4:35 PM, Sprague, Webb (OFM) webb.spra...@ofm.wa.gov wrote: I don't use these verbs, or the debugger, but the domain error looks like toJ is expecting a string and not seeing one. fread 'fdrjlksd' _1 shows that reading a nonexistent file returns a numeric toJ fread 'lksdjlksd' |domain error: toJ | toJ fread'lksdjlksd' that looks like what you're seeing. That would make sense -- I don't know which file yet is non-existent, but that is a reasonable error from what I know about the code. What is PTHLDR,str PTHLDR,str c:\GMA forecast system - J version\InputData\OFM2012SxAgFcst.txt Thx! -- 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
Re: [Jgeneral] Please translate... (part 1 of Inf)
Where 'NO' is boxed 'NO': +--+ |NO| +--+ -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Please translate... (part 1 of Inf)
Mr. Sprague - an alternative way to unbox your variable is to use something like ;rtn to simply raze it: see http://www.jsoftware.com/help/dictionary/d330.htm . It depends on what you want to end up with. The rtn formulation will give you a table, padded out as necessary with each row corresponding to an element of rtn if that's a vector. Note that 1!:2]2 to output to screen is necessary only within a script; in immediate execution mode, 'Return value:', ;rtn or even just rtn works fine. This makes me think you may be using printf-style debugging which is not really necessary in an interpreted environment. You could turn on break before running your code with 13!:0]1 then simply enter the name of the item you wish to look at, as shown above, when your code stops because of an error or breakpoint. You can learn more about the other debugging commands under the documentation of the 13!: family of foreign conjunctions. Good luck, Devon On Tue, Mar 23, 2010 at 11:01 PM, bill lam bbill@gmail.com wrote: for the other question, I guess it should be ('return value:', rtn) 1!:2(2) -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 -- 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
[Jgeneral] NYCJUG meeting membership
Hi - we're planning to have next month's meeting at ThomasNet which so nicely provided us with video-conferencing and Web-ex capability a couple of months ago - we are awaiting final confirmation on this but it looks likely. In the meantime, if you're interested in virtually attending NYCJUG, please send me an e-mail so I can add your name to my mailing list. Also, I've set up a meetup group - http://www.meetup.com/J-Dynamic-Functional-Programming/- you could join to help expand our public web-presence. Thanks, Devon -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] JPhrases wiki page needs repair
Both of these will now return mostly false positives as I've fixed most of the real errors. This was an interesting exercise because it alerted me to a number of potentially interesting pages as well as some other errors: a few of these pages were also missing initial || characters for the first entry of a table. Also, I see that pages using the box characters - like /Interfaces/R/Rserve/Examples - don't render properly even though they look fine in the editor. I also re-discovered my own page from back when the wiki format changed where I was experimenting with variants of the triple curly-braces to see what works properly and what doesn't: DevonMcCormick/testInlineCode . I couldn't fix one immutable page with the error: http://www.jsoftware.com/jwiki/HelpOnInstalling/ApacheWithModPython?highlight=%28\{\{\{import%20os%20%29 . On Sun, Feb 14, 2010 at 4:10 AM, Sherlock, Ric r.g.sherl...@massey.ac.nzwrote: Good idea to use regex. The following gives fewer false positives: regex:\n\{\{\{\w -Original Message- From: general-boun...@jsoftware.com [mailto:general- boun...@jsoftware.com] On Behalf Of Oleg Kobchenko Sent: Sunday, 14 February 2010 21:33 To: General forum Subject: Re: [Jgeneral] JPhrases wiki page needs repair This due to Code start markup ({{{) followed by non-space chars and not terminated on the same line. E.g. Test {{{ test-- error Should be Test {{{ -- must be new line test Here's most of the pages: http://www.jsoftware.com/jwiki/Vocabulary/greaterthan.?action=fullsearc hcontext=180value=regex%3A%22\{\{\{+%2B[^\r\n}%23!]%2B\n%22fullsearc h=Text The search is: regex:\{\{\{ +[^\r\n}#!]+\n From: Sherlock, Ric r.g.sherl...@massey.ac.nz If you haven't got time to fix it, mark it with CategoryFixMe. http://www.jsoftware.com/jwiki/CategoryFixMe -Original Message- From: general-boun...@jsoftware.com [mailto:general- boun...@jsoftware.com] On Behalf Of Brian Schott Sent: Sunday, 14 February 2010 20:11 To: General forum Subject: [Jgeneral] JPhrases wiki page needs repair http://www.jsoftware.com/jwiki/JPhrases/PolynomialsRational near the bottom of the page this page looks trashed. -- (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 -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
Re: [Jgeneral] Upgrade to a quad core
Based on my experience with two cores, the OS seems smart enough to use the other core for a separate J process if one core is busy. On Fri, Feb 12, 2010 at 11:19 AM, Raul Miller rauldmil...@gmail.com wrote: On Fri, Feb 12, 2010 at 11:09 AM, Jan Jacobs jan.wm.jaco...@gmail.com wrote: ls, I want to upgrade my PC from single core to a quad core version, with 4GB RAM. How does J scale with number of processors? Has J ways of configuring a quad core system to support this? When it doesn't, is it worthwhile to port the application to 4 separate communicating J sessions or are there other solutions? Currently I use J504 and J64 Windows XP 64. Thanks in advance for your help. Current versions of J use only one core per J process. FYI, -- Raul -- 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
Re: [Jgeneral] Troublesome Lambert strikes again.
Like this? (],.|:~[: (]$[:i.*/) [:}:$) a 0 0 1 1 2 3 2 4 5 3 6 7 (],.|:~[: (]$[:i.*/) [:}:$) i. 2 3 4 0 0 1 2 3 1 4 5 6 7 2 8 9 10 11 3 12 13 14 15 4 16 17 18 19 5 20 21 22 23 On Sat, Jan 30, 2010 at 8:43 PM, David Ward Lambert b49p23t...@stny.rr.comwrote: NB. Write a function to number the rows of its argument. NB. Example: `a' is an n-dimensional numerical array. ]a =. i.3#2 0 1 2 3 4 5 6 7 NB.NumberRows a NB. 0 0 1 NB. 1 2 3 NB. NB. 2 4 5 NB. 3 6 7 NB. NB. I created this pretty length error: (i.*/}:$a),0 _1 a -- 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
Re: [Jgeneral] Teaching / learning J
Bill - my suggestion is that you find out what they want to do and help them tackle real problems. To this end, it's important to make them aware of the various data I/O facilities - not just Tara, but also 'csv' and ODBC access. Also, the 'images' library is useful. In a related vein, I found Cliff Reiter's work on filling in missing image data - see http://ww2.lafayette.edu/~reiterc/mvq/bafrmid/index.html - very impressive. A recurring problem we talk about in NYCJUG is finding what's available - there's a wealth of material but it sometimes is hidden because of the way we talk about it - we have our own peculiar math-centric vocabulary. I'm intrigued that there's a couple of programs - mentioned on the J Wiki - written by people we've not heard from before or since. Obviously they were able to accomplish something with J even without knowing the language well. I'm thinking in particular of this implementation of diffusion-limited aggregation - http://www.jsoftware.com/jwiki/Studio/Gallery/DLA - which I've used as a starting point to try to demonstrate how code can be made more J-like to take advantage of its strengths - and this implementation of a 2-D convex hull: http://www.jsoftware.com/jwiki/DevonMcCormick/convexHull . Good luck, Devon On Wed, Jan 6, 2010 at 8:45 PM, Bill Harris bill_har...@facilitatedsystems.com wrote: David Mitchell davidmitch...@att.net writes: Here is one example of what I find useful with J: http://www.jsoftware.com/jwiki/Scripts/WeatherPlot David, Thanks. I found it useful, too, although it may not be what my colleagues need at the very start. Bill -- Bill Harris http://facilitatedsystems.com/weblog/ Facilitated Systems Everett, WA 98208 USA http://facilitatedsystems.com/ phone: +1 425 374-1845 -- 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
[Jgeneral] Package manager does not consider new package an update
All - I just ran package manager because I'm interested in taking a look at httpget. I clicked the Updates button and scrolled down to ensure that web/httpget was selected but it was not. I guess since there is no version of it installed, it's not considered an update, so I manually checked it. However, this seems like a bug to me - I expected Updates to give me all the new stuff, not just updates to existing add-ons. -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] sorry, i lost the reference to the 6 page german summary of J
You can get to the J Wiki here: http://www.jsoftware.com/jwiki/FrontPage . It looks like references to German translations of J material are here: http://www.jsoftware.com/jwiki/MarkusSchmidtGroettrup . On Sat, Oct 10, 2009 at 5:42 PM, DIETER ENSSLEN ultrarun...@shaw.ca wrote: not familiar with WIKI, love wikipedia, happy with wiki media tried WIKI J just now, got nowhere so far. thanks -- 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
Re: [Jgeneral] erfinv
There's a namespace created for the distribution functions. Try erfinv_pdistribs_ or coinsert 'pdistribs' erfinv On Sat, Oct 3, 2009 at 1:26 PM, R.E. Boss r.e.b...@planet.nl wrote: When I do load 'stats/distribs/normal' and enter erfinv , I get erfinv |value error: erfinv What is wrong? R.E. Boss -- 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
Re: [Jgeneral] J64 on OpenSUSE 11.1 64bit OS (WAS: RE: [Jbeta] 602 ebeta available for linux32 and linux64)
Alex - to have a record of your problem and how you fixed it, it would be good if you summarized this even if everything is fine. Regards, Devon On Mon, Sep 28, 2009 at 2:40 AM, Alex Rufon alex_ru...@ist-systems.comwrote: Thanks Bill. I'll just edit the jwd script. Unfortunately, I broke my system after trying to install the NVIDIA driver (which for some reason installed a new broken kernel ... why?). Now X won't start. G. I'm going to reinstall and try it again ... if I don't comment on this, everything is fine. ;) -Original Message- From: general-boun...@jsoftware.com [mailto:general-boun...@jsoftware.com] On Behalf Of bill lam Sent: Monday, September 28, 2009 12:20 PM To: general@jsoftware.com Subject: Re: [Jgeneral] J64 on OpenSUSE 11.1 64bit OS (WAS: RE: [Jbeta] 602 ebeta available for linux32 and linux64) On Mon, 28 Sep 2009, Alex Rufon wrote: So, (1) do I have to edit the jwd script or do I just make a symlink of java to java64? (2)I'm using OpenJDK for Java ... isn't this compatible with the Sun Java version? I just edit jwd script. Java itself should already a symlink. Maybe on Eric's computer, 32-bit java is 'java' and 64-bit java is 'java64'. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
Re: [Jgeneral] Anniversary
Roger, everyone else - thanks for all the valuable info. I think this list is supposed to be a list of systems which is why I wouldn't include the original Iverson book. By the same token, I'll eliminate the pure company info, like I.P. Sharp, and keep only the systems, some of which may be products of companies past or contemporary. This is an ongoing project, so anyone should feel free to contribute as you think of new systems. On Mon, Aug 31, 2009 at 1:06 PM, Roger Hui rhui...@shaw.ca wrote: ... And, of course, you can not omit Ken's 1962 book, A Programming Language. Your chronology mixes up when companies were founded and when systems were implemented. e.g. IPSA may have been founded in 1964 (?) but no way SHARP APL or IPSANET were implemented then. ... -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Anniversary
days ago, August 27 (about 4pm), was the 20th anniversary of the birth of J http://www.jsoftware.com/jwiki/Essays/Incunabulum, and it has grown and developed ever since. I don't know if the developers of J consider that the birthdate, but it makes a lot of sense to me. Happy birthday, J! Harvey -- 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 -- 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
Re: [Jgeneral] Anniversary
Joey - according to Wikipedia, Sharp APL was available as an in-house product in 1980. This raises the question of what date to use - that of the internal system or one publicly available. I've been tending to the earlier date. On Mon, Aug 31, 2009 at 1:22 AM, Joey K Tuttle j...@qued.com wrote: Devon, Nice that you're doing this. The IBM 5100 was APL.SV rather than APL\360 - it was indeed in 1975. I think one of the astonishing things about the 5100 is that the IBM Rochester department that developed it had only 8 regular employees. Another interesting fact is that when the 5110 came out with disk storage, a 3.5 inch technology from Sony (that showed up 10 years later in PCs) was rejected because it was too far out - instead the already in use IBM 8 inch floppy was used... Sharp APL came considerably earlier than 1979. Actually in 1978 or 79 Sharp APL had dial up access in Moscow - as well as many other places around the world. STSC's first time sharing service was run on a machine at I.P. Sharp Associates, the development of the APL file system was a shared project. Considerable history of the Sharp network (along with contemporary other networks) can be found at http://www.rogerdmoore.ca/ the wikipedia page http://en.wikipedia.org/wiki/I._P._Sharp_Associates is interesting and partly accurate ... There is active interest in APL and time lines like this at http://www.computerhistory.org/ (whose server has been down today...) - joey At 00:03 -0400 2009/08/31, Devon McCormick wrote: Thanks for the reminder - and a belated happy birthday to J! This is a good intro for something I'm working on for the Ken Iverson page for the ACM's Turing Award winners web pages. There's a section I'm on now for APL systems in chronological order. I've asked APL vendors to contribute a few lines about their respective systems but it's mostly meant as an historical perspective. I'd like some help with dates and any systems I've missed. For instance, Wikipedia mentions systems by Burroughs, CDC, and other mainframe companies with whose APLs I am unfamiliar. Here's what I have so far: [1964] I.P. Sharp Associates: developed early packet switching computer networking system known as IPSANET, and a global e-mail system. Purchased in 1987[?] by Reuters. [1966] APL\360 [1967] APL\1130 [1969] Scientific Time-Sharing Corporation [1973] APL.SV: introduces shared variables. [1973] 8008-based MCM/70 [1975?] APL\360 on the 5100 [?] Burroughs APL\700 [1977] 8080-based small APL called EMPL [1977] Z-80-based TIS APL [1978] PDP / LSI-11 implementmentation of APL [1979] Sharp APL [1981?] IBM VSAPL [1982?] APL.68000 for Motorola 68000 [1983?] Analogic's APL machine [1982] APL*PLUS PC [1983?] NARS2000: open source APL interpreter written by Bob Smith. [1983?] MicroAPL's APLX [1984] IBM APL2 [1985] Dyalog [1988] Timothy A. Budd's An APL compiler [1987] Rationalized APL [1988] A+ [1989] J Software [1990] ACORN: APL to C On Real Numbers - a prototype APL to C compiler. [1993] K [1995] APL2000 [?] APL to C# translator from Causeway Graphical Systems [?] Bob Bernecky's APEX compiler Any help, especially with references, would be appreciated. As you can see, some of them - I'm looking at you Sharp - are particularly difficult to pin down. Thanks, Devon On Sun, Aug 30, 2009 at 8:07 PM, PackRat pack...@anet.com wrote: Three days ago, August 27 (about 4pm), was the 20th anniversary of the birth of J http://www.jsoftware.com/jwiki/Essays/Incunabulum, and it has grown and developed ever since. I don't know if the developers of J consider that the birthdate, but it makes a lot of sense to me. Happy birthday, J! Harvey -- 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 -- 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
Re: [Jgeneral] Anniversary
Thanks for the reminder - and a belated happy birthday to J! This is a good intro for something I'm working on for the Ken Iverson page for the ACM's Turing Award winners web pages. There's a section I'm on now for APL systems in chronological order. I've asked APL vendors to contribute a few lines about their respective systems but it's mostly meant as an historical perspective. I'd like some help with dates and any systems I've missed. For instance, Wikipedia mentions systems by Burroughs, CDC, and other mainframe companies with whose APLs I am unfamiliar. Here's what I have so far: [1964] I.P. Sharp Associates: developed early packet switching computer networking system known as IPSANET, and a global e-mail system. Purchased in 1987[?] by Reuters. [1966] APL\360 [1967] APL\1130 [1969] Scientific Time-Sharing Corporation [1973] APL.SV: introduces shared variables. [1973] 8008-based MCM/70 [1975?] APL\360 on the 5100 [?] Burroughs APL\700 [1977] 8080-based small APL called EMPL [1977] Z-80-based TIS APL [1978] PDP / LSI-11 implementmentation of APL [1979] Sharp APL [1981?] IBM VSAPL [1982?] APL.68000 for Motorola 68000 [1983?] Analogic's APL machine [1982] APL*PLUS PC [1983?] NARS2000: open source APL interpreter written by Bob Smith. [1983?] MicroAPL's APLX [1984] IBM APL2 [1985] Dyalog [1988] Timothy A. Budd’s “An APL compiler” [1987] Rationalized APL [1988] A+ [1989] J Software [1990] ACORN: APL to C On Real Numbers - a prototype APL to C compiler. [1993] K [1995] APL2000 [?] APL to C# translator from Causeway Graphical Systems [?] Bob Bernecky's APEX compiler Any help, especially with references, would be appreciated. As you can see, some of them - I'm looking at you Sharp - are particularly difficult to pin down. Thanks, Devon On Sun, Aug 30, 2009 at 8:07 PM, PackRat pack...@anet.com wrote: Three days ago, August 27 (about 4pm), was the 20th anniversary of the birth of J http://www.jsoftware.com/jwiki/Essays/Incunabulum, and it has grown and developed ever since. I don't know if the developers of J consider that the birthdate, but it makes a lot of sense to me. Happy birthday, J! Harvey -- 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
Re: [Jgeneral] Array Based Languages
Dieter - I think your confusion stems from this: Joey K Tuttle j...@qued.com (on Fri, Aug 7, 2009 at 1:54 PM) included part of a J session: Pi 50 3.14159265358979323846264338327950288419716939937510 Pi (2: + j.~) : [: (@o. % ]) 10_ ^ x: The two lines here that are indented by three spaces are what Joey typed, i.e. Pi 50 and Pi; the other two lines are responses from the J interpreter. The missing etc etc is that you need to enter Pi=: (2: + j.~) : [: (@o. % ]) 10_ ^ x: to define the Pi verb as Joey had done. In his example, he showed a use of the verb (Pi 50) then entered the verb name with no arguments to display its definition. I think the confusion was caused by the seasoned J users understanding the implication of what Joey showed and entering the definition of Pi as I've shown it above whereas you probably missed that implication. I, too, was confused by the subsequent discussion about entering (2:+j. as this partial expression gives an error. A fuller context would have been helpful. Regards, Devon On Sat, Aug 8, 2009 at 12:16 PM, DIETER ENSSLEN ultrarun...@shaw.ca wrote: sorry, can you be a tiny bit more specific with a little complete example of how to get a few significant figures of pi for example printed out? pi=:(2:+j. what is the etc etc etc that will get pi to 10 significant digits for example and would it be a real number i could work with? so what does J work with internally, 16 significant digits normally?? -- 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
[Jgeneral] Will J run on plug computers?
These (http://www.plugcomputer.org/index.php/home) are small, low-power devices that run Linux on an ARM-compatible chip. -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Re (2): profile.js
Hi - I couldn't find the reference but I was not talking about avoiding meaningful aliases. I probably was referring to functions I wrote, like one to remove redundant spaces, which are available in the J installation, and some complicated path variables I was using. The path variables were replaced by a single customization, defining a J folder Code (in Edit/Configure/Folders) and subsequent use of '~Code' to path my own scripts which I keep apart from the J installation. I still have some peculiar customization to keep my J console environment in synch with the standard session editor but I've gotten organized to the point of being able to install the standard J, then drop my customizations in with minimal fuss. Hope this clears things up, Devon On Fri, May 22, 2009 at 6:57 PM, peasth...@shaw.ca wrote: At Mon, 12 May 2008 21:13:07 -0400 Devon McCormick wrote, ... customized profile but have been able to do away with this - it's simpler to be able to rely on more of the default settings. For example, my profile.js has screen=. 1!:22 NB. Screen something as a side effect. Are you recommending the native expression 1!:22 rather than the alias screen? Please elaborate a little. At Mon, 12 May 2008 21:31:48 -0400 Henry Rich wrote, ... like the difference between Middle English and Modern English. Expect some translating. Will think of it as an adventure rather than an ordeal. Thanks fellows, ... Peter E. -- http://members.shaw.ca/peasthope/ http://carnot.yi.org/ = http://carnot.pathology.ubc.ca/ -- 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
Re: [Jgeneral] JWD (GUI) under Linux32
Based on what he said about testing, v is a verb defined in the script v_definition.ijs. On Fri, May 15, 2009 at 11:09 AM, PETER EASTHOPE peasth...@shaw.ca wrote: Hello David, v n [ load'v_definition.ijs' Is v the name of a script for emacs or is it a verb in j or is it something else. Please explain a little more. Thanks, ... Peter E. -- 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
Re: [Jgeneral] JWD (GUI) under Linux32
Hi Everybody - I use J by running jee.exe under emacs and am very happy with the result as I can use emacs within my J session but also have the graphics available. However, I'm running a very middle-of-the-road system - 32-bit XP - so have not had to deal with any Java/J incompatibilities. This environment translates well to Mac, too, though I've played around with it less there. Regards, Devon On Wed, May 13, 2009 at 3:54 PM, David Ward Lambert b49p23t...@stny.rr.comwrote: Dear Sir: I use a Lenovo T500 with Ubuntu Jaunty release, Gnome. I had a difficult time getting Java to work, but it now does. My jwd works. I prefer to avoid these interactive program development environments. Instead, I use jconsole in an emacs shell buffer and edit code in a different emacs buffer. To test my routines in jconsole I use a line like this, for example. I can change the script then retest by reusing the line. v n [ load'v_definition.ijs' Anyway, here's my java version. Possibly java is required for the graphics libraries. ubuntu$ java -version java version 1.6.0_0 OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu7) OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode) My first programming language was APL, last millennium in the 70's. I then worked for a batch of years in FORTRAN, c, ANSYS (APDL), python. Finally I'm coming home along the Iverson path. Good luck, I'm going to force j upon myself and hope you do also. I've found the jfc manual to explain j best. But of course, as an APL programmer I already got the big picture am able to formulate problems as matrices and operations on them. Dave. -- 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
Re: [Jgeneral] Solaris support?
I'm very happy running jconsole under emacs. It would be great if I could get this working on my Solaris box. Thanks for the tips. On Fri, Apr 17, 2009 at 9:33 AM, neit...@gaertner.de wrote: Devon McCormick wrote: Yes - it's a sun4u (a sun-blade-100?).Where can I get the source? From JSoftware -- see http://jsoftware.com/source.htm Do you know if there's a preferred compiler for it? The source for the core J engine is not compiler dependent on a specific compiler. Occasionally, J tramples on offical name space and you have to resolve that somehow, but that's not a huge deal. I don't know anything about the requirements of the IDE, I just use the language itself with a variant of the jconsole. JSoftware will certainly be able to tell you all the details. Martin -- 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
Re: [Jgeneral] Solaris support?
Yes - it's a sun4u (a sun-blade-100?).Where can I get the source? Do you know if there's a preferred compiler for it? Thanks. On Thu, Apr 16, 2009 at 4:52 AM, neit...@gaertner.de wrote: Devon McCormick wrote: Hi - now that I better know my way around the Solaris box I have use of, I can tell you that it's version 8 of Solaris on a sparc. Any chance of J running on this? Yes. As I wrote: J4.05 for sun4c/sun4m/sun4u sparc variants were official releases. As far as I am aware, this would cover are all sparc variants which exist. uname -a tells you (and everybody else) what you are actually using. Martin -- 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
Re: [Jgeneral] Solaris support?
Hi - now that I better know my way around the Solaris box I have use of, I can tell you that it's version 8 of Solaris on a sparc. Any chance of J running on this? On Thu, Apr 9, 2009 at 8:27 PM, neit...@gaertner.de wrote: Devon McCormick wrote: Does J run on Solaris? Which architecture are you using? J4.05 for sun4c/sun4m/sun4u sparc variants were official releases. Just 10 days ago I had installed the current OpenSolaris 2008.11 on an x86/x64 here in order to make A+ run on it (and it does now). It took only 30 minutes right now to port J to that platform: neitzel 44 j 9!:14'' 4.05+GDS changes/2008-02-16/18:30 2!:0 'uname -a' SunOS brian 5.11 snv_101b i86pc i386 i86pc exit 0 neitzel 45 4.05 is good enough for me and certainly better than nothing. Martin (I have two UltraSparcs rotting in my basement. What a shame.) -- 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
Re: [Jgeneral] Solaris support?
I don't know the architecture but it's a fairly recent machine. On Thu, Apr 9, 2009 at 8:27 PM, neit...@gaertner.de wrote: Devon McCormick wrote: Does J run on Solaris? Which architecture are you using? J4.05 for sun4c/sun4m/sun4u sparc variants were official releases. Just 10 days ago I had installed the current OpenSolaris 2008.11 on an x86/x64 here in order to make A+ run on it (and it does now). It took only 30 minutes right now to port J to that platform: neitzel 44 j 9!:14'' 4.05+GDS changes/2008-02-16/18:30 2!:0 'uname -a' SunOS brian 5.11 snv_101b i86pc i386 i86pc exit 0 neitzel 45 4.05 is good enough for me and certainly better than nothing. Martin (I have two UltraSparcs rotting in my basement. What a shame.) -- 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
Re: [Jgeneral] Solaris support?
Thanks - I didn't think so but I've just gotten some work on a Solaris box and was hoping I could use my favorite tools. On Thu, Apr 9, 2009 at 8:13 AM, Eric Iverson eric.b.iver...@gmail.comwrote: Years ago there were wersions of J for Solaris on Sun hardware. There are no current versions. On Wed, Apr 8, 2009 at 3:48 PM, Devon McCormick devon...@gmail.com wrote: Does J run on Solaris? -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
[Jgeneral] Solaris support?
Does J run on Solaris? -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Wiki
Matthew - by all means, post it to the wiki. This is what it's there for. Regards, Devon On Fri, Mar 27, 2009 at 1:40 PM, Matthew Brand mtthwb...@googlemail.comwrote: Thanks. Actually it looks a bit scary though so I will take some time to explain what I want to do in case it is inappropriate usage of the wiki. I wanted to post some code on a wiki page rather than pasting it into a very long email to programming. I have made a class that acts on collections of objects which I thought I would share and also to see if anybody else has already made a similar thing (or if there is already built into J a facility to do the same thing) and also to ask for advice on how to do a particular thing. Should I just paste the code into an email to programming rather than trying to put it into the wiki? On Fri, Mar 27, 2009 at 5:18 PM, Roger Hui rhui...@shaw.ca wrote: What is required is to add MatthewBrand to http://www.jsoftware.com/jwiki/EditGroup I have now done this. You can now create/edit pages as long as you sign on as MatthewBrand. I believe this measure is to thwart spammers/vandals. - Original Message - From: Matthew Brand mtthwb...@googlemail.com Date: Friday, March 27, 2009 10:00 Subject: [Jgeneral] Wiki To: General forum general@jsoftware.com I want to put something on the jwiki but am unsure about how to request permission to edit the page. I have sent and email to w...@jsoftware.com with MatthewBrand in the subject and the body ... is that what I am supposed to do? -- For information about J forums see http://www.jsoftware.com/forums.htm -- http://www.ixquick.com/ Ixquick Protects Your Privacy! The only search engine that does not record your IP address. http://www.vivapalestina.org/ -- 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
Re: [Jgeneral] screen cast of downloading J
Rob - we have a Mac in the house but it's OSX 10.3. I guess this is more incentive to upgrade. The other reason is that my wife wants to watch streaming Netflix but their player doesn't work with the older OS. It's probably easier to just use the Mac for this than to deal with kludgy Windows stuff. Fortunately, J will behave about the same in most cases (except for installation). Thanks, Devon On Sun, Mar 15, 2009 at 10:56 PM, Rob Hodgkinson r...@hologrambi.com wrote: Devon, not sure if you are using a Mac or not, but there is a really nice tool on Mac OSX 10.5 you can use called Screenflow. I have used this to create similar videos (incredibly easy to use/mix) and you can export using other tools (eg Quicktime Pro) to create Windows or other standard formats for replay. .../Regards Rob http://www.telestream.net/screen-flow/overview.htm On 16/03/2009, at 1:49 PM, Devon McCormick wrote: Brian - this could be a good tool for teaching about J. How did you record the session and soundtrack? Good effort. Regards, Devon On Sun, Mar 15, 2009 at 3:10 PM, Brian Schott schott.br...@gmail.com wrote: I have placed a screen cast onto Youtube.com. I welcome comments here or even there. http://www.youtube.com/watch?v=cqAvUuprLP8 -- (B=) -- 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 -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] screen cast of downloading J
Brian - this could be a good tool for teaching about J. How did you record the session and soundtrack? Good effort. Regards, Devon On Sun, Mar 15, 2009 at 3:10 PM, Brian Schott schott.br...@gmail.comwrote: I have placed a screen cast onto Youtube.com. I welcome comments here or even there. http://www.youtube.com/watch?v=cqAvUuprLP8 -- (B=) -- 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
Re: [Jgeneral] J with APL
Do you have a link to your talk or can you tell us when and where? On Thu, Mar 12, 2009 at 11:18 AM, Robert Bernecky berne...@snakeisland.comwrote: The above red text was directly copy/pasted from a pdf file produced with xelatex, from this text, which I tinkered from slides for a talk I'm giving at NYU on March 24. The red text is what makes the APL happen: ... -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] J with APL
As much as I love the APL symbols, the advantages of the J symbol set are formidable. Take a look at the J vocabulary page - the entire language is laid out there. Take a moment to appreciate the carefully chosen relations between different variations of a given symbol. Looking at the % line just now, I notice that dyadic %: is generalized root. On this one line, you go from simple inverse and divide, to matrix inverse and divide, to square root and general root. If you replace these combined characters with symbols, you hide these subtle relations between the functions. Admittedly, some of them are contrived, arbitrary or subject to the vagaries of historical expectations - I'm looking at you, line. But what isn't? Our widely accepted, and overloaded equals sign = is based on a geometrical notion of parallel lines. Not only that, I've been dealing with the problems of the APL character set for close to 40 years now - just look at the problems I've had getting a good copy of Ken's 1980 Turing Award paper available - and I'm happy to leave that to others. I'm glad that's it's better than it used to be but it still requires most people to take several steps or put up with an ugly compromise. RIP. On Thu, Mar 12, 2009 at 10:51 PM, bill lam bbill@gmail.com wrote: On Thu, 12 Mar 2009, Don Watson wrote: Unfortunately I am not an experienced J programmer, likely to quickly produce a simulation. I am new to J, but impressed with the advantages of an ASCII keyboard. I only remember how quickly I learned APL 40 years ago; although J can express harder things much better, I perceive it harder to express simple things in J. I think that it is possible to use regex or J or APL to translate . and : inflections to composite characters that you purposed. However I also think that J developers will not consider that to be cost-benefit to implement that just for attracting APLers. Nevertheless you are welcomed to implement it by yourself and contribute back to J community. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩226 王維 送別 山中相送罷 日暮掩柴扉 春草明年綠 王孫歸不歸 -- 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
Re: [Jgeneral] Notation as a Tool of Thought
Roger - this looks very good - it will be an excellent link to have for the Turing site. However, the APL characters at first appeared not as nice as they could be until I loaded the APL385 font onto my machine (and re-loaded the page). Now they look fine. I don't know what the default was before I did this, but I did see poorly proportioned APL characters at first: jot was not centered in the character cell, quad was too short, the arrows were too long, and omega was almost closed at the top. It looked like perhaps a proportional font of some kind. Does anyone know what font I was getting at first? It might be good to warn people as it was a little confusing to see this ugly version when I first loaded the page. The APL385 version looks like it's supposed to - you can see why we like the look of APL when you see it properly. Thanks for putting this up. Regards, Devon On Tue, Feb 24, 2009 at 2:37 AM, Roger Hui rhui...@shaw.ca wrote: http://www.jsoftware.com/papers/tot.htm Please let me know of any errors or problems, in particular problems with the APL characters. -- 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
Re: [Jgeneral] Notation as a Tool of Thought
I use Firefox 3.0.1 and had to do nothing other than install the font an re-load the page. Subsequently using MSIE worked fine as well. One odd but good thing was when I cut and paste from the page into MS Word, the APL appears fine even when I change the font of the code to Courier New. 2009/2/24 bill lam bbill@gmail.com On Tue, 24 Feb 2009, Brian Schott wrote: http://www.pixentral.com/show.php?picture=1MbqtRlvMuNcviGniuSXrAcyFZrM0v1 I see the above on Firefox on a Mac. That page recommend using the font apl385. However I suppose it is quite awkward to set the browser to use that font for viewing apl characters and then reset to human fonts for browsing other pages. I use dejavu sans mono (http://dejavu-fonts.org) as default font and it can render most apl characters. It contains most unicode characters and symbols (no cjk). http://www.pixentral.com/show.php?picture=18tJgeF7gCACzwcPAM75UOthMdGAV1 notable exceptions are lamp and base encoding. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩165 崔塗 巴山道中除夜有懷 迢遞三巴路 羈危萬里身 亂山殘雪夜 孤獨異鄉春 漸與骨肉遠 轉於僮僕親 那堪正飄泊 明日歲華新 -- 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
Re: [Jgeneral] Notation as a Tool of Thought
In general, I agree with Harvey that it makes sense these days to do things the other way around. Hey, it's kind of like the better ideas of doing away with order-of-operations or programming notationally rather than lexically: you're bound to get resistance. However, in this case, particularly for my purpose of linking to the original Turing Award lecture, I agree with Roger that keeping the historical document as-is makes more sense. On Tue, Feb 24, 2009 at 2:51 PM, Roger Hui rhui...@shaw.ca wrote: I want to be as faithful to the original as reasonable; therefore, I am sticking to the current errata arrangement. - Original Message - From: Hahn, Harvey hh...@ahml.info Date: Tuesday, February 24, 2009 10:33 Subject: Re: [Jgeneral] Notation as a Tool of Thought To: General forum general@jsoftware.com Roger Hui wrote: |The wrong symbol for floor was in the original paper |and is noted in the Errata section. Errata/Corrigenda sections were obviously necessary in print publications because you can't change the printed page, but, for pete'ssake, we're now in an online world, and distributable documents should have the correct versions within them. Why promulgate errors?? There's enough of that on the Internet already! For repristinators who want to recreate the original error-filled document for themselves, reverse the print-world process and have an Errors Corrected section (containing the print errors) at the end. ... -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Notation as a Tool of Thought
It should be De Morgan - he's not Scottish. Devon McCormick On Tue, Feb 24, 2009 at 1:59 PM, John Randall rand...@andromeda.rutgers.edu wrote: Roger Hui wrote: I put into the Errata only things that I know for certain are incorrect. It is debateable whether DeMorgan is incorrect (esp. when used twice). I think DeMorgan was meant, even though it is not correct. See for example http://books.google.com/books?id=GzMAQAAJprintsec=titlepagesource=gbs_summary_rcad=0 Best wishes, John -- 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
Re: [Jgeneral] Teaching
I see the short-term advantage of hiding J beneath keywords but I think it's costly because it submerges some of the language's advantages. One of J's general advantages is that it is a symbolic notation. In his essay Seven Great Blunders of the Computing World, Neville Holmes lists Scientific Programming as one of these blunders because this promoted lexical, rather than symbolic thinking. Unfortunately, this is one of those blunders so well-entrenched, like order of operations, that a good alternative will be rejected because it corrects a mistake we've grown used to. J seeks a good compromise between the weird symbols of APL - of which I am very fond - and the practicality of acknowledging that we're still stuck in the ASCII jail if we want widespread compatibility. The J symbols represent a lot of careful thought because many of them illustrate similarity of concept with similarity of notation. For instance, isn't it handy that match (-:) is so close to less (-.)? I'll often do something like the following when I'm comparing two data items: aa -: bb NB. Do they match? 0 aa -. bb NB. If not, what are the different elements? (If that's why they don't match) NB. The items of aa not in bb appear here... Looking across the vocabulary page highlights many other useful relations between the characters of a symbol and the symbol's relation to another, similar concept written with similar characters. I agree that perhaps an initial presentation should shield the audience from raw J but it's a disservice to continue this way for very long. We discussed this issue in a recent NYCJUG: http://www.jsoftware.com/jwiki/NYCJUG/2009-01-13#Beginner.27sregatta . Feel free to add to the discussion by adding another page on this topic and linking to what's there. Regards, Devon On Mon, Feb 23, 2009 at 12:02 PM, Gilles Kirouac gkiro...@riq.qc.ca wrote: 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 -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Copy of Ken's Turing lecture in text format?
Whether you can do this or not depends on the particular PDF file and sometimes the dream is a nightmare. In the case of this lecture, getting the text from the Quote Quad PDF is helpful but all the APL comes through garbled so I may have to re-type that part of it. On Tue, Feb 17, 2009 at 11:27 AM, David Vincent-Jones davidvincentjo...@gmail.com wrote: Well, I really learnt something here .. never knew that it was possible to cut text from a PDF image and paste into a word file. It appears to be totally font independent. Works like a dream. Is this something that only works under Linux? On Mon, 2009-02-16 at 20:55 -0500, Devon McCormick wrote: Thanks, Roger. This is helpful though the character set is still a problem - I can't simply cut-and-paste the text and expect it to look the same. At least I can avoid typing the non-APL parts of it. FWIW - I did find free OCR software on the web - http://www.freedownloadscenter.com/Business/Imaging_and_OCR_Tools/FreeOCR.html- that works fairly well from .JPGs - but not on APL, of course. On Mon, Feb 16, 2009 at 5:22 PM, Roger Hui rhui...@shaw.ca wrote: Ken's Turing Lecture was republished recently in March/June 2007 as Volume 35, Issue 1-2 or the APL Quote-Quad. http://portal.acm.org/citation.cfm?id=1234321.1234322coll=GUIDEdl=GUIDECFID=22213405CFTOKEN=22653326 I understand that this was not simply an image of the 1979 CACM paper but a re-type(set) version. So either the ACM would have the text, or the editors of the APL Quote-Quote at the time would have the text. - Original Message - From: Devon McCormick devon...@gmail.com Date: Monday, February 16, 2009 9:53 Subject: [Jgeneral] Copy of Ken's Turing lecture in text format? To: J-general forum general@jsoftware.com Hi - I'm working on a web page commemorating Ken's Turing award and am wondering if anyone has a copy of his lecture in a text format; i.e. not the PDF of images from the 1981 issue of Communications of the ACM, which I have. I'm currently typing it in but it's going to take a while. Fortunately, for the web page, I'll initially need only the introductory section, which I've already entered. Part of the difficulty of entering it is the APL character set (surprise) but I've decided that the APL385 Unicode font will do for this. Interestingly, one of the first special characters was _not_ a standard APL one - it's the double-headed arrow for equivalence. In any case, I would like to get the whole lecture up in a more searchableform. -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
[Jgeneral] Copy of Ken's Turing lecture in text format?
Hi - I'm working on a web page commemorating Ken's Turing award and am wondering if anyone has a copy of his lecture in a text format; i.e. not the PDF of images from the 1981 issue of Communications of the ACM, which I have. I'm currently typing it in but it's going to take a while. Fortunately, for the web page, I'll initially need only the introductory section, which I've already entered. Part of the difficulty of entering it is the APL character set (surprise) but I've decided that the APL385 Unicode font will do for this. Interestingly, one of the first special characters was _not_ a standard APL one - it's the double-headed arrow for equivalence. In any case, I would like to get the whole lecture up in a more searchable form. Thanks, Devon -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] A couple of gripes about the JSoftware site
Roger - I think this is a good idea. Web browsing is different than printed pages and it makes sense to play to its strengths. Regards, Devon On Wed, Feb 11, 2009 at 4:46 AM, Roger Stokes r...@rogerstokes.free-online.co.uk wrote: On the topic of indexing HTML documents, there is something to be said for making the document one big page, rather than a page per chapter. With one big page, you can use your browser's FIND function to efficiently search the entire document: fast searching can work as well as or better than a traditional index. For an experiment I have put on the web a one-big-page version of Learning J at www.rogerstokes.free-online.co.uk/onepage.htm and I would be glad to know if people think this is a good idea. There is also a version better for downloading (includes the separate .gif files) www.rogerstokes.free-online.co.uk/onepage.zip Regards Roger - Original Message - From: Henry Rich henryhr...@nc.rr.com To: General forum general@jsoftware.com Sent: Wednesday, February 11, 2009 1:11 AM Subject: Re: [Jgeneral] A couple of gripes about the JSoftware site I would be overjoyed to get a hot-linked index. I'll give you the Microsoft Word source, or the HTML that it produces when I create a Web page, and you can go to it. If I give you the source, you could add to the index callouts if you like. I found that to be a surprisingly onerous task. The web pages are built as follows: I save the source in Word as HTML; I run a script to find the chapters split them into pages; the script installs the navigation header/footer in each page. The Index chapter is deleted because it is meaningless. If this seems OK, email me off-list we'll get started. Henry Rich Hahn, Harvey wrote: Henry Rich wrote: |Oh, you're talking about the index... no, there is no online |link for it, because it is just a list of page numbers. I don't know |how to generate links to the pages automatically from Microsoft Word. |So, the index is available only in the printed copy of the book. I'm a librarian (retiring in just a couple of months), and indexes are our stock in trade. ;-) Would you be willing to give me permission (once I get a copy of your book, which is on my to do list) to create a hotlinked index for the online version of your book? (Or would you prefer to do that yourself?) Harvey -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- 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
Re: [Jgeneral] Install Problem
As far as I can tell, the J install's pretty clean in terms of what it updates: basically just the two directories - the J602 system directory and your J602-user directory; in my case, there's a third directory because I've chosen to retain my own code in its traditional directory. However, I've had good luck simply copying the directories without running the install. On Fri, Feb 6, 2009 at 7:35 PM, David Vincent-Jones davidvincentjo...@gmail.com wrote: Neither 'which jwd' and 'which jconsole' get any response .. must assume that the j install process was the problem. I will try a copy over of both the installed folders but I need to know if the j install tweaks or installs anything else in other folders. The java install went well and looks fine. David On Fri, Feb 6, 2009 at 2:08 PM, Devon McCormick devon...@gmail.com wrote: David - I've successfully copied my J602-user area a number of times. Just to be sure though, did you install it the same way each time? I take the install for all users option every time. Can you start java from the command-line with no problem? Are you sure jconsole is invoking the right thing, i.e. try which jconsole. On my (Windows) system, the Java path is prior to the J one so simply entering jconsole gets me the Java console. Hope this helps, Devon On Fri, Feb 6, 2009 at 4:51 PM, David Vincent-Jones davidvincentjo...@gmail.com wrote: I have just installed onto a second Linux machine a copy of j602a. This is an XO box with the entire OS (Ubuntu 8.10) running on a SD card. Java appears to have correctly installed .. also on the SD Not sure why but the j602 folder was created but the j602-user was not. I could copy over the user folder from my other system .. can I? When I tried to start jwd I got a java error When I tried to start jconsole I got Illegal instruction. Any helpful ideas would be appreciated. David -- 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 -- 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
Re: [Jgeneral] Install Problem
David - I've successfully copied my J602-user area a number of times. Just to be sure though, did you install it the same way each time? I take the install for all users option every time. Can you start java from the command-line with no problem? Are you sure jconsole is invoking the right thing, i.e. try which jconsole. On my (Windows) system, the Java path is prior to the J one so simply entering jconsole gets me the Java console. Hope this helps, Devon On Fri, Feb 6, 2009 at 4:51 PM, David Vincent-Jones davidvincentjo...@gmail.com wrote: I have just installed onto a second Linux machine a copy of j602a. This is an XO box with the entire OS (Ubuntu 8.10) running on a SD card. Java appears to have correctly installed .. also on the SD Not sure why but the j602 folder was created but the j602-user was not. I could copy over the user folder from my other system .. can I? When I tried to start jwd I got a java error When I tried to start jconsole I got Illegal instruction. Any helpful ideas would be appreciated. David -- 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
[Jgeneral] NYCJUG Meeting: Tuesday, 2/10, 2009, 6:30 pm at BEST in Hoboken, NJ at 33-41 Newark Street, PH
Thanks again to BEST for hosting us! The NYCJUG regular monthly meeting this coming Tuesday, February 10th, 2009, at 6:30 pm, will be held in Hoboken, NJ at the new offices of BEST at 33-41 Newark Street, PH; you may have to call up to 201 792-1002 to gain entrance to the building. See http://www.jsoftware.com/jwiki/NYCJUG for the meeting information and http://www.jsoftware.com/jwiki/NYCJUG/BESTHobokenAddressDirections for directions to the meeting. All interested in J are welcome! If you've learning a new language, especially one as rich as J, it's valuable to talk about it face-to-face with people. Even if you already know a language well, it's often illuminating to explain things to those less knowledgeable than you. See http://www.jsoftware.com/jwiki/NYCJUG for details on the group and notes on past meetings. The general format of our meetings is as follows: 18:30 - 19:00Beginner's regatta - we cover topics on basic facilities of J 19:00 - 19:30Show-and-tell - attendees are encouraged to show recent code on which they've been working in order to show off, and to solicit advice and sympathy. 19:30 - 20:00Advanced topics - we look at more advanced features of the language. 20:00 - 20:30Learning and teaching J - we're distilling our own experiences to help others get a handle on J and improve our own knowledge of it. 20:30 - ?General talk, drink beer, go home, eat dinner, whatever. These broad areas are structured and ordered so that you may arrive or leave earlier or later depending on your particular interests. -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] [Jprogramming] list names local to explicit verb
I'm not sure why something like this doesn't work: myverb=: 3 : 0 a=. 'hello' b=. 3 4 2 9 c=. 'big';'little';30 2 nl 0 ) (nl 0)-.myverb '' On Mon, Jan 26, 2009 at 6:30 PM, Sherlock, Ric r.g.sherl...@massey.ac.nzwrote: Is there a way to list names within an explicit verb that are local to that verb? Myverb=: 3 : 0 a=. 'hello' b=. 3 4 2 9 c=. 'big';'little';30 2 NB. Expression to List names defined locally to this verb NB. (i.e. the list: 'a';'b';'c') Localnames=. ListLocalNames pack Localnames ) Given the missing expression ListLocalNames the verb would return Myverb '' +-+-+ |a|hello| +-+-+ |b|3 4 2 9 | +-+-+ |c|+---+--++| | ||big|little|30 2|| | |+---+--++| +-+-+ -- 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
Re: [Jgeneral] Help in console?
I point a browser to my local J help pages (e.g. file://localhost/C:/Program%20Files/j602/help/dictionary/vocabul.htm). In fact, I accidently left Opera defined as my default browser for J after I had otherwise switched to using Firefox. This turns out to be handy as Opera now starts up with different tabs pointing at the different J help pages I've found most useful in the past. On Mon, Jan 19, 2009 at 3:32 PM, Björn Helgason gos...@gmail.com wrote: I am wondering if there is any help available to Jconsole? Once you are in the console is there any help available? 2+2 4 ? ? help |value error: help outside in the J directory C:\Program Files\j602\binhelp j This command is not supported by the help utility. Try j /?. C:\Program Files\j602\binj /? C:\Program Files\j602\binjconsole ^C C:\Program Files\j602\binhelp j This command is not supported by the help utility. Try j /?. C:\Program Files\j602\binman j 'man' is not recognized as an internal or external command, operable program or batch file. C:\Program Files\j602\binhelp jconsole This command is not supported by the help utility. Try jconsole /?. C:\Program Files\j602\binjconsole /? ^C |interface error: script | 0!:0 y[4!:55'y' -- Björn Helgason, Verkfræðingur FuglFiskur ehf, Þerneyjarsundi 23, Hraunborgum Po Box 127,801 Selfoss , t-póst: gos...@gmail.com gsm: +3546985532 Landslags og skrúðgarðagerð, gröfuþjónusta http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .---. ,' .\ / | Með léttri lund verður| ,--'_,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. |`---' | ) | (\_ _/) (`-. '--.) (='.'=) `. )'()_() ☃☠ -- 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
[Jgeneral] Peliminary agenda for NYCJUG meeting 1/13/09 18:30 at Heartland, 34th and 5th, NYC
If any of these topics interest anyone, I can provide the documents referenced - we welcome input even if you can't make the meeting. Meeting Agenda for NYC JUG 20090113 --- 1. Beginner's regatta: how to read J? Talent pool deep enough? 2. Show-and-tell: Meteor report? How to do multi-dimensional key? 3. Advanced topics: various graphics-related projects: isigraph Paint Demo.doc, J OpenGL.doc, plottingRepeatedly3D.txt, TimeSeriesScriptsJWiki.doc, and first few pages of OpenGL Example with Keystrokes.doc. 4. Learning, teaching and promoting J: Data Analysts Captivated by R.doc, Introducing Programming in High School Using Python_inpGrPeBaSa06a.pdf, and Great Hackers by Paul Graham.doc. -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] Spatial Clock ?
I'm pretty sure I speak for everyone here when I say: huh? On Sat, Dec 27, 2008 at 11:57 AM, Istvan Kadar istvan.ka...@gmail.comwrote: SPATIAL CLOCK ? From digital to analogue - in 'time' level and vice versa - in 'space' one hour,minute,second digits: 0 1 2 3 4 5 6 7 8 9 a 'time' data: 10:35:59 / | clock hands: o - - o NB. unicode fantasy \\ 135 059NB. two vector digits NB. as unicode indexes X, Y, Z digits: 0 1 2 3 4 5 6 7 8 9 a 'space' data: 47 69 31 / clock hands: o - - o NB. from same unicode set |\ / 463791NB. two vector digits NB. as indexes NB. in decimal position system Any comment? regards, Istvan -- 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
[Jgeneral] Mathweb page for J
I've started a page on Mathweb for J: http://mathweb.org/wiki/J . Please take a look and feel free to add anything you think will interest mathematically-inclined people to explore it further. -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] In-lining code on new wiki - has syntax changed?
Yes - I now have the reference. Thanks: * The wiki parser can be used with css classes now: {{{#!wiki comment This will render output within a div with class comment. You can use any wiki markup as usual. }}} You can also combine multiple css classes like this: {{{#!wiki red/dotted/comment This will render a red background, dotted border comment section. }}} The same thing will work for any other css classes you have. If the css classes contain the word comment, they will trigger some special feature, see next item: * Wiki nested parser/pre sections work now, using this syntax: a) just use more curly braces if you have 3 closing in your content: }}} - does not terminate the section! b) use {{{ + some magic string: {{{somemagicstring }}} - does not terminate the section! somemagicstring}}} c) {{{whatever#!python # py code whatever}}} Pitfall: stuff like below does not work as it did in 1.5: {{{aaa bbb}}} Solution: {{{ aaa bbb }}} On Tue, Dec 9, 2008 at 1:35 PM, Sherlock, Ric [EMAIL PROTECTED]wrote: ---Devon McCormick wrote: I noticed that a story on the J wiki (by Richard Brown) was displaying oddly. The problem is where there was in-lined code using the triple curly braces in the following format: {{{ 'Some code goes here,' NB. but gets messed up because it starts on the same line NB. as the initial curlies but does not also end on that line. }}} Didn't this used to behave differently? Yes it has changed see the section Code Blocks on http://www.jsoftware.com/jwiki/System/MoinMoin18 The reason that the above no longer works is that the following is now supported: {{{mygoodcode NB. Code goes here NB. More NB. And more mygoodcode}}} -- 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
[Jgeneral] NYCJUG meeting for December postponed to January
Due to the holidays, this month's NYCJUG meeting will be postponed to January 13th, 2009. Further details will follow as they become available. -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm