PlotKit in Gemstone

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

PlotKit in Gemstone

Gerardo Richarte
hi, I forgot to report this, it's a very stupid thing, but I think it's
worth fixing.

When I imported PlotKit into Gemstone (to use with Seaside, of course) I
had a small problem:

PKScriptLibrary >> #mochiKitJs has a very long String, apparently longer
that what's supported for literals in Gemstone. The very simple solution
for me was to cut the string in two, adding '+' roughly inthe middle.

In my case I cut it just before the line rading:

MochiKit.Base.update(MochiKit.Async.{evalJSONRequest:function(){

(it's the only appearance of evalJSONRequest:function in the code.

    I think it'll be a great idea to fix this in the repository, and
with it, PlotKit can be directly loaded from squeaksource into Gemstone.

    otherwise dale offered to host the project in Gemstone Monticello
server, but I think it doesn't make any sense to replicate it.

    richie

PS: I haven't loaded all SeaChart, juts PlotKit, PlotKitLibrary and
SeaChart. Examples seem to work :)
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: PlotKit in Gemstone

Philippe Marschall
2008/11/21 Gerardo Richarte <[hidden email]>:

> hi, I forgot to report this, it's a very stupid thing, but I think it's
> worth fixing.
>
> When I imported PlotKit into Gemstone (to use with Seaside, of course) I had
> a small problem:
>
> PKScriptLibrary >> #mochiKitJs has a very long String, apparently longer
> that what's supported for literals in Gemstone. The very simple solution for
> me was to cut the string in two, adding '+' roughly inthe middle.
>
> In my case I cut it just before the line rading:
>
> MochiKit.Base.update(MochiKit.Async.{evalJSONRequest:function(){
>
> (it's the only appearance of evalJSONRequest:function in the code.
>
>   I think it'll be a great idea to fix this in the repository, and with it,
> PlotKit can be directly loaded from squeaksource into Gemstone.

Go ahead and do it then. The repository has public write access for a
reason ;-) It might be best to replace it with the latest packed
version and see if it fits into GemStone. If it doesn't a lazy
accessor would be nice.

Note however that the usual disclaimer applies that the backing
JavaScript library has seen no updates in 2.5 years.

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside