Notes on Java, Solaris, PHP, LDAP…

January 5, 2008

Java Memory Brief

Filed under: Java — negev @ 11:22 am
Tags:

How Java would benefit from effectively final fields. Temporarily mutable fields get ‘flushed’ (fixed) and become immutable and thread-safe. Extra benefits: immutable arrays – runtime checked, backwards compatible.

See the article at https://negev.wordpress.com/java-memory-brief/

Advertisements

November 17, 2007

Java Clustering, Multicore, Profiling, Exceptions

Filed under: Java — negev @ 9:56 pm
Tags: ,

Java notes

Clustering
– in Java
— www-sop.inria.fr/oasis/ProActive
— OpenMOSIX – Message Passing Interface
http://www.cs.wics.edu/condor/downloads

Multi-thread development: Where can you go wrong? (from Java Platform Performance on Multicore: Better Performance or Bigger Headache? )
Profiling Pitfalls
• Profiling just once
• Iterative process
• Investigate one issue at a time
Cache access
Synchronization
• Investigating only user-written code
• Issues can be in libraries
• Rewrite code to use different library methods

Testing JavaTM Code: Beyond the IDE
— Developers can spend up to 50% of their time understanding code before they can fix it…

FindBugs – it tries to detect bugs in Java source

Don’t swallow Exceptionshttp://www.javalobby.org/java/forums/t91338.html

Bug Fixing, Java 7: http://java.sun.com/developer/technicalArticles/Interviews/community/harry_qa.html
* The book I’d recommend is Code Complete. It’s convinced me of the limitations of unit tests
** http://cc2e.com/
* superpackages and method references at the language level.
* invokedynamic
* a limited form of multiple inheritance will exist

Java community
JUG – Java User Group – http://www.javalobby.org
Free Sun course – creating Web tier apps – http://developers.sun.com/offers/

Java news
– unstructured http://www.planetjava.org
– structured RSS feeds http://www.javarss.com/

Sun Studio Performance Analyzer – useful to profile Java apps – both interpreted & hotspot stacks
http://developers.sun.com/solaris/articles/java_on_solaris.html

Create a free website or blog at WordPress.com.