Mallim's Blog

Thoughts, stories, and ideas of a Software Craftsman

Cross-Compilation Options: java -source -target

by Mallim in Crossover Compilation 1 min read

Introduction Notes to myself to unwrap my head about this crossover compilation thingy. Cross-Compilation Options Given JDK 8 when -source 1.8 -target 1.6 then Cannot work Given JDK 8 when -source 1.8 -target 1.7 then Cannot work Given JDK 8 when -source 1.6 -target 1.6 then ...

Patterns - Pipeline / Chain of Reponsiblity in Java

by Mallim in Design Pattern 1 min read

Pipeline and Chain of Reponsiblity both look quite similar to me. Pipeline: Pipeline pattern - Plumber quest - got an example here Function composition and the Collection Pipeline pattern it shows how you can transform multiple for loops to a functional ones Chain of Respon ...

Mother of all Java resource

by Mallim in Mother Of-all 1 min read

This is my own awesome-java references. Here they are ... spring-modules fork of the abandoned SpringModules (unofficial extensions for Spring). Wow... Do it yourself Multi Value Map with Java 8 it shows examples in Apache Common Collections, Guava, Eclipse Collections and on ...

Mybatis Batch mode

by Mallim in Mybatis 1 min read

IBATIS/Mybatis has the same underlying thing to watch out: To get benefit from batch executor, all the statements must be the same (it internally uses java.sql.PreparedStatement#addBatch()). If you use <foreach />, the statement changes and MyBatis has to create a new state ...

Java - Random test data generator

by Mallim in Test Data-generator 1 min read

Good to use if you are required to generate a few thousand data elements. As described in random-beans: Because life is too short to generate random Java beans by hand. These are the two Java based libraries if I want to try Java libraries MockNeat random-beans

Notes on Kilim

by Mallim in Kilim 1 min read

Introduction I am actually think is so impressive and reading a technical paper on it Related resources Kilim 2 Kilim streams - useful?? Kilim: A server framework with lightweight actors, isolation types and zero-copy messaging KilimBenchmarkMain.java Examples using kilim-strea ...