Skip to content

Planning to fail #2510

Closed Answered by jjtolton
jjtolton asked this question in Q&A
Aug 29, 2024 · 5 comments · 4 replies
Discussion options

You must be logged in to vote

Hey, I actually got it ... kinda sorta maybe!!! Could anyone verify if this is ACTUALLY a monotonic rewrite? I think I'll make a separate discussion to critique/roast the code to a) verify correctness b) use proper terminology and style and c) rewrite it using DCGs or some other preferred method. As you can see, there are TONs of redundant choice points so I think there are a lot of possible savings with efficiency.

Or if everyone prefers we could just roast the code here! Here!

Source Code
:- use_module(library(dif)).
:- use_module(library(charsio)).
:- use_module(library(debug)).
:- use_module(library(reif)).
:- use_module(library(lists)).



%% https://github.com/mthom/scryer-prolog/d…

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@librarianmage
Comment options

@jjtolton
Comment options

@librarianmage
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jjtolton
Comment options

Answer selected by jjtolton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants