On Thu, Jun 30, 2022 at 07:29:14PM +0800, Qian Yun wrote:
> Actually it is not that hard to build FriCAS using only Lisp compiler
> (without C compiler).
>
> Of course, this means there will be no hyperdoc, graphics, clef, sman.
> Just FriCASsys, just algebra.
>
> This can be useful, if you are using the emacs/texmacs/jupyter/sagemath
> interface.
>
> This can also be useful when porting FriCAS to different Lisp. No need
> to worry about FFI when doing pure Lisp build.
>
> The following diff is just a quick hack to achieve this.
> You use this to test the build: "make -jN CC=not-exist all-fricassys"
>
> Waldek, if you think such "--without-c" build option is useful, I can
> develop it into a full patch.
I personally see no need for such option, but it is hard to
know what other people want.
Concerning porting: current Makefile structure worked quite well
for porting to variuous Lisps even if at first port did not
handle FFI. For porting to Poplog I used 'contrib/load-fricas.lisp'
(had to edit it by hand but at some moment it allowed loading
FriCAS even though normal algebra bootstrap would fail in Poplog).
Also, without FFI we would have no gmp for sbcl. With ECL
no C compiler means no compiler at all.
Let me add that I consider making FFI mandatory and using
foreign code to speed up algebra.
--
Waldek Hebisch
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/20220630203231.GA23033%40fricas.math.uni.wroc.pl.