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

Japt-like constants and functions #253

Open
15 tasks
DonaldTsang opened this issue Nov 10, 2018 · 5 comments
Open
15 tasks

Japt-like constants and functions #253

DonaldTsang opened this issue Nov 10, 2018 · 5 comments

Comments

@DonaldTsang
Copy link

https://ethproductions.github.io/japt/

  • AEIOU(Y)
  • Shorthand for 10~16
  • shoco/smaz text compression function
  • Newlines vs Tabs vs Spaces
  • QWERTY array
  • Golden Ratio and Tau (Pi * 2)
  • Truthy/Falsey shortcut
  • Simple vs Regex replace
  • String search by result vs count
  • 2D array manipulation
  • String/Array "chopping"
  • Millisecond pauses/timer
  • Co-prime of two numbers
  • GCD/LCM of two numbers
  • Bijective numbers
@jakobkogler
Copy link
Contributor

I really doubt that isaacg1 will implement a random list of suggestions without any motivation why they should be implemented.
It's not the goal of Pyth to have a token for every possible scenario.

@jakobkogler
Copy link
Contributor

Also, some things are already pretty short in Pyth, GCD with i, Truthy/Falsy evaluation with !!, simple replace with X, regex replace with :.

@DonaldTsang
Copy link
Author

@jakobkogler It would be great to see optimizations that understand where these "less used" functions are coming from.

@jakobkogler
Copy link
Contributor

I wrote you earlier, because I wanted to avoid that you are doing a lot of hard work for nothing.
I really doubt that these lists will be useful.

@jakobkogler
Copy link
Contributor

E.g. look at #224, has any of these suggestions been implemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants