Author Topic: Lisp in Basic  (Read 226960 times)

0 Members and 6 Guests are viewing this topic.

JRS

  • Guest
Re: Lisp in Basic
« Reply #900 on: September 29, 2014, 12:00:48 PM »
JAPI is like PHP. Patched and holes ignored until it became a standard.  :-[

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #901 on: September 29, 2014, 12:20:04 PM »
Gentlemen,

Here comes a preview of the nanoscheme proto still coded in C. But now it is equipped with 64-bit integer and double precision calculus. It comes with its initialization file and three test scripts which you know very well. There is also my timeit.exe inside that you can use to benchmark nanoscheme's speed against e.g. tinyscheme.

Please note that nanoscheme cannot read its command line yet. So, in order to benchmark a particular script, proceed as follows:

1. Open nsinit.scm and uncomment a corresponding (load "xxx") command at its end;

2. Open the corresponding "xxx" test script and uncomment (quit) command at its end; and finally

3. Open up your shell console, cd to the directory where your nanoscheme zip has been decompressed, and type timeit nanoscheme at the prompt. As nanoscheme launches, it will load its nsinit.scm file automatically, execute the (load "xxx") command within, load and run the file "xxx", and quit back to the prompt. There and then you will see the benchmark results printed automatically in your shell console window.

On my PC, nanoscheme is typically 3 times faster than tinyscheme regardless of CPU or FPU calc in relatively long tests such as e.g. the doubly recursive fibonacci(35). asciim runs 5 times faster in nanoscheme than in tinyscheme.

Note that nanoscheme's 64-bit double precision is also much better than that of tinyscheme. Open up the king script and change its parameter at the top of the page to see and compare how it runs with 64-bit integer and double precision.

Be forewarned however that it currently only supports +, -, *, and / arith operators. A complete range of R5RS math, pow, exp and trig operators and functions will be added when ported to OxygenBasic.

Until then, enjoy!

.

RobbeK

  • Guest
Re: Lisp in Basic
« Reply #902 on: September 30, 2014, 03:05:12 AM »
Looking promising, Mike  ;)

(no vectors ??  - planning these in the future ? )

As for the M squares -- converted it into Racket Scheme ..  (attached / compiled as a distribution -- huge file ... this should work )


best Rob


.

Charles Pegge

  • Guest
Re: Lisp in Basic
« Reply #903 on: September 30, 2014, 03:41:00 AM »
I wonder if it would be useful to create a Lisp-friendly GUI, as a DLL. All values could be exchanged in string (char*) form, so that communication would be as simple as print and input.

For example:

_print  "mouse?"
input response:
"220 300 1 0 0 0" 'x y lb mb rb wheel

Geometry:
_print "Vert3  a 0 0 0  1 0 0  1 1 0  0 1 0  0 0 0 face b 0 1 2 3 "

RobbeK

  • Guest
Re: Lisp in Basic
« Reply #904 on: September 30, 2014, 06:32:07 AM »
Such should be great Charles, I tried a lot , many seems either problematic, some (that's a personal view) oversized and introducing classes and objects "ad absurdum"   

John ,

"JAPI is like PHP"   -- maybe (I hope not) :  "japi is like java"   --  I've a Lisp editor written in Java somewhere lying around, it does the opposite from that javaw exec.  --  sometimes it vanishes , gone in a moment  ;D  --    and some the things : it may crash on Ctrl Z   (the undo undo   key)  ...
It is remarkable that after all these years Mike seems the first to notice the "hanging task"  -- japi is used in German univ's , also saw it in a Göteborgh app -  STALIN --  INRIA in France ...  that's 1000s of scientists ...    or is it that old, that things under Win OS changed (seems not likely) ...

best Rob

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #905 on: September 30, 2014, 08:58:28 AM »
Hi Rob,

Looking promising, Mike  ;)
It doesn't "looks", it "works"! 8)

Quote
(no vectors ??  - planning these in the future ? )
Those GNU GPL gangs have been in for their Lisps for decades only to generate terrible heaps of bloatware that's non-responsive and crashy under Windows. I've been at nanoscheme for less than a week, and it does everything (and more) that it was supposed to do by its original author but didn't.

Since all its data typing mechanism is now polished and verified by adding long longs and doubles, including yet more data types becomes a pure routine of adding respective token types in one place, parser procs, in another place, and handler procs, in the third place. Just as simple as that. Given sufficient interest or insentive, yes, I can add chars and vectors easily in the future.

Quote
(attached / compiled as a distribution -- huge file ... this should work )
Yes, this time it works but again, at the cost of a 15MB installation and two non-responsive windows -- a console and a tiny graphics "window leaf". I had to use my Task Manager to stop and kill the program again.

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #906 on: September 30, 2014, 09:14:54 AM »
Hi Charles,

I wonder if it would be useful to create a Lisp-friendly GUI, as a DLL. All values could be exchanged in string (char*) form, so that communication would be as simple as print and input.

It's a pity O2 doesn't have an own set of ready-made high-level graphics primitives like PSet, Line, Circle, etc. Since nanoscheme is going to be natively Oxygen-ated, I don't see any reason for a standalone DLL GUI. It should all be integrated as an include file and implemented as direct internal graphics procedures (print a b c ...), (line a b c ...), (arc a b c ...), etc for the graphics part, and (button name a b c ...), (slider name a b c ...), (textbox name a b c ...), etc. for control placement on the GUI form, with their associated (progress-step name a), (text-color-flags fore back transparent), etc. helpers, just to name but a few.

And of course, all this should be built around a non-blocking console.

Simple, efficient, elegant, and fast. Business MS Windows style. No more amateurish "community" mess -- been there, seen that.

JRS

  • Guest
Re: Lisp in Basic
« Reply #907 on: September 30, 2014, 09:27:44 AM »
Quote
No more amateurish "community" mess -- been there, seen that.

I think you are confusing the open source community effort with hobbyists refining their programming skills. Many of the successful open source projects are made up of professional programmers that by day work for some company on a limited scope project and unleash their unrestrained talent toward open source for fun.

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #908 on: September 30, 2014, 09:41:01 AM »
I am NOT confusing anything. Their "fun" is at the expense of my grief over my lost data and broken hardware. In such a "community", the left hand hardly ever knows what the right one is doing, and vice versa. For as long as there is no official in charge of the project that risks his name, career, and social status being materially responsible for the shitcode that his gang emits, there is no quality code nor product. Naturally self-appointed "managers" and "project leads" don't count in here.

History is made by leaders and individuals, not masses.

JRS

  • Guest
Re: Lisp in Basic
« Reply #909 on: September 30, 2014, 09:52:21 AM »
Quote
History is made by leaders and individuals, not masses.

History has shown that dictators control the masses and are not leaders.

Mike Lobanovsky

  • Guest
Re: Lisp in Basic [off-topic]
« Reply #910 on: September 30, 2014, 10:01:21 AM »
Rob,

I'm sorry for having misled you about the features of MS HTML Help. It can't decompile the old Win'95-style WinHelp files. It can only convert the older .HPJ projects to newer .HHP (CHM-style) projects losing some important features in the process. You will need 3rd-party SW for decompilation. There is some but not much of it is functional with large .HLP files such as e.g. Win32.hlp from the old Windows SDK. It contains a 50MB RTF source file that almost none of the modern "community" software can handle. Even MS' own WinWord 2010 takes about 20 minutes to read in, parse, and convert to a readable form an RTF file of such size, and another 20 minutes or so, to save it as a simple .HTM.

Yet I'm hoping to provide you with a viable solution because I also have a ton of old .HLP files that I can't take along from my XP to my Win 7 -- it can't read these files at all.

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #911 on: September 30, 2014, 10:12:23 AM »
History has shown that dictators control the masses and are not leaders.

I'm not talking about dictators - they are largely self-proclaimed entities that don't give a damn about anything but their own pocket. I've been living under a dictatorship for the past 20 years myself and it looks like I might well be in for another such 20 year spell.

Meet "the last dictator in Europe" here.

I'm talking about responsible leaders and unwearied workhorses like Theodore Roosevelt or Sir Winston Leonard Spencer-Churchill, for example. ;)
« Last Edit: September 30, 2014, 10:40:26 AM by Mike Lobanovsky »

JRS

  • Guest
Re: Lisp in Basic
« Reply #912 on: September 30, 2014, 10:38:46 AM »
Quote from: Rob
“Wen die Götter lieben, der stirbt jung”  ...   ,,    (those loved by the Gods, die young  -- or something like )

Words to die by.

RobbeK

  • Guest
Re: Lisp in Basic
« Reply #913 on: September 30, 2014, 01:18:44 PM »
 "responsible leaders and unwearied workhorses like Theodore Roosevelt or Sir Winston Leonard Spencer-Churchill"

I can not , and never will call someone as Churchill and p.e. Bomber Harris responsible --  it are just war criminals , despite the myth and propaganda set up around them ...

 "History will be kind to me, for I intend to write it"          ...  Sir W Churchill   

"The truth about the real Churchill—the Churchill that few know—is that he was "a man of the state: of the welfare state and of the warfare state" in Professor Ralph Raico's turn-of-phrase. The truth about Winston Churchill is that he was a menace to liberty, and a disaster for Britain, for Europe, for the United States of America, and for Western Civilization itself."  (Adam Young)

(I mentioned Bomber Harris, because in the 80s, 90s ?  the Iron Lady herself rewarded him with a statue for his Dresden massacre , but again this is very related with W Churchill who praised such actions -- though in this case he for a moment started to talk about the Americans ...

"Churchill attempted to disclaim responsibility; even casually saying "I thought the Americans did it.""

best Rob   (my excuses , but I had to tell -- i do not believe in Hitlers Stalins Churchills Kennedy's Kings & Popes )


JRS

  • Guest
Re: Lisp in Basic
« Reply #914 on: September 30, 2014, 01:58:01 PM »
Quote from: Rob
my excuses , but I had to tell -- i do not believe in Hitlers Stalins Churchills Kennedy's Kings & Popes

Your forgot the Bush clan.