User talk:RV1971

Would you be interested to demonstrate the use of your extensions on the DPLDEMO website? If yes, please leave a note on my user discussion page there. Algorithmix 06:35, 26 May 2007 (UTC)

I have StackFunctions (with some modifications) on http://nomicapolis.net and I'm forseeing all kinds of uses for it (I only have one trivial production use of it right now, but that will change). It does appear that array literal syntax is broken however -- the ] operator pushes an empty array, but fails to load the stack above the mark. 67.98.226.13 21:45, 8 June 2007 (UTC) (User:Chuck from nomicapolis.net)


 * The ] operator of StackFunctions should create an array of the Stack elements from the last preceding [ on, and that works. However, you have discovered a bug: when there is no preceding [, an exception should be raised. I just published version 0.563 where this is fixed. RV1971 20:39, 9 June 2007 (UTC)


 * Part of my bug was a screwup on my part -- I replaced all the type letters with constants, but I did so case-insensitively, so the case for "a" was shadowing the case for "A", which certainly hosed array/dict creation! I think that [, ], and double-angle-brackets are supposed to be operators in systemdict (which makes them able to be redefined), but this works for now.  I'm also finding ghostscript to be a wonderful way to test for proper behavior :)  I'd love to collaborate more on StackFunctions, but it's a bit cumbersome to go back and forth on wiki talk pages, so if you want, you can reach me at cja987@gmail.com. 64.121.2.24 21:09, 9 June 2007 (UTC) (User:Chuck on Nomicapolis)

FYI, You might want to not allow the serialize operator by default, as it can be used to upload and automatically execute arbitrary PHP code: if it unserializes an object, it will call a __wakeup method on the object if it's defined. What I did was use the mcrypt module to encrypt the serialized code with a key stored in the source. I haven't updated the %Z handling yet, but it's basically the same code path. Of course this adds a lot of overhead, but it should still be a win if there's a lot of code to parse. 64.121.2.24 04:55, 10 June 2007 (UTC) (User:Chuck on Nomicapolis)