Sunday, December 2, 2018

DOSBox as container

During development of test ROM for ZX-Poly I had to use some compressing utility written by Vyacheslav Mednonogov in 1993, unfortunately I could not find any sources of the utility and it is presented only as executable file for MS-DOS. I wanted some more or less cheap solution to start the utility under Linux (Ubuntu), to get it working over some external file and get result of processing. I found some solution with DOSBox which is provided in standard Ubuntu repository. If you have not installed the emulator, you can use

sudo apt-get install dosbox

In my case I use such command line to execute utility xlpz.exe:
dosbox -c "cycles max" -c "MOUNT E $XPLZDIR" -c "MOUNT D $DIR" -c "d:" -c "e:\xlpz.exe $FILENAME" -c "exit"

where:
  • $XPLZDIR - directory where xlpz.exe is situated in host OS, it will be mounted in DOSBox as drive E 
  • $DIR - directory where data for processing is situated (it will be mounted in DOSBox as disk D), the result will be written in the same folder
  • $FILENAME is the file name of file to be processed but without folder path because for the utility it is situated directly in the root of D drive 
I use cycles max to maximize speed of work of the DOSBox because I don't need any real-time delay.The exit in the end of the command line tells DOSBox to stop work after utility work completion.

Unfortunately there is not any directive for DOSBox to not show its UI part but it is not big evil in the business.

Sunday, February 18, 2018

GWT+GoLang

I made some experiment how to use GWT technology as GUI for Golang applications and formed it as a some easy small example project on GitHub. It shows very simple example of communication between GWT front-end and Golang back-end.

Thursday, January 18, 2018

how to create Golang project with maven archetype

I have made small GIF which shows how to make a GoLang project with maven archetype and build it
mvn archetype:generate -B -DarchetypeGroupId=com.igormaznitsa -DarchetypeArtifactId=mvn-golang-hello -DgroupId=HiGo -DartifactId=hello

Tuesday, December 19, 2017

Conway's law

I guess the Conway's law is one of the most important ones in software development:
"Any organization that designs a system (defined broadly) will produce a design whose structure is a copy of the organization's communication structure."
http://www.melconway.com/Home/pdf/committees.pdf

Thursday, September 21, 2017

JDK 9 + JEP-238 + Maven + Preprocessor

I have made small example project to show how to use Java preprocessor and Maven to build multi-release JAR (as described in JEP-238) which is supported in JDK 9.
https://github.com/raydac/jep-238-jcp-example

Sunday, September 3, 2017

JBBP 1.3.0

Java Binary Block Parser 1.3.0 is out and accessible in the Maven Central. The Main feature of the version - to generate Java class sources from JBBP scripts, the feature allows to use the framework for more or less high-load systems. The Library still has size less than 200 kBt but since the version it needs Java 1.6+ (minimal Android version is still 2.0). Also there are published two plugins for Maven and Gradle which allow to generate Java classes from JBBP scripts on fly during project build phase.
Also of course minor refactoring and bugfixing.
p.s.
The Library is used by Orange for its Datavenue Live Objects service

Sunday, February 12, 2017

JCP 6.1.1 is out

New version of Java Comment Preprocessor 6.1.1 is out. In the New Version mainly improved maven options and improved some text functions to make it more compatible with GoLang.
Now it is possible preprocess GoLang and it is possible to load a binary file and represent it as a byte array through just only line command (see example)
var imageArray = []uint8{/*$binfile("./image.png","uint8[]")$*/}