[yast-devel] contributing using c/c++?
hello, i have been studing c++ and i want to contribute to openSUSE.i heard that yast is using c/c++.Is it truth?can u point me out some way? -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Sunday, March 13, 2011 07:10:34 pm Tsiapaliwkas Giorgos wrote:
hello,
i have been studing c++ and i want to contribute to openSUSE.i heard that yast is using c/c++.Is it truth?can u point me out some way?
Hi. I appreciate that you want to contribute to openSUSE and YaST. You are right, parts of YaST are written in C++. The YaST svn repository is located here: http://svn.opensuse.org/svn/yast/trunk As far as I know qt, ncurses, gtk, core, libyui, *-bindings, and much more is written in C++. Please let me know if you have further questions. Thanks Thomas -- Thomas Goettlicher SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Monday, March 14, 2011 11:30:22 AM Thomas Goettlicher wrote:
As far as I know qt, ncurses, gtk, core, libyui, *-bindings, and much more is written in C++.
thank you for your answer. can u point me to some documentation? also it would be bery helpfull if you could tell the level of difficulty of these parts of yast.. -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Monday, March 14, 2011 12:11:17 pm Tsiapaliwkas Giorgos wrote:
On Monday, March 14, 2011 11:30:22 AM Thomas Goettlicher wrote:
As far as I know qt, ncurses, gtk, core, libyui, *-bindings, and much more is written in C++.
thank you for your answer.
can u point me to some documentation? At http://doc.opensuse.org is a lot of documentation available.
also it would be bery helpfull if you could tell the level of difficulty of these parts of yast.. Well, difficulty depends on one's knowledge. yast2-qt, yast2-gtk or yast2- ncurses might be a good starting point as you can see your changes at the user interface. Just let me know if you have any questions while browsing YaST's source code.
Cheers, Thomas -- Thomas Goettlicher SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Mon, Mar 14, 2011 at 01:11:17PM +0200, Tsiapaliwkas Giorgos wrote:
On Monday, March 14, 2011 11:30:22 AM Thomas Goettlicher wrote:
As far as I know qt, ncurses, gtk, core, libyui, *-bindings, and much more is written in C++.
thank you for your answer.
can u point me to some documentation?
also it would be bery helpfull if you could tell the level of difficulty of these parts of yast..
Hi Tsiapaliwkas, you can also meet us at irc://irc.freenode.org/#yast Thomas did not mention libzypp and zypper, the package management projects related to YaST. They are written in a more advanced style of C++ but learning that is worth it for the wider impact that your work has :-) http://en.opensuse.org/Portal:Libzypp http://en.opensuse.org/Portal:Zypper -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
On 03/14/2011 12:11 PM, Tsiapaliwkas Giorgos wrote:
On Monday, March 14, 2011 11:30:22 AM Thomas Goettlicher wrote:
As far as I know qt, ncurses, gtk, core, libyui, *-bindings, and much more is written in C++.
thank you for your answer.
can u point me to some documentation?
also it would be bery helpfull if you could tell the level of difficulty of these parts of yast..
You will find various areas with different levels of difficulty - yast2-core The core of YaST is a component model and type system, called YCP. There is also a YCP language that is a 1:1 representation of this, but the idea is that you can write a component in any language as long as you use the YCP types. This also includes the ycp parser, the SCR component (to access the system) and its agents (or backend for different system areas /proc, ini files, sysconfig), etc. YaST itself is separated in modules (APIs or namespaces with functions, I prefer to call them components), and clients (workflows). There is a perl, ruby and python modules. Which allow you to write a module (as in APIs) in any of those languages, to be called by any other YaST component. So you can do: foo.rb module MyAPI def self.hello puts "hello" end end And then from YCP, perl, python you could do: MyAPI::hello, and that should work :-) - libyui It is a C++ library offering a UI API without an event loop. It uses plugins for Qt, Gtk and curses. There is a ycp-bindings API that offers a YCP component for that library and parses a ycp symbol list into a widget. -- Duncan Mac-Vicar P. - Novell® Making IT Work As One™ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
first of all thank you all of you for helping me..:) i got this correct, libzypp is backend of yast,which is writen in c++. Yast core is the collection of the lower level libraries and YCP (Yast Control Programming) language is the API of yast. It is writen in these 3 language or 1 of them is the main language and the other 2 are just languages for bindings? Yast module=firewall,software management etc? (according to "man yast" firewall=module) libyui is a part of yast core?which is his actual work and how it is working in combination with Qt frameworks? zypper and yast share some code or they are two differend frontends for libzypp? Also seeing the bugzilla i saw that there is no much work for qt programing for yast.Is that correct? looking at yast's svn repo i found out some *.cc,i know that they are related to c++,but can u explain it more to me? sorry for my big reply and thank you for your time :) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Tsiapaliwkas Giorgos write:
first of all thank you all of you for helping me..:)
i got this correct,
libzypp is backend of yast,which is writen in c++.
Libzypp is backend (library) for software management ( so yast packager and repositories use it )
Yast core is the collection of the lower level libraries and YCP (Yast Control Programming) language is the API of yast. It is writen in these 3 language or 1 of them is the main language and the other 2 are just languages for bindings?
YCP is main language, other is more likely bindings
Yast module=firewall,software management etc? (according to "man yast" firewall=module)
yes
libyui is a part of yast core?which is his actual work and how it is working in combination with Qt frameworks?
zypper and yast share some code or they are two differend frontends for libzypp?
it is different frontend
Also seeing the bugzilla i saw that there is no much work for qt programing for yast.Is that correct?
looking at yast's svn repo i found out some *.cc,i know that they are related to c++,but can u explain it more to me?
Sorry, I don't understand question.
sorry for my big reply and thank you for your time :)
you are welcome Josef -- Josef Reidinger Appliance Toolkit team maintainer of perl-Bootloader, yast2-bootloader and parts of webyast and SLMS -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Tsiapaliwkas Giorgos write:
first of all thank you all of you for helping me..:)
i got this correct,
libzypp is backend of yast,which is writen in c++.
Libzypp is backend (library) for software management ( so yast packager and repositories use it )
Yast core is the collection of the lower level libraries and YCP (Yast Control Programming) language is the API of yast. It is writen in these 3 language or 1 of them is the main language and the other 2 are just languages for bindings?
YCP is main language, other is more likely bindings
Yast module=firewall,software management etc? (according to "man yast" firewall=module)
yes
libyui is a part of yast core?which is his actual work and how it is working in combination with Qt frameworks? Libyui is an abstraction layer. A YaST module says "I want a button". Depending on the desktop environment this button is created via Qt, gtk or ncurses. This means the module programmer doesn't care about actual ui
On Tuesday, March 15, 2011 09:03:14 am Josef Reidinger wrote: framework and therefore yast modules work on text console as well as on graphical desktops.
zypper and yast share some code or they are two differend frontends for libzypp?
it is different frontend
Also seeing the bugzilla i saw that there is no much work for qt programing for yast.Is that correct?
looking at yast's svn repo i found out some *.cc,i know that they are related to c++,but can u explain it more to me?
Sorry, I don't understand question.
I'm not sure whether I understand your question correctly. The *.cc files contain c++ code, like *.c files contain ansi c code.
sorry for my big reply and thank you for your time :)
you are welcome Josef
-- Thomas Goettlicher SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Tuesday, March 15, 2011 10:51:02 AM Thomas Goettlicher wrote:
I'm not sure whether I understand your question correctly. The *.cc files contain c++ code, like *.c files contain ansi c code.
i was used to see *.cpp files for the source code of c++ but now i saw *.cc. which is the difference???
Also seeing the bugzilla i saw that there is no much work for qt programing for yast.Is that correct?
i looked at the bugzilla for bugs regarding yast and qt and i didn't find much work to do.Is this correct or i looked in the wrong place? On Tuesday, March 15, 2011 10:03:14 AM Josef Reidinger wrote:
YCP is main language, other is more likely bindings
Now i am shocked!I knew that yast is a awesome/"strong" project but i never thought that it would have it's own programming language.. That is sacinating :) in this url,there isn't a link for openSUSE 11.4 or head for yast.why? (Developer Documentation) http://doc.opensuse.org/ regarding the YCP language i found this link http://doc.opensuse.org/projects/YaST/openSUSE11.3/tdg/id_ycp_first_ycpc.htm... YCP language is a scripting languare or not? Is there any IDE or something for the YCP language? The qt developers use the qt assistant to manager their API,is there something like this for yast? thanks :) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Hi Giorgos, On Tue, Mar 15, 2011 at 12:49:09PM +0200, Tsiapaliwkas Giorgos wrote:
On Tuesday, March 15, 2011 10:51:02 AM Thomas Goettlicher wrote:
I'm not sure whether I understand your question correctly. The *.cc files contain c++ code, like *.c files contain ansi c code.
i was used to see *.cpp files for the source code of c++ but now i saw *.cc. which is the difference???
It is simply a different extension for the same thing.
i looked at the bugzilla for bugs regarding yast and qt and i didn't find much work to do.Is this correct or i looked in the wrong place?
That's hard to say, since you omitted details :) Taking advantage of my knowledge that Qt and libyui are assigned to Thomas in Bugzilla, I came up with this query which produces 14 publicly visible bugs: https://bugzilla.novell.com/buglist.cgi?query_format=advanced&bug_status=__open__&email1=tgoettlicher&emailassigned_to1=on&emailtype1=regexp
On Tuesday, March 15, 2011 10:03:14 AM Josef Reidinger wrote:
YCP is main language, other is more likely bindings
Now i am shocked!I knew that yast is a awesome/"strong" project but i never thought that it would have it's own programming language.. That is sacinating :)
Er, we too thought it was fascinating back then 10 years ago :) Actually nowadays we think that YCP is holding us back and want to switch to some widespread language.
in this url,there isn't a link for openSUSE 11.4 or head for yast.why? (Developer Documentation)
We haven't caught up with the release yet. But don't worry, there are almost no changes since 11.3.
regarding the YCP language i found this link
http://doc.opensuse.org/projects/YaST/openSUSE11.3/tdg/id_ycp_first_ycpc.htm...
YCP language is a scripting languare or not?
It indeed is a scripting language, but ycpc exists to save a pre-parsed bytecode. /usr/share/YaST2/modules/*.ycp get compiled to *.ybc which is interpreted by y2base
Is there any IDE or something for the YCP language?
We have YCP mode definitions for vim and Emacs.
The qt developers use the qt assistant to manager their API,is there something like this for yast?
We have the API generated in the autodocs subdirectory of each component. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
On Tuesday, March 15, 2011 11:49:09 am Tsiapaliwkas Giorgos wrote:
On Tuesday, March 15, 2011 10:51:02 AM Thomas Goettlicher wrote:
I'm not sure whether I understand your question correctly. The *.cc files contain c++ code, like *.c files contain ansi c code.
i was used to see *.cpp files for the source code of c++ but now i saw *.cc. which is the difference??? There is no difference.
Also seeing the bugzilla i saw that there is no much work for qt programing for yast.Is that correct?
i looked at the bugzilla for bugs regarding yast and qt and i didn't find much work to do.Is this correct or i looked in the wrong place?
You can find a list of current yast2-qt bugs here: http://tinyurl.com/yast2qtbugs
On Tuesday, March 15, 2011 10:03:14 AM Josef Reidinger wrote:
YCP is main language, other is more likely bindings
Now i am shocked!I knew that yast is a awesome/"strong" project but i never thought that it would have it's own programming language.. That is sacinating :)
in this url,there isn't a link for openSUSE 11.4 or head for yast.why? (Developer Documentation)
regarding the YCP language i found this link
http://doc.opensuse.org/projects/YaST/openSUSE11.3/tdg/id_ycp_first_ycpc.ht ml
YCP language is a scripting languare or not?
Yes, it's a scripting language.
Is there any IDE or something for the YCP language? I don't know an IDE for YCP, most programmers use vi or emacs.
The qt developers use the qt assistant to manager their API,is there something like this for yast? YaST's API documentation is available here: http://doc.opensuse.org/projects/YaST/openSUSE11.3/
thanks :)
You are welcome! Have fun! Thomas -- Thomas Goettlicher SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
thank to all of you for answering me questions. some more questions,if i don't want to get involved with bindings the programming languages that i have to know is c++ (for libzypp) and YCP? where is the vim plugin for YCP? starting me reading in order to contribute first i have to learn YCP?? Is there some kind of programming which will help me? In order to be more understood here is an example, kind of programming=3d programming,network programming etc etc -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Dne úterý 15 Březen 2011 13:59:16 Tsiapaliwkas Giorgos napsal(a):
thank to all of you for answering me questions.
some more questions,if i don't want to get involved with bindings the programming languages that i have to know is c++ (for libzypp) and YCP?
You can stay safely on C++ ground in YaST (core, libyui etc., as mentioned before). And btw, libzypp is not YaST backend, it's really software management library, while software management is only part of YaST.
where is the vim plugin for YCP?
In yast2-devtools package.
starting me reading in order to contribute first i have to learn YCP?? Is there some kind of programming which will help me? In order to be more understood here is an example,
To start programming in YCP, there's a tutorial here: http://doc.opensuse.org/projects/YaST/openSUSE11.3/tutorials/index.html But you really don't have to write in YCP, there are C++ parts here. Jiri -- Jiri Suchomel SUSE LINUX, s.r.o. e-mail: jsuchome@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Praha 9, Czech Republic http://www.suse.cz -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Tuesday, March 15, 2011 03:28:06 PM Jiri Suchomel wrote:
You can stay safely on C++ ground in YaST (core, libyui etc., as mentioned before). And btw, libzypp is not YaST backend, it's really software management library, while software management is only part of YaST.
I noticed that there are c++ parts in yast but i don't know how difficult it would be for me to write code for this libs. I am writing/reading code in the last 3 months and specifically with high level libs of qt.I don't know if i am able for this level of coding but of course the best way to discover it is to start reading it.:) thank u -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (6)
-
Duncan Mac-Vicar P.
-
Jiri Suchomel
-
Josef Reidinger
-
Martin Vidner
-
Thomas Goettlicher
-
Tsiapaliwkas Giorgos