chrisdew / jshilbert

This is a javascript programme for 2d->1d transforms from unit space to distance on a unit Hilbert curve.
MIT License
15 stars 3 forks source link

Code License #1

Closed karvanit closed 13 years ago

karvanit commented 13 years ago

There is no code license for these files. I am interested in using your code (recoded in C++) in a GPL/QPL project of my own. Could you add license information, at least for the hilbert.js file?

The jquery is GPL, so it seems that the rest could be GPL as well, but could you make it explicit?

chrisdew commented 13 years ago

Thanks for your interest.

I've just release the code under the MIT licence, so you're free to do whatever you want with it.

Could you let me know if you re-implement it in C++, as I would be interested to see the code?

All the best,

Chris.

P.S. GPL is not viral for Javascript code, as there is no compile/link stage. My understanding is that you can happily use GPL'd Javascript code in a closed source project as Javascript is the source code. (There might be restrictions if you use Google's closure compile to mix GPL and proprietary code - I've not thought too much about it.)

karvanit commented 13 years ago

Thank you for your reply.

Ι have used parts of your code, adapted to C++, in my file hrtree.cpp, in my Fantasy Map Sketcher project here on GitHub, at git://github.com/karvanit/Fantasy-Map-Sketcher.git

The code is mostly the same, I simply changed the SimpleMatrix class to modify itself and return references and turned the tail recursion into a loop. Since I want to use numbers outside [0,1), I have a simple scaling before and after calculating the hilbert length. The rest should be identical.

The public branch of my code will remain stable and will eventually contain the proper code. The unstable branch is meant only for my private use and will have no stable history.