isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

Japt-like constants and functions #253

Open DonaldTsang opened 5 years ago

DonaldTsang commented 5 years ago

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

jakobkogler commented 5 years ago

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 commented 5 years ago

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

DonaldTsang commented 5 years ago

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

jakobkogler commented 5 years ago

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 commented 5 years ago

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