1. Re: Diamond speed issues (was: OOP libraries
- Posted by kbochert at copper.net Nov 12, 2003
- 415 views
On 12 Nov 2003 at 13:02, C. K. Lester wrote: > > > kbochert at copper.net wrote: > > > > >On 12 Nov 2003 at 11:49, C. K. Lester wrote: > > > > > >>Kat wrote: > >> > >> > >>>See "associated lists", Jiri did one. Then to run code contained in a > >>>variable, > >>>see eval() in Bach. > >>> > >>>Kat > >>> > >>> > >>I was lookin' at that the other day but couldn't figure which one to > >>download. He's got several on his page. Which one is the latest 'n' > >>greatest? Do they all serve a different purpose? > >> > >> > >It is a little short on explanation. > > > > > Hey, Karl... I was actually talking about jiri's associated lists > code... He's got several versions. > OOps! > Your stuff I understand! :) > > >Some improvements in 2.1 (IMO) > >1) It is possible to define blocks like C ('{}') or like Python (indent) > > > > > Saw that. Very cool. Makes better code documentation easier. > > >6) lists may be used in formal parameters "function foo (integer x, y, z)" > > > > > Nice touch. I'm guessing you can do that for declarations...? > > sequence mySeq1, mySeq2, ... mySeqN > Yes, incuding initialization. > >7) string datatype > > > > > What advantage does your built-in string type have that a user-created > "type string()" does not have? > As a builtin, Bachs string type is an order of magnitude faster at verifying that a sequence is indeed a string. Especially important when frequent run-time checks are needed. > Bach can run "regular" EUPHORIA programs, right? > Not Quite. The major differences are in the libraries. A compatibility library "Euphoria.b" is included to remove most problems, but a few require individual attention. > >The next update is intended to have "eval()" to run a piece of > >Bach code. I have it running, but have found a small memory > >leak (thanks, Kat) that will require major surgery to remove. > > > > > That's why they call you "Dr. Karl Bochert." > The phrase "meatball surgery" strikes a chord. Karl