PHPでも記号プログラミング

6eb8c4a4e5780f49fc5ed0cf5a6a3e51?s=47 Ryu
September 14, 2019

 PHPでも記号プログラミング

僕が入門したよって話

6eb8c4a4e5780f49fc5ed0cf5a6a3e51?s=128

Ryu

September 14, 2019
Tweet

Transcript

  1. ه߸͸ΤϞ͍ ه߸ϓϩάϥϛϯά΋ ΤϞ͍ Ryuichi Iha (@Ryu1__1uyR)

  2. ͜ΜʹͪΘ

  3. ‘ΓΎ͏’͍͍ͬͯ·͢

  4. ΓΎ͏͍͍ͬͯ·͢ • ໘ന͍ϓϩάϥϜΛॻ͘ͷ͕޷͖ • ීஈ͸JavaScriptΑ͘ॻ͍ͯΔ • Ϣχίʔυͷ࢓૊Έ(ֆจࣈपΓ)͕͖͢ • ࠷ۙ͘͢͝HͳຊΛಡΈ࢝Ίͨ •

    Α͘ه߸റΓͰίʔσΟϯάͯ͠Δ (ࣗݾղऍ) ※HaskellͷຊͩΑ @Ryu1__1uyR
  5. ໘ന͍ϓϩάϥϜ @Ryu1__1uyR

  6. ໘ന͍ϓϩάϥϜ @Ryu1__1uyR ແݶ࣮ߦͰ͖ΔQuine

  7. ໘ന͍ϓϩάϥϜ @Ryu1__1uyR

  8. ΑΖ͘͠Ͷ @Ryu1__1uyR

  9. ͯ͞

  10. Perlͷ͓࿩͠·ͤΜ

  11. PHPͷ͓࿩Λ͠·͢

  12. Ͱ΋

  13. None
  14. PHP͸࣮࣭Perl

  15. ηʔϑʂ

  16. ຊ୊

  17. ຊ୊

  18. PHPΛॻ͍͍ͯΔ ͋Δ೔ͷ͜ͱ

  19. echo ‘r’ & ‘y’;

  20. // p

  21. None
  22. Ͳ͏΍Β ASCIIcodeͷ ࿦ཧੵͬΆ͍

  23. ͭ·Γ

  24. ‘r’ & ‘y’;

  25. 01110010 : r 01111001 :y 01110000 :p and

  26. ͓ʁ

  27. ͦ͏͍΍ɺrͱyͬͯ

  28. Array͔Β ͱΓͩͤΔͳ…

  29. Array͸ ه߸Ͱ࡞ΕΔʂʂ

  30. ͜ΕͰจࣈྻͷArray

  31. ‘r’ & ‘y’;

  32. $__[!!_] & $__[-!!_]; ͜Ε͖ͬ͞ͷม਺

  33. !!_ ͱ͔ -!!_

  34. ܕΩϟετ

  35. var_dump( 0 . '1'); ͜Ε਺ࣈ ͜Ε͸จࣈ

  36. string(2) "01" ͜Ε0͕จࣈʹܕ͔ͬͯʹม׵͞ΕͯΔ

  37. ͜ΕͰ४උ͸੔ͬͨ

  38. ͷͰ

  39. ͪΐͬͱPerlΛ࡞͖ͬͯͨ

  40. 01010000 01100101 01110010 01101100 Perl

  41. P

  42. ‘p’ & ’T’ 01110000 01010100

  43. p

  44. ‘r’ & ’y’ 01110010 01111001

  45. T

  46. ‘r’ ^ _ ^ ‘y’ 01110010 01111001 01011111

  47. ‘p’ & ’T’ 01110000 01010100

  48. (‘r’ & ’y’) & (‘r’ ^ _ ^ ‘y’)

  49. ه߸Ͱॻ͘ͱ

  50. None
  51. e = ‘p’ ^ ’T’ | ‘A’

  52. r ͸Array͔Β

  53. l = ‘A’ ^ ‘r’ ^ _

  54. ͦΕͧΕ

  55. $$_ = $___ ^ $____ | $__[!_];

  56. $__[!!_]

  57. $$__ = $__[!_] ^ $__[!!_] ^ _ ;

  58. Ͱ͖ͨʂʂʂʂ

  59. ࣮ߦͯ͠ΈΑ͏ʂʂʂ

  60. λʔϛφϧ΁

  61. ͪͳΈʹJSͰॻ͘ͱ

  62. [__,_]=[-~-~[-~[]],[...{}+[]][(-~-~[-~[]]+-~-~[- ~[]])- -~[]]+[...{}+[]][-~[]]+([]['']+[])[-~[]]+ (([]==[])+[])[(-~-~[-~[]])]+(-~[]/[]+[])[(-~-~[- ~[]]+-~-~[-~[]])]+(!![]+[])[-~[]]+([]['']+[])[+ []]+[...{}+[]][(-~-~[-~[]]+-~-~[-~[]])- -~[]]+(!! []+[])[+[]]+[...{}+[]][-~[]]+(!![]+[])[-~[]]];[][_] [_]((!![]+[])[-~[]]+(!![]+[])[__]+(!![]+[])[+[]]+ (!![]+[])[-~[-~[]]]+(!![]+[])[-~[]]+([]['']+[])[-

    ~[]]+' "'+'\\' +([]['']+[])[[]-[]] +'{' +(-~[]+[] +-~[]>>-~[])+([]-[]+[])+ '}'+'"')()+(!![]+[])[- ~-~[-~[]]]+(!![]+[])[-~[]]+(![]+[])[-~[-~[]]]
  63. $__=$_[].=$_; $___ = $__[!!_] & $__[-!!_]; $____ = $__[!!_] ^

    _ ^ $__[-!!_]; $$$___.=$___ & $____; $$_ = $___ ^ $____ | $__[!_]; $$$___ .= $$_; $$$___ .= $__[!!_] ; $$__ = $__[!_] ^ $__[!!_] ^ _ ; $$$___ .= $$__; echo $$$___ ;
  64. PHP,JS͸ه߸Ͱॻ͚Δ

  65. όοΫΤϯυ΋ϑϩϯτ΋ ه߸Ͱॻ͚Δ

  66. ه߸͚ͩͰWEBΞϓϦ ࡞ΕΔ͔΋͠Εͳ͍ʂʂ

  67. ه߸͚ͩͰWEBΞϓϦ ࡞ΕΔ͔΋͠Εͳ͍ʂʂ emotional

  68. ͓ΘΓ ɹऴ ɹ੍࡞ɾஶ࡞ ɹᴸᴸᴸᴸᴸ R Y U @Ryu1__1uyR