This part of the old website is not ported to the newer version yet.

Jaspers Personal webpage
Blog
Portfolio
  Things
About me
  CV
  contact
Portfolio

I use the o-jasper github account, with various stuff in various stages of development or abandonment.

Note:

this thing is out of date.


Currently my main language of interest is Julia. I particularly like its polymorphism, lack of classes, and code as data.(with macros as such) Unfortunately, I am behind on following things like packaging properly.

Another direction is using my reprap to print stuff.

Julia-ffi(Julia)

Foreign Function Interface allowing C functions to be used in Julia

Results

The get_c is used largely thanks to Robert Ennis, parsing has a shot if i developped further.

Approach

The get_c macro was a ‘low hanging fruit for me’. With the parser, i went ahead and did it. In retrospect an approach with clang would probably have been better.

physical_map(Julia)

Octtree, applied to Constructive Solid Geometry(CSG), and other things.

Results

Not used by anyone as far as i know, however, it did work for an earlier version of things. I am sure it can be made to work again fairly easily.

Approach

I initially wrote it with a vague(ambitious) idea of the ‘map of the universe’, later i noticed that i could fairly easily do CSG. I renamed it from ‘universe map’; the name ‘physical map’ allows both ideas.

The CSG part works by figuring out whether things are 1)entirely - 2)entirely not - pr 3)partially overlapping, you can deepen the octree when it is partially, up to the (typically)computation limitations.

The advantage of the approach is that the software is probably a lot simpler than many existing approaches. The disadvantage is that it’d always be cubes of some size. A big improvement could be to have each cube contain a ‘plane’ -a flat surface beyond which it is inside/outside the object.

Uses OpenGL for drawing stuff.

stackmatic(C)

Stack language interpreter implemention. Current version broken.

Results

I know one of the versions worked.. Todo is to find it back and park the github version there. Basically, i abandoned it.

Approach

It had basically two parts, the (in a stack language very basic) parsing, basically, each definition just stuffs a bunch of bytes on top.

And the interpreter. Each value comes with a byte identifying its type. If i’d do it again, i’d add a ‘type calculator’ to do away with that.

Various(C, bash)

Various little projects i cleaned up a bit and put out there. en-morse text to morse code, morse code to morse code sound. Morse code to text conspicuously missing. (Very poorly tested)

hashtable, hash table and s-expression(nested lists) parser.

relax, solves the laplace equation using the relaxation method method. For instance for electrostatic potentials, but i suppose it could be extended to waves. It uses doubling of resolution to work pretty quickly. This is an idea for the future of physical_map.

prog-select, C program that uses gtk to select a command, it lists commands based on what is typed, with the most used most prominent. There already exist much better programs that do the same.

dotbin, some shell scripts i use for (desktop)convenience.

various_physibles(openscad)

clothing hook

Various objects that are hopefully printable, or useful developments towards being printable.

Results

I have printed a few of them. Not published yet.

space_bodies(povray, bash)

Uses ray tracing with povray to draw asteroids and planets. (the files, also on opengameart)

Results




Can generate textures for the surface of planets and clouds. planet_y has a bunch of parameters allowing for a range of looks. (desert to ice, large or small landmass) I think they’re pretty, afaik no one used it atm.

Approach

Used to be different scripts but converted it into a single script where things are replaced in a template, and you specify what to replace. Conveniently there is also a way of defining defaults, and the defaults can be arbitrary depend on given parameters.(including other defaults, if those defaults come before)

Common Lisp stuff

I have gone away from Common Lisp to Julia as it is pretty much a lisp, and people apparently wont accept s-expressions. (though Julias syntax could yet be better)

These are pretty much abandonned.

Expression-hook(Common Lisp)

Function that sees all expressions in code. Allows you to provide a function that sees all expressions in code.

Builds on that to provide a ‘scanner’ taking data out.

Builds on that to ‘automatically package’ a bit, making .asd files, and autodocumentation. Autodocumentation can be extended with user input.

Results

Dont know if it is used much, think not. Forgot how usable the autodocumentation is. Should also try running it on ‘all the CL stuff out there’.

parse-c-header(Common Lisp(parses C header))

Parses C headers and outputs CL and Julia FFI, ‘Ancestor’ of Julia-ffi.

cl-command-line-wrappers(Common Lisp, bash)

Nice wrappers around commandline functions In particular, wraps for wmctrl, iwlist scanning .., pinot-search, ps and top. (to various extents)

j-basic(Common Lisp)

Various utility functions i used.

last written: Mon Apr 7 01:36:20 CEST 2014


Blog - Portfolio - About me -