Re: [Jprogramming] J802 released

2014-07-09 Thread bill lam
Many addons will only maintained for j802. That means those addons will continue to work for previous versions but will seldom (if any) be updated. Ср, 09 июл 2014, Chris Burke написал(а): > J802 has been released, and can be downloaded from > http://www.jsoftware.com/download/j802/install. Thanks

Re: [Jprogramming] How to get Jqt.app to read env variables correctly?

2014-07-09 Thread Vijay Lulla
Thanks. You're right. This has got to do with how apps get launched in mac. To get this to work you can fiddle with either launchd.conf or launchctl (man launchctl). I added launchctl to the end of my .zshrc file and it now works. This is the line I added: launchctl setenv PATH $PATH and the Jqt.

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread 'Pascal Jasmin' via Programming
A simple suggestion you might not be thrilled about, there could be a 2nd jconsole (named jqtconsole) that could link to all of the non-graphical qt components, and/or jconsole could have command line switches that loads timers or websockets. - Original Message - From: bill lam To: Pr

Re: [Jprogramming] How to get Jqt.app to read env variables correctly?

2014-07-09 Thread bill lam
Since jqt and jconsole use the same j engine so I think this is un-related to J itself. On Jul 10, 2014 8:04 AM, "Vijay Lulla" wrote: > Hi all, > On my macbook pro I get this strange behavior: > > In a Jqt.app (either from finder or icon docked in my dock bar): > #<;._1 ':', getenv 'PATH' NB. yie

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread bill lam
In j7, gtk is started by jconsole, but all Qt applications must be started from executables that have static linked a small piece of Qt lib. I think it is possible to build a jconsole with Qt lib so that it can use some Qt facilities. However not everyone want this dependence. On Jul 9, 2014 9:41

[Jprogramming] How to get Jqt.app to read env variables correctly?

2014-07-09 Thread Vijay Lulla
Hi all, On my macbook pro I get this strange behavior: In a Jqt.app (either from finder or icon docked in my dock bar): #<;._1 ':', getenv 'PATH' NB. yields 4 In jconsole (from terminal): #<;._1 ':', getenv 'PATH' NB. yields 18 I.e. Jqt.app doesn't get the env variables (slightly modified for my

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Devon McCormick
I'm working on a way to display things in a browser, hence my interest in websockets. On Wed, Jul 9, 2014 at 11:15 AM, 'Pascal Jasmin' via Programming < programm...@jsoftware.com> wrote: > Probably very useful, Joe. > > My scheduling framework permits essentially a plugable and detachable > "mai

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Joe Bogner
I am also interested in this area so please share what you end up doing. In terms of serialization/JSON, you may want to evaluate Pascal's JON format. http://www.jsoftware.com/pipermail/programming/2014-February/035542.html And http://www.jsoftware.com/pipermail/programming/2014-February/035575

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Steven Taylor
On 9 July 2014 17:34, Joe Bogner wrote: > https://github.com/borota/NetJ cool. I'll drop Greg a line about that. Certainly would be useful to drop the COM dependency earlier. It may even prove to be smarter to do J to J connections over http (with one of those being pinvoked via C#), rather

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Steven Taylor
I think there's a case for both in-process (hooking into the j.dll) and out-of-process (an IPC technique with TCP/IP / http being the simplest). For the out-of-process direction, in time it'd be good to get that native J structure translation happening in a simpler way either with either a pinvoke

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Joe Bogner
For .NET interop check out https://github.com/borota/NetJ On Jul 9, 2014 11:27 AM, "Jon Hough" wrote: > Thanks I'll have a look through that. My main motivation is to build an > application that uses J as the backend and uses C#, or perhaps Python as > the GUI frontend. > Regards,Jon > > > Date:

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Jon Hough
Thanks I'll have a look through that. My main motivation is to build an application that uses J as the backend and uses C#, or perhaps Python as the GUI frontend. Regards,Jon > Date: Wed, 9 Jul 2014 10:56:30 -0400 > From: joebog...@gmail.com > To: programm...@jsoftware.com > Subject: Re: [Jpro

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread 'Pascal Jasmin' via Programming
Probably very useful, Joe. My scheduling framework permits essentially a plugable and detachable "main" loop (though multiple schedulers are supported).  For debugging, any number of iterations can be executed, but the main use is continuous deterministic in process async execution, and to be a

[Jprogramming] J802 released

2014-07-09 Thread chris burke
J802 has been released, and can be downloaded from http://www.jsoftware.com/download/j802/install. Thanks to everyone who helped with the beta. This is a minor update over J801, with several internal changes and enhancements to JQt. Also, the demos and labs should now all work correctly on both JH

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Joe Bogner
For calling a dll, see http://www.jsoftware.com/jwiki/JoeBogner/CallingDLL for some examples For the other direction, you will need to have the external program invoke the j.dll and evaluate the script. See http://www.jsoftware.com/help/user/calling_jdll.htm On Jul 9, 2014 4:55 AM, "Jon Hough" wr

Re: [Jprogramming] Modifying single element of List or Table

2014-07-09 Thread Jon Hough
Thanks, I actually noticed that after sending my question. Must be a cosmic coincidence. Regards. > Date: Wed, 9 Jul 2014 15:33:04 +0100 > From: earthspo...@gmail.com > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] Modifying single element of List or Table > > @Jon -- let me draw

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Raul Miller
It's not depreciated. Bleeding edge computing is frustrating all too often. Sometimes we can help, if you can help us help you. Thanks, -- Raul On Jul 9, 2014 10:32 AM, "Jon Hough" wrote: > If you can get that on GitHub I'd love to see it. > Thanks. > BTW, sorry if my questions are really dumb

Re: [Jprogramming] DLL Lab

2014-07-09 Thread David Lambert
Here's an example shared object compilation and use from j version 8. Other examples exist at rosettacode.org. On the Tasks page search for "call". If, on the other hand you want to embed j in another language this is also solved at rosettacode. http://rosettacode.org/wiki/Use_another_langua

Re: [Jprogramming] Modifying single element of List or Table

2014-07-09 Thread Ian Clark
@Jon -- let me draw your attention to an ongoing discussion in the J programming forum on this very topic: "Tacit J and indexed replacement" http://www.jsoftware.com/pipermail/programming/2014-July/037968.html Right now we're discussing Amend } and its (perceived) ill-adaptation to the tasks it's (

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Jon Hough
If you can get that on GitHub I'd love to see it. Thanks. BTW, sorry if my questions are really dumb. But for beginners the documentation can be a little frustrating, especially since some of it seems to be deprecated. > Date: Wed, 9 Jul 2014 13:32:54 +0100 > From: tayl...@gmail.com > To: program

Re: [Jprogramming] Tacit J and indexed replacement

2014-07-09 Thread Ian Clark
Dan wrote: >My contention (and I think Ian and Henry's, though I don't want to put >words in their mouths) is that J encourages holistic (i.e. all-at-once) >thinking, which makes the use of } much rarer in J than one would expect >coming from other languages. Yes, I'd go along with that. Splitting

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Marc Simpson
Tricky; since no QApplication has been created, there's no event loop nor container for instantiated widgets. As such, the majority of wd commands will fail (either segfaulting or aborting jconsole) On Wed, Jul 9, 2014 at 2:44 PM, Devon McCormick wrote: > Does this mean there's possibly some hack

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Joe Bogner
On Jul 9, 2014 9:41 AM, "Devon McCormick" wrote: > > What I want is a few pieces of Qt functionality that use "wd" - like > websockets, graphics, and system timer (event-driven things). I used to > have these when gtk was the GUI driver of choice, so, even though Qt is > generally acknowledged to

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Devon McCormick
Does this mean there's possibly some hacks I could do to get it working from the console? On Wed, Jul 9, 2014 at 9:41 AM, Marc Simpson wrote: > I doubt there's anything wrong with Devon's installation; the libjqt > library path isn't set when IFQT is false (see stdlib.ijs). > > Also note that e

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Marc Simpson
I doubt there's anything wrong with Devon's installation; the libjqt library path isn't set when IFQT is false (see stdlib.ijs). Also note that even if you revise the path in wd1 after loading the IDE library, GUI bindings won't work as the requisite setup (provided by jqt) isn't in place. On Wed

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Devon McCormick
What I want is a few pieces of Qt functionality that use "wd" - like websockets, graphics, and system timer (event-driven things). I used to have these when gtk was the GUI driver of choice, so, even though Qt is generally acknowledged to be better than gtk, in its current implementation, it's a s

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread 'Pascal Jasmin' via Programming
In case you are not aware, it is possible to launch jqt through command line with command line parameters that start functions.  If you are doing this for websockets, then you can use sockets or websockets for ongoing inter-process communications.  Perhaps there is a way to return something to t

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Jan-Pieter Jacobs
On 9 Jul 2014 15:15, "Marc Simpson" wrote: > > On Wed, Jul 9, 2014 at 1:18 PM, Jan-Pieter Jacobs > wrote: > > Eg. I might be working in jconsole, but > > do want plots to work as expected. > > Could you please clarify the issue here? (Do you want a dedicated plot > window rather than your default

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Raul Miller
I don't have access to a jqt implementation right now to try this on, but it looks like you have an installation problem - I imagine you are missing libjqt. Thanks, -- Raul On Jul 9, 2014 9:13 AM, "Devon McCormick" wrote: > The thing I find annoying is that with the gtk graphics, I could call

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Marc Simpson
On Wed, Jul 9, 2014 at 1:18 PM, Jan-Pieter Jacobs wrote: > Eg. I might be working in jconsole, but > do want plots to work as expected. Could you please clarify the issue here? (Do you want a dedicated plot window rather than your default PDF/image viewer to display the chart?) --

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Devon McCormick
The thing I find annoying is that with the gtk graphics, I could call graphical things from the console. Qt breaks attempting to define "wd": load 'd:\users\devonmcc\j64-802\addons\ide\qt\qt.ijs' |domain error: wd1 |wd1[0] 13!:1'' |domain error *wd1[0] | 'r c l p n'=.wd1(,y);(#,y);

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Devon McCormick
Yes - websockets was my motivation but I'm willing to work with something more limited and primitive if I can continue in emacs: I'm attempting this in SSE (server-side events) now. On Wed, Jul 9, 2014 at 8:13 AM, Marc Simpson wrote: > On Wed, Jul 9, 2014 at 11:43 AM, Dan Bron wrote: > > In ot

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Steven Taylor
Hi, I've got some F# / C# code that needs a little tidying up. It executes J statements using JHS (JHS is a server wrapper for j.dll which runs out-of-process over http). Let me know if you are interested in this way forward, and I'll try to get this code released on github a bit sooner. The ou

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Raul Miller
This is the natural approach in Unix contexts. It's harder in windows, where the console is a kind of GUI, and I've not yet internalized mobile device concepts enough (technically they are Unix, windows or whatever, but without native development support, which complicates things). Thanks, -- Ra

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Raul Miller
You can download another copy of J6, if you feel like doing that. -- Raul On Jul 9, 2014 8:14 AM, "Jon Hough" wrote: > Thanks for replying, > > I understand .cpp indicates a c++ file. What I wanted to do was follow the > lab that used this file, which seems to not exist. > I see your point abou

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Jan-Pieter Jacobs
Well I think this is a broader problem ... jconsole is a sort of second-rank citizen, while it comes in really handy when GUI's are inaccessible or clumsy to tackle. Eg. I might be working in jconsole, but do want plots to work as expected. Summarised: it would be great to have simple console acce

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Jon Hough
Thanks for replying, I understand .cpp indicates a c++ file. What I wanted to do was follow the lab that used this file, which seems to not exist. I see your point about needing a compiler, but I assumed there was a way to make a dll using J and perhaps the microsoft compiler (on windows, linux

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Marc Simpson
On Wed, Jul 9, 2014 at 11:43 AM, Dan Bron wrote: > In other words, keep using J7+Emacs; you're not missing out on anything in J8. I think this ties in with the websockets discussion; if so, the above isn't necessarily true. -- Fo

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Raul Miller
I often use j6 just so I can run its labs. The .cpp suffix indicates a c++ file - so you would use a c++ compiler to build that "dll". Note that at one point in history, .cpp would probably have indicated a "c pre processor" file. Then again, early versions of what became c++ were apparently writ

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Dan Bron
If you're using emacs and not the Qt frontend, there's no (appreciable) difference between J8, J7, and J6. Though they have different version numbers, the only significant difference between them is the default development environment, which is irrelevant to you. In other words, keep using J7+

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread Devon McCormick
Is this something to do with the Qt implementation under Windows? It's very frustrating for me as it means I have to choose between J8 and emacs - and, for now, emacs wins. On Wed, Jul 9, 2014 at 6:20 AM, bill lam wrote: > I suspect this cannot be done. > On Jul 9, 2014 6:12 PM, "Devon McCormi

Re: [Jprogramming] Qt under jconsole?

2014-07-09 Thread bill lam
I suspect this cannot be done. On Jul 9, 2014 6:12 PM, "Devon McCormick" wrote: > Is there any way to run Qt-related things under the jconsole? In J7, I > could run gtk image fns from my jconsole but the Qt things I want to run > seem to blow up on the definition of "wd". > > I really just want

[Jprogramming] Qt under jconsole?

2014-07-09 Thread Devon McCormick
Is there any way to run Qt-related things under the jconsole? In J7, I could run gtk image fns from my jconsole but the Qt things I want to run seem to blow up on the definition of "wd". I really just want a way to run a system timer in the background from a console session. Has anyone done anyt

Re: [Jprogramming] DLL Lab

2014-07-09 Thread Dan Bron
Briefly: (a) The verb cd (aka 15!:0) (b) you typically wouldn't build a custom DLL, you'd load j.dll (the J engine/runtime) and I have it load your custom J script(s). There's more details to fill in in both cases, of course; I'll follow up later if I get the time. -Dan Please excuse typos; s

[Jprogramming] DLL Lab

2014-07-09 Thread Jon Hough
In J7/8 is it possible to build and use DLL files and call them from other programs (e.g. .NET programs etc)? I tried doing one of the DLL Labs in J7.01, and got blocked when the Lab tried to load a non-existent file: open '~system\examples\dllwrite\dlltest.cpp' Presumably this is left over fr