Author Topic: Lisp in Basic  (Read 208290 times)

0 Members and 5 Guests are viewing this topic.

Aurel

  • Guest
Re: Lisp in Basic
« Reply #660 on: August 22, 2014, 03:24:56 AM »
Rob what is this ..
need Java  :o ....where is a lisp?
..and yes Lisp is not language for hobby programmers at all...
and i really ..really don't understand your obsession with Lisp ..
are you member on any Lisp-forum ..or something?

.

RobbeK

  • Guest
Re: Lisp in Basic
« Reply #661 on: August 22, 2014, 03:48:28 AM »
Hi Aurel,

Yes, it needs Java to run -- it uses the Java Programmable Interface for the graphics.
Nono, not a member of a Lisp forum -- (my avatar is even my outfit when attending Lisp gatherings  ;)  as said before they are specialized in humiliating "the others"  )I fully understand the shortcomings of Lisp , but I also do understand its powers.
I also do understand same for languages as Pascal and Basic.
The symbiosis is happening ..  the now popular languages ..  Python , Ruby , Haskell contain a very lot of Lisp  -- what I'm hoping for is a language with both the strengths of something as basic together with something as lisp.

It certainly is not religion -- just my ideas are faster materialized with lisp ,  it may be a consequence of the job I did, I don't know -- I certainly will never do any categorizing concerning prog. lang. As said, I do understand the strength of imperative languages as basic     --   and I simply can not comment on many languages, simply because I do not know them.

best Rob 

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #662 on: August 22, 2014, 06:13:55 AM »
Rob's hellish bouillon brewn at Lispian sabbatical gatherings: (a must-see in action! :D )

.
« Last Edit: August 22, 2014, 06:56:24 AM by Mike Lobanovsky »

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #663 on: August 22, 2014, 06:59:53 AM »
Aurel,

I would like to say that i prefer to believe in new languages like is PWCT than in this hybrid basic-lisp.

This project isn't intended as a basic-lisp hybrid. It is LISP written in BASIC. Same as thinBasic written in PB. Same as Oxygen written in FB. Same as Ruben (is it ruby?) written in O2.

PWCT is a Lego for script kiddies, a VB6 IDE promoted to the nth power of absurdity, and the essence of John's point & click nightmare. This paradigm has in fact been very well known to mankind for ages: if VB6 is a kindergarten, then PWCT is its nursery. :)

Rob is perfectly right in saying that there isn't really a question of a language vs. a language (you can't embrace the unembraceable in one hug anyway) but a language plus a language. The more pluses one has, the more powerful one is.

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #664 on: August 22, 2014, 07:12:12 AM »
Charles,

This example indicates what is possible with o2 autoconversion, instead of using explicit conversion, or variants.

Excellent! :D

While this isn't strictly "instead" but rather "halfway there", this should be more than sufficient for the needs of BASIC LISP in its Oxygen implementation.

Thanks a lot for the tip!


[EDIT] Will Oxygen's string functions, for example STR(), handle the elements of such an array as s[n] in you example correctly? Is garbage collection solid when re-assigning string/double/string/double/... values to the array elements?
« Last Edit: August 22, 2014, 02:14:47 PM by Mike Lobanovsky »

JRS

  • Guest
Re: Lisp in Basic
« Reply #665 on: August 22, 2014, 08:06:07 AM »
Hi Mike,

Is there something to update the SBLisp code with or is the current source it?


Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #666 on: August 22, 2014, 08:40:35 AM »
Hi John,

Not yet. Everything will be posted here immediately when ready.

JRS

  • Guest
Re: Lisp in Basic
« Reply #667 on: August 22, 2014, 08:49:57 AM »
Thanks for the update Mike!

Can you post the top 5 SBLisp SUB/FUNCTION routines that would best be served by a C conversion?


Charles Pegge

  • Guest
Re: Lisp in Basic
« Reply #668 on: August 22, 2014, 09:30:32 AM »
Quote
[EDIT] Will Oxygen's string functions, for example STR(), handle the elements of such an array as s[n] in you example correctly? Is garbage collection solid when re-assigning string/double/string/double/... values to the array elements?

I often check for missing garbage collection calls in such expressions. So far so good, but you may yet discover a leak in some novel combination :o

Aurel

  • Guest
Re: Lisp in Basic
« Reply #669 on: August 22, 2014, 09:38:58 AM »
Quote
PWCT is a Lego for script kiddies, a VB6 IDE promoted to the nth power of absurdity

yes Mike maybe you have a right BUT how then explain that this project have
more & more users...
I don't understand what this people see in PWCT.
i am not impressed....

JRS

  • Guest
Re: Lisp in Basic
« Reply #670 on: August 22, 2014, 09:53:27 AM »
@Aurel - Can you start a new PWCT thread and stop hijacking this one?

RobbeK

  • Guest
Re: Lisp in Basic
« Reply #671 on: August 22, 2014, 01:17:07 PM »
Thanks Mike,

Bouillon ,,   maybe "борщ"  -- the colour in the middle sometimes matches ...  8)
Set up C-pointers now in CLisp , Clozure CL and Steel Bank CL  -- that Bigloo document helped a lot to understand things ...

best ,  Rob

ah, yes for the XBlisp Mandelbrot imho the most easy way is to set up a list with coordinates '( (-1.5 -1.5) .... (1.5 1.5) ) , then defining a function that takes a list (x y) - do the calculations when it bails out -- this function will be mapped on the list - resulting in a list of orbits -- with this (and (nth i L) ) it is easy to make a representation.  It surely will work , but it's all recursion.
It's all in my head -- should I code it -- resulting exec time may be very long...


« Last Edit: August 22, 2014, 01:43:01 PM by RobbeK »

JRS

  • Guest
Re: Lisp in Basic
« Reply #672 on: August 22, 2014, 02:08:04 PM »
Hi Rob,

Quote
It's all in my head -- should I code it -- resulting exec time may be very long...

If it wouldn't take a lot of your time that would be great. All SBLisp Scheme code is helpful for testing the interpreter and for benchmarking between variations.

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #673 on: August 22, 2014, 02:20:25 PM »
Can you post the top 5 SBLisp SUB/FUNCTION routines that would best be served by a C conversion?

These should probably be GarbageCollect and its callees. But actually their code may still change. I understand your eagerness to do something useful but please don't rush me.

I split and convrted everything and got rid of bsd completely. Still there seems to be a typo left somewhere because files still don't want to load and get read properly. Interactive sessions seem to run OK.

Please have patience.

Mike Lobanovsky

  • Guest
Re: Lisp in Basic
« Reply #674 on: August 22, 2014, 02:26:20 PM »
Rob,

I second John's request and I'd like to make it even more imperative. We need code-intensive XBLisp programs for more thorough testing.

Speed doesn't make any difference at this point. Everything will a hundred times faster when translated to C and DynC and when OxygenBasic's JIT version becomes operative.

But we need the programs now. We don't have much time to design them ourselves because we are complete noobs. Mandelbrot will take you minutes to write but it will take us days to do the same.

MacRob, where are you with our ASCII Mandelbrot? :)