how do i write self-modifying code, and self-modifying self-modifying code?
everything is ultimately data that exists somewhere in the computer as zeros and ones, even instructions, so I think it is possible with C
I have no idea, but one of my instructors was totally into that. As I understand there are many applications for this, but his primary field was AI. I'll dig through my stuff and see if I kept any useful tidbits, but don't hold your breath. The class was totally unrelated (XML course), but I may have jotted down some links. I'll get back to you.
XML is pretty powerful: http://thedailywtf.com/Articles/Stupid-Coding-Tricks-XSLT-Mandelbrot.aspx
Yeah, actually it was my instructor's (and my) interest in AI that got me into researching AIML in that class which I wrote a paper on. AIML is artificial intelligence markup language and it is heavily based on XML. In fact, it's really just a sub-set of XML, but it it totally capable of making decisions based on user input and response. It is used primarily to create chatbots, but I in my paper I pointed out other applications especially in the areas of self-support and customer service call centers. http://www.alicebot.org/aiml.html This is one of the better sites on AIML, but there are tons more if you Google it.
for what can be self-modifying code be used? I heard that it's horrible and it was something like that long time ago because of something, lol
when I hear of self modifying code, I think virus, it is the first thing that comes to mind, and I suppose to be more precise polymorphic viruses.
Join our real-time social learning platform and learn together with your friends!