gsoc: type inference, again

Charles Zhang <[email protected]> Fri, 29 Jun 2018 22:43:51 -0400
Newsgroups gmane.lisp.clisp.devel
Message-ID <CAB=SSSncRFhu-_-V1PKecT6tTWJphVoUSa9gRBJnjHAetemnjA@mail.gmail.com>
Hello Bruno and Sam,

Asking again because I don't think I got a reply from a few weeks ago.

I'd like to start leveraging the type inferencing in SICL's compiler,
but CLISP's bytecodes abstract away the  type checking into C. It
would be nice to eliminate provably unnecessary type checks with the
inferred information. So, would it make sense to add raw instructions
to do things like CAR/CDR without type checking? These can be inserted
only when the compiler can prove safety; otherwise, it can fallback to
the old inlie CAR/CDR instructions to improve space, for example. The
same holds for other system functions implemented in C.

I know CLISP just currently ignores type declarations, but it might
also be useful to add type annotations for the standard library
functions at least.

Charles

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel