Re: A few newbie questions
Hello All,
I would like to thank everyone for the great feedback. The information you provided has been very helpful. It is exactly what I was looking for. It looks like I have found a winner!! I will be a LispWorks customer by the end of the week ;-).
I have been doing some experimenting with CLOS, CLJSON and CLSQL. CLJSON can encode a standard CLOS class instance to json. CLSQL can do a similar thing from tables to a special kind of view class. The problem is that CLJSON chokes when trying to encode one of these view classes. I figured the solution would be to derive these view classes from a standard CLOS class and have CLJSON access the base class. In C++ you would simply cast an instance of a view class to it's base class. I'm having one heck of a time figuring out how to do this in Lisp. Is there a way to make the view class look like the base class when passing it as a parameter to CLJSON?
Otherwise, I think I'm getting along fairly well (for a long time C/C++ programmer). Lisp seems to require a lot less scaffolding for things than C/C++ does. I took me little bit to figure out a way to think about the functional programming aspect of Lisp, but it's getting a little easier every day. I'm becoming quite fond of the LispWorks IDE. It has just what you need without a whole bunch of stuff that you don't. I was reading about the way that threads work and I'm looking forward to digging into that. It looks like a nice api. I will also be giving Edi's Hunchentoot a test drive very soon.
It looks like my first Lisp major project is going to be recoding a C++ based business process engine in Lisp. I think it's an excellent candidate for Lispification. I might even be able to take advantage of the KnowledgeWorks stuff.
Thanks again for your time and patience,
Gerry
I would like to thank everyone for the great feedback. The information you provided has been very helpful. It is exactly what I was looking for. It looks like I have found a winner!! I will be a LispWorks customer by the end of the week ;-).
I have been doing some experimenting with CLOS, CLJSON and CLSQL. CLJSON can encode a standard CLOS class instance to json. CLSQL can do a similar thing from tables to a special kind of view class. The problem is that CLJSON chokes when trying to encode one of these view classes. I figured the solution would be to derive these view classes from a standard CLOS class and have CLJSON access the base class. In C++ you would simply cast an instance of a view class to it's base class. I'm having one heck of a time figuring out how to do this in Lisp. Is there a way to make the view class look like the base class when passing it as a parameter to CLJSON?
Otherwise, I think I'm getting along fairly well (for a long time C/C++ programmer). Lisp seems to require a lot less scaffolding for things than C/C++ does. I took me little bit to figure out a way to think about the functional programming aspect of Lisp, but it's getting a little easier every day. I'm becoming quite fond of the LispWorks IDE. It has just what you need without a whole bunch of stuff that you don't. I was reading about the way that threads work and I'm looking forward to digging into that. It looks like a nice api. I will also be giving Edi's Hunchentoot a test drive very soon.
It looks like my first Lisp major project is going to be recoding a C++ based business process engine in Lisp. I think it's an excellent candidate for Lispification. I might even be able to take advantage of the KnowledgeWorks stuff.
Thanks again for your time and patience,
Gerry