Gain of remove_directory

4 views
Skip to first unread message

Grégory Vanuxem

unread,
Apr 30, 2023, 12:47:09 PM4/30/23
to fricas...@googlegroups.com
Hello Waldek, *

I wonder what is the gain of using 'remove_directory' in cfuns-c.c.
Waldek, do you happen to remember why you added its use?
Is there a specific LISP implementation that needs it?
Or is it to avoid some stuff like 'sys exec rm -rf dir' in a hypothetical language?

Regards,
__
Greg

Waldek Hebisch

unread,
Apr 30, 2023, 6:06:01 PM4/30/23
to fricas...@googlegroups.com
W had discussion in the list starting from 27 Jun 2013.
Basically, one reason is speed: C code is much faster than
starting external program. Another reason is portablity:
C code depends only on fundamental Posix-standarized operations.
Alternatives bring various dependencies which may cause trouble,

--
Waldek Hebisch

Grégory Vanuxem

unread,
Apr 30, 2023, 10:23:07 PM4/30/23
to fricas...@googlegroups.com
Oh, I should have looked in the mailing list archives.

So I guessed wrong, I thought this was implemented to avoid shell calls. So implementation specific.

Thanks


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/20230430224838.kpeefofjuhgwqvcc%40fricas.math.uni.wroc.pl.
Reply all
Reply to author
Forward
0 new messages