Re: [Jprogramming] introducing JON alternative to JSON

2014-02-26 Thread Pascal Jasmin
7;;'" ';'":';'! ';'$ ';'= ';'^ ';'^.';'a.';'a:';'L.';'L:';'j.';'i.';'i:' - Original Message - From: Raul Miller To: Programming forum Cc: Sent: Wedne

Re: [Jprogramming] introducing JON alternative to JSON

2014-02-26 Thread Raul Miller
On Wed, Feb 26, 2014 at 1:45 PM, Pascal Jasmin wrote: > My big question though is have I overlooked any potential unsafe code that > could be run with doSafe? Yes. Here's an example: exploit=: smoutput@3: doSafe '(u: ',(":u:inv 5!:5 <'exploit'),') apply 0' 3 Of course, there's not too m

Re: [Jprogramming] introducing JON alternative to JSON

2014-02-26 Thread Joe Bogner
Pascal, this looks really interesting. I also needed a safe do / eval for my JHS spreadsheet formulas. Your implementation looks similar to what I had in mind. I'm also interested if there's any security gaps in it. On Wed, Feb 26, 2014 at 1:45 PM, Pascal Jasmin wrote: > Jon is a text data tran

[Jprogramming] introducing JON alternative to JSON

2014-02-26 Thread Pascal Jasmin
Jon is a text data transfer format similar to JSON  encoding is simply: JON =: lr_z_ =: 3 : '5!:5 <''y''' rest of code: cocurrent 'jon' safe1 =: '''_0123456789+*-<>|;,#ijL{()a[]' safe2 =: 'u:';'x:';'}.';'}:';'" ';'":';'! ';'$ ';'= ';'^ ';'^.' issafe1d =: safe1 e.~ {. &> issafe2d =: safe2 e.~ 2&{