Category Archives: Ashlar/Cornerstone

Script: Write out ASM Code to generate Java class

Edit: Updated version of the script here. Here’s a nifty little Groovy script to write out the ASM code to generate a given Java class. #!/usr/bin/env groovy   import org.objectweb.asm.util.ASMifierClassVisitor as V import org.objectweb.asm.ClassReader as R   @Grab(group=’asm’, module=’asm-all’, version=’[3.3,)') private class JustHereForGrab {}   new R(new File(this.args[0]).newInputStream()).accept(new V(new PrintWriter(System.out)), 0) You will have to [...]

Also posted in Groovy | 2 Comments

Ashlar Infrastructure is in Play

Ashlar‘s infrastructure is now live. Basically, we have a compiler and a runtime (ashlarc and ashlar, respectively). Ashlar compiles code down to a component (JAR + properly configured metadata). When Ashlar executes, it loads the component (OSGi install + processing), checks the metadata for any additional components required, fetches those additional components via Ivy, and [...]

Posted in Ashlar/Cornerstone | 1 Comment

Ashlar and Assumptions

In my free time this summer, as a counter-balance to the pastoral/ministerial work I was doing, I’ve cranked on a programming language called “Ashlar”. It’s still just getting started, but a big hurdle has been crossed: the runtime is up and running, and the compiler infrastructure is in place.

Also posted in Programming Language Punditry | 4 Comments

Open Source Journaling: Cornerstone

I did another brief update to Cornerstone last night. When parsing floating point numbers, I was doing a parse of an integer, then the dot, then a series of digits, and gluing it all together afterwards. Fred Medlin at the Java Hack Night pointed out that was silly, and I should should parse the value [...]

Also posted in Open Source Journaling | Tagged , , , , , , | Leave a comment

Open Source Journaling: Cornerstone

I was a bit fried and looking to escape from work, so I played around with Cornerstone a bit tonight. The key focus right now has been the parser of Cornerstone, which is written in Scala. In Cornerstone, there are what I’m calling the “mirror operators”[1]. Like OCaml, Haskell, and Scala, the user can define [...]

Also posted in Open Source Journaling | 4 Comments
  • Categories