How much info could you send on a "Klax"? (Pratchett-verse)

SLAM: debunk creationism, pseudoscience, and superstitions. Discuss logic and morality.

Moderator: Alyrium Denryle

User avatar
Crossroads Inc.
Emperor's Hand
Posts: 9233
Joined: 2005-03-20 06:26pm
Location: Defending Sparkeling Bishonen
Contact:

How much info could you send on a "Klax"? (Pratchett-verse)

Post by Crossroads Inc. »

In the new TV Movie "Going Postal" a large part of the plot revolves around a Semaphore like machine called the "Klax" In earlier books it was described as being able to send simple messages and encoded information.

By "Going Postal" it had been fleshed out and expanded upon, we are told it can send complex information, even "Pictures" even pictures in Color!

The basic system, as describe in Going Postal, is a 4x4 grid of lights and shutters. 16 shutters in all that turn on and off. It seems a perfect set up for using Binary. On for "1" and off for "0" But since I doubt the Pratchett-verse has Binary in the same way we do, I am curious what other forms you could use to send information? How fast? Could you indeed send something as complicated as a picture using a 4x4 grid?

Using a Binary "like" system I imagine you could send "16bits" of information per shutter flash, or you could use a different code for larger items and use each configuration as a different symbol. So:
*0**
****
****
****

Could be "Hello" all in one shutter flash for instance.

I know there are a good deal of computer programers on the bored, and I am curious what real programers might make of such a system.
Praying is another way of doing nothing helpful
"Congratulations, you get a cookie. You almost got a fundamental English word correct." Pick
"Outlaw star has spaceships that punch eachother" Joviwan
Read "Tales From The Crossroads"!
Read "One Wrong Turn"!
User avatar
Mayabird
Storytime!
Posts: 5970
Joined: 2003-11-26 04:31pm
Location: IA > GA

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Mayabird »

It's "clacks," you barely literate moron. People could theoretically send as much as they could pay for, with the note that the bigger and more complex the information being sent (color pictures, etc) the longer it would take to encode, transmit, and decode the message and thus the more expensive that would be.
DPDarkPrimus is my boyfriend!

SDNW4 Nation: The Refuge And, on Nova Terra, Al-Stan the Totally and Completely Honest and Legitimate Weapons Dealer and Used Starship Salesman slept on a bed made of money, with a blaster under his pillow and his sombrero pulled over his face. This is to say, he slept very well indeed.
Simon_Jester
Emperor's Hand
Posts: 30165
Joined: 2009-05-23 07:29pm

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Simon_Jester »

Oh, come on, Maya.

It's pretty clear that he's asking what the bandwidth of the klacks is, on a per-frame basis. He may not be fully aware that this is what he's asking, but it is.
This space dedicated to Vasily Arkhipov
User avatar
Crossroads Inc.
Emperor's Hand
Posts: 9233
Joined: 2005-03-20 06:26pm
Location: Defending Sparkeling Bishonen
Contact:

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Crossroads Inc. »

Simon_Jester wrote:Oh, come on, Maya.

It's pretty clear that he's asking what the bandwidth of the klacks is, on a per-frame basis. He may not be fully aware that this is what he's asking, but it is.
Thank you Simon, although I do apologize for getting "clacks" wrong, I have the audio books, bur haven't physically read it in a while.
But yes, mostly want I am curious about is just how long, or how fast you could send information using a "16bit" system, or if there are other ways of sending it.
Praying is another way of doing nothing helpful
"Congratulations, you get a cookie. You almost got a fundamental English word correct." Pick
"Outlaw star has spaceships that punch eachother" Joviwan
Read "Tales From The Crossroads"!
Read "One Wrong Turn"!
Simon_Jester
Emperor's Hand
Posts: 30165
Joined: 2009-05-23 07:29pm

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Simon_Jester »

The best you're going to get is two bytes (16 bits) per "frame," where a frame is defined as the amount of time the clacks towers spend flashing one message.

That's not enough to send more than very tiny pictures, VERY slowly, unless you have an incredibly good encryption scheme or can somehow send hundreds of frames per second. Which the clacks can't, because they rely on operators with brains made out of meat and not silicon.
This space dedicated to Vasily Arkhipov
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Dave »

Simon_Jester wrote:It's pretty clear that he's asking what the bandwidth of the klacks is, on a per-frame basis.
Of course, the technically proper term is throughput, (bandwidth referring to a range of frequencies.)

But to get back on track, the theoretical throughput would be 16bits * frames per unit time.
So, for example, if your human operator can read 2 frames per second, you get 16 bits * 2 = 32 bits per second. If you have a computer operator that can read 2 million frames per second, you get 16 bits * 2 000 000 = 32 million bits per second, or ~3.81 MBps.

This is with no error correction, no overhead, or anything else, just raw transfer speed.

Yes, it is possible to transfer more information using special encodings, such as the one you mentioned
(0100 0000 0000 000 representing "Hello",for example), but that limits you to the 'language" that you use.

With sixteen lights, and assuming that they only have two states, you can have a maximum of 216 possible permutations of the lights, which works out to be 65 536 combinations. Given that there are upwards of 100 000 words in the English language, you may lose part of your message.

Notice that you have increased your transmission speed (whole English words per frame versus sixteen ones and zeros per frame) at the expense of content. But now I'm just rambling.

Now, if the lights had more states than just on/off, you have more possible permutations of the lights to play with and thus can send more information in a single "frame".
User avatar
Crossroads Inc.
Emperor's Hand
Posts: 9233
Joined: 2005-03-20 06:26pm
Location: Defending Sparkeling Bishonen
Contact:

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Crossroads Inc. »

Dave wrote:Now, if the lights had more states than just on/off, you have more possible permutations of the lights to play with and thus can send more information in a single "frame".
Toward the end of "Going Postal" an engineer was talking about using special chemicals in a glass vial that could go form "On" and "Off" and also "Red" and "Blue" depending on how they are turned, up, down right, or left. so you could go from two states to four, thought that was more "in theory" and was just being experimented with.

As for posting speed. At 32bits per second, how long would it take to send an average 100 word message?
Praying is another way of doing nothing helpful
"Congratulations, you get a cookie. You almost got a fundamental English word correct." Pick
"Outlaw star has spaceships that punch eachother" Joviwan
Read "Tales From The Crossroads"!
Read "One Wrong Turn"!
User avatar
Parallax
Jedi Knight
Posts: 855
Joined: 2002-10-06 04:34am
Contact:

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Parallax »

I may be mistaken but I seem to recall that the Clacks Tower system had developed it's own shorthand code for use in messages and had developed increasingly sophisticated systems which made sending larger amounts of information possible.
Exactly how much is never stated in the novels but, apparently, they can handle images - though it is stated to be expensive to do so.
Simon_Jester
Emperor's Hand
Posts: 30165
Joined: 2009-05-23 07:29pm

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Simon_Jester »

Dave wrote:Of course, the technically proper term is throughput, (bandwidth referring to a range of frequencies.)
Sorry. Duly noted.
With sixteen lights, and assuming that they only have two states, you can have a maximum of 216 possible permutations of the lights, which works out to be 65 536 combinations. Given that there are upwards of 100 000 words in the English language, you may lose part of your message.
Well, you can always have a code group that means "I am about to spell out this word" and use an alphanumeric code to transmit words that you don't have a code group for.

That works for alphabetic signal flags.
Now, if the lights had more states than just on/off, you have more possible permutations of the lights to play with and thus can send more information in a single "frame".
At night you can possibly use colored lights and improve throughput that way. You get, say, four permutations (light off/red light/yellow light/green light) in place of two, per bit. That could... wow. If you could control each light independently, that gives you 4^16 = roughly four billion combinations. Though setup is going to be more laborious.
This space dedicated to Vasily Arkhipov
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Dave »

Crossroads Inc. wrote: Toward the end of "Going Postal" an engineer was talking about using special chemicals in a glass vial that could go form "On" and "Off" and also "Red" and "Blue" depending on how they are turned, up, down right, or left. so you could go from two states to four, thought that was more "in theory" and was just being experimented with.
So then, I believe that would raise the number of possible combinations to 416, or over 4 billion.
Crossroads Inc. wrote: As for posting speed. At 32bits per second, how long would it take to send an average 100 word message?
Hmm... I'm going to use part of your post to get a feel for this one...

Code: Select all

Toward the end of "Going Postal" an engineer was talking about using special chemicals in a glass vial that could go form "On" and "Off" and also "Red" and "Blue" depending on how they are turned, up, down right, or left.  so you could go from two states to four, thought that was more "in theory" and was just being experimented with.

As for posting speed. At 32bits per second,  how long would it take to send an average 100 word message?
The above text contains 82 words, or 432 characters, including spaces, punctuation, paragraph marks and so on. I'm using it to get a feel for the average content of a message, which is not just words (and how long is the average word?). Does that make sense?

Assuming:
(1) We are sending the above 82 word message
(2) We use 8 bits to account for each character, as in ASCII, a common computer text encoding method.

We get 432 characters * 8 bits/character = 3456 bits
3456 bits / 32 bits per second = 108 seconds, for the above paragraph, with no error correction.

Simon_Jester wrote:
Dave wrote:Of course, the technically proper term is throughput, (bandwidth referring to a range of frequencies.)
Sorry. Duly noted.
No one actually uses it correctly anyways. :)
Simon_Jester
Emperor's Hand
Posts: 30165
Joined: 2009-05-23 07:29pm

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Simon_Jester »

Given the Ankh-Morpork cultural attitude to spelling, there probably isn't any error correction.
This space dedicated to Vasily Arkhipov
User avatar
PeZook
Emperor's Hand
Posts: 13237
Joined: 2002-07-18 06:08pm
Location: Poland

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by PeZook »

Simon_Jester wrote:Given the Ankh-Morpork cultural attitude to spelling, there probably isn't any error correction.
Also, spaces can be just cut out and replaced later. Punctuation also isn't necessary: telegrams did without any for more than a century, you just need to write your messages a specific way.

Most clack messages are probably going to look less like a well-written paragraph and more like "Cott sale p 82 pp", which is gibberish to most, but for a merchant's office will be perfectly understandable.

The clack towers seem about as limited as the telegraph, though sending pictures is a capability no telegraph station ever had as far as I know.
Image
JULY 20TH 1969 - The day the entire world was looking up

It suddenly struck me that that tiny pea, pretty and blue, was the Earth. I put up my thumb and shut one eye, and my thumb blotted out the planet Earth. I didn't feel like a giant. I felt very, very small.
- NEIL ARMSTRONG, MISSION COMMANDER, APOLLO 11

Signature dedicated to the greatest achievement of mankind.

MILDLY DERANGED PHYSICIST does not mind BREAKING the SOUND BARRIER, because it is INSURED. - Simon_Jester considering the problems of hypersonic flight for Team L.A.M.E.
User avatar
Twigler
Padawan Learner
Posts: 164
Joined: 2009-11-23 06:51pm

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Twigler »

I'd image that for sending images, someone would translate the image into a type of embroidery pattern of black and white squares. Then all the clacks operator had to have is a start and end code for images and then the image would be sent in little 4x4 blocks of black and white pixels.

BTW the clacks were actually used in real, a Swedish inventor called Edelcrantz set up a similar system with ten lights. The towers were about 10km apart and not really used for commercial goals, more for official messages. I've seen a reconstructed model of it once in Sweden and thought right away that this must be what Pratchett based his clacks on.

The below PDF goes into details concerning the protocols used, control characters, and similarities with network protocols. Interesting read.
http://spinroot.com/gerard/pdf/geheim95.pdf
Sadly nothing about speed.
User avatar
Molyneux
Emperor's Hand
Posts: 7186
Joined: 2005-03-04 08:47am
Location: Long Island

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Molyneux »

I believe the books implied there were significantly more than sixteen lights - that's the impression I got, anyway. They don't seem to have any trouble sending through quite complex messages in a fairly short time.
Ceci n'est pas une signature.
User avatar
Vendetta
Emperor's Hand
Posts: 10895
Joined: 2002-07-07 04:57pm
Location: Sheffield, UK

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Vendetta »

Simon_Jester wrote: That's not enough to send more than very tiny pictures, VERY slowly, unless you have an incredibly good encryption scheme or can somehow send hundreds of frames per second. Which the clacks can't, because they rely on operators with brains made out of meat and not silicon.
Except for the gargoyles.
User avatar
Eframepilot
Jedi Master
Posts: 1007
Joined: 2002-09-05 03:35am

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Eframepilot »

Vendetta wrote:
Simon_Jester wrote: That's not enough to send more than very tiny pictures, VERY slowly, unless you have an incredibly good encryption scheme or can somehow send hundreds of frames per second. Which the clacks can't, because they rely on operators with brains made out of meat and not silicon.
Except for the gargoyles.
And the trolls. Though I don't remember if any trolls have become clacks operators yet.
User avatar
Molyneux
Emperor's Hand
Posts: 7186
Joined: 2005-03-04 08:47am
Location: Long Island

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Molyneux »

Eframepilot wrote:
Vendetta wrote:
Simon_Jester wrote: That's not enough to send more than very tiny pictures, VERY slowly, unless you have an incredibly good encryption scheme or can somehow send hundreds of frames per second. Which the clacks can't, because they rely on operators with brains made out of meat and not silicon.
Except for the gargoyles.
And the trolls. Though I don't remember if any trolls have become clacks operators yet.
Gargoyles are a subspecies of troll, so...kinda.
I don't think any of the base-type trolls have been mentioned, though.
Ceci n'est pas une signature.
Simon_Jester
Emperor's Hand
Posts: 30165
Joined: 2009-05-23 07:29pm

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Simon_Jester »

PeZook wrote:The clack towers seem about as limited as the telegraph, though sending pictures is a capability no telegraph station ever had as far as I know.
Really, that's mostly because it didn't occur to them, and because no one was willing to pay for it. You could replicate dot-matrix type pictures over the telegraph; it would just be ridiculously expensive.
This space dedicated to Vasily Arkhipov
Glass Pearl Player
Youngling
Posts: 81
Joined: 2003-02-19 04:51am
Location: somewhat against establishment

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Glass Pearl Player »

Dave wrote: Assuming:
(1) We are sending the above 82 word message
(2) We use 8 bits to account for each character, as in ASCII, a common computer text encoding method.
We get 432 characters * 8 bits/character = 3456 bits
Switching to some sort of Baudod encoding gives us 5 bits per character, for 2160 bits total, in about 70 seconds.
Then again, the clacks being operated with profit in mind, there would be some brainpower applied to cut that down even further (at least for the usual messages).
"But in the end-"
"The end of what, son? There is no end, there's just the point where storytellers stop talking."

- OotS 763

I've always disliked the common apologist stance that a browser is stable and secure as long as you don't go to the wrong part of the Internet. It's like saying that your car is bulletproof unless you go somewhere where you might actually get shot at. - Darth Wong
User avatar
PeZook
Emperor's Hand
Posts: 13237
Joined: 2002-07-18 06:08pm
Location: Poland

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by PeZook »

Simon_Jester wrote:Really, that's mostly because it didn't occur to them, and because no one was willing to pay for it. You could replicate dot-matrix type pictures over the telegraph; it would just be ridiculously expensive.
Yeah, I should've added they couldn't do it cheaply enough for it to be profittable. In Pratchett's books, newspapers use clacks to send pictures all the time, so it can't be very difficult or expensive.
Image
JULY 20TH 1969 - The day the entire world was looking up

It suddenly struck me that that tiny pea, pretty and blue, was the Earth. I put up my thumb and shut one eye, and my thumb blotted out the planet Earth. I didn't feel like a giant. I felt very, very small.
- NEIL ARMSTRONG, MISSION COMMANDER, APOLLO 11

Signature dedicated to the greatest achievement of mankind.

MILDLY DERANGED PHYSICIST does not mind BREAKING the SOUND BARRIER, because it is INSURED. - Simon_Jester considering the problems of hypersonic flight for Team L.A.M.E.
User avatar
wautd
Emperor's Hand
Posts: 7588
Joined: 2004-02-11 10:11am
Location: Intensive care

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by wautd »

Crossroads Inc. wrote:In the new TV Movie "Going Postal"
There's a new movie? Why was I not informed? Was it any good?
User avatar
Crossroads Inc.
Emperor's Hand
Posts: 9233
Joined: 2005-03-20 06:26pm
Location: Defending Sparkeling Bishonen
Contact:

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Crossroads Inc. »

wautd wrote:
Crossroads Inc. wrote:In the new TV Movie "Going Postal"
There's a new movie? Why was I not informed? Was it any good?
http://bbs.stardestroyer.net/viewtopic. ... 2&t=141499

TRailer and now review thread, evidently not too good though.
Praying is another way of doing nothing helpful
"Congratulations, you get a cookie. You almost got a fundamental English word correct." Pick
"Outlaw star has spaceships that punch eachother" Joviwan
Read "Tales From The Crossroads"!
Read "One Wrong Turn"!
Minischoles
Jedi Knight
Posts: 566
Joined: 2008-04-17 10:09pm
Location: England

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Minischoles »

They definitely can send pictures, in Monstrous Regiment (a couple of books before Going Postal) reporters were able to send pictures back through the clacks system, and they could even send pictures during Going Postal - the book they use has illustrations in it, and it's stated the hard part isn't so much the actual sending, but the encoding it first (I think they state it'll take 'hours' to do the entire book) So while there might not be much call for it, and it probably got priced out by Reacher Gilt and co, they very definitely can send pictures fast enough to make the next days news.
“The problem with defending the purity of the English language is that the English language is as pure as a crib-house whore. It not only borrows words from other languages; it has on occasion chased other languages down dark alley-ways, clubbed them unconscious and rifled their pockets for new vocabulary. “
- James Nicoll
User avatar
Bounty
Emperor's Hand
Posts: 10767
Joined: 2005-01-20 08:33am
Location: Belgium

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Bounty »

I'm reading Unseen Academicals and it mentions a clacks-transmitted photograph:
The definition wasn't too bad at all. The technique of translating the clacks semaphore signal into a black-and-white picture was quite well advanced these days. Even so, his people in Ankh-Morpork must have thought this particularly interesting to merit the expense of the bandwith required.
So it seems as if

1) there's some sort of compression being used, since the original photographs were up-close, colour, high-res-for-Discworld Imp pictures
2) clacks technology is still rapidly advancing as of the last book
3) it's still very expensive to send data that isn't just words
User avatar
Molyneux
Emperor's Hand
Posts: 7186
Joined: 2005-03-04 08:47am
Location: Long Island

Re: How much info could you send on a "Klax"? (Pratchett-ve

Post by Molyneux »

Bounty wrote:I'm reading Unseen Academicals and it mentions a clacks-transmitted photograph:
The definition wasn't too bad at all. The technique of translating the clacks semaphore signal into a black-and-white picture was quite well advanced these days. Even so, his people in Ankh-Morpork must have thought this particularly interesting to merit the expense of the bandwith required.
So it seems as if

1) there's some sort of compression being used, since the original photographs were up-close, colour, high-res-for-Discworld Imp pictures
2) clacks technology is still rapidly advancing as of the last book
3) it's still very expensive to send data that isn't just words
Sounds vaguely reminiscent of the Internet about, oh, fifteen years ago to me.
Ceci n'est pas une signature.
Post Reply