pyth icon indicating copy to clipboard operation
pyth copied to clipboard

Japt-like constants and functions

Open DonaldTsang opened this issue 7 years ago • 5 comments
trafficstars

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

DonaldTsang avatar Nov 10 '18 17:11 DonaldTsang

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 avatar Nov 10 '18 17:11 jakobkogler

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

jakobkogler avatar Nov 10 '18 17:11 jakobkogler

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

DonaldTsang avatar Nov 10 '18 18:11 DonaldTsang

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 avatar Nov 10 '18 18:11 jakobkogler

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

jakobkogler avatar Nov 10 '18 18:11 jakobkogler