9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] tcs and many channels
@ 2004-03-10 11:17 Einar Karttunen
  2004-03-10 21:11 ` rog
  0 siblings, 1 reply; 5+ messages in thread
From: Einar Karttunen @ 2004-03-10 11:17 UTC (permalink / raw)
  To: Plan9 ML

Hello

I am hacking irc support to acme. I was wondering what would be the best
way to perform the charset conversion. Irc is quite broken, most
channels use legacy encodings, which are specified only implicitely. 

Now given a scenario with 30 channels, what would be a good way to
convert the data streams from the legacy codings to utf? The simple
solution would be to run one tcs for input and an another for output for
each channel. This would mean 60 tcs processes (and 30mb of ram).

The second approach would be to have one tcs process for each channel
for input and run a tcs process each time the user says something.
This would need half the memory, but would incur more overhead/line.

Is there a good solution to this? (Other than changing irc...)

- Einar Karttunen


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] tcs and many channels
  2004-03-10 11:17 [9fans] tcs and many channels Einar Karttunen
@ 2004-03-10 21:11 ` rog
  0 siblings, 0 replies; 5+ messages in thread
From: rog @ 2004-03-10 21:11 UTC (permalink / raw)
  To: 9fans

i think tcs should probably be implemented as a library
function.

(come to that, it'd be nice if it understood the standard
charset names, 'cos currently you'd have to do your
own charset-name mapping, which doesn't seem quite right).



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] tcs and many channels
@ 2004-03-11  1:43 YAMANASHI Takeshi
  0 siblings, 0 replies; 5+ messages in thread
From: YAMANASHI Takeshi @ 2004-03-11  1:43 UTC (permalink / raw)
  To: 9fans

On Thu Mar 11 10:13:44 JST 2004, Kenji Okamoto wrote:
> > Okamoto-san 
> Who is this?  ?

Kenji-san.  okini sawatta youde moushiwake arimasen deshita. :)
-- 




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] tcs and many channels
  2004-03-11  0:27 YAMANASHI Takeshi
@ 2004-03-11  1:13 ` Kenji Okamoto
  0 siblings, 0 replies; 5+ messages in thread
From: Kenji Okamoto @ 2004-03-11  1:13 UTC (permalink / raw)
  To: 9fans

> Okamoto-san 

Who is this?  ☺

Kenji



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] tcs and many channels
@ 2004-03-11  0:27 YAMANASHI Takeshi
  2004-03-11  1:13 ` Kenji Okamoto
  0 siblings, 1 reply; 5+ messages in thread
From: YAMANASHI Takeshi @ 2004-03-11  0:27 UTC (permalink / raw)
  To: 9fans

On Thu Mar 11 06:07:38 JST 2004, rog@vitanuova.com wrote:
> i think tcs should probably be implemented as a library
> function.

Okamoto-san extracted the essence from tcs and made into a library.
	http://basalt.cias.osakafu-u.ac.jp/plan9/s47.html
-- 
YAMANASHI Takeshi




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-11  1:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-10 11:17 [9fans] tcs and many channels Einar Karttunen
2004-03-10 21:11 ` rog
2004-03-11  0:27 YAMANASHI Takeshi
2004-03-11  1:13 ` Kenji Okamoto
2004-03-11  1:43 YAMANASHI Takeshi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).