Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider corroding all lists! #489

Open
GregDavidson opened this issue May 12, 2020 · 1 comment
Open

Consider corroding all lists! #489

GregDavidson opened this issue May 12, 2020 · 1 comment

Comments

@GregDavidson
Copy link

Kudos to you for realizing that character strings can behave as Lists (the high level datatype) without being implemented as linked lists (a usually poor implementation strategy on modern systems). I'm assuming that your "difference lists" are bounding pointers into an array slice, a natural Rust strategy. I'm wondering where else in Scryer-Prolog you could implement Lists this way. Maybe everywhere? Please corrode your Prolog implementation as much as possible, the language will thank you!

@mthom
Copy link
Owner

mthom commented May 12, 2020

I've been thinking of how to do that. I don't think there are bad semantic ramifications, but I'd have to prove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants