Hello all -
Received this message on the RubyForge support project forums; if anyone
is familiar with the things Vidya is discussing, please consider posting
a reply to him…
Thanks,
Tom
···
-----Forwarded Message-----
From: noreply@rubyforge.org
To: noreply@rubyforge.org
Subject: [support - Help] Terminal Emulation with IBM / S 390.
Date: Tue, 13 Jan 2004 10:04:17 -0500
Read and respond to this message at:
http://rubyforge.org/forum/message.php?msg_id=822
By: vidiv
Hi All,
I am a student-newbie to RubyForge (and Ruby language & CVS) working on a project
for Terminal Emulation. The dumb terminal interacts with an IBM mainframe through
a ‘multiplexer-MUX’.
The s/w is currently running in ‘C’ on a Windows NT environment and the requirement
is to introduce Object Oriented concepts and C++ was the obvious choice, but
i came across ‘Ruby’ (and also Perl, Python,…etc) after i installed RH8 on
my PC last month. We are actively canvassing the advantages of GNU s/w and philosophy
and would like to simultaneously port it to GNU/Linux platform.
I have read some of the documentation in Ruby.
Before using Ruby as our project language it would be useful to know whether
Ruby has functions, libraries/headers (like C does) capable of handling the
foll. :
1] open and close serial ports,
2] set baud rates,
3] check parity bit/byte,
4] stop bits,
5] Hardware handshaking,
6] selection of port,…
Our existing ‘C’ code is to be ported to the GNU/Linux platform so we are actively
looking at an OOP concept. The part for serial port communication in C++ has
classes so its easier to write customized programs to do most of the above.
Also compatibility with the existing Multiplexer and Cisco Routers is most important
as the company will not make any H/W changes.
We saw that python has some routines for using existing C code so we dont have
to rewrite everything and can make modules containing functions and use it to
operate on files. Does Ruby have any such features. The documentation does not
provide deeper details so it would be nice if anyone could throw some light
on some of the above issues.
Thankyou for your time.
Ciao,
Vidya.
Read and respond to this message at:
http://rubyforge.org/forum/message.php?msg_id=822
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to RubyForge and visit:
http://rubyforge.org/forum/monitor.php?forum_id=2&group_id=5&stop=1
–
Tom Copeland tom@infoether.com
InfoEther
By: vidiv
I am a student-newbie to RubyForge (and Ruby language & CVS) working on a project
for Terminal Emulation. The dumb terminal interacts with an IBM mainframe through
a ‘multiplexer-MUX’.
The s/w is currently running in ‘C’ on a Windows NT environment and the requirement
is to introduce Object Oriented concepts and C++ was the obvious choice, but
i came across ‘Ruby’ (and also Perl, Python,…etc) after i installed RH8 on
my PC last month. We are actively canvassing the advantages of GNU s/w and philosophy
and would like to simultaneously port it to GNU/Linux platform.
Have a look at this module
http://raa.ruby-lang.org/list.rhtml?name=ruby-serialport
We saw that python has some routines for using existing C code so we dont have
to rewrite everything and can make modules containing functions and use it to
operate on files. Does Ruby have any such features. The documentation does not
provide deeper details so it would be nice if anyone could throw some light
on some of the above issues.
If you already have a C module which you want to access via Ruby, then try
http://www.swig.org/
···
–
Simon Strandgaard
Before using Ruby as our project language it would be useful to know whether
Ruby has functions, libraries/headers (like C does) capable of handling the
foll. :
1] open and close serial ports,
2] set baud rates,
3] check parity bit/byte,
4] stop bits,
5] Hardware handshaking,
6] selection of port,…
http://ruby-serialport.rubyforge.org/
“Ruby/SerialPort is a Ruby’s library that allows you to communicate via
the RS232 port. It supports POSIX (Linux, *BSD, Solaris, AIX), Cygwin
and native Windows.”
It does everything you need and provides a nice OO interface.
We saw that python has some routines for using existing C code so we dont have
to rewrite everything and can make modules containing functions and use it to
operate on files. Does Ruby have any such features. The documentation does not
It does. You can write extensions in C fairly easily (probably easier
than with Python since you don’t have to maintain reference counts).
Moreover SWIG (http://www.swig.org/) is able to generate wrappers for
C/C++ libraries automatically.
···
On Wed, Jan 14, 2004 at 05:20:49AM +0900, Tom Copeland wrote:
–
_ _
__ __ | | ___ _ __ ___ __ _ _ __
'_ \ / | __/ __| '_
_ \ / ` | ’ \
) | (| | |__ \ | | | | | (| | | | |
.__/ _,|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
Never trust an operating system you don’t have sources for. 
– Unknown source