190
I Use This!
High Activity

News

Analyzed 1 day ago. based on code collected 1 day ago.
Posted over 12 years ago by Milian Wolff
Hey all, been some time since I blogged last time. My TODO list is ever increasing and I took my day job at KDAB up again. Among others, I attended a marketing talk by Edmund Preiss. He actually made that marketing talk interesting, not least by his ... [More] huge knowledge in the business, thanks to ~20 years of working for Intel. Probably the most important info I got out of it is this: VTune is available free-of-charge under a non-commercial license Yes, you heard right. Take these links: Intel’s non-commercial offering note this entry from the FAQ: What does noncommercial mean? Non-commercial means that you are not getting compensated in any form for the products and/or services you develop using these Intel® Software Products. Register for free license Register for Download Access you’ll need the serial number that gets send to you via email after registering for the license install VTune and profile the hell out of KDE/FOSS software and improve it all! speeding up KDevelop Personally I did the latter for KDevelop the last two days, and the results are astonishing. I just tested the results from today and an unscientific time kdevelop -s lotsofprojects - wait until parsing finished - stop showed roughly 50% decrease in time, from ~12min to ~6min. Yes, a whopping 50% - try it out for yourself and see how big the gain is. Don’t forget to whipe the DUChain cache though (i.e. via setting the environment variable CLEAR_DUCHAIN_DIR=1). Why VTune rocks I’m a huge fan of the Valgrind toolsuite, but it is simply too slow for profiling some things. Like opening ten medium to big sized projects in KDevelop and taking a look at the parsing speed. This can easily take a few minutes, but in Valgrind it would take ages. With VTune on the other hand, thanks to it’s sampling based approach, I don’t really notice the performance delay. Then you might have heard of the new perf profiling utility in the Linux kernel. It is also sampling based, but sadly requires special compile options on 64 Bit (-fno-omit-frame-pointers), and the UI is horrible, I haven’t found anything worthwhile with it so far… VTune on the other hand has an incredible GUI, which makes profiling a joy. You can look at call stacks top-down or bottom-up, visualize locks and waits, easily find hotspots, … I’m blasted. Especially the utilities to look at multi threaded performance (of e.g. KDevelop) kills every single other performance tool I have ever tested. Oh and did I mention that you can attach to an app at runtime, analyze some thing, and detach again? Seriously, Intel: You just found a new fan boy in me. Thanks for giving this tool away for free for us “I hack on this tool in my spare time, yet still want it to perform nicely” people :) And kudos to the VTune developers - I’m blown away by it! I really hope more people in the KDE community will try out VTune and try to improve the performance of our apps, I bet there is lots of potential! Pitfalls There are some negative aspects to VTune though: First of all it’s UI is sometimes freezing. I wonder if the developers should not maybe spent some time on analyzing the tool itself ;-) The biggest gripe though is that VTune does not work everywhere. I tried to run it on my Arch box, but sadly Linux 3.0 is not supported by VTune yet. It worked like a charm on two Ubuntu boxes with some 2.8.X kernel though. This also means that I have no idea if, and how, VTune works on non-Intel CPUs. I think some of it works nicely. I did not install any of the Kernel modules for examples, which would be required for hardcore lowlevel CPU profiling. I think the same feature set I praised so much above, should hence be available on e.g. AMD CPUs. But well, this is left to be tested. So, I’m now drinking a well deserved beer and look positively into the future of a fast KDevelop/KDE :) bye [Less]
Posted almost 13 years ago by apol
Hi fellow KDE! Today I would like to talk a little about some work I’ve been doing recently in KDevelop in order to assure we have a good path for the new KDevelop user and KDE or free software Developer. I think that KDevelop has been quite good at being adopted by people who know [...]
Posted almost 13 years ago by apol
Hi fellow KDE! Today I would like to talk a little about some work I’ve been doing recently in KDevelop in order to assure we have a good path for the new KDevelop user and KDE or free software Developer. I think that KDevelop has been quite good at being adopted by people who know … Continue reading Road to a better KDevelop newcomer experience →
Posted almost 13 years ago by apol
Hi fellow KDE! Today I would like to talk a little about some work I’ve been doing recently in KDevelop in order to assure we have a good path for the new KDevelop user and KDE or free software Developer. I think that KDevelop has been quite good at being adopted by people who know … Continue reading Road to a better KDevelop newcomer experience →
Posted almost 13 years ago by apol
Hi fellow KDE! Today I would like to talk a little about some work I’ve been doing recently in KDevelop in order to assure we have a good path for the new KDevelop user and KDE or free software Developer. I think that KDevelop has been quite good at being adopted by people who know […]
Posted almost 13 years ago by apol
Hi fellow KDE! Today I would like to talk a little about some work I’ve been doing recently in KDevelop in order to assure we have a good path for the new KDevelop user and KDE or free software Developer. I think that KDevelop has been quite good at being adopted by people who know […]
Posted almost 13 years ago by Milian Wolff
Hey all, I finally want to write a bit about my work on KDevelop during this year’s GSOC. To make things a bit more interesting for the whole crowd, even for those heretics that don’t use KDevelop, I want to highlight some C++2011 features I got to ... [More] know in the process. Hence this multipart blog post should be interesting for all KDE hackers, as eventually we will be able to use these shiny new features of what is to be known as C++2011. For those interested in the full overview of changes in C++2011, take a look at e.g. the C++0x Status Page in GCC 4.6, the wikipedia article on C++0x, or try to get hold of a copy of the C++2011 FDIS spec file. Note that the latter is apparently not freely accessible, see also this stackoverflow discussion. Still, maybe you find someone who can send you a copy… So, lets get down to business. Following is a not-complete list of C++2011 features I’ve already implemented in KDevelop. If I mess something up in explaining a new feature, or if I forget an important aspect, please add a comment. Range-Based for This neat little addition is not so important to most Qt developers. We know and love our foreach macro. C++2011 comes with a similar built-in construct called range-based for. Essentially the syntax goes like this: QVector<MyType> list;for(const MyType& item : list) { // do stuff} It’s neat, and very similar in syntax to the oldschool foreach macro. But there is a big difference: Where foreach makes a copy of the container, range-based for does not. This has mainly two implications: foreach is slow when used with containers that don’t use implicit sharing, most prominently STL containers range-based for has undefined behavior when you change the list you iterate over inside the loop. Personally, I think I’ll stick to the foreach macro as it’s known to work well and has no big downsides in most Qt-based applications, as implicit-sharing is widely used throughout Qt. RValue References / Move Support This feature is a more advanced topic and mainly interesting for library developers who want to implement move semantics and/or achieve perfect forwarding, resulting in much better performance under certain conditions. Take a look at the Brief Introduction to RValue References, or the associated spec changes. From the syntax POV it’s just a matter of using && for rvalue references compared to the single & for normal lvalue references. Defaulted and Deleted functions This addition to the C++ spec is very welcome to me as it makes some code much more readable and also can be used to prevent hard-to-debug bugs or to improve performance. I’m talking about defaulted and deleted functions. E.g. from the wikipedia article: struct NonCopyable { NonCopyable & operator=(const NonCopyable&) = delete; NonCopyable(const NonCopyable&) = delete; NonCopyable() = default;};struct NoInt { void f(double i); void f(int) = delete;}; This shows the syntax of how to use this new feature. The advantages: You can explicitly mark functions as deleted: Before you had to move these functions into private section of a class and not provide an implementation. When (accidentally) trying to use such a function you used to get unintuitive compile or linker errors. Now you get a nice message about usage of an explicitly deleted function. You can prevent unwanted conversions: Using deleted functions is also useful when you want to prevent some function to be called with a different type that can be implicitly converted to your function’s wanted argument type. Performance with defaulted functions: Compilers tend to write highly optimized code where possible. Implicitly defined constructors or assignment operators e.g. are one of these cases. But as soon as you use inheritance you (mostly) cannot use the implicit versions. Thanks to the new defaulted functions you can do that again. Furthermore it’s possible to change the access policy of an implicitly defined function (which are usually public) using the default syntax. Variadic Templates I confess that this is one of the more esoteric features of C++2011 for me. I never really did any serious template meta programming, and variadic templates are just as complicated as the other template programming. Yet I do see the advantages if people start to use it. more typesafe programming: it’s now easier to implement a typesafe printf less compile time: no need for pre-generated templates with some arbitrary number of parameters, also less usage of macro-generated code. see e.g.: http://www.generic-programming.org/~dgregor/cpp/variadic-templates.html Anyhow, I implemented the required parser changes into KDevelop, but proper code completion and DUChain integration might need some time and brain effort :) static_assert Now back to simpler things, yet definitely welcome and useful ones. One example are static assertions, i.e. compile-time assertions. The document I linked to contains a list of examples which should show how useful this feature is. Note that we Qt-users know and love the Q_ASSERT macro, but it is a runtime check. Boost users have had a BOOST_STATIC_ASSERT macro for some time, now we will finally be able to use it as well. STL updates Ah, before I forget it: Since KDevelop parses the STL includes, you should be able to use all new STL features already. If you spot a serious parser error in one of the include files of GCC 4.6 or 4.7, please notify me. much much more These are only some of the new features which I’ve added support for in KDevelop. I’ll try to sit down later today to write part 2, otherwise I’ll do that after I come back from the Fusion festival next week. Anyways, you can stay tuned for features like constexpr, opaque-enum-declarations, class-enums, improved right-shift token handling in nested templates, etc. pp. [Less]
Posted almost 13 years ago by Milian Wolff
Hey all! I wanted to quickly notify you all about the availability of KDevelop 4.2.3, you can download it here: http://download.kde.org/download.php?url=stable/kdevelop/4.2.3/src/ Most people should be fine with waiting for updated packages from ... [More] their distributor though. To read the full release notes and take a look at the changelog, please visit the project website: http://kdevelop.org/kdevelop/kdevelop-423-released Many thanks to the contributors, for making this release possible [Less]
Posted almost 13 years ago by Milian Wolff
Yawn. Hello everyone! After two nights of backporting sleep in my RL branch to fix the deficiency I built up during Randa, I feel somewhat normal again. Time to blog, eh? Randa Lets begin with Randa. It was not only my first time there, but also ... [More] my first time ever to be in the Swiss Alps. And furthermore it was the first time for me to be in the Alps without crying out loud about the lack of snow as I didn’t intend to go snowboarding. You can imagine it was a very pleasant experience for me. I definitely want to come back to go on some more serious hiking trips uphill. But I diverge ;-) Randa as place for a sprint was simply awesome: Secluded hence no real distractions. Great environment to clean your head, get fresh air and stay focused and productive. Good food, nice people, … I could go on here :) The only negative things I noticed where the unstable networking and the dormitories. KDevelop Sprint The KDevelop sprint at Randa was very successful and productive. Here is a group picture of those who attended: KDevelop Hackers at Randa 2011 from left to right: Sven Brauch (Python Support), Laszlo Papp (Gluon), Milian Wolff (…), Niko Sams (PHP, GDB, …), Aleix Pol (CMake, …), Alexander Dymo (UI, Ruby, …) Aleix already blogged about what he did, so I won’t reiterate that. Instead let me point you to the incomplete log of our discussions on Techbase. Here are my personal highlights of the sprint: We/I will setup a continous/nightly build- and regression-testing machine for KDevplatform/KDevelop and related plugins. Thanks already for the kind offers for hosting. More on this later some more plugins from e.g. Quanta will see a released soon. Due to lack of manpower we cannot wait for a stable Quanta release, but some plugins in there are already stable and usable. we will have some “welcome to kdevelop” page eventually, based on Aleix’s work with the Plasma Dashboard Niko’s “Browser Like Tabs” mode will be merged eventually, try it out now and give us feedback! Alexander merged a partial rewrite of the UI framework in KDevelop, bringing lots of new features and less bugs as well as reducing our codebase! Sven attended his first KDE sprint and continued to work on a kick-ass python language support for KDevelop! Rock on! I could go on and on here, we really did lots of stuff. It was great meeting you all again, hope to see you soon (at the Desktop Summit?). GSOC To finish this already long blog off, here a few notes on my GSOC. As you might have heard, I work on bringing C++2011 (aka C++0x) support to KDevelop. I’ve already pushed some changes to my branch which adapt our parser to support the range-based for loop syntax as well as RValue references and variadic templates. Proper DUChain integration is pending, yet it already makes working with C++2011 features much more bearable! Stay tuned for a more in-depth report. [Less]
Posted almost 13 years ago by apol
Every project has these things nobody looks into, like these corners nobody clean. For some reason today we realized that we ¿still? have, in our repository, some files like this. Here there’s a good quote: - KDE 2 is not supported, neither Qt 2.0. KDE 2 is in development and KDevelop will be ported after [...]