Riccardo GUIDA
2018-08-01 18:40:56 UTC
Hi
Quite dreamy, I was thinking at the conceptual possibility of writing a spad wrapper for the mathgl graphics library [1].
One could make spad-system-calls (systemCommand$MoreSystemCommands) sending scripts in mgl language to the mgl interpreter [2] (in the spirit of Bill's GnuDraw) or one could try to link the shared objects from the available C interface [3].
I've seen Waldek's experimental lapack package [4]. IIUC correctly the equivalent in this case would be spad functions calling lisp function wrappers which make "alien-calls" to functions in the shared objects from C.
I was wondering, waiting for a FFI for spad, would not be possible/realistic/efficient to prepare aldor wrapper functions that directly call the external C functions, then "somehow" compile these functions via FriCAS, and finally expose them? I'm sorry I'm vague but I never used aldor.
Riccardo
[1] http://mathgl.sourceforge.net/doc_en/MathGL-features.html#MathGL-features
[2] http://mathgl.sourceforge.net/doc_en/Utilities.html#Utilities
http://mathgl.sourceforge.net/doc_en/UDAV.html#UDAV
[3] http://mathgl.sourceforge.net/doc_en/C-interface.html
[4]http://www.math.uni.wroc.pl/~hebisch/fricas/lapack/
Quite dreamy, I was thinking at the conceptual possibility of writing a spad wrapper for the mathgl graphics library [1].
One could make spad-system-calls (systemCommand$MoreSystemCommands) sending scripts in mgl language to the mgl interpreter [2] (in the spirit of Bill's GnuDraw) or one could try to link the shared objects from the available C interface [3].
I've seen Waldek's experimental lapack package [4]. IIUC correctly the equivalent in this case would be spad functions calling lisp function wrappers which make "alien-calls" to functions in the shared objects from C.
I was wondering, waiting for a FFI for spad, would not be possible/realistic/efficient to prepare aldor wrapper functions that directly call the external C functions, then "somehow" compile these functions via FriCAS, and finally expose them? I'm sorry I'm vague but I never used aldor.
Riccardo
[1] http://mathgl.sourceforge.net/doc_en/MathGL-features.html#MathGL-features
[2] http://mathgl.sourceforge.net/doc_en/Utilities.html#Utilities
http://mathgl.sourceforge.net/doc_en/UDAV.html#UDAV
[3] http://mathgl.sourceforge.net/doc_en/C-interface.html
[4]http://www.math.uni.wroc.pl/~hebisch/fricas/lapack/
--
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 fricas-devel+***@googlegroups.com.
To post to this group, send email to fricas-***@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.
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 fricas-devel+***@googlegroups.com.
To post to this group, send email to fricas-***@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.