Re: portage from C (was Re: [gentoo-portage-dev] Hello! && portage UI)

2006-03-15 Thread tvali
sorry lines char tt; for (tt=0; tt<40; tt++) fputc(tt, inputf); /.../ fputc(EOF, inputf); are not needed at all and do nothing -- i was just testing a thought before i catched how those pipes and forks work in linux :) i have mostly done things in windows and c++ and WinApi so

Re: portage from C (was Re: [gentoo-portage-dev] Hello! && portage UI)

2006-03-15 Thread tvali
So I was the last one :) My example is using python interpreter -- it's maybe simpler to use in many cases, but theoretically slower. It is, anyway, not so advanced to import portage, but you can add that line ;) 2006/3/15, solar <[EMAIL PROTECTED]>: > On Wed, 2006-03-15 at 21:42 +0100, Kevin F.

Re: portage from C (was Re: [gentoo-portage-dev] Hello! && portage UI)

2006-03-15 Thread solar
On Wed, 2006-03-15 at 21:42 +0100, Kevin F. Quinn (Gentoo) wrote: > On Wed, 15 Mar 2006 09:52:13 -0500 > solar <[EMAIL PROTECTED]> wrote: > > > On Wed, 2006-03-15 at 10:51 +0100, Paul de Vrieze wrote: > > > > [snip] > > > > > Actually, C++ being strongly related to C, can just use the C > > > py

portage from C (was Re: [gentoo-portage-dev] Hello! && portage UI)

2006-03-15 Thread Kevin F. Quinn (Gentoo)
On Wed, 15 Mar 2006 09:52:13 -0500 solar <[EMAIL PROTECTED]> wrote: > On Wed, 2006-03-15 at 10:51 +0100, Paul de Vrieze wrote: > > [snip] > > > Actually, C++ being strongly related to C, can just use the C > > python api's. As such it could directly interface with python, and > > use the python

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-15 Thread tvali
Not so simply :) This is a clear way, i think. I havent c++ installed right now as it gives some errors and i havent too much urge yet. Anyway, with piping.. python > /root/test.out < /root/test.in You can write things like "import module" to test.in, then use result from test.out. I did write

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-15 Thread solar
On Wed, 2006-03-15 at 17:12 +0200, tvali wrote: > Could :P > > Python has this interactive interpreter, what every scripting language has. ... > If you are able to run command-line app, send keyboard input and catch > it's output, you're done with it. > > You can also write some small python f

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-15 Thread tvali
Could :P Python has this interactive interpreter, what every scripting language has. If you are able to run command-line app, send keyboard input and catch it's output, you're done with it. You can also write some small python function, which will parse python variables into some form, which you

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-15 Thread solar
On Wed, 2006-03-15 at 10:51 +0100, Paul de Vrieze wrote: [snip] > Actually, C++ being strongly related to C, can just use the C python > api's. As such it could directly interface with python, and use the > python portage api. If you could demonstrate an 'import portage' and a simple printf("P

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-15 Thread Paul de Vrieze
On Tuesday 14 March 2006 17:48, tvali wrote: > 2006/3/14, Marius Mauch <[EMAIL PROTECTED]>: > > Brian wrote: > > > On Tue, 2006-14-03 at 13:14 +0200, tvali wrote: > > >>Ok, i was, yes, speaking about kde. > > >> > > >>I will check out this Porthole :) I was actually thinking more > > >> about c ++,

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-14 Thread tvali
I looked over that: SIP also makes it easy to take a Python application (maybe a prototype) and selectively implement parts of the application (maybe for performance reasons) in C or C++. This could mean that portage could be made fully compatible with c++ app? Again, havent tried/tested, just as

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-14 Thread tvali
2006/3/14, Marius Mauch <[EMAIL PROTECTED]>: > Brian wrote: > > On Tue, 2006-14-03 at 13:14 +0200, tvali wrote: > > > >>Ok, i was, yes, speaking about kde. > >> > >>I will check out this Porthole :) I was actually thinking more about c > >>++, but nothing against python -- i was quite a fan of pyth

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-14 Thread Marius Mauch
Brian wrote: On Tue, 2006-14-03 at 13:14 +0200, tvali wrote: Ok, i was, yes, speaking about kde. I will check out this Porthole :) I was actually thinking more about c ++, but nothing against python -- i was quite a fan of python when i first found it. I believe Kuroo is in C, maybe c++ F

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-14 Thread Brian
On Tue, 2006-14-03 at 16:55 +0200, tvali wrote: > Ok, i will finish this chat about making portage cache, then learn > portage code, then write basic sql modules and when this thing is > running, i am more able to be involved in portage GUI as i can > understand background of portage, then ...i hop

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-14 Thread tvali
Ok, i will finish this chat about making portage cache, then learn portage code, then write basic sql modules and when this thing is running, i am more able to be involved in portage GUI as i can understand background of portage, then ...i hope you have time to wait for me :) 2006/3/14, Brian <[EM

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-14 Thread Brian
On Tue, 2006-14-03 at 13:14 +0200, tvali wrote: > Ok, i was, yes, speaking about kde. > > I will check out this Porthole :) I was actually thinking more about c > ++, but nothing against python -- i was quite a fan of python when i > first found it. I believe Kuroo is in C, maybe c++ > > I'm new

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-14 Thread tvali
Ok, i was, yes, speaking about kde. I will check out this Porthole :) I was actually thinking more about c++, but nothing against python -- i was quite a fan of python when i first found it. I'm new to gentoo, so could you tell me, where i find some clear manual for doing the following: * Download

Re: [gentoo-portage-dev] Hello! && portage UI

2006-03-13 Thread Brian
On Tue, 2006-14-03 at 00:39 +0200, tvali wrote: > Hello! > > I am thinking about making user interface for portage. > > I see the possibility to browse portage tree, turning different > filters on and off, as it's most important feature. I dont think that > it should contain any functions for upd

[gentoo-portage-dev] Hello! && portage UI

2006-03-13 Thread tvali
Hello! I am thinking about making user interface for portage. I see the possibility to browse portage tree, turning different filters on and off, as it's most important feature. I dont think that it should contain any functions for updating, emerging or unmerging or syncing at it's beginning, as