No I’m not a nutjob who talks about the rapture (epic fail btw.). Instead, I’m talking about my time as a bachelor student. I’ve just handed in my thesis after weeks of work on it. You might have noticed by my recent absence from KDE hacking. But rest assured. Now I’m back again :)
First of all the GSOC hack time started officially this week. I got a slot again, and am a few days behind schedule yet am confident to fetch up. I’ll be working on bringing C++0x or now C++2011 support to KDevelop. You can read my proposal online.
Secondly next week I’ll be at Randa for the KDevelop sprint (among others). I’m really looking forward to it, so many nice people to meet again — awesome!
So expect more from my side again. I’ll also start to go through the bug reports of the last weeks which I have not yet attended to. Stay tuned and welcome back :)
continue reading...
Saturday night and I’m not going out. What the hell is wrong with me — you (and I) ask?
Sad truth is: I’m swamped with work currently. Today I sat down and finished the last protocol of a university lab course, so at least that is done for now.
Bachelor Thesis
I’m not a slacker (even though I’d like to be one!) so I also recently started working on my Bachelor thesis. I’m doing something on EPR simulations, esp. pulse EPR with “big” molecules. It’s actually pretty interesting and I already learned tons of stuff. Most notably I could finally try out Eigen. It’s as good as I imagined, and probably even better ;-) My mentor at the university, who used BLAS up to now, is amazed by the readability of code you write. It is often nearly a one-to-one mapping of a mathematical formula to code. Since I personally never learned the BLAS interface, and find it’s API hideous, I’m very pleased to be able to use Eigen from the start. Thanks to Gael and Benoit (and the others) for writing it. Since I like living on the edge, I use Eigen 3 already and - to give something back - started to update the benchmarks for them.
continue reading...
Hey all!
I wanted to quickly notify you all about the availability of KDevelop 4.2.0 final, you can download it here: http://download.kde.org/download.php?url=stable/kdevelop/4.2.0/src/ . Most people should be fine with waiting for updated packages from their distributor though.
This is a feature release with lots of shiny improvements and fixes. And - which is why I announce it now - it is required for users of the new KDE 4.6. So if you happen to use that, make sure you update to KDevelop 4.2 as well. Stay tuned for a full blown release announcement on the Dot soon. If you are interested in the changes now, take a look at this, this, and that. Thanks to all contributors who made this release possible, especially I would like to emphasize the contributions by new people - welcome!
continue reading...
Good news everyone!
I’m happy to announce the immediate availability of KDevelop 4.1.1, a pure bug fix release. Every user is urged to upgrade to this new and improved version.
You can download the sources from one of the mirros. Though most users should get this update via a distribution package update.
Changelog for KDevelop 4.1.1
ChangeLog for kdevplatform v1.1.1
=================================
* Milian Wolff: set version to 1.1.1
* Aleix Pol: Make the build tool responsible for renaming the items when rename is triggered (it was already being done, but twice in abstractfilemanagerplugin).
* Dmitry Risenberg: Fix line numbers in annotation bar for git. BUG:255599
* Pino Toscano: i18n: do not extract messages from sources in 'tests' subdirectories
* Nicolás Alvarez: Minor changes to apidox.
* Aleix Pol: When removing a file or directory, check if it has git versioned stuff. In that case ask Git to remove it, otherwise trash it.
* Nicolás Alvarez: Fix comment typos in iplugin.h.
* ben2367: Correct FileManager contextMenu
* Nicolás Alvarez: Add i18n comments to strings in codeutils plugin.
* Nicolás Alvarez: DumpChain: code cleanup.
* Milian Wolff: fix: don't crash when changing shortcuts without having an active document
* Milian Wolff: set a proper minimum width when initializing the launch config dialog
* Milian Wolff: make sure all projects are readable in launch config dialog
* Milian Wolff: initialize CodeHighlightingColors after we initialized the required member vars, add test to run valgrind easily
* Lambert CLARA: Fix lib APU find in FindSubversionLibrary.cmake
* Milian Wolff: preserve remote parts of url of active document for 'open file' dialog
* Aleix Pol: Copy the current directory instead of doing silly references.
* Milian Wolff: add some icons in the launch config dialog
* Milian Wolff: fix resize-to-column width algorithm and make launch config dialog have a sane size by default
* Milian Wolff: disable target combobox when using custom executable
* Milian Wolff: try to fix crash in KDevelop::ConfigurableHighlightingColors::getAttribute
* Milian Wolff: fix up delegate deletion, prevents crash in generic manager test cases (was deleted but the static var in the getter function was not reset)
* Milian Wolff: backport from master: only append subdirs to actual parent list jobs, fixes random crashes
* Nicolás Alvarez: Add 'build' to .gitignore.
* Milian Wolff: make project url canonical before inserting into m_currentlyOpening
* Milian Wolff: don't leak temporary files
ChangeLog for kdevelop v4.1.1
=============================
* Milian Wolff: set version to 4.1.1
* Pino Toscano: i18n: do not extract messages from sources in 'tests' subdirectories
* Burkhard Lück: fix wrong usage of translation context in ui file messages to make the translated strings visible either use <string comment="bar">foo</string> or <string extracomment="@info">foo</string>
* Milian Wolff: backport from master: when using parallel builds, make install with kdesudo uses a command string like: kdesudo -t -c make -j4 install
* Nicolás Alvarez: Cleanup and typo fixes in code comments.
* Nicolás Alvarez: Use qSwap instead of custom "tmp=a; a=b; b=tmp;" code.
* Milian Wolff: fix: make sure we compare directores without slashes as KDevelop API's urls have slashes while QDir::entryInfoList will never have slashes
* Aleix Pol: Provide support for break in foreach command.
* Aleix Pol: comment for performance issues.
* Aleix Pol: Added support for CMAKE_CURRENT_LIST_DIR variable.
* Aleix Pol: When looking for cmake modules, look for the directories without lowercases. It should work too.
* Milian Wolff: don't try to get namespace for dot and dotdot, prevents pesty warning:
* Milian Wolff: fix: prevent crash, don't try to access duchainpointer blindly
* Milian Wolff: fix: unbreak 'Force Tabs' in astyle formatter settings
* Milian Wolff: fix: make sure to apply negative BlockBreakAll option
* Milian Wolff: never switch to the implementation of a signal (i.e. the .moc file), instead use fallback and switch to .cpp
* Milian Wolff: backport from master: disable DEBUG_UI_LOCKUP by default, if desired enabled it via cmake (BUILD_uiblocktester option)
ChangeLog for php v1.1.1
========================
* Milian Wolff: set version to 1.1.1
* Milian Wolff: fix: remove obsolete mention of application/x-gzip in supported mimetype list
continue reading...
Good news everyone, part 2 for today:
I’m happy to announce the immediate availability of KDevelop 4.2 RC1. This is a pure bug fix release over the last beta in the 4.2 branch. Anyone using the 4.2 branch is urged to upgrade to this new version as soon as possible. Furthermore any new testers are welcome and feedback appreciated. Report it on the bugtracker on bugs.kde.org. Keep in mind that if you are using KDE 4.6 or higher, you need this release, as 4.1 only works up to KDE 4.5. If all goes according to plan, there will be another RC soon and a final release together with KDE 4.6.
Download
You can grab the source tarballs at the usual location: http://download.kde.org/download.php?url=unstable/kdevelop/4.1.90/src/
Packagers will hopefully update the testing repositories of their distribution.
Changelog
ChangeLog for KDevPlatform v1.1.90
=============================
* Milian Wolff: fix compilation for some compilers
* David Nolden: backport from master: Don't care about navigation tooltips when a context-browser view is visible, the view will handle this alone
* David Nolden: backport from master: regression fixes to context browser plugin refactor
* David Nolden: backport from master: Clear the file-modification cache instantly when the user has saved the file in the editor.
* David Nolden: backport from master: Don't completely ignore the retrieved top-context if it is still flagged to require an update. Instead, simply show a warning message on the status bar. (TODO: Find out why the update flag is not correct)
* David Nolden: backport from master: Exclude the "." when extracting the extension
* David Nolden: backport from master:
* Nicolás Alvarez: Move qHash of {Cursor,Range}InRevision into the KDevelop NS too.
* Nicolás Alvarez: Move qHash overload for SimpleRange and SimpleCursor into the KDevelop NS.
* Milian Wolff: make sure we generate colors in the ctor (undelayed)
* Milian Wolff: Introduce a fallback cache based on the file extension for LanguageController::languagesForUrl
* Milian Wolff: use full canonical file path for urls in duchainify, required for isLocalFile checks to succeed
* Milian Wolff: append _STATIC to macros in appendedlist_static.h to prevent clash with appendedlist.h, should fix compilation in KDE4_ENABLE_FINAL=ON mode
* Dmitry Risenberg: Do not mess with other active working sets when calling for a review. BUG: 260663
* Milian Wolff: properly emitResult when internal SVN job failed, prevents indefinite wait in isVersionControlled on invalid URLS
* Nicolás Alvarez: Simplify code in DUContextDynamicData assertion.
ChangeLog for KDevelop v4.1.90
==============================
* Dmitry Risenberg: Fix duplicate brackets insertion when executing completion for a function.
* Nicolás Alvarez: CMakeDUChainTest: store ranges in QSet instead of std::set.
* Milian Wolff: minor: fix style/indentation
* Floris Ruijter: fixes the cmakeduchaintest: a list of uses is checked too see if they're all there, that's a set operation, the test failed, because the lists where in the `wrong' order
* Floris Ruijter: this test contains a c++ error, it isn't too bad(the test passes with it), but it's probably not meant
* Floris Ruijter: Fix token-names for GeneratorTest
* Aleix Pol: Don't look for kdevelop in gitorious anymore.
* Nicolás Alvarez: Ignore the 'build' directory.
* Aleix Pol: Don't add to the tree unexisting directories.
ChangeLog for KDevelop PHP v1.1.90
========================
* Milian Wolff: Allow null as type for class constants.
continue reading...
Good news everyone, part 1 for today:
I’m happy to announce the immediate availability of KDevelop 4.1.2, a pure bug fix release without new features. Anyone using the 4.1 branch is urged to upgrade to this new version as soon as possible. Keep in mind that if you are using KDE 4.6 or higher, you need the 4.2 branch. This release works fine with KDE 4.4 or 4.5 though.
Note: This is - probably - the last release in this branch. We are now concentrating on 4.2 and what will become 4.3 eventually.
Download
You can grab the source tarballs at the usual location: http://download.kde.org/download.php?url=stable/kdevelop/4.1.2/src/
Packagers will hopefully update the distributions, hence most people should get this release automatically via a software update.
Changelog
ChangeLog for KDevPlatform v1.1.2
=================================
* Milian Wolff: make sure we generate colors in the ctor (undelayed)
* Milian Wolff: properly emitResult when internal SVN job failed, prevents indefinite wait in isVersionControlled on invalid URLS
* Nicolás Alvarez: Simplify code in DUContextDynamicData assertion.
* Milian Wolff: make sure we don't think a project is still being opened when it's import was canceled
* Dmitry Risenberg: Check for unloaded version control plugin in ProjectPrivate.
* Nicolás Alvarez: DumpChain: avoid double quotes around indentation in debug messages.
* Milian Wolff: hide non-project kcms from project config (e.g. php documentation)
* Milian Wolff: backport from 1.2: safely iterate over job list where kill can delete child jobs
* Andreas Pakulat: Fix link-interface
* Milian Wolff: initialize even more static data in a controlled way to prevent random crashes
* Milian Wolff: also init repository for modification revision sets properly
* Milian Wolff: move initialization of static DUChain data to DUChain::initialize()
* Andreas Pakulat: Declare the new function
* Andreas Pakulat: Extract duchain-item-repo initialization into a separate function.
* Andreas Pakulat: Fix a crash when loading a project, by initializing static data
* Aleix Pol: When working with directories, use the actual directory to get the cwd instead of the parent.
* Milian Wolff: show prefix, postfix and arguments in snippets tree view
* Milian Wolff: use Disabled palette also for snippets in disabled repositoreis
* Nicolás Alvarez: Fix comment typo.
* Milian Wolff: sort actions by name in 'Add Tool View' context menu
ChangeLog for KDevelop v4.1.2
=============================
* Nicolás Alvarez: Fix build error.
* Milian Wolff: set version to 4.1.2 in preparation of KDevelop 4.2 release
* Aleix Pol: Applied Valentyn Pavliuchenko patch to fix GLOB_RECURSIVE behaviour.
* Milian Wolff: fix entry list being empty for some Qt versions
* Milian Wolff: don't try to non-text/plain cmake files (e.g. due to problematic include)
* Aleix Pol: Support as variables, variables that end with a number. This small problem made macro_optional_find_package not to work, have to be careful about that.
* Aleix Pol: Properly reload when a CMakeLists.txt file has been deleted from the FS. If the CMakeLists.txt wasn't found, cleanup the directory.
* Aleix Pol: Also watch non-cmake directory changes.
* Aleix Pol: Properly store the cached variables doc string.
* Aleix Pol: Small coding style change.
* Aleix Pol: When checking if a directory exists, check that it's not a root's parent. CMake returns false in that case.
* Milian Wolff: backport from master: optimize: remove existing entries from the list and don't call potentially slow hasFileOrfolder over and over again on them
* Milian Wolff: optimize: don't protect static getter with mutex, instead set it up in a controlled fashion
* Aleix Pol: Properly add relative globs. BUG: 259099 CCBUG: 259135
* Aleix Pol: Backport from master. Don't add unused stuff in the cmake project tree.
* Aleix Pol: Add support for CMAKE_MATCH_* variable.
* Aleix Pol: Remove useless code.
* Aleix Pol: Add support for VERSION_* commands.
ChangeLog for KDevelop PHP v1.1.2
========================
* Milian Wolff: Allow null as type for class constants.
continue reading...
Good news everyone!
I’m happy to announce the immediate availability of KDevelop 4.2 Beta 2. This is a bugfix release over the first beta release two weeks ago. Every tester is urged to update, any updated feedback and bug reports are highly appreciated.
To download it: http://download.kde.org/download.php?url=unstable/kdevelop/4.1.81/src
Changes in KDevelop 4.2 Beta 2 since Beta 1
Highlights besides the usual bugfixes are probably the polished plugin configuration dialog as well as some performance improvements for huge projects.
ChangeLog for kdevplatform v1.1.81
==================================
* Milian Wolff: set version to 1.1.81 for beta2
* Milian Wolff: don't assert when a plugin gets updated from ProviderProvider to Provider or vice versa and the user forgot to rerun kbuildsycoca4
* Milian Wolff: --debug
* Milian Wolff: kill running import jobs for removed folders
* Milian Wolff: make sure we compare dir urls with trialing slash
* Milian Wolff: make sure we don't think a project is still being opened when it's import was canceled
* Milian Wolff: remove dead code
* Milian Wolff: move toolbutton to configure environment into it's own (reusable) class
* Milian Wolff: fix: properly update outline on document change, was missing connect to signal from document controller
* Dmitry Risenberg: Check for unloaded version control plugin in ProjectPrivate.
* Dmitry Risenberg: Check for unloaded version control plugin in ProjectPrivate.
* Milian Wolff: reintroduce the cleanup of 986ec7bb18211a7789e28c48fdc750668ae9b1d5 (no addViewSilently, no window->setArea in working set loadToArea), but fix the problem described in 2f586e506ac59153b0b95e008acc88cea490e7d3 (restoring of split views)
* Nicolás Alvarez: DumpChain: avoid double quotes around indentation in debug messages.
* Milian Wolff: hide non-project kcms from project config (e.g. php documentation)
* Milian Wolff: properly sort kcms in settings dialog: language support user interface projects background parser source formatter environment plugins
* Milian Wolff: also blacklist disabled plugins, if we now add the plugin to the X-KDE-ParentComponents of a kcm, it won't get loaded
* Milian Wolff: mark generic project manager as project category, required for settings blacklisting
* Dmitry Risenberg: Properly update Container's current widget when splitting views. BUG: 259908
* Milian Wolff: document X-KDE-PluginInfo-Category
* Milian Wolff: proper about data for cvs plugin
* Milian Wolff: sort loaded plugins by name
* Milian Wolff: greatly improve plugin useability by categorizing them
* Milian Wolff: backport from 1.2: safely iterate over job list where kill can delete child jobs
* Milian Wolff: safely iterate over job list where kill can delete child jobs
* Milian Wolff: fix session-controller unit tests
* Dmitry Risenberg: Check that git is installed when loading Git Support plugin. CCBUG: 257650.
* Milian Wolff: remove debug I committed accidentally
* Milian Wolff: port background parser away from slow QPointer to faster QWeakPointer, esp. useful for big projects
* Milian Wolff: fix compilation for qt < 4.7
* Milian Wolff: speed up ::index(), imo we don't need the call to hasIndex here as the itemFromIndex checks that as well
* Milian Wolff: second approach: properly implement removeRows without takeRow and speed up deletion of folders containing many items
* Milian Wolff: Revert "optimize shutdown for big projects with lots of items in single folders"
* Milian Wolff: optimize shutdown for big projects with lots of items in single folders
* Milian Wolff: Refactor context browser plugin to make it useable without a toolview.
* Milian Wolff: --debug
* Milian Wolff: don't overdesign the API: make setText protected, assume text == baseName for most items
* Andreas Pakulat: Make the filename corner variable size instead of fixed.
ChangeLog for kdevelop v4.1.81
==============================
* Milian Wolff: set version 4.1.81 for 4.2 beta2
* Milian Wolff: fix entry list being empty for some Qt versions
* Milian Wolff: make it possible to configure the environment from the makebuilder config kcm ui
* Milian Wolff: add missing files
* Milian Wolff: sort: put qthelp at end
* Milian Wolff: --debug
* Milian Wolff: don't load qthelp kcm if plugin is disabled
* Milian Wolff: split KCM and Plugin of QtHelpPlugin, fixes crash when unloading the plugin and accessing the KCM
* Milian Wolff: introduce categories
* Milian Wolff: don't try to non-text/plain cmake files (e.g. due to problematic include)
* Milian Wolff: update splashscreen for 4.2
* Milian Wolff: optimize startup: don't use slow QWebElement.toPlainText(), instead use a simple QRegExp parser that is *much* faster
* Milian Wolff: hide void-returning functions from code completion when we are inside an non-lvalue expression
* Aleix Pol: Support as variables, variables that end with a number. This small problem made macro_optional_find_package not to work, have to be careful about that.
* Aleix Pol: Don't propagate the URL change if the URL hasn't changed. Damn it, trailing slashes!! >.<
* Aleix Pol: We don't need this recursive case anymore. The url change will be propagated by ProjectFolderItem itself.
ChangeLog for php v1.1.81
=========================
* Milian Wolff: set version to 1.1.81 for 1.2 beta 2
* Milian Wolff: remove obsolete todo - doh
* Milian Wolff: cleanup
* Milian Wolff: introduce category, fix Name, remove GenericName as it's useless
ChangeLog for php-docs v1.1.81
==============================
* Milian Wolff: set version to 1.1.81 for 1.2 beta2
* Milian Wolff: set proper icon, use low weight
* Milian Wolff: don't load kcm if plugin is disabled
* Milian Wolff: introduce category, remove GenericName as it's useless and fix user-visible Name string
continue reading...
Hey all,
I’m happy to announce the immediate availability of KDevelop 4.2 Beta 1. This is a testing version and any kind of feedback would be welcome and appreciated. Please use our bugtracker. You can download the sources or wait for your distribution to create packages.
Note: Anyone who runs KDE 4.6 or later needs this version (or any later). This is because the SmartRange
interface in Kate got nuked and replaced with MovingRange
interface. Many thanks to David Nolden for more or less single handedly porting KDevelop to this new architecture.
The good news doesn’t end here though, KDevelop 4.2 ships with lots of notable changes and new features:
- MovingRange` support (Thanks to David Nolden)
- Grep Plugin rewrite with replace functionality (Thanks to Silvere Lestang, Julien Desgats, Benjamin Port)
- QtHelp plugin now supports arbitrary
.qch
files (Thanks to Benjamin Port) - ManPage plugin (Thanks to Benjamin Port, Yannick Motta)
- new look for code assistants (Thanks to Olivier JG)
- filter for the project model view (Thanks to Eugene Agafonov)
- improved “Problems” toolview, along with “TODO/FIXME” browsing (Thanks to Dmitry Risenberg)
- better standards compliance in the C++ macro implementation (Thanks to Dmitry Risenberg)
- argument dependent lookup for the C++ plugin (Thanks to Ciprian Ciubotariu)
- open with external application by default (esp. useful for Qt Designer
.ui
files) - PHP: rainbow colors for all vars (and no nested functions or similar), esp. useful for scripts without Classes/Functions
- code cleanup for working sets
- better handling of locked sessions (locked session gets activated or the user gets asked whether he wants to remove the lock file)
- improved Snippets editing usability
continue reading...
Hey everyone,
the third screencast for KDevelop is in: http://blip.tv/file/4500937
It shows the advanced snippets support in KDevelop, see also: Snippets in KDevelop & Kate.
In an unrelated note: I’ll do a talk at the Computer Science faculty of the FU Berlin tomorrow, see: http://talks.spline.de/
13.12.2010, 18 Uhr, Hörsaal der Informatik
“Wie und warum man sich als Open Source Entwickler/in engagieren sollte”
Viele Studenten könnten gute Programmierer sein, aber lassen Ihr Talent ungenutzt oder stecken es in private (kleinst) Projekte und One-Man-Vaporware. Würden sie sich hingegen in bestehenden Open Source Projekten engagieren, würde ihr Lieblingsprojekt nicht nur ein Stück besser werden, sondern sie selbst gewännen dabei eine Menge. Was ein paar dieser Vorteile sind, und wie man überhaupt damit anfängt sich in einem großen Projekt zu beteiligen, möchte ich am Beispiel von KDE zeigen und hoffe, dass dadurch ein paar mehr von euch aktiv in einem FOSS Projekt mitarbeiten werden.
continue reading...
Hey all,
I’d like to have some feedback from you. Consider this code:
#include <iostream>
#include <memory.h>
using namespace std;
struct List {
List(int size) {
begin = new int[size];
memset(begin, 0, size);
end = begin + size;
}
~List() {
delete[] begin;
}
int at(int i) const {
return begin[i];
}
int size() const {
// std::cout << "size called" << std::endl;
return end - begin;
}
int& operator[](int i) {
return begin[i];
}
private:
int* begin;
int* end;
};
int main() {
const int s = 1000000;
for (int reps = 0; reps < 1000; ++reps) {
List l(s);
List l2(s);
// version 1
for ( int i = 0; i < l.size(); ++i ) {
// version 2
// for ( int i = 0, c = l.size(); i < c; ++i ) {
l2[i] = l.at(i);;
}
}
return 0;
}
continue reading...