Open LdBeth opened 3 years ago
Right, a couple of months ago I tried to see whether I have a backup of the MetaPRL Bugzilla somewhere, but did not find it :(. I wonder whether @jyh has it somewhere...
I do not remember whether we had a specific design for comments worked out. But yes, having an extra opname slot might be one way - although I think it would make sense for it be and extra component of the term/term' type, rather than a part of opname.
For soft abstractions - these should act similar to definitions, except that all matching operations (refiner, lookup tables, etc) would automatically unfold them if the match would otherwise fail (note - correct behavior of dforms would follow from correct behavior of lookup tables). This would be something that would have to be very carefully designed so that
P.S. As far as rewriting filter_ocaml
goes, I am not sure whether the right thing is to rewrite it, or to [partially] throw it out. The intent was to enable reasoning about OCaml code, but we never actually fully implemented that. It makes sense to keep it available and supporting a limited subset of OCaml, in case somebody does want to do that, but it makes no sense to require that all of MetaPRL theories have to undergo OCaml -> term -> OCaml translation prior to compilation... What does need to happen is to revisit .cmoz/.prlb/.prla mess:
I am not sure whether the right thing is to rewrite it, or to [partially] throw it out.
I have just fixed the term_list
function so filtering items out from prla
won't results in these items not been displayed by ls
anymore.
Rendering ML code is probably still a needed feature, but maybe I can do that by tools directly available from CamlP5 instead, since the layout options of dform
is limited, so MLast
data types can be saved without converting to terms.
I see it is mentioned several times among comments in
filter
directory. I think it is time to migrate to CamlP5 8.00 and if I'd like to know if there's any chance this CamlP5 related bug can be resolved during this migration since the rewriting offilter_ocaml
is necessary anyway.Unfortunately the original bugzilla seems unavailable now and I didn't get any luck from archive.org either. It is hard for me to be sure about what the proposed "comment" concept is.
I do know what soft abstraction is from NuPRL, so I just made a bold guess that there will be a new slot added to
opname
that will record these additional properties, which is opaque to the refiner but visible to other utils like dform?@ANogin @jyh