Re: a thanks and C++ new overloading
On Thu, 2007-03-29 at 08:44 -0400, Sam Carleton wrote: Folks, I want to say thank you for taking the time to help me out with getting my module up and going. It is so VERY refreshing to be developing in such a well thought out and structured environment. By day I am working in VB.Net on different small projects where the project leads attitude is: Get it done, don't make too many new modules/class because it will be too complex for me (boss) to understand when you leave. Having the structure of the apache module is the complete and total opposite and very very refreshing! It is also exposing me a little bit to how to make a module system, which I will ultimately need to do for the GUI side of my app. It is all good, very good! Thanks for directing me this way! Last night I did successfully setup a C++ new overload that takes an apache pool. (When used correctly, C++ is simply WONDERFUL!) The question is: How best to make the code reusable? What do I mean? Well, the next version of the GUI is going to be written in C++, there is going to be a lot of code that can and should be shared between the module and the GUI. I just cannot figure out how best to setup the common code to allocate memory for different locations. Any suggestions? Well, please consider all I say with a certain amount of doubt since I'm not a C++ developer (only did one C++ module, the rest was plain C) and favor C (or Obj. C) over C++, but: Since you seem to like the Apache way why not use it for the GUI as well. The memory pooling and eveything prefixed with 'apr_' is actually part of the Apache Portable Runtime which can be used independent from the Apache webserver (Subversion is a prominent example for such a project). You just need to decide whether memory pools[1] are a good fit for your GUI application. Cheers, RalfD [1] For another nice MPS have a look at: http://www.ravenbrook.com/project/mps/doc/2002-01-30/ismm2002-paper/ismm2002.html Sam
Re: a thanks and C++ new overloading
On 3/29/07, Ralf Mattes [EMAIL PROTECTED] wrote: Well, please consider all I say with a certain amount of doubt since I'm not a C++ developer (only did one C++ module, the rest was plain C) and favor C (or Obj. C) over C++, Interesting, Are you doing large projects in C? I know both well and simply cannot imagine developing a large system in C. I know Apache is all in C, but man, I really like my objects;) Obj. C does sound interesting, can you recommend any good sites that can enlighten me more about the subject? but: Since you seem to like the Apache way why not use it for the GUI as well. The memory pooling and eveything prefixed with 'apr_' is actually part of the Apache Portable Runtime which can be used independent from the Apache webserver (Subversion is a prominent example for such a project). You just need to decide whether memory pools[1] are a good fit for your GUI application. Why not? Because I had not stop to make the obvious connection;) [1] For another nice MPS have a look at: http://www.ravenbrook.com/project/mps/doc/2002-01-30/ismm2002-paper/ismm2002.html yea, the whole memory management thing is a huge can or worms, nice to know that there is the above MPS and apache's to pick from. Sam
Re: a thanks and C++ new overloading
On Thu, 2007-03-29 at 10:39 -0400, Sam Carleton wrote: On 3/29/07, Ralf Mattes [EMAIL PROTECTED] wrote: Well, please consider all I say with a certain amount of doubt since I'm not a C++ developer (only did one C++ module, the rest was plain C) and favor C (or Obj. C) over C++, Interesting, Are you doing large projects in C? I know both well and simply cannot imagine developing a large system in C. Depends on what you call 'large'. I'm on Unix only and there is a certain tendency to keep things small ans simple ... :-) So - somehow most of my projects end up as small extensions, modules or plugins. I have to confess that I do the really large projects in other languages (Common Lisp if you care to ask) or often in so-called scripting languages (that's what my customers often require since I'm doing Web-related programming and their tech. people only program in the dreaded P/R languages). I know Apache is all in C, but man, I really like my objects;) Obj. C does sound interesting, can you recommend any good sites that can enlighten me more about the subject? Oh, my bookmarks for Obj.C are on my Mac (other office) but with a bit Google help you should find plenty. BTW, one _can_ do OOp in C as well - at least that's what the Gnome project tries to do. For me, C++ is just a monster - C raped and transmogrified. Iff I need a solid OO language with static typing I'd go for Objective CAML - but that's hard to sell to customers. but: Since you seem to like the Apache way why not use it for the GUI as well. The memory pooling and eveything prefixed with 'apr_' is actually part of the Apache Portable Runtime which can be used independent from the Apache webserver (Subversion is a prominent example for such a project). You just need to decide whether memory pools[1] are a good fit for your GUI application. Why not? Because I had not stop to make the obvious connection;) [1] For another nice MPS have a look at: http://www.ravenbrook.com/project/mps/doc/2002-01-30/ismm2002-paper/ismm2002.html yea, the whole memory management thing is a huge can or worms, nice to know that there is the above MPS and apache's to pick from. Seems like the rest of the world is picking Garbage Collection up - Apple seems to go the same road with Objective C (that always had interesting memory management concepts). Cheers, RalfD Sam
a thanks and C++ new overloading
Folks, I want to say thank you for taking the time to help me out with getting my module up and going. It is so VERY refreshing to be developing in such a well thought out and structured environment. By day I am working in VB.Net on different small projects where the project leads attitude is: Get it done, don't make too many new modules/class because it will be too complex for me (boss) to understand when you leave. Having the structure of the apache module is the complete and total opposite and very very refreshing! It is also exposing me a little bit to how to make a module system, which I will ultimately need to do for the GUI side of my app. It is all good, very good! Thanks for directing me this way! Last night I did successfully setup a C++ new overload that takes an apache pool. (When used correctly, C++ is simply WONDERFUL!) The question is: How best to make the code reusable? What do I mean? Well, the next version of the GUI is going to be written in C++, there is going to be a lot of code that can and should be shared between the module and the GUI. I just cannot figure out how best to setup the common code to allocate memory for different locations. Any suggestions? Sam