Post

JNI? there's someone who remembers something?

Java Communications Without JNI JNA is an open source project maintained by Tim Wall that allows you to write Java code only to call into native libraries (i.e., DLLs on Windows). Without JNA, you would have to write potentially complex Java Native Interface (JNI) code or other glue code to make this work. For instance, the following code sample from the JNA Wikipedia page works as-is on Windows, Linux, or OS X, to call the native C runtime  printf  function: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 import com.sun.jna.Library; import com.sun.jna.Native; import com.sun.jna.Platform;     /** Simple example of native library declaration and usage. */ public class HelloWorld {      public interface CLibrary extends Library {          CLibrary INSTANCE = (CLibrary) Native.loadLibrary(              (Platform.isWindows() ? "msvcrt" : "c" ), CLibrary. class );          void printf(Stri

Vinoski: where Steve is working?

Hello dear friends ;-) I was looking around the web for some technical articles, authored by Steve, and I discovered that he is working, as architect, on the development of a NoSql database : Riak , an open source , highly scalable, fault-tolerant distributed database. Do you know something about NoSQL databases? NoSQL database systems rose alongside major internet companies, such as Google, Amazon, and Facebook, which had significantly different challenges in dealing with huge quantities of data... [ cit. wikipedia] It's seems an interesting new technology!

Nuovo mapping IDL to C++11 in arrivo!

Se avete pensato che il mapping IDL2C++ fosse un incubo, non siete stati i soli ;-) E' in arrivo il nuovo mapping IDL verso C++0x (ossia C++11) che promette di semplificare di molto la vita ! Why you should care about IDL to C++0x

The biggest changes in C++11

Sembra che ci siamo, C++11 , il nuovo standard ISO e' quasi approvato. Bjarne Stroustrup ha detto, a proposito di C++11 , che " it's feels like a new language !" Le novita' introdotte sono davvero molte, e potete trovarle riassunte nel seguente articolo . In particolare, e' curioso ed interessante riportare quanto segue: << After the approval of the C++ standard in 1998, two committee members prophesied that the next C++ standard would “certainly” include a built-in garbage collector (GC), and that it probably wouldn’t support multithreading because of the technical complexities involved in defining a portable threading model. Thirteen years later, the new C++ standard, C++11, is almost complete. Guess what? It lacks a GC but it does include a state-of–the-art threading library. >>

Peer reviews catch 60% of the defects...

“Peer reviews catch 60% of the defects.” http://www.cs.umd.edu/~mvz/pub/eworkshop02.pdf All of us have known for a long time that code reviews find defects, and that reviews are cheaper and can be more effective than most kinds of testing. In Code Complete, Steve McConnell builds an overwhelming case for code reviews: disciplined code inspections can find between 45%-70% of all defects in code, while even fast, informal reviews can find 20%-30%. Studies at IBM, HP, Microsoft and other places show that it is several times cheaper to find bugs in code reviews than through testing. And evidence keeps coming in to support that code reviews work. http://www.cc2e.com/

Anti-IF Campaign..

.. Anti-IF campaign website .. Se non ci avete mai pensato, volevo farvi riflettere sul fatto che l'utilizzo indiscriminato, magari a cascata, di IF/FOR/SWITCH nel nostro codice c++/java è spesso un indice qualitativo che il codice così prodotto non è object-oriented! Semplicemente stiamo utilizzando un linguaggio o-o per produrre codice imperativo. Ciò ha un'influenza immediata sulla qualità del codice: leggibilità , manutenibilità e testabilità sono direttamente impattati, e noi abbiamo un riscontro pratico reale, dato dai risultati, eufemisticamente "molto migliorabili", dei report di GCOV, EMMA e LogiScope. Dato che credo interessi, sull'argomento cercheremo di organizzare un prossimo breve seminario di MoreCPP, sul quale vi aggiornerò prossimamente. Buon lavoro, Raf P.S.: A proposito dell'argomento "Qualità", riporto una citazione che spesso ricorre nelle mail di un nostro "custome

More c++ 2011

Ciao, ne approfitto anche per segnalare: http://herbsutter.com/2011/03/25/we-have-fdis-trip-report-march-2011-c-standards-meeting/ il nuovo standard sta per arrivare, per chi ne volesse saper di più: http://en.wikipedia.org/wiki/C%2B%2B0x CiaoOOOoOooOooooOoooooooOooooooooooooO