Previous in Forum: LCD monitor flickering problem   Next in Forum: File Sharing ~ WIN XP and WIN 7 Starter ~
Close
Close
Close
20 comments
Rate Comments: Nested
Guru
Hobbies - HAM Radio - New Member

Join Date: Oct 2006
Location: Vancouver (not BC) Washington (not DC) US of A
Posts: 1261
Good Answers: 12

I Need a New Programming Language

07/30/2010 4:33 AM

Years and years ago, I translated (and wrote) alot of heavy math oriented programs from minimal ANSI Basic to HP basic and to DEC basic "on LSI 11s". Then after the advent of the IBM PC, I rewrote many of these programs in Borland Pascal. These were DOS level programs not even touching Windows... in fact Windows would not run on the 8088 processor.

Another problem I ran into with PASCAL was that it would not handle double word arithmetic well... so in doing anything real, I would run into divide by zero problems.

Thus my first thought is to rewrite this in C or C++...

but in C. am I going to have to write my own screen drivers (as I did in PASCAL)? I ran one of my old program on a more modern machine, but it only showed up in a small corner of the monitor (being CGA graphics).

I would much rather work in a language in which I can define a screen (AKA Windows) with little effort, and easily populate the screen.

My wife took courses in Visual Basic (which I have no knowlege of), C (which I helped her with) and JAVA which I also helped her with).

I have IDEs for all of them.

My first impression is to write it in Java? Second... Visual Basic? or C??

What do you think??

Bill

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#1

Re: I need a new programming language

07/30/2010 4:49 AM

Bear in mind I jus' a grumpy ol' cat.
Unless you are working on a 'standard' platform you will have to write your own drivers. (Hmmm and how long will that platform remain standard? Which is why I have staunchly resisted anything to do with MS from an engineering point over the years)
I don't think it matters a hoot what language you use...they are all only as good as the tools supporting them.
I'd rather work in assembler with a decent emulator, so that I can run and debug on my actual hardware than use C without an emulator. Those are the two ways I work at the moment. To me 'Visual Basic' is a crock of shite and a huge retrograde step from Quick basic on which you could knock up quick engineering interfaces and test programs that worked.
I refer you back to line one of this post...
Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#2

Re: I Need a New Programming Language

07/30/2010 7:24 AM

Hi Sciesis2

I went about the same route (Fortran , HP {Rocky Mountain} Basic ,some C

I opted for Delphi, which allowed me to use Pascal 7 code directly (using Console mode) and a few changes. I even can use my screen & input drivers.

With our background of DEY (Do Everything Yourself) it is easy to write a screen driver that outperform the standard Windooze driver)

The Delphi has a Rapid Development Mode similar to C# , visual basic etc.

I don't like C - VOID give me the creeps and I read curly brackets as comments.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#3
In reply to #2

Re: I Need a New Programming Language

07/30/2010 8:12 AM

Your post doesn't compile.... missing ;

Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Anonymous Poster
#4

Re: I Need a New Programming Language

07/30/2010 11:29 AM

Is your use of the screen "real-time interactive" or just "good quality output"? There are several languages and many packages available in Linux that could be very helpful. Having done the work in minimal ANSI Basic suggests that most any language would handle the math. A few more details on how you feed the program and how you expect to use the output would be helpful.

It might be helpful if you Google perl, imagemagick (yes, it is spelled that way) and povray.

Register to Reply
Guru

Join Date: Feb 2009
Location: Houston, USA
Posts: 946
Good Answers: 244
#5
In reply to #4

Re: I Need a New Programming Language

07/30/2010 2:34 PM

My recommendation is either Java or C # (C Sharp) or VB.

If you want to make it web based, try JSP or ASP.

- MS

__________________
"All my technical advices in this forum must be consulted with and approved by a local registered professional engineer before implementation" - Mohammed Samad (Linkedin Profile: http://www.linkedin.com/in/msamad)
Register to Reply
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#6

Re: I Need a New Programming Language

07/30/2010 11:09 PM

absolutely you want Visual Basic 6.

1) most of your BASIC knowledge is still valid.
2) It is designed to do exactly what you are asking to be able to do.. lay out screens with minimal bs, and do a resonable amount of math.
3) It has the largest body of knowledge of any programming language, available on the web for helping you. Start here. (free site, lots of great downloads of tested code and forms)
4) everything you learn is transferable to VBA when you want to write apps in excel. (again, lots of help avaialble.)
5) it is also probably the fastest and easiest to learn, so start there, and anything y ou learn won't be wasted when you move to a different language. (no question C++ is fastest running)

chris

Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#11
In reply to #6

Re: I Need a New Programming Language

07/31/2010 4:09 AM

(no question C++ is fastest running)..,
I'll question that... Assembler will beat it hands down. Cut out the middle man>
He didn't say 'high level' language.
Oh shut up Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply Off Topic (Score 5)
Anonymous Poster
#17
In reply to #6

Re: I Need a New Programming Language

08/02/2010 11:39 AM

Unfortunately, VB6 is no longer available as M$ has abandoned it.

Register to Reply
Guru
Panama - Member - New Member Hobbies - CNC - New Member Engineering Fields - Marine Engineering - New Member Engineering Fields - Retired Engineers / Mentors - New Member

Join Date: Dec 2006
Location: Panama
Posts: 4273
Good Answers: 213
#7

Re: I Need a New Programming Language

07/30/2010 11:25 PM

If all you are trying to do is update the original programs, then VB would most likely be the quickest route, since it was derived from the original Basic. However, for some sophisticated math, C (the original, not all the "object oriented" variations) may be more appropriate. Have you had a look at SciLab or Octave (a couple of OpenSource answers to Matlab)? They may already have the solutions you are after- very, very extensive libraries of functions (and mostly written in c...)

And, of course, if you REALLY want a learning experience, there is always Forth (but there is a reason Forth is free and has never been commercialized...)

Register to Reply
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#8
In reply to #7

Re: I Need a New Programming Language

07/30/2010 11:43 PM

well for sophisticated math.. you probably want to hook up with Matlab..

Register to Reply
Guru
Panama - Member - New Member Hobbies - CNC - New Member Engineering Fields - Marine Engineering - New Member Engineering Fields - Retired Engineers / Mentors - New Member

Join Date: Dec 2006
Location: Panama
Posts: 4273
Good Answers: 213
#9
In reply to #8

Re: I Need a New Programming Language

07/30/2010 11:59 PM

Scilab and Octave are cheaper than Matlab...

Register to Reply Off Topic (Score 5)
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#10
In reply to #8

Re: I Need a New Programming Language

07/31/2010 12:03 AM

oopsie.. I missed that completely in your post... sorry.

Register to Reply
Power-User

Join Date: Mar 2007
Posts: 284
Good Answers: 6
#12

Re: I Need a New Programming Language

07/31/2010 4:47 AM

Try both varieties of PowerBasic. Easy to program, good compiler, versatile, very fast, not too expensive. Their site gives a lot of information. I've been using it for varied tasks and it never disappointed me.

__________________
Constant change is here to stay!
Register to Reply
Associate

Join Date: May 2010
Location: NC, USA
Posts: 34
Good Answers: 1
#13

Re: I Need a New Programming Language

07/31/2010 11:08 AM

To try and keep the "porting" time down to a minimum, I would suggest using a language similar to Java. The idea in Java IIRC was that individual programs would run through a local emulator. The local emulator provided/supplied all necessary IO functions, while the software you wrote would just call the standardized IO referance names.

If this project is just for some heavy computations, you may want to look at MatLab - where all the computer programming is "done" already, and all you have to input is formulas and data.

__________________
Chris
Register to Reply
Power-User

Join Date: Dec 2008
Location: Anthem, AZ
Posts: 392
Good Answers: 8
#14

Re: I Need a New Programming Language

07/31/2010 12:40 PM

Probably the easiest SW for screen bulding is National Instrument's LabView. It is not cheap, however.

Register to Reply
Commentator
Hobbies - Fishing - New Member

Join Date: Jul 2007
Location: Cape Town, South Africa
Posts: 60
#15

Re: I Need a New Programming Language

07/31/2010 3:52 PM

Why don't you just use an open source Pascal compiler like this one.

DEC LSI 11 - that brings back some memories of teletypes, punch tape and magnetic core memory cards....

__________________
Do it while you still can!!
Register to Reply
Guru

Join Date: Dec 2009
Posts: 581
Good Answers: 15
#16

Re: I Need a New Programming Language

08/02/2010 9:57 AM

What does your output look like? You mention CGA which implies that you're drawing something, not just displaying numbers. This is the big question.

If you're just taking input and producing numeric output, go with a console program in C. It'll always be available everywhere.

If you're trying to produce formatted numbers, creating something portable and long-lived becomes trickier, but fortunately it's not much harder to format numbers than it is to just print them out sequentially.

If you're drawing graphs or pictures, it becomes much more complicated than it should be. Drawing a line is simple, but setting up a graphics context (huh? most people think quite reasonably) is different and painful in every environment you're programming. In this case, I would select Java. You cannot trust Micro$oft to provide a stable platform for the next ten years. At least with Java, the pain you suffer from getting it to do what you want now will have a good chance of providing a long-lasting result.

__________________
Ignorance is no sin. Willful ignorance is unforgiveable.
Register to Reply
Guru
Hobbies - HAM Radio - New Member

Join Date: Oct 2006
Location: Vancouver (not BC) Washington (not DC) US of A
Posts: 1261
Good Answers: 12
#18

Re: I Need a New Programming Language

08/02/2010 2:27 PM

I tried loading a Visual Basic compiler onto this XP machine, but it didn't want to cooperate. It was a 60 day "student" variety which my wife had when she took the course several years ago, so I shouldn't be surprised... so forget that.

I did manage to get a Java System up and running, so I will probably go with that.

My immediate need is just number crunching with some ex level complexities so no real graphics as yet... although some of my work will be graphic, printable, and incorporated in manuals in the future. I had the video memory map all figured out for CGA back in my Pascal days. I guess I will have to research the information for these modern computer thingies.

Sorry Del, but I don't have the time to develop floating point arithmetic, trig functions, and all the heavy math in assembler, although, I have a couple of projects where I will use a micro controller to eliminate a whole bunch of discrete logic. Here I very likely will use assembler to write the code.

Now if I only had unlimited budget, and unlimited time to work on everything I want to do.

I told my wife that I needed a new computer. My old Windows ME machine would not run todays software, and could not get on broad-band internet with it. OK!! So we got a brand new HP, 64 bit machine, with Windows 7. It is now on HER desk, and I have her old XP machine with a dead Ethernet port. Thats OK! I got a wireless USB attachment so I can at least get online again, and I don't have to grumble because she is playing games when I need to get on to do some work (aka play on CR4).

Anyhow, thanks alot guys... I appreciate the help.

Bill

Register to Reply
Guru
Panama - Member - New Member Hobbies - CNC - New Member Engineering Fields - Marine Engineering - New Member Engineering Fields - Retired Engineers / Mentors - New Member

Join Date: Dec 2006
Location: Panama
Posts: 4273
Good Answers: 213
#19
In reply to #18

Re: I Need a New Programming Language

08/02/2010 3:24 PM

You may want to consider trying a Linux distro on the XP machine- even newer distros of Linux work well on older machines. There is also an application called "Wine" that can run older dos programs- maybe your old VB compiler will run under this. You can write in Java in Linux and port to Windows relatively easily, I believe. Python also seems to be transportable. There are Basic compilers for Linux that can give you pretty much the look and feel of Visual Basic. You do not need to destroy your XP operating system to load Linux- you can set it up as a dual boot and run both on the same machine. You may even find your ethernet card coming back to life...

And it sounds like you really ought to be looking at Scilab for your math functions- pretty straight forward, and very extensive library of math capabilities. Scilab runs on Windows or Linux.

The best part- Linux and Scilab cost nothing (except the time required to download, and the cost of a CD/DVD)...

Register to Reply
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#20
In reply to #18

Re: I Need a New Programming Language

08/02/2010 3:26 PM

you can download vb6 as a torrent file. you load the torrent file into a client. the file gathers portions of the download from as many seeders and peers as there are on that file sharing network.

you could also programm in vba (in excel)

good luck

Chris

Register to Reply
Register to Reply 20 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (2); Cbrunner (1); chrisg288 (4); cwarner7_11 (3); dovy (1); Hendrik (1); Lynn.Wallace (1); MauriceS (1); msamad (1); Sciesis2 (1); user-deleted-1105 (3); WoodwardDL (1)

Previous in Forum: LCD monitor flickering problem   Next in Forum: File Sharing ~ WIN XP and WIN 7 Starter ~
You might be interested in: Waveguide Pressure Windows, Windows, Infrared Windows

Advertisement