2

In this answer there is a Prolog predicate with the comment

% replace OR sky-scrapper with call to new predicate

Googling has no results for the first few pages that I see to explain its meaning.

What is the meaning and origin of sky-scrapper as used in the comment?

Guy Coder
  • 24,501
  • 8
  • 71
  • 136
  • Whatever. I think this is a question which only @AntonDanilov can answer but will be happy if I'm proved wrong. – APC Jan 20 '19 at 12:42

2 Answers2

3

In the example code in link, the OP has used below style

  (  ":",       !, { Token = tokColon }
  ;  "(",       !, { Token = tokLParen }
  ;  ")",       !, { Token = tokRParen }
  ;  "{",       !, { Token = tokLMusta}
  ;  "}",       !, { Token = tokRMusta}
  ;  "\\",      !, { Token = tokSlash}
  ;  "->",      !, { Token = tokImpl}
  ;  "+",       !, { Token = tokPlus }
  ;  "-",       !, { Token = tokMinus }
  ;  "*",       !, { Token = tokTimes }
  ;  "=",       !, { Token = tokEqual }
  ;  "<",       !, { Token = tokLt }
  ;  ">",       !, { Token = tokGt }
  ;  "_",       !, { Token = tokUnderscore }
  ;  ".",       !, { Token = tokPeriod }
  ;  "/",       !, { Token = tokForwardSlash }
  ;  ",",       !, { Token = tokComma }
  ;  ";",       !, { Token = tokSemicolon }

this snippet is long(tall) like sky scraper, and thats why terminology is used IMHO

and so OP is suggested to replace it with a more proper snippet, this are mostly to produce more readable and maintainable code

hessam hedieh
  • 780
  • 5
  • 18
  • Thanks. I am the OP of the original question referenced in this question. It is correct that the code needs to be replaced or called, but it is not being replaced to be `readable` or `maintainable` it is being replaced because as the question ask, it uses `indexing` of predicates to improve efficiency. While I can't say that this answer is wrong, at present I don't think it is correct. Thanks. – Guy Coder Jan 20 '19 at 12:32
  • Anton confirmed this in comment in original referenced answer. Thanks. – Guy Coder Jan 20 '19 at 14:19
  • 1
    The reason I didn't think this was correct was that I was thinking it might be like [trampoline](https://en.wikipedia.org/wiki/Trampoline_(computing)). – Guy Coder Jan 20 '19 at 14:26
  • 1
    `this snippet is long(tall) like sky scraper, and thats why terminology is used IMHO`not only because of imaginary similarity between code and skyscraper but also because of a critical evaluation of original code as inefficient (lack of indexing) – Anton Danilov Jan 20 '19 at 21:06
1

I think it's a typo for "skyscraper". The code example is probably solving a skyscraper puzzle.

Optimizing pathfinding in Constraint Logic Programming with Prolog

MattMatt
  • 2,242
  • 33
  • 30
  • 1
    Thanks. I am the OP of the original question referenced in this question. That question was about lexing and tokenization so there is no relation to the `skyscraper puzzle` Thanks, and I appreciate the effort but not the answer. :) – Guy Coder Jan 20 '19 at 12:18
  • 1
    I gave this an up-vote for the effort and so that people can see that there is a different meaning. – Guy Coder Jan 20 '19 at 14:28