8000 Optimize away useless use of cat · Issue #52 · fildesh/fildesh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Optimize away useless use of cat #52

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

Open
2 of 8 tasks
grencez opened this issue Mar 19, 2022 · 0 comments
Open
2 of 8 tasks

Optimize away useless use of cat #52

grencez opened this issue Mar 19, 2022 · 0 comments
Labels

Comments

@grencez
Copy link
Member
grencez commented Mar 19, 2022

Useless use of cat sometimes makes a script easier to read. It's also super easy to detect and optimize away.

  • Parse scripts into an AST-like structure before interpreting their contents #86
  • Make splice -x filename a valid command.
  • Replace simple cat commands with splice builtin commands.
  • cat filename -> just open the input file.
  • Same for splice / / filename.
  • Same for splice -x filename.
  • splice -o filename -> just open the output file.
  • Update doc/styleguide/fildesh_style.md, which currently recommends UUOC even though it doesn't get optimized away.
grencez added a commit that referenced this issue Mar 20, 2022
and test its return statuses better.

#52
grencez added a commit that referenced this issue Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0