About "java" on monperrus.net

by Martin Monperrus
#7 I/O profiling Java/Maven Tests with strace (November 13, 2016)
Recently I wanted to know what are the files read and written by each test in Spoon. Here is what I managed to do it by using strace. Profiling a single test Profiling one single test: strace -f -s 500 - mvn surefire:test -D test=spoon.test.annotation. >>> read more
#6 jexast: creating Java AST Nodes with Plain JDT (March 27, 2013)
Jexast allows creating Java AST Nodes with Plain JDT. Jexast stands for "Extraction of Java ASTs". Jexast has been superseeded by Spoon. Please use Spoon instead in noclasspath mode. To get the AST of Java files, there is the famous JDT class ASTParser. java ASTParser parser = ASTParser. >>> read more
#5 Can one trust an exception? (October 31, 2012)
By working on Java exceptions, we recently discovered that exceptions are not as trustful as we would have expected. Never Trust the Stack Trace It is widely known that an exception embeds a stack trace. They are often visible, even for end users, and developers often use ex. >>> read more
#4 ExceptionInInitializerError is unrecoverable (October 17, 2012)
Benoit Cornu and myself recently discovered the Java exception ExceptionInInitializerError, that wraps an exception thrown and not caught from a static block (i.e. >>> read more
#3 Java String vs StringBuffer - a Performance Comparison (May 28, 2010)
Here is a small piece of Java code to compare the performance of ''String'' and ''StringBuffer'' on a similar task. The result is that ''StringBuffer'' is at least 10x faster than ''String'' for concatenation. >>> read more
#2 Mining frequent itemsets in java (May 21, 2010)
Here is an implementation of the [[http://en.wikipedia.org/wiki/Apriori_algorithm|Apriori algorithm]] for mining frequent itemsets. It's on Github: [[https://gist.github. >>> read more
#1 Running TeX on a java virtual machine (November 13, 2009)
This document presents two solutions to run Knuth's typesetting program //TeX// into a Java Virtual Machine. I don't mean a re-implementation of TeX in a JVM compatible pogramming language (like [[http://www.extex.org/|extex]]) but running the original code itself. >>> read more