BetaNews/FileForum’s listing of PN has some nice comments that I’d not spotted before:
March, 2005
16
Mar 05
Ada Scheme
Rolf Ebert posted a near-complete Ada scheme to the PN feature request tracker on sourceforge (RFE Tracker) looking for help to getting it working. I finished the scheme off and it will be available with the next version of PN or you can download it now from here: PN Ada Scheme.
To install, just drop into your pn\schemes directory and re-start PN.
16
Mar 05
NSIS Installer
Steve Riekeberg has very kindly crafted an installer for PN2 using NSIS instead of the traditional Inno Setup.
update: corrected the link!
Give it a whirl and let me know what you think – do you prefer it to the existing one?
You can also download the NSIS script.
16
Mar 05
Amazing Colorization
In a perfect example of very bad blog etiquette, I can’t remember where I saw this link, but it’s very cool:
Colorization Using Optimization
This paper presents a technique for automated colorization of images and also videos. All the user has to do is add simple strokes of colour indicating rough desired colorization of an area and the algorithm colours the image intelligently. The video shown has incredible colouring added from black-and-white and the colour hinting was only performed on roughly 1 in 10 frames.
The sample pictures explain it best, look through them and see if you’re not impressed!
Matlab source for the algorithm is available for download from that site.
16
Mar 05
Scripting Languages
So I want to add a macro/scripting language to PN2. I have evaluated a number of alternative paths that I can take and now I want your feedback!
I looked at a number of scripting language and extension mechanism implementations available for C/C++. I then discarded most of them because of one of a number of reasons:
- Couldn’t find easy information about how to embed the language
- Language syntax too terrifying to force on PN users (e.g. Perl)
- License problems
- Too complicated to embed
- Just plain didn’t like the language
Languages/Mechanisms I discounted: Perl, TCL, REXX, Ruby, MS Active Scripting, LUA
The two choices that I have in mind are:
- JavaScript
- Python
Python is an option because it’s a language that I have grown to love and it comes with batteries included (meaning lots of useful libraries straight out-of-the-box). There are also a number of good ways to embed Python in C/C++ (although I have concerns). JavaScript I chose because it’s a well known language with large numbers of resources explaining how the language works. The SpiderMonkey implementation is very easy to embed and is fairly lightweight (400k).
Using Python as the default scripting language would require users to download Python to be able to run/create scripts. This is a 10+ megabyte download needed to benefit from scripting. This is quite a requirement. My concerns with embedding Python relate to the fact that you need to link to a certain version of the python library. Users would need to have the correct version of python installed to be able to use the integration. This could possibly be avoided through the creation of a dynamic-linking library for python embedding.
Using JavaScript as the default scripting language would allow distribution with PN adding perhaps 1 megabyte at most to the distribution. JavaScript doesn’t, however, come with much. Basic provisions are Array, Boolean, Date, Math, Number, RegEx and String. With these primitives, I can provide a good OO interface into PN allowing for lots of scripting goodness, but I can’t provide complicated things like the libraries of Python provide. This would really be a Macro system for PN rather than integration with a scripting environment.
Of course, the last alternative is to define a C/C++ extension mechanism to PN that allows the use of both (and potentially others). Provide a simple JS mechanism for macros and scripting out-of-the-box but also provide an optional Python extension that allows the use of Python for those that desire it.
So dear users, it is your time to influence my decision. Which of the above would you prefer, or do you (greedy user) want both?! Have I forgotton “your favourite scripting language ™” and you think I really ought to evaluate it before carrying on with my current crazyness? Get in touch!
Leave comments with your thoughts.
8
Mar 05
GDS Now With Firefox Support
Google have released a new (full?) version of their Desktop Search engine that now includes support for Mozilla Firefox. It also now has its own explorer toolbar or floating search window – to match that offered by MSN toolbar. This toolbar does not, however, match the find-as-you-type style that MSNs has – shame. Finally, they added support for a number of new file types and plugins.