Reply to topic  [ 7 posts ] 
Yeti 6.2.1 released 
Author Message
Yorick Guru

Joined: Wed Nov 24, 2004 12:51 pm
Posts: 97
Location: Observatoire de Lyon (France)
Post Yeti 6.2.1 released
Yeti 6.2.1 has just been released.

New version can be obtained at: http://www-obs.univ-lyon1.fr/~thiebaut/yeti_download.html

[note by francois: updated link is http://www-obs.univ-lyon1.fr/labo/perso ... /yeti.html ]

Main changes are (see: http://www-obs.univ-lyon1.fr/~thiebaut/yeti_news.html):
    * Configuration script fixed to work with Cygwin/MS-Windows and to allow for compilation with Yorick CVS version.
    * Yeti Hierarchical Data File (YHDF) can now store functions and symbolic links (by their names).
    * Due to inconsistencies, the API for symbolic links has been reworked.
You may also want to have a look at linop.i which implements linear operators and which has been updated (thanks to Thierry Michel).


Mon May 14, 2007 4:20 am
Profile WWW
Yorick Guru

Joined: Sat Jan 22, 2005 2:44 pm
Posts: 86
Location: Pasadena, CA
Post 
Eric,

You write that symlinks provide a way to implement "virtual" functions in hash_table objects. I gave it a try, but if you had a code "snippet" .... :oops:

Code:
require, "yeti.i";

func foo1 (o, x) {return (x^o.p)(dif);} /* add args & keywords */
func foo2 (o, x) {return (x*o.p)(sum);}

func bar1 (o) {return o.p(avg);}
func bar2 (o) {return o.p(rms);}

_dumob_ttbl = h_new(d1= _lst(foo1,[1,2,3],"bar1"),
                    d2= _lst(foo2,[4,5],"bar2"));

func mkdumob (onm) 
{
  t= _dumob_ttbl(onm);
  o= h_new(class="dumob",                 /* ID */
           p=_car(t,2),                   /* params */
           s=symlink_to_name(_car(t,3))); /* s==virtual func ? - doesn't accept variable BAR*, name only */
  h_evaluator, o, _car(t,1);              /* main func */
  return o;
}

o2= mkdumob("d2");

o2(random());
o2.s(o2);             


Edit: Thank you for the clarification!


Last edited by Thierry Michel on Fri May 25, 2007 2:04 pm, edited 1 time in total.



Fri May 18, 2007 4:31 pm
Profile YIM
Yorick Guru

Joined: Wed Nov 24, 2004 12:51 pm
Posts: 97
Location: Observatoire de Lyon (France)
Post 
By virtual function I meant that it is only known by its name. The resolution is done at execution time. Hence the function must only exists when you "evaluate" the symlink (or the hash table object with an "evaluator") and you can redefine the value of the symbol pointed by the symlink. This is very useful to debug or improve methods. For instance, in your code, you can fix/improve the definitions of your bar2 or bar1 functions and without rebuilding your "object" the new function will be used. This is unlike a reference to a function in Yorick. For instance change the definition of bar2 at the end of your code and repeat the last command:
Code:
func bar2 (o) { write, "hello"; return o.p(rms);}
o2.s(o2);         

I don't know if this is more clear.


Fri May 25, 2007 5:13 am
Profile WWW
Yorick Master

Joined: Wed Jun 01, 2005 11:34 am
Posts: 112
Post 
When visiting the links given, I'm getting 404 errors. I believe I was getting them last week as well. Has Yeti been moved to a new website?


Fri Nov 09, 2007 8:07 am
Profile
Yorick Master

Joined: Sun Sep 26, 2004 10:33 am
Posts: 150
Location: Australia
Post 
dnagle wrote:
When visiting the links given, I'm getting 404 errors. I believe I was getting them last week as well. Has Yeti been moved to a new website?


Yeah. Same here. I have been trying for the past week and got the same 404 error. The root site is available though, only ~thiebaut gives that error.

What's going on eric?


Wed Nov 21, 2007 6:04 am
Profile WWW
Yorick Master

Joined: Sun Sep 26, 2004 10:33 am
Posts: 150
Location: Australia
Post 
Eric gave me notice me that the observatory site has changed.
The updated link is:
http://www-obs.univ-lyon1.fr/labo/perso ... /yeti.html


Last edited by francois on Wed Nov 28, 2007 4:57 am, edited 1 time in total.



Fri Nov 23, 2007 2:55 am
Profile WWW
Yorick Master

Joined: Wed Jun 01, 2005 11:34 am
Posts: 112
Post 
Thanks much for the updated link. :)


Tue Nov 27, 2007 9:10 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.