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