When I started my new job three months ago, I didn’t know how to write a Fortran program. I had to modify an already existign Fortran 77 program to enhance and parallelize it. So I went to the library and I took this book aimed at people like me.
I had this discussion with one of my Ph.D. advisors some months ago when we talked about correctly using the computers we had then (dual cores), and I had almost the same one in my new job here: applied maths (finite differences, signal processing, …) graduate students are not taught how to use current computers, so how could they develop an HPC program correctly?
I think it goes even further than that, and it will be a part of this post. What I see is that trainees and newly-hired people (to some extent myself included) lack a lot of basic Computer Science knowledge, and even IT knowledge.
This is the first time I will review a book on something I’m not familiar with at all. I’ve started now for more than two months a new job related to geophysics, and I had to catch up with my colleagues.
I’ve stopped studying geology ten years ago, so this is a review from someone who is learning geophysics and who wants to have a quick and global look on the different fields of geophysics.
Sometimes, a C or C++ array structure must be used in Python, and it’s always better to be able to use the underlying array to do some Numpy computations. To that purpose, Numpy proposes the array interface.
I will now expose an efficient way to use SWIG to generate the array interface and exposing the __array_struct__ property.
I’m trying to use the MKL with some programs and libraries, but I encountered something really strange and I’m not alone.
First, what is i_free ? Accoding to Intel, it’s their way to handle memory allocation and deallocation. They are only pointers to the actual memory functions so as to let the user decide if he wants a custom memory handler. Since 10.0.3, Intel changed their model, and the trouble begins.
As I have to parellize some programs developed in my new lab, I monitor CPU usage during thier execution. I do not usually need MPI to optimize them (although sometimes it is needed), only OpenMP, which means I can track /proc/ to get CPU and instantaneously memory usages.
So I wrote a small script that can be used by anyone for this purpose. I’ll explain how it works now.
For four years I’ve been researching the intersting field of manifold learning. Indeed, I’ve defended my PhD thesis last friday and now I have a PhD in electronics, electrotechnics and automatism in the university Louis Pasteur in Strasbourg, France. Those years after my engineering school allowed me to read and to learn a lot, but I’m still glad those years are over.
During these years, I enjoyed looking for new solutions for my problems, and it helped me discover some technologies I didn’t really master (like Python but also C++, parallel computing, … now I can use some of them safely). So this is my advice to every new PhD student: read a lot, and not only articles or books in your field, but also in the other fields, like the tools you may use (Computer Science mainly) so that you can use the best of them (it takes some time, but you’ll be rewarded in the end).
Contrary to what the title may hint to, this book is an introduction to C++ and the Qt library. And in the process, the authors tried to teach some good practices through design patterns. So if you’re a good C++ or Qt programer, this book is not for you. If you’re a beginner, the answer is in my review.
I got this book from a partnership between http://www.developpez.com/ and O’Reilly. Thanks to both of them.
What defines “beautiful code”? How do people think a beautiful code should look like? This isn’t a simple question to answer, so this book asked several lead programmers (Ruby, Python, C, C++, Java, Perl, …) some beautiful code they wrote or they encountered. And if some want to answer “think about a robust, simple to extend code and that will be it” (and I would be one of them before I read the book), there are some code that would not fit this profile.