|
From: Richard F. <fa...@be...> - 2014-04-18 23:59:47
|
perhaps of some interest on this topic.. https://github.com/sagemath/sagelib/blob/master/sage/interfaces/qepcad.py is the python-language interface to qepcad from Sage. There are 520 lines of introductory comments and examples. and probably another 1500 lines of comments, and maybe 500 lines of code. Uses "expect". It looks like qepcad does a bunch of interactive things, not just the "batch" CAD. RJF There areOn 4/18/2014 10:34 AM, Robert Dodier wrote: > On 2014-04-17, Richard Fateman <fa...@be...> wrote: > >> It may be that SAC-2 is much more efficient in all of these things >> than Maxima, but that is not at all guaranteed. It could be that >> the essential part of QEPcad B can be coded in Maxima's language, >> or coded in Lisp, in a few pages, given that Maxima already >> has most of the major components. > That's an interesting idea. I glanced at the QEPCAD B source code > and SAClib as well. SAClib is a C++ library and QEPCAD is a C++ > program which uses it. SAClib has a lot of functions which are in > Maxima, in particular stuff for manipulating polynomials. It seems > plausible that SAClib could be reimplemented to punt to Maxima > (although as usual probably the last 10% would take forever). > Then presumably QEPCAD itself would have to be translated to > Maxima, although maybe that could be automated by parsing the C++ > code and emitting equivalent Maxima expressions ... just daydreaming. > > Since all that stuff is C++, it is susceptible to Lisp FFI. Doubtless > that's more efficient that calling it as an external program. > > best > > Robert Dodier > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss |