> > >You get this book <http://www.amazon.com/Compilers-Principles- >Techniques-Tools-2nd/dp/0321486811> >Study it deeply and then realize that doing this is nuts :) (Just >kidding - well not really. I did my stint in compiler writing and >it's not for me) > Yeah I don't think I'm good enough (or smart enough) to write one. That book is a little pricy too.
> >Or you convert code to a language that already has a compiler (ie/ >translate RB into C++ and then use gcc to compile or convert RB into >Java and the use javac compiler) >That lets you leverage other good compilers as though they were your >own BUT limits you to what you can support if the underlying language >you translate TO does not make it easy to support something. > True. I did think about writing a JAVA thing in Rb, in which the interface would be like Rb(v5.5.5 anyway) and you could wright JAVA code in it. It wouldn't "compile" it but would just save the code to files. Then you would just have to "compile" it in a JAVA compiler. The only Java compiler I have is in Codewarrior 5 > >Apparently you pay someone $50,000 for it, sell it to IBM and get >filthy rich. >People then call you a genius :) > Hummm..... >>How would one make there own Database format and Query language ? >> >> > >Study trees structures (for indexes and fast data access), disk IO >programming ( so you never lose anything) database techniques for >synchronization and serialization of readers and writers, and lots of >other "fiddly bits" (as Slartybartfast would say) > >A query language is kind of like a compiler, it just does not chunk >out an executable like gcc or rb does. >You still have to define the language ( the semantics and the >syntax ) and do a lot of translation so that you can figure out WHAT >was asked for and HOW to get it. > >SQL is like that. >You tell it what to get, and even sort of how to figure out what you >asked for. >What you don't tell it is the exact steps to get it. > > > I think my brian has shutdown! ;-) Don't think I'll be doing that. Thanks _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>