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

Too much output when using quad ⎕ #7

Open
rikedyp opened this issue Dec 14, 2020 · 6 comments
Open

Too much output when using quad ⎕ #7

rikedyp opened this issue Dec 14, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@rikedyp
Copy link
Contributor

rikedyp commented Dec 14, 2020

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://problems.tryapl.org/
  2. Scroll down to sample problem input
  3. Try {⎕←'ok'}¨

We should probably suppress ⎕ and ⍞ output if possible, but it's low priority (anyone who knows what ⎕ and ⍞ do should be able to figure out what's going on)

@rikedyp rikedyp added the bug Something isn't working label Dec 14, 2020
@abrudz
Copy link
Member

abrudz commented Dec 14, 2020

Will go away when we switch to TryAPL-based execution

@ghost
Copy link

ghost commented Sep 5, 2022

With ATO-based execution and the "user feedback" improvement this case will output nothing. rx.exec(...) returns null for ⎕←, ⎕off, etc.

@abrudz
Copy link
Member

abrudz commented Sep 5, 2022

Since we've switched to ATO backend, the issue is now (ironically) too little output.

@ghost
Copy link

ghost commented Sep 5, 2022

Does '...should have returned 3 with ('COOLAPL') as right argument.' sound appropriate for early halting expressions? (To clarify these expressions return un-expected output, or often errors - which we ignore. I think it's ok, though naive, to simply detect the null and ignore the details)

@abrudz
Copy link
Member

abrudz commented Sep 5, 2022

Yes, I think so. Though technically {⎕←'huh' ⋄ +/⍵∊'AEIOU'} should/could(?) pass…

@ghost
Copy link

ghost commented Sep 5, 2022

That's a good point, handling that would require changes to the framework, or possibly subsequent requests for round-tripping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants