We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Talk:PsiK'

From Esolang
Jump to navigation Jump to search

Evaluation order

Since your I/O combinators have side-effects, they're not - strictly speaking - combinators, and you need to limit evaluation order somehow (see Hot, for example). Otherwise the expression k.X~Y~ may or may not produce output depending on evaluation order (evaluates to Y anyway, but may or may not output X). --Blashyrkh (talk) 06:29, 2 November 2026 (UTC)

programs are lazily evaluated right-to-left --dragoneater67 [talk|contribs] 12:21, 2 November 2026 (UTC)
Please, clarify:
  • should the program kX~ halt (only 1 arg for k, 2 are needed for beta-reduction) or should it try to evaluate X first (with possible side-effects)?
  • XY~ - which side-effects happen first - X's or Y's?
--Blashyrkh (talk) 14:01, 2 November 2026 (UTC)
Y's side effects happen first, it also first tried to evaluate X --dragoneater67 [talk|contribs] 02:31, 3 November 2026 (UTC)

. takes an argument, if it is a church numeral

I believe this if is uncomputable (in untyped functional language). --Blashyrkh (talk) 13:50, 2 November 2026 (UTC)

Your recent I/O model is not viable

You allow only one equality check for each input character. Might be ok for binary input, but certainly not enough for ASCII input. And what did you mean by "push"? --Blashyrkh (talk) 18:19, 2 November 2026 (UTC)

Unfortunate choice of combinator basis

I searched expressions up to length 13 inclusive (13 is a number of combinators; full expressions lengths were up to 25), and all I found are these:

  • I = kψ~ = kk~
  • I* = ψψ~k~k~k~ = ψψ~k~k~ψ~ = ψψ~k~ψ~k~ = ψψ~k~ψ~ψ~ = ψkk~~kk~~ = ψkk~~kψ~~ = ψkψ~~kk~~ = ψkψ~~kψ~~.

Your expression for K is incorrect. --Blashyrkh (talk) 19:40, 2 November 2026 (UTC)

is it? Ψ K' x y z = K' (x y) (x z) = x z --dragoneater67 [talk|contribs] 02:27, 3 November 2026 (UTC)
It's not K, it's eta-equivalent to K but rank 3. K should work on 2 arguments, this requires 3. --Blashyrkh (talk) 02:34, 3 November 2026 (UTC)
hm, could it be turing complete? its certainly not affine nore linear nor aristocratic and it may not be complete (in the combinatory sense), but can it compute things? --dragoneater67 [talk|contribs] 03:20, 3 November 2026 (UTC)
If it had ф instead of ψ, it probably could. With ψ - I'm not sure. Quite an inconvenient duplication: function is duplicated, not an argument (I managed to deal with it in Crazy J though; T helped a lot; here you don't have one). Try to devise bracket abstraction rules. Maybe you're lucky. --Blashyrkh (talk) 03:32, 3 November 2026 (UTC)

What about 1-combinator basis?

Did you try to search for something like Xx = xK'ψ or Xx = xψK' or Xxy = xK'(yψ) or something like that? Maybe there's complete one. --Blashyrkh (talk) 03:39, 3 November 2026 (UTC)

Certainly not unary Xx = F(x,K',ψ), because it may produce only combinations of ψ and K'. But complete binary Xxy = F(x,y,K',ψ) might exist. --Blashyrkh (talk) 05:19, 3 November 2026 (UTC)