comp.lang.ada
 help / color / mirror / Atom feed
* Ada, Concurrency and Cryptography.
@ 2010-06-20 13:22 adacrypt
  2010-06-21 14:46 ` Warren
  0 siblings, 1 reply; 4+ messages in thread
From: adacrypt @ 2010-06-20 13:22 UTC (permalink / raw)




I don’t profess to be very knowledgeable on the finer points of Ada’s
advantages so I will ask my question of more informed people and
hopefully get some guidance from some person.

In the cryptography that I have invented my encryption program and
corresponding decryption program both work in much the same way so its
only necessary to describe one in order to ask my question.

The encryption program (this will do) reads in a character from an
external batch file and encrypts it in between reading the next
character in the next pass of the same loop.  The program is comprised
of a pair of nested loops.  The inner loop is terminated by
end_of_line and the outer loop is terminated by end_of_file.  The
encryption speed on an elderly home computer is 15000 characters per
second which is ok for this development model but not great for a
serious working cipher.  I want to speed it up.

Question: If the encryption work was done in a separate CPU in another
location immediately after the character is read in would this speed
up the process very much.  Is this proposition feasible i.e a loop
that reads in characters only for encryption in a separate CPU
elsewhere.  Is this an example of concurrency in programming?  Is it
to be recommended as the best solution to increasing the encryption
rate of my ciphers.

Your help in answering these questions would be greatly appreciated -
adacrypt





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

* Re: Ada, Concurrency and Cryptography.
  2010-06-20 13:22 Ada, Concurrency and Cryptography adacrypt
@ 2010-06-21 14:46 ` Warren
  2010-06-21 20:10   ` Non scrivetemi
  0 siblings, 1 reply; 4+ messages in thread
From: Warren @ 2010-06-21 14:46 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 994 bytes --]

adacrypt expounded in news:ab879ba9-12fb-4329-977e-248b7e856131
@u26g2000yqu.googlegroups.com:

> I don�t profess to be very knowledgeable on the finer points of Ada�s
> advantages so I will ask my question of more informed people and
> hopefully get some guidance from some person.
> 
> In the cryptography that I have invented my encryption program and
> corresponding decryption program both work in much the same way so its
> only necessary to describe one in order to ask my question.
> 
> The encryption program (this will do) reads in a character from an
> external batch file and encrypts it in between reading the next
> character in the next pass of the same loop.  ...

> Question: If the encryption work was done in a separate CPU in another
> location immediately after the character is read in would this speed
> up the process very much.  

Google or read about Ada "tasks" (or "tasking"). There you will
find out about the Ada support for concurrency ("threads").

Warren



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

* Re: Ada, Concurrency and Cryptography.
  2010-06-21 14:46 ` Warren
@ 2010-06-21 20:10   ` Non scrivetemi
  2010-06-22 13:47     ` Charmed Snark
  0 siblings, 1 reply; 4+ messages in thread
From: Non scrivetemi @ 2010-06-21 20:10 UTC (permalink / raw)


Better off kill-filing this one. He is a confirmed blithering idiot and his
"cryptography" even if he gave it away would cost more than anybody could
afford. He and his horseshit have more holes than Swiss cheese.

Good night, Dick!




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

* Re: Ada, Concurrency and Cryptography.
  2010-06-21 20:10   ` Non scrivetemi
@ 2010-06-22 13:47     ` Charmed Snark
  0 siblings, 0 replies; 4+ messages in thread
From: Charmed Snark @ 2010-06-22 13:47 UTC (permalink / raw)


Non scrivetemi expounded in
news:1ec9dec0d1a93b995df1b35241ff8bf6@pboxmix.winstonsmith.info: 

> Better off kill-filing this one. He is a confirmed blithering idiot
> and his "cryptography" even if he gave it away would cost more than
> anybody could afford. He and his horseshit have more holes than Swiss
> cheese. 
> 
> Good night, Dick!

His posts do seem to fit the profile. But giving an
ounce of "benefit of doubt", a simple pointer should 
be enough. 

Time will tell, if any "real" questions come out of it.

Warren



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

end of thread, other threads:[~2010-06-22 13:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-20 13:22 Ada, Concurrency and Cryptography adacrypt
2010-06-21 14:46 ` Warren
2010-06-21 20:10   ` Non scrivetemi
2010-06-22 13:47     ` Charmed Snark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox