卜部昌平のあまりreblogしないtumblr RSS

Archive

May
17th
Tue
permalink

どうも周知徹底が不足しているようなので再度のお願いとなりますが、C死ね。

  • 確かにCでしか書けない類のプログラムは存在する(例を挙げるならKernel)が、それはCの存在を赦す理由にはならない。
  • 確かにCに輪をかけてさらにダメな類のプログラミング言語は存在する(例を挙げるならC++)が、それはCの存在を赦す理由にはならない。
  • 確かにCでしか書けないダメプログラマは存在する(例を挙げてほしければここにおまえの名前を入れろ)が、それはCの存在を赦す理由にはならない。

結論:C死ね。

そもそも計算機にできて算盤にできないことなど存在しない。存在しないんだぞ。なのに何故人はプログラムを書くのか。それはオートメーションのためなのであり、奴隷的使役から人類の尊厳を開放して、この地上に楽園を築くためである。まあそこまで大上段に振りかぶって普段から書いてる輩はいないにせよ、プログラミングとは楽をするため、豊かな人生を実現するため、誰かの幸福のために行うものだ。違うか?じゃあなぜプログラムを書くんだ?

翻ってCでのプログラムはどうかといえば、これは不幸でしかない。Cの不幸はあげればキリがないから、構文がいかれてるとか、型システムが狂ってるとか、静的・動的セーフティー機構をほとんど全く欠如するとか、あるいは「Cしか書けないプログラマ」が一定数いてこれが老害になっているとか、まあその程度を列挙しておくに留めるが、ともかく様々な原因により、Cで書くことを選ぶとバグが出た際メンテナンスがとても困難になる。もちろんバグのないプログラムなど(少なくともCを使う以上)ありえず、たとえシステムがユーザーの負担を減らしたとしても、そのぶんプログラマが背負ってるだけに過ぎない場合が多々見受けられる。それは要するに搾取対象が移動しただけなわけで、全体の幸福の総和が上昇しないようなものの存在を、我々はけっして赦してはならないのだ。

すでにCで書いてある既存のプログラムを今すぐ根絶やしにするのは難しかろう。過去にそれらが果たしてきた歴史的役割まで否定するつもりもない。しかし今、この瞬間にも意味もなくCで書かれ続けているプログラム。なぜCで書く必要がある?ないはずだ。ないはずなんだよ。ちゃんと調査すればJavaとかC#とか、ひょっとしたらOcamlやScalaででも用は足りる場合がほとんどなんだ。Cは捨てろ。これ以上Cの業火を背負うな。未来に禍根を残すな。少なくともCのプログラムを人間が手で書く時代は、我々の世代で最後にするべきだ。体罰の伝統じゃないんだから。我等の子孫にCのない明るい未来を。そう願ってやまない。C死ね。

  1. ukar reblogged this from to39
  2. somethinglikestuff reblogged this from shyouhei
  3. akisuteno reblogged this from himmelkei
  4. himmelkei reblogged this from hepton-rk
  5. hepton-rk reblogged this from shyouhei
  6. to39 reblogged this from shyouhei and added:
    to39:Cを覚えた最初の半年くらいは、そう感じることもあった。けれど今はC(or C++)で書いてクラッシュしたプログラムほど原因がつきとめやすいものはないと感じる。Cは生きててもいいと思う。
  7. bivanilla reblogged this from mizki9577
  8. mizki9577 reblogged this from ainame954
  9. oyanakama reblogged this from wizardblue
  10. www29 reblogged this from non117
  11. meggrim reblogged this from shyouhei
  12. wizardblue reblogged this from non117
  13. tknori reblogged this from darylfranz
  14. xxxdatxxx reblogged this from darylfranz
  15. athsear reblogged this from darylfranz
  16. firebum reblogged this from non117
  17. uniqlosage reblogged this from shyouhei
  18. darylfranz reblogged this from ainame954
  19. ainame954 reblogged this from shyouhei
  20. non117 reblogged this from joodle
  21. toqoz reblogged this from joodle
  22. joodle reblogged this from yoderkeez
  23. yoderkeez reblogged this from shyouhei
  24. finap reblogged this from shyouhei
  25. kimux reblogged this from shyouhei
  26. pogi-pogi-hp reblogged this from shyouhei
  27. experimentalfield reblogged this from shyouhei
  28. tmb42 reblogged this from shyouhei
  29. kentaoutlab reblogged this from shyouhei
  30. fukakusa reblogged this from shyouhei
  31. toom reblogged this from shyouhei
  32. photxt reblogged this from shyouhei
  33. arles2 reblogged this from shyouhei
  34. kaosf reblogged this from shyouhei
  35. mugyu reblogged this from shyouhei
  36. esper2000 reblogged this from shyouhei and added:
    Cはそんなに悪くないと思う。 やはりC++がカオスかと。
  37. tatsuru reblogged this from shyouhei
  38. idios reblogged this from shyouhei
  39. drfaust reblogged this from shyouhei
  40. seashore reblogged this from shyouhei
  41. kudzunaoki reblogged this from shyouhei
  42. kurano reblogged this from shyouhei
  43. yatagarasu reblogged this from shyouhei