Re: App blueprint, advice please!



Thanks!

Sorry for being so dense but just to double check, do you spawn C and Python programs form the main App written in Ruby?

I have wanted to learn Ruby for a while now, I could definitely do that. Nicola was saying that my Bash idea might be a problem because of the spawn time involved with bash. Is Ruby pretty fast spawning these secondary programs?

Is the Ruby shell a true system shell? I am just wondering if I could still access ftp, netcat, ssh ect..

Thanks for your time.

And thank you Dan and Nicola too. I don't need much convincing that the whole Bash as a nervous system + (Python/C/Ruby etc) as the muscle is a dumb idea!-Patrick

G Hasse wrote:
On Sun, Dec 16, 2007 at 08:57:01PM +0100, Dan H wrote:
On Sun, 16 Dec 2007 12:47:44 -0500
Patrick <optomatic rogers com> wrote:

With so many aspects to this does anyone think that using Bash
would be useful? For example if we designed all the  smaller
programs to read and write from/to standard input and output, they
could be interlinked with other Bash commands such as ftp, netcat,
ssh, mailx and so on..

Lets say a customer had a detector and a pump to pump a sample
through it. We could write a Bash script that works something like
this:

-icon launches Bash script
-sends variable " 2" to pump command to pump 2 ml per minute
-pump command sends signal to serial port or GPIB bus, etc
-bash sends variable "230" to set the detector to wavelength 230 nm
-bash autozeros detector
-launches plot command
-after that launches data process command
-then launches database storage command
- emails whoever, turns your coffee maker on or whatever....etc..etc

It's a terrible over simplification but hopefully illustrates the
idea.
I got the idea but I don't think the Bourne shell (bash) would be a
particular wise choice to implement it, owing to weird programming
paradigms and an almost complete absence of arithmetics. I'm a big fan
of C (and shell scripting as well), but it seems that Python has been
gaining lots of popularity in the past years.

Hello!

Or you could do as us and implement control in Ruby. Ruby of Python
is quite as good. Then you have a modern scripting language to do
control with.

And now for wom Gtk promotion. We have been developing a SCADA
system in Gtk, C and Ruby with a SQL database as central storage.

http://www.freescada.com

A tip for you is to "be in the buissines of selling source code".
We have had quite a success with this. Most of our competitors have
closed code and the customers are locked in. Since we provide our
customers with souce code they can expand the application and
for them selves check the quality.

In this way we have developed an application for the swedish
defence.
http://www.raditex.se/~gh/bilder/RadarBildPulser.png





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]