Author Topic: Lisp in Basic  (Read 208122 times)

0 Members and 3 Guests are viewing this topic.

RobbeK

  • Guest
Re: Lisp in Basic
« Reply #885 on: September 28, 2014, 12:18:52 PM »
Hi John,

NASA  ..   
http://www.nas.nasa.gov/quantum/quantumcomp.html

OS controled by Steel Bank Common Lisp -- interfacing language proposal/actual situation(?)  : Python --  exactly  Aurel's top two of weird languages (he used another word, but do not remember it) .  Nasa's CLIPS (not CLisp) can be downloaded IIRC (complete with manuals etc ... )    ..   I had a friend at NASA , .. Kevin , 
“Wen die Götter lieben, der stirbt jung”  ...   ,,    (those loved by the Gods, die young  -- or something like ) 

best Rob

   

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #886 on: September 28, 2014, 04:37:13 PM »
Hi John,

You could've started your new millennium with something better than advocating again in favor of a GNU GPL OS for microwave ovens and vacuum cleaners. See what your pimply "community efforts" are doing to the decent people's computers?! >:(

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #887 on: September 28, 2014, 04:41:40 PM »
No Rob,

Your exe misses something else for running on my PC. It's a regular announcement that "/newlispam" (whatever it is) isn't an internal or external command, executable program, or batch file. :-\

.

JRS

  • Guest
Re: Lisp in Basic
« Reply #888 on: September 28, 2014, 05:43:17 PM »
Hi John,

You could've started your new millennium with something better than advocating again in favor of a GNU GPL OS for microwave ovens and vacuum cleaners. See what your pimply "community efforts" are doing to the decent people's computers?! >:(

I make my living supporting clients needing business software. Most of what I do is web and server related. I'm sure Windows is fine for everything else.

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #889 on: September 28, 2014, 11:57:10 PM »
Thanks, John. You are forgiven. 8)

RobbeK

  • Guest
Re: Lisp in Basic
« Reply #890 on: September 29, 2014, 12:48:47 AM »
hi all,

/newlispam ...   no idea , it's bundled with the standard mechanism for it  ???

attached without any bundling and a batch file named go.bat   ...   (maybe this works)


best Rob

.
« Last Edit: September 29, 2014, 01:20:36 AM by RobbeK »

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #891 on: September 29, 2014, 02:07:16 AM »
No Rob,

It doesn't work either for the same reason. Maybe it's some language pack for NL as in /newlisp american? No idea really.

Another quirk by the same unprofessional bunch.

Mike Lobanovsky

  • Guest
Re: Lisp in Basic: Bug in Scheme.c
« Reply #892 on: September 29, 2014, 04:24:43 AM »
Hi John,

There was a bug left in my scheme.c sources concerning number input in binary notation. Please goto somewhere near line 552:
Code: [Select]
  static __int64 binary_decode(const char* s) {
    long x = 0; // <== !!! WRONG !!!
   
    while (*s != 0 && (*s == '1' || *s == '0')) {
      x <<= 1;
      x += *s - '0';
      s++;
    }
    return x;
  }
and change long x = 0; to __int64 x = 0LL;.

Sorry for having overlooked it before. Binary isn't my preferred notation. :)

jack

  • Guest
Re: Lisp in Basic
« Reply #893 on: September 29, 2014, 04:39:31 AM »
hello RobbeK,
there appears to be a hard coded link to the guiserver in the newlisp installation directory, if you create a folder named newlisp in c:\Program Files with the guiserver.jar in it, then your magic program runs OK.

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #894 on: September 29, 2014, 05:30:16 AM »
Sorry Jack,

But this still doesn't work for me.

RobbeK

  • Guest
Re: Lisp in Basic
« Reply #895 on: September 29, 2014, 05:36:14 AM »
Thanks Jack ..

Found it in the documentation now ,  during installation the specific location is written in the registry (under Win) , in my case d:/newlisp     -- if it find nothing then c:/program files/newlisp is used --  this is written in the NEWLISPDIR variable when NL starts up -- not needed for DLL's, but the location of the JAR has to be specified by it ...   

mm, makes things somewhat complicated , I can overrule the NEWLISPDIR , but how to find out the location were the code is actually running (can be a temp. location when unzip+run in one flow )...   the Racket Scheme solution may be the best ,

launcher (from source) / stand alone / distribution (for an alien computer)   -- needs a kind of installer/uninstaller then, ...

best Rob

ps  :  the number of magic SQ's seems to be  2(s!)²  -- for an s*s square s! being the possible permuations of the lines or rows ...  the sum of row/column    ...  s(s² + 1 )/2    (sum of all numbers in the square divided by s)  -- when you see red in the app, then also the diagonals have this sum.  (not been googling about this yet , more fun this way )
« Last Edit: September 29, 2014, 06:14:24 AM by RobbeK »

RobbeK

  • Guest
Re: Lisp in Basic
« Reply #896 on: September 29, 2014, 05:38:46 AM »
Mike,

newlisp is located d:/newlisp here , but I thought this information was computer specific

-------------------

guiserver.lsp expects the server guiserver.jar to be in the directoey specified in the environment variable NEWLISPDIR. When newLISP starts up and this variable is not set yet, it sets it to a default value of /usr/share/newlisp on MacOS X and Unix OSs, and to C:\Program Files\newlisp or whatever it finds in the PROGRAMFILES environment variable on Win32 systems and adding /newlisp to it. This can be overwritten by specifying system wide setting for the environment variable NEWLISPDIR, which normally is set to %PROGRAMFILES%/newlisp on Win32. When using the Win32 binary installer NEWLISPDIR is written to the registry automatically and gets into effect after rebooting.

----------------------


best Rob  (possibly Jack has NL installed ?)

JRS

  • Guest
Re: Lisp in Basic
« Reply #897 on: September 29, 2014, 10:33:25 AM »
Quote
Sorry for having overlooked it before. Binary isn't my preferred notation.

Mike,

Does this effect the Windows version only? The Linux version using gcc compiles clean out of the box.


Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #898 on: September 29, 2014, 11:46:28 AM »
John,

Everything compiles just fine OOTB everywhere, but the dormant bug is there nonetheless. long x is too short to accumulate a __int64 return out of sixty four binary bits.

Please do just what I'm asking you to, will you? :)

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #899 on: September 29, 2014, 11:51:39 AM »
Rob,

Needing a registry entry to just run an occasional .jar is ridiculous. If they can't fix their software to make a standalone .exe runnable on a random PC without special installation and hardcoding, then this software is certainly not for me.

I regret to say so but that's how it is.