31 Jul 2009 08:58
Re: libc.lsh
Yann LeCun <yann <at> cs.nyu.edu>
2009-07-31 06:58:27 GMT
2009-07-31 06:58:27 GMT
malloc anf free in libc.lsh were meant to call the C malloc() and free(), without memory management. A *lot* of libraries use them. I'm not sure what the alternative is in Lush2. Leon introduced the constants mechanism to avoid crowding the namespace, because constants extracted from a C header may clash uncontrolably with existing symbols. Also, <at> and <at> <at> are different. <at> <at> evaluates at read time (like #.) whereas <at> evaluates at compile time. It's not entirely clear that we absolutely need both, but they are different. -- Yann On Friday 31 July 2009, Ralf Juengling wrote: > Some definitions in libc.lsh might be problematic because > memory management had changed (malloc & free), and most > others were redundant. <at> and <at> <at> as they were defined in > libc/constants was unecessary, I thought (why limit your > namespace, especially if there are better ways ?). > For both situations there are alternatives--just use > defconstant and #. for read-time evaluation, as in > common lisp. > > I removed those files so that it is clear which files I > still need to update and what to look for. > > Ralf > > On Fri, 31 Jul 2009, Yann LeCun wrote: > > Hi Ralf, > > > > Any good reason for not removing libc.lsh and constants.lsh > > from Lush2 in lsh/libc? > > > > SDL and a whole bunch of other packages use them. > > > > Is there another to do the same thing on Lush2? > > > > -- Yann > > > > > > > > ------------------------------------------------------------------------- > >----- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > > 30-Day trial. Simplify your report design, integration and deployment - > > and focus on what you do best, core application coding. Discover what's > > new with Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Lush-devel mailing list > > Lush-devel <at> lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/lush-devel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
RSS Feed