Re: [Jprogramming] essay: toy byte code interpreter

2015-11-14 Thread Raul Miller
Don't need assert each, because assert by itself should work just fine. assert 1 1 0 1 |assertion failure: assert Though in a different sort of general case you might need each, rank or a ravel: assert 5~:i.3 3 vs. assert, 5~:i.3 3 |assertion failure: assert Thanks, -- Raul On Fri

[Jprogramming] Is it possible to set an environment variable?

2015-11-14 Thread Ryan Eckbo
I don't think this is possible but I want to make sure. Or maybe there are some hacks? (I see Raul requested this back in 2005) -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Is it possible to set an environment variable?

2015-11-14 Thread bill lam
Depending on platforms, you can call c library, eg linux, ((unxlib 'c'),' setenv > i *c *c i')&(15!:0)'foo';'bar';1 0 2!:5 'foo' bar Вс, 15 ноя 2015, Ryan Eckbo написал(а): > I don't think this is possible but I want to make sure. Or maybe there are > some hacks? > (I see Raul requested t

Re: [Jprogramming] JHP on j64_803 Linode server with Ubuntu

2015-11-14 Thread bill lam
The jhp addon was developed on j602 and not maintained anymore. USERFOLDERS had become UserFolders and its format had also changed. Пт, 13 ноя 2015, Thomas McGuire написал(а): > I've been playing around with the various web configurations of J Software on > an Apache2 server. The FSCGI was relat

Re: [Jprogramming] JHP on j64_803 Linode server with Ubuntu

2015-11-14 Thread Thomas McGuire
Thanks Bill I replaced as follows: NB. USERFOLDERS_j_=: USERFOLDERS_j_,'CGI';CGIDIR_j_;0 UserFolders_j_ =: UserFolders_j_,'CGI';CGIDIR_j_;0 And the JHP works now finds the UserFolders_j_ I will have to do some more testing to see if the format change you mention causes any major problems. To

[Jprogramming] opencl on android

2015-11-14 Thread bill lam
A demo script for running opencl on android, it should ouput 1 0 or 1 delta. Note that google does not want to you to run opencl on android so that this script may not work even if your android device is the newest flagship model. Search for "opencl" in google play for some apps that can check fo

Re: [Jprogramming] opencl on android

2015-11-14 Thread 'Pascal Jasmin' via Programming
haven't tested on android yet, but it doesn't work on windows... I guess intentionally. Would the signatures be the same (or very close) on desktops... just the library locations different? From: bill lam To: jprogramming Sent: Sunday, November 15, 2015 1:27

Re: [Jprogramming] opencl on android

2015-11-14 Thread bill lam
Location of library depends on platform. It think it should work on J32. It is simpler on J64, just replace every d with l and change i2d to ] . In desktop, both CPU and GPU can provide devices, you may to want to specify CPU or GPU in getting the device ID. Вс, 15 ноя 2015, jprogramming написал(