Hi everyone,
I am enjoying Nim so far. I do a lot of scripting and was wondering if a project like this might work, any input would be appreciated.
I'd like to take an old (pre-2018) PunBB forum (PHP & MySQL) database, and restore access to the contents by generating static HTML. The upgrade path was broken long ago and the forum is basically dead for lack of any upgrade path.
So, my thoughts:
No dynamic database functionality (CRUD, etc.) is needed in the HTML output.
Possible? A reasonable project for NimScript?
Thank you.
Hello and welcome to the Nim community :)
First question for you: why are you intending to use nimscript for this? For Nim it's no problem.
Thank you for the kind welcome. :-)
I am generally more comfortable with scripting and find the compilation process a bit of an extraneous step, but I'm open to others' thoughts on this. If for any reason Nim is more appropriate, I'd be fine with that...
Nim is definitely better suited for this purpose as you're creating a program that does something very specific. NimScript is mostly used to write code that automatically generates more code, or for allowing embedded control facilities. Luckily for you however the difference between running NimScript and compiling and running a fully fledged Nim program is fairly slim:
nim r myscript.nims
nim c -r myprogram.nim
And if you're doing anything but the most trivial task it will also likely be faster to compile and run.