Skip to Content
Haskellによる並列・並行プログラミング
book

Haskellによる並列・並行プログラミング

by Simon Marlow, 山下 伸夫, 山本 和彦, 田中 英行
August 2014
Intermediate to advanced
328 pages
4h 36m
Japanese
O'Reilly Japan, Inc.
Content preview from Haskellによる並列・並行プログラミング

訳者まえがき

私が学生だったころ、所属した情報系の研究室では超並列という言葉が飛び交っていました。「超並列の時代に、CPUごとにプログラムを1つずつ書くことなんてあり得ない」とお世話になった先生は力説していましたが、並列マシンは周りになく正直夢絵空事を聞く思いでした。経験が浅い学生にとって、並列と並行の違いもよくわかりませんでしたし、そのころのオペレーティングシステムはOSスレッドさえ提供していませんでした。インターネット黎明期のサーバは、新しい接続に対して重いプロセスを生成するだけで十分な放牧的な時代だったのです。

あれから20年の時が流れ、ようやくマルチコアが身近になりました。私が常用するのはデュアルコア(ハイパースレッディングで4コア)のノートパソコンですし、研究所では12コアのマシンも使用できます。インターネットに接続できるのは当たり前になり、多種多様なサービスのためにスループットや応答時間が重視されるようになりました。さらには、ハードウェアトランザクショナルメモリの普及も確実視されています。

一方で、プログラムの考え方は、環境よりもさらにゆっくりとしか変化しないようです。並列・並行と言えば、未だにロックとOSスレッドを使ったプログラミングのことです。職人であれば、ロックとOSスレッドを手に、Simon Peyton Jonesさんの言う「多くの側面を持つ獣」に立ち向かえるのかもしれませんが、一般的なプログラマには頼りなく扱いにくい武器に映るでしょう。本書では、もっと強力な武器を用いてこの獣に立ち向かいます。その根底には抽象化という考え方があります。関数プログラミングの神髄は、関数という抽象化によって部品を作り、それを組み合わせる部品プログラミングです。驚くべきことに、本書では並列・並行の問題に対しても部品プログラミングを実践するのです。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ベタープログラマ ―優れたプログラマになるための38の考え方とテクニック

ベタープログラマ ―優れたプログラマになるための38の考え方とテクニック

Pete Goodliffe, 柴田 芳樹
スクラム実践者が知るべき97のこと

スクラム実践者が知るべき97のこと

Gunther Verheyen, 吉羽 龍太郎, 原田 騎郎, 永瀬 美穂

Publisher Resources

ISBN: 9784873116891Other