Re: [Jprogramming] broken taraxml?

2023-10-03 Thread jph . butler
Hi Bill, It works fine with the dependencies installed! However, there are some security issues because the two components needed (dll + exe) have been retired by Microsoft and can now only be obtained from generic software download sites. The linux side failure was just an issue with a

Re: [Jprogramming] broken taraxml?

2023-10-03 Thread jph . butler
I failed to read the installation instructions in the manifest, and need to add the correct xslt tools... De : jph.but...@mailoo.org À : programm...@jsoftware.com Sujet : [Jprogramming] broken taraxml? Date : 03/10/2023 14:54:00 Europe/Paris Hello, I have been reactiving some old code of mine

[Jprogramming] broken taraxml?

2023-10-03 Thread jph . butler
Hello, I have been reactiving some old code of mine and it seems that taraxml is now broken.     load'tables/taraxml'     load'~addons\tables\taraxml\test\test.ijs' readxlxsheets: worksheet not found |assertion failure: assert | assert x12-:readxlxsheets fnme |[-47] c:\program files\j9.4\addons

Re: [Jprogramming] jni - correction of dll name for Windows

2022-05-31 Thread jph . butler
perfect. thanks De : bill lam À : Programming forum Sujet : Re: [Jprogramming] jni - correction of dll name for Windows Date : 30/05/2022 18:46:51 Europe/Paris updated, please check. On Mon, May 30, 2022 at 11:21 PM wrote: > Hello, > > > The name of the dll for the Java virtual machine on W

[Jprogramming] jni - correction of dll name for Windows

2022-05-30 Thread jph . butler
Hello, The name of the dll for the Java virtual machine on Windows needs needs to be corrected in jni.ijs (line 308): libjvm=. '"', '"',~ jvm, (('Darwin'-:UNAME) + IFUNIX){::'libjvm.dll';'libjvm.so';'libjvm.dylib' should be changed to: libjvm=. '"', '"',~ jvm, (('Darwin'-:UNAME) + IFU

Re: [Jprogramming] bug: _. and logical operations

2022-05-06 Thread jph . butler
_. also does weird things as the x value for ". NB. the following work as expected:     _". '25' 25      _". 'Haoussa' _ _". 'Gisir' _     _.".'Haoussa' _.    _.". 'GISIR' _. NB. but somehow this fails on some magic values:    _.".'Gisir' |NaN error |  _.    ".'Gisir'     _. "

[Jprogramming] bug: _. and logical operations

2022-05-06 Thread jph . butler
Hello, _. does not mix well with logical operators. The following hang and use a lot of CPU on J 9.03 (Windows and Linux): 1 +.  _. 1 *. _. +. / 8 0 _. Note, that I have no particular use for these sentences, I just stumbled across them due to a bug in my program. Philip ---

Re: [Jprogramming] named noun internals

2022-03-31 Thread jph . butler
Thank you all for the tips! I will try and update the wiki page soon. Philip -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] named noun internals

2022-03-31 Thread jph . butler
I am working on a binding for a dll which requires a bit of mema / memr / memw, and this brought me to looking at symget / symset / symdat With minor tweeking, I updated to 64bits the viewnoun verb from the "Guides/Named Noun Internals" page (running J903): NB. 64 bit version viewnoun=: 3 :

Re: [Jprogramming] J9.03 jqt installation problem on Linux Ubuntu 20.04

2022-03-17 Thread jph . butler
Actually it wasn't ok. It turned out that Jqt >> about showed that is was running J9.02 when installed from /usr/bin - and not 9.03 as when run in from my own directory tree. I then tried to solve conflicts by removing all my old J versions installed in various ways (oldest was 8.06 in /usr/loc

Re: [Jprogramming] J9.03 jqt installation problem on Linux Ubuntu 20.04

2022-03-16 Thread jph . butler
Thanks Raul. Very helpful indeed. vsuffix_z_ =: 'so.9.03' saved the day and everything works fine now. I seem to have the correct pacman.ijs: $ find j903 -name pacman.ijs | xargs grep vsuffix= vsuffix=. ('Darwin'-:UNAME){::'so.9.03';'9.03.dylib' $ md5sum j903/system/util/pacman.ijs f4a658fe640

[Jprogramming] J9.03 jqt installation problem on Linux Ubuntu 20.04

2022-03-16 Thread jph . butler
Initial installation steps following https://code.jsoftware.com/wiki/System/Installation/J903 went smoothly, but trouble appears when installing jqt. $ cat /etc/issue Ubuntu 20.04.2 LTS \n \l $ uname -srvmpio Linux 5.4.0-96-generic #109-Ubuntu SMP Wed Jan 12 16:49:16 UTC 2022 x86_64 x86_64 x86_

Re: [Jprogramming] Is is good idea to use J for reading large XML files ?

2021-08-11 Thread jph . butler
In similar situations -but my files are not huge- I extract what I want into flattened CSV using one or more XQuery scripts, and then load the CSV files with J.  The code is clean, compact and easy to maintain. For recurrent XQuery patterns, m4 occasionally comes to the rescue. Expect minor port

Re: [Jprogramming] Hashing primitives WAS: Farewell for now!

2021-04-14 Thread jph . butler
I agree Robert, symbols are a logical fit if hash tables are implemented. Symbols are a regular part of my diet (small size and quick checking of equality). The closest need to hash tables I have come across is looking up data in a table where one column is a symbol. Usually I look-up many ite

Re: [Jprogramming] GNU Scientific bindings?

2021-03-05 Thread jph . butler
An even more ambitions project than GSL, would be to try and tap into PETSc (Portable, Extensible Toolkit for Scientific Computation)! PETSc provides a nice collection of solvers, matrix preconditioners etc., beyond what Lapack2 offers and presumably much higher performance than calling R throu

Re: [Jprogramming] J and Spreadsheets

2021-01-06 Thread jph . butler
Sorry, I have only enountered batch mode requirements using closed Excel files. ssconvert does have a --recalc option though, so it might work with a file opened with LibreOffice. De : Justin Paston-Cooper À : Programming forum Sujet : Re: [Jprogramming] J and Spreadsheets Date : 06/01/2021 2

Re: [Jprogramming] J and Spreadsheets

2021-01-06 Thread jph . butler
Justin, On a very pragmatic level, I just use CSV as the interchange format. Not ideal but it works. Excel -> CSV -> J    + step1 (Linux) : ssconvert -S   ssconvert ships with gnumeric, works pretty well and is low hassle    + step 2 (Linux): Jd J -> CSV -> Excel    + step 1 (Linux)

Re: [Jprogramming] Code smells in J

2020-08-20 Thread jph . butler
My own smelly code is when I have abused of u"n rank forcing.  It is a clear sign that I had to go for a quick and dirty solution and will have to go back and fix it if I want a nicer multidimensional version. -- For informati

Re: [Jprogramming] What is the best stack for Linux J programming?

2020-01-31 Thread jph . butler
Mostly: => jqt when in the office. It would be nice to have the jqt editor recognize when a file has been modified from another program and suggest to update the contents as soon as the user is back, I would then use vim more often.  I use this feature quite frequently for switching between em

Re: [Jprogramming] Code clarity

2014-01-14 Thread jph . butler
The difficult part in my experience is describing the structure and contents of my inputs and outputs. Usually, I provide sample datasets, and show what verbs to run on them. But I don't have too many readers of my code so I am not sure how practical that really is. I was wondering whether n