RE: Let me try once more
- Posted by George Henry <ghenryca at LYCOS.COM> Jan 29, 2001
- 585 views
Hi Chris, What I am saying is that Lisp is the classic language for writing self-modifying code. If you want to do that, why not learn to do it in a language that was practically designed for the purpose, encourages it, etc.? C will not do it for you, unless you write an interpreter of some sort in C. (Your C program modifies its own source, invokes the compiler and linker, and then forks to (or spawns) the modified program? Conceivable, but I wouldn't recommend it.) I sent this link to a couple of others privately: http://tunes.org/Review/Languages.html#CLISP It's interesting to read this fellow's reviews of various languages. I agree very closely with what he has to say about C/C++ and Java.... Anyway, he provides a very positive spin on Lisp. (He actually LIKES the syntax.) George -- On Mon, 29 Jan 2001 23:23:00 Chris Bensler wrote: >So what you're saying is... > >I should code the body of my code in EU, and try and figure out a way to >incorperate that with Lisp as well? > >Why not just use C? This would be another language I would have to go >through to achieve that goal.. >If I'm going to go through the trouble of translating my EU code to C, >and Learning Lisp, and Translating THAT to C. Why not just learn C and >be done with the middle men? >My code would end up being less complicated than trying to do that >stuff. > >Would defeat the entire purpose of even using Eu in the first place.. >Eu certainly wouldn't save me time in that case.. >And frankly, I'm not interested in learning lisp.. for the sake of ONE >feature that is better.. > >Hope I made SOME sense... LOL >Chris > >George Henry wrote: >> Not trying to discourage anyone from programming In Euphoria, but y'all >> with all the great (or at least great-sounding) ideas for self-modifying >> programs would have a lot more impact, I think, if you could write >> something like, "I implemented 'Dweeble the Frot' in *Lisp* -- it's this >> great program that reveals the mysteries of life after running for >> 142,000 hours on this old Cray 1 I bought at Army-Navy Surplus, and I >> surely would like to translate it into Euphoria, only it is >> SELF-MODIFYING, you see, and it won't work any other way, and Euphoria >> doesn't support that!" (Silly example not intended to be sarcastic or >> negative in any way.) >> >> Sounds like I'm pushing Lisp, but all I'm saying is, there are perfectly >> good languages for doing what you propose, and unless/until Rob changes >> his mind about executing code-as-data, Euphoria isn't one of them. >> >> George >> -- >> >> On Mon, 29 Jan 2001 07:47:01 >> Chris Bensler wrote: >> >I think this could be invaluable.. >> >Self modifying progs!! Woo hoo!! I'd love it.. >> > >> >I've dabble a tad with evolving progs.. and there' no better way to >> >build a speach prog for one. >> > >> >I've wanted to build a sort of game that would have user built robots >> >that would learn through experience.. Not possible in EU.. without >> >writing my own scripting language.. >> > >> >How about an OS that knows whose using the comp, and can adjust >> >specifically to suit their needs/preference of operation.. >> >It could learn exactly how you want the comp to start up, and what you >> >want to do.. It could even learn what you don't want and get rid of it >> >for you!! >> >True, this could be implemented through cfg. files, but not nearly as >> >intimately.. not to mention, people could tamper with the cfg's >> > >> >How about chaos based AI's in games? As it is, you play any game there >> >is out there, and soon you WILL master it.. what if the COMP could >> >master you?! Anaihilating you every time!! (how do you spell that?) >> >Sure, they say that the AI's can learn nowadays, but they are still >> >limited to whatever the programmer has thought up in the first place.. >> >They just change their tactics.. >> > >> >Off the topic of AI applications.. >> >What about user designed routines? With this ability, you could allow >> >users to modify their apps to suit THEM specifically.. Like macros.. >> > >> >How 'bout plugins? >> > >> > >> >Hmm, have had other ideas in the past, but they escape me now.. >> > >> >Chris >> > >> > >> >Kat wrote: >> >> <still pleading> it's *very* useful in Ai languages, and i use it in >> >> critical learning points >> >> in mirc. It would be the easiest way in the world to do totally custom >> >> and unforseen >> >> spreadsheets. >> > >> >____________________________________________________________ >> >T O P I C A -- Learn More. Surf Less. >> >Newsletters, Tips and Discussions on Topics You Choose. >> >http://www.topica.com/partner/tag01 >> > >> > >> >> >> Get your small business started at Lycos Small Business at >> http://www.lycos.com/business/mail.html > >____________________________________________________________ >T O P I C A -- Learn More. Surf Less. >Newsletters, Tips and Discussions on Topics You Choose. >http://www.topica.com/partner/tag01 > > Get your small business started at Lycos Small Business at http://www.lycos.com/business/mail.html ____________________________________________________________ T O P I C A -- Learn More. Surf Less. Newsletters, Tips and Discussions on Topics You Choose. http://www.topica.com/partner/tag01