1. Icon
- Posted by Kat <gertie at PELL.NET> Jan 27, 2001
- 468 views
Interesting heads-up, MTS, i may get an idea or two to use in Eu. See 3rd paragraph herein. What alarms me, frankly, is that one of the help "books" online was written by someone with an email addy of microsoft.com. /me waits for the smart ones here to give an opinion on Icon..... I notice the possibility Icon could have been written in Eu, but with more user-friendly features, like a smarter interpreter. http://www.cs.arizona.edu/icon/ http://www.nmt.edu/tcc/help/lang/icon/ Something else i noticed is something i asked about earlier, used in mirc, the ability to execute vars (as if they were a commandline statement, function, or procedure), apparently, *if* the var content is already pre-referenced in main and not coded into the program. I think Eu could do this if the globals vars were referenceable by locked memory pointers, and fed thru a backdoor to a new instance of the interpreter called with the variable contents as the program to exec. Or preferably, resetting the existing instance of the interpreter, storing current state to a stack, to allow better recursion. The required vars used in the exec'd var can be checked, and only those passed to the new instance, to save time and memory. Have you given any more thought to this, Robert? Kat ____________________________________________________________ T O P I C A -- Learn More. Surf Less. Newsletters, Tips and Discussions on Topics You Choose. http://www.topica.com/partner/tag01
2. Re: Icon
- Posted by John Cage <drcage2000 at YAHOO.COM> Jan 27, 2001
- 460 views
--- Kat <gertie at PELL.NET> wrote: > Interesting heads-up, MTS, i may get an idea or two > to use in Eu. See 3rd > paragraph herein. What alarms me, frankly, is that > one of the help "books" online > was written by someone with an email addy of > microsoft.com. Hehe... Microsoft? Woops Robert! B I G T I M E "woops".... Eu coders, here is some text from the Icon language brief description; "In Icon, values, not variables, are typed. Built-in data types include numerics, character sets, strings, sets, lists, associative tables, records, and procedures." EUPHORIA anyone?? "The aggregate types - sets, lists, tables, and records - can hold values of any type." EUPHORIA someone??? "Tables can be indexed by values of any type. Numerics, character sets, and strings are atomic values;" EUPHORIA++ anybody??? Here's some example Icon code... " procedure main(args) k := integer(args[1]) | 10 words := table(0) while line := read() do every words[getword(line)] +:= 1 words := sort(words, 4) every 1 to k do write(pull(words), "\n", pull(words)) end" Does this look familliar?? Robert, take my advice, speed up and port Euphoria, and start making BIG money out of it, or, it'll be just another bill in Bill's pocket. If ya know what I'm saying... Mike The Spike __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ ____________________________________________________________ T O P I C A -- Learn More. Surf Less. Newsletters, Tips and Discussions on Topics You Choose. http://www.topica.com/partner/tag01