Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread John Baker
You can also check out the JOD addon. It can save and restore entire locales. Install the joddocument addon and read JOD.PDF for details. Cheers Sent from my iPhone > On May 28, 2017, at 8:36 PM, Herbert Weissenbaeck // Privat > wrote: > > Thank you, Henry. > All clear now. > >> On 29 May

Re: [Jprogramming] using lapack?

2017-05-28 Thread bill lam
Lapack manifest now updated. Вс, 28 май 2017, Chris Burke написал(а): > The addon doesn't provide a Mac lapack binary, but instead looks for veclib, > see http://jsoftware.com/websvn/wsvn/public/trunk/math/lapack/defs.ijs. > > There was a forum discussion on this, see http://www.jsoftware.com/pip

Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread Herbert Weissenbaeck // Privat
Thank you, Henry. All clear now. > On 29 May 2017, at 04:26, Henry Rich wrote: > > When you execute nl to get a list of names, nl removes x and y from the list, > because those names are defined in the nl script itself. If you need them > you will have to add them by hand. > > Unsolicited o

Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread Henry Rich
When you execute nl to get a list of names, nl removes x and y from the list, because those names are defined in the nl script itself. If you need them you will have to add them by hand. Unsolicited opinion: it is Very Bad Form to use the names x,y,u,v,m,n as public names. Henry Rich On 5/

Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread Herbert Weissenbaeck // Privat
Thank you. Is there any specific reason, why symbols called 'x' or 'y' are not saved by wssave? > On 28 May 2017, at 15:20, Brian Schott wrote: > > Also, > > http://code.jsoftware.com/wiki/Scripts/File_J_Variables > >> On Sun, May 28, 2017 at 9:06 AM, chris burke wrote: >> >> The system do

Re: [Jprogramming] Function creation, without creating, subfunctions

2017-05-28 Thread David Lambert
xor can be not equal ~: or bitwise 2b10110 b. On 05/28/2017 08:00 AM, programming-requ...@forums.jsoftware.com wrote: Message: 5 Date: Sat, 27 May 2017 23:51:29 -0400 From: Michael Rice To: programming Subject: Re: [Jprogramming] Function creation, without creating subfunctions

Re: [Jprogramming] using lapack?

2017-05-28 Thread chris burke
The addon doesn't provide a Mac lapack binary, but instead looks for veclib, see http://jsoftware.com/websvn/wsvn/public/trunk/math/lapack/defs.ijs. There was a forum discussion on this, see http://www.jsoftware.com/pipermail /programming/2013-August/033197.html. On Sat, May 27, 2017 at 12:31 PM,

Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread Brian Schott
Also, http://code.jsoftware.com/wiki/Scripts/File_J_Variables On Sun, May 28, 2017 at 9:06 AM, chris burke wrote: > The system does not come with a built-in function to save a locale to file. > > There is a script to do this at code.jsoftware.com/wiki/Scripts/WS_Files, > and there are utilities

Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread chris burke
The system does not come with a built-in function to save a locale to file. There is a script to do this at code.jsoftware.com/wiki/Scripts/WS_Files, and there are utilities to read/write data to file in various formats. However, scripts are the preferred way, rather than workspaces. On Sun, Ma

Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread bill lam
the verb nl list all names inside a locale, eg, for locale abc, nl_abc_'' for each name say foo, use 5!:5 to serialize it into a textual J expression,eg 5!:5<'foo_abc_' and then you can write them into a file. The reverse should be simply loading a script. HTH. That said, you don't actually n

Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread Björn Helgason
I do all my J job in a script all the time. So the locale sav/load comes naturally. On 28 May 2017 12:41, "Björn Helgason" wrote: > you can read the locale labs. > > They are very good. > > Object labs also good. > > > On 28 May 2017 12:33, "Herbert Weissenbaeck // Privat" < > h...@herbertweiss

Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread Björn Helgason
you can read the locale labs. They are very good. Object labs also good. On 28 May 2017 12:33, "Herbert Weissenbaeck // Privat" < h...@herbertweissenbaeck.com> wrote: Thank you, Bjoern. I manage to load and save locales manually (iterating over the items contained therein). My specific questio

Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread Herbert Weissenbaeck // Privat
Thank you, Bjoern. I manage to load and save locales manually (iterating over the items contained therein). My specific question is whether there are utility functions (or known best practices) which automate the process. > On 28 May 2017, at 14:14, Björn Helgason wrote: > > You write to a fil

Re: [Jprogramming] Save/load content of locale

2017-05-28 Thread Björn Helgason
You write to a file all your stuff you want to save. Then you load them back when you want to use them. I guess you know how to send them to the locale. You may want to look how the utils do jt. On 28 May 2017 12:04, "Herbert Weissenbaeck // Privat" < h...@herbertweissenbaeck.com> wrote: > How

[Jprogramming] Save/load content of locale

2017-05-28 Thread Herbert Weissenbaeck // Privat
How would I save the content of a specific locale into a file to read it back from there at a later time. Is there any reasonably elegant way to do that? (For some applications I would strongly prefer a workspace oriented work flow over working with scripts.) -