On Fri, Aug 18, 2006 at 10:11:38PM -0400, Philippe Khalaf wrote: > On Fri, 18 Aug 2006 21:37:45 -0400 > [EMAIL PROTECTED] (Youness Alaoui) wrote: > > > AFAIK there are some tools that automatically generate C code for binding > > any function from a C library, this can be > > used in order to quickly generate the bindings... > What tools? They will generate bindings for TCL from C? What about > from C++ (wx)? When wrapping an OO API in a non OO language I doubt > automated tools will do the job. But hell I don't know maybe if I had a > look at the tools. >
it's 4:15 AM and I'm too tired to answer fully, just search for 'C Tcl/Tk wrapper code generator' on google, I think you'll find something... if you add 'site::wiki.tcl.tk' it will be easier to find the appropriate pages! about OO, I don't know! I think it's doable with some progs, not sure though.. + why C++ ? and why wxWidgets ? who said we wants wx? what's the pros and cons ? > > I don't think it's a huge issue anyways... > Think again :) > not now :p > > also, I think Jonne (or was it someone else) was already working on the > > DBUS bindings and I think the work was in > > progress (but not completed). > Ah really? Is the code online somewhere? Would be interesting to see > the progress as this is essential. > as I said, "I think".. so Jonne will need to answer us about this... but it should definitely be put on SVN 'just in case' his PC burns.. we won't loose the code...so jonne.. please.... > > About the GUI, the Tcl code won't need to interact with wx or whatever, all > > it will do is send events to the GUI layer > > which will do all the GUI stuff.. there is no need for bindings or little > > work to do on that matter... > > Maybe I'm wrong... it would be good to sum up everything that was > > previously said about the different layers/structures > What will the GUI layer be written in? C? If so then you still need to > design the interface between aMSN and the GUI layer. This is a > lot of work and you will probably end up just mirroring the wx API > This is equivalent to writing bindings. > > Regards, > Philippe nah, it's not like that, I really am too tired to explain, but let me try to be bried for once : MSN server->NLN AWY [EMAIL PROTECTED] -> telepathy -> DBUS -> Tcl -> update data about the user (his status for example) -> DBUS/event API -> 'logic' C code that catches the event -> from C call the GUI stuff... so when we do the DBUS to 'receive' and 'send' from telepathy to the 'core Tcl', we will also be doing the 'Tcl' to 'GUI' because we'll simply use the same way... Tcl will be used for most of the logic, and mostly for storing the data.. which means the list of users, their info, status... in short, the abook.. and the GUI will have its own C module which access that Data and uses it to draw the GUI.. and if you say 'you need bindings to get the GUI module to 'get' the data out of the Tcl core'... I say.. no... you simply do a : Tcl_GetVariable(); or Tcl_Eval ("array names $array"); for example.. don't forget Tcl has a very good C library that can be used.. so we're set! Anyways, that's how I think I see it.. maybe tomorrow with both of my eyes opened I'll realize I don't see it this way, but in any case, I don't see how complicated it can be... + the GUI will be a module, so if you want to write a Tcl module using Tk, you can do it, if you want to write a C code using GTK+ or QT, then do it, if you want python and wxWidgets, then do it.. all you need is DBUS to receive 'GUI notification messages' and you need to be able to use the Tcl procs (core API) to get the data you want... A HUGE discussion was over this and noone wants to leave Tcl and I do agree, development in Tcl is FAST, easy and many of us already know Tcl, so there is no need for a change... also, we can reuse some of the existing code... I don't want to repeat what was said, so read that thread and that's it. ps: python: I simply HATE it, idnentation part of the syntax, WTF!!!... and perl is unmaintable.. so Tcl is better (faster development needs scripting language or Java...) KKRT ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel