On Tue, Apr 13, 2021 at 02:57:00PM -0700, Tobias Neumann wrote:
> For domains that can be coerced into InputForm one can
> serialize like: str = unparse(x :: InputForm)
> and deserialize like
> retract(interpret(parse(str)))$AnyFunctions1(target-type)
>
> But already a Record can't be cast into InputForm, which leaves me
> to manually deconstruct the record. This becomes more and more tedious, the
> more nested your objects are.
>
> One problem with 'interpret' of InputForm is that it doesn't know in advance
> the target type.
>
> I think it would be useful to have a new SerializationForm that allows
> to save objects to String's and files (either human readable or binary).
> Do you think that there is a place for that in FriCAS?
Well, we have that: there is history mechanizm and 'Library' domain
to store objects in files.
--
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/20210413222349.GA16648%40math.uni.wroc.pl.