Hi,
Dr. Geo script are becoming first class citizen -- before it was just a
method hooked to an existing DrGeoUserScripts class ; then, it was easy
to export the script method as a string to include it in the XML sketch
file.
Now to save a Dr. Geo sketch using a script, the whole script class
nee
jannik laval wrote
> Could you give me access to the repository ?
Added user JLaval as contributor
-
Cheers,
Sean
--
View this message in context:
http://forum.world.st/ANN-NewExternalWebBrowser-tp4788403p4789740.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
2014-11-08 17:41 GMT+01:00 Sean P. DeNigris :
> jannik laval wrote
> > It seems that there is no NBUnixShell.
> > I have implemented the necessary for Ubuntu, in Phratch.
> >
> > Would you like I push it ?
>
> Absolutely! Is there a command or library that can open a URL that works on
> all GNU+Li
hi Torsten,
thank you for making that possible and thanks to John Cromartie and Sven
van Caekenberghe
werner
I should ask more questions :-).
Now, this still doesn't answer the question on how to use this to memoize
object methods.
I think that what is closest to what I am looking for is this:
http://wiki.tcl.tk/10779
http://wiki.tcl.tk/10981
I am use we can do something like that in Pharo, with some
Werner Kassens wrote:
>Hi,
>now this a nice idea, especially the memoizedUsing:cache idea. i would
>really appreciate it, if that would be MIT licenced.
>werner
It already is, thanks to the permission of author John Cromartie who answered
us today. Both methods are in a slice already:
Details in
Hi,
now this a nice idea, especially the memoizedUsing:cache idea. i would
really appreciate it, if that would be MIT licenced.
werner
Stef said:
<<
I usually create a method and a class.
because script do not compose well.
>>
ᐧ
>
>
Thanks, that sounds interesting. And, just for clarity, do you mean that
you create a single class e.g. MyGists and then create methods for each of
your useful snippets? Or, is there a benefit in crea
On Tue, Nov 11, 2014 at 04:37:03PM +0100, stepharo wrote:
> I usually create a method and a class.
> because script do not compose well.
+1 although I don't practise this well. I use ScriptManager but when my images
proliferate it becomes messy to manage the scripts across images.
Pierce
This is cool indeed.
I find an unlimited cache a bit coarse, would not really work in practice. What
about
memoizedUsing: cache
^ [ :x | cache at: x ifAbsentPut: [ self value: x ] ]
then you could pass in a tuned LRUCache instance, among others.
Sven
> On 11 Nov 2014, at 16:24, Torsten Berg
Hi andy
I usually create a method and a class.
because script do not compose well.
Stef
From time to time I write a workspace script that I would like to
keep. Obviously, I could save them to a file, but I was wondering if
there was a way of saving them in the image, and browsing them in some
Phil wrote:
>thanks for the pointer.
>Now, how do I use that?
First: create a method BlockClosure>>#memoized in your Pharo image (see
https://gist.github.com/jcromartie/2705526)
memoized
"returns memoized version of an unary function"
| cache |
cache := Dictionary new.
^ [ :x | cache at: x ifAb
12 matches
Mail list logo