🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.funkcyjne
Article #403

Re: serwer w haskellu

#403
From: Marcin 'Qrczak' Kowalczyk
Date: Sun, 14 Sep 2003 15:21
16 lines
1366 bytes
Przemek Wiśniewski wrote:

> Mam proste pytanie: zaczalem pisac serwer http w haskellu, wydaje mi
> sie, ze po 'akcepcie' powinienem obslozyc polaczenie w nawym watku.
> Haskell (konkretnie GHC) wspiera watki, forka czy cos w tym stylu?

Ma wątki (moduł Concurrent) i uniksowego forka (Posix.forkProcess).
Możesz zrobić tak i tak.

Wątkami chyba wygodniej. Najlepiej znajdź gdzieś opis wątków.
Google: concurrent haskell

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak@knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/
Technical Details
Message-ID: <2117411.W89mNKpb2d@qrnik.knm.org.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news2.icm.edu.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <bk1qcn$h40$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news2.icm.edu.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Marcin 'Qrczak' Kowalczyk <qrczak@knm.org.pl>
Newsgroups: pl.comp.lang.funkcyjne
Subject: Re: serwer w haskellu
Date: Sun, 14 Sep 2003 17:21:20 +0200
Organization: Klub Nieszkodliwych Manjakow
Lines: 16
Message-ID: <2117411.W89mNKpb2d@qrnik.knm.org.pl>
References: <bk1qcn$h40$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: paf87.warszawa.sdi.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1063552899 9748 217.96.225.87 (14 Sep 2003 15:21:39 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Sun, 14 Sep 2003 15:21:39 +0000 (UTC)
User-Agent: KNode/0.7.2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit