K.S. Bhaskar on 24 Mar 2015 07:06:40 -0700


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

Re: [PLUG] Speaking of programming


Also, to get started, if you are using Ubuntu 14.x or Debian Jessie, just run apt-get install fis-gtm to install it.  Then run /usr/lib/fis-gtm/<version>/gtm.  The first time you will see some verbiage about creating a default environment before it takes you to the GTM> prompt.  The second time, it will just take you to the GT.M prompt (the command to exit to the shell is halt):

kbhaskar@bhaskark:~$ /usr/lib/fis-gtm/V6.2-001_x86_64/gtm

GTM>write "Hello, world",!
Hello, world

GTM>halt
kbhaskar@bhaskark:~$ 

If you want the latest GT.M rather than the one bundled with each Ubuntu/Debian release, or if you are running some other Linux, get the latest GT.M installer from sourceforge.net/projects/fis-gtm/files/GT.M%20Installer/ and run it, e.g., sudo ./gtminstaller --utf8 default --verbose

Documentation is all online - go to fis-gtm.com and click on the User Documentation tab.  It even has a database built in:

kbhaskar@bhaskark:~$ /usr/lib/fis-gtm/V6.2-001_x86_64/gtm

GTM>write "Hello, world",!
Hello, world

GTM>halt
kbhaskar@bhaskark:~$ /usr/lib/fis-gtm/V6.2-001_x86_64/gtm

GTM>set ^hello="Hello, world"

GTM>halt
kbhaskar@bhaskark:~$ /usr/lib/fis-gtm/V6.2-001_x86_64/gtm

GTM>write ^hello,!
Hello, world

GTM>halt
kbhaskar@bhaskark:~$ 

Regards
-- Bhaskar


On Tue, Mar 24, 2015 at 9:50 AM, K.S. Bhaskar <bhaskar@bhaskars.com> wrote:
Unless you are trying to create a GUI, I would be remiss if I did not recommend GT.M (fis-gtm.com).  There's an ugly rumor going around that some members of the development team are active on the PLUG list and may even respond to questions in a timely manner.  There's an even uglier rumor going around that the development team's path to world domination includes hijacking PLUG by hosting one series of PLUG meetings within their walls where they can beam brain waves directly into the minds of attendees.

Levity aside, it's a pretty easy language to work with once you overcome its one major hurdle - whitespace is material.

Regards
-- Bhaskar



On Mon, Mar 23, 2015 at 7:40 PM, Keith C. Perry <kperry@daotechnologies.com> wrote:
It definitely wasn't in jest :)   There's plenty of serial port work being done in Perl.  I should have referenced the main Device::SerialPort module though since that would bring up more examples.

Most languages are going to have a serial comm facility so for whatever grabs your brain you should be able to get the work done.

It also just occurred to me that Processing (one of the language used for the Arduino) might be very well suited for this.  Check out https://processing.org/reference/libraries/serial/index.html.  If you like Python, they even have a Processing.py so you can do this in Python style syntax if a Java style syntax doesn't work for you.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Keith C. Perry, MS E.E.


From: "Casey Bralla" <MailList@nerdworld.org>
To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
Sent: Monday, March 23, 2015 6:53:10 PM
Subject: Re: [PLUG] Speaking of programming

I recommend python.  It's fairly simple and self-documenting.    Keith
recommended Perl (I think not in jest), but I found Perl's syntax to be way
too dense to understand.

If that doesn't suit you then the ballerina route might be the best
alternative.  ,grin>



On Monday, March 23, 2015 06:02:02 PM jeff wrote:
I've mentioned this before but lately I feel the need for pain.
 
 I need a linux app to control my (radio) scanner(s). There are none.
 I cannot program my way out of a paper bag; in fact the paper bag
 probably has more skills.  Is there a particular language that is
 suitable for this and maybe is friendly to people with almost no
 programming background? Something that isn't C?
 
 I'm essentially receiving and sending codes over USB and ideally putting
 it into an interface that looks kinda like the physical scanner.
 
 I know I'm asking the impossible but when I'm through being a
 programmer, I'm going to be a rocket scientist. Or a ballerina.
 Something open source.


--

Casey Bralla

Chief Nerd in Residence
The NerdWorld Organisation
www.NerdWorld.org
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug



___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug