Welcome, Guest. Please login or register.

Author Topic: Language shopping  (Read 2435 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Language shopping
« on: May 05, 2004, 07:37:04 PM »
Quote

macto wrote:
So I saw REXX and thought, hey I remember that.  Maybe I can do it for a quick calculation.  (I was an OS/2 user about 10 years ago.)  I quickly rediscovered that that though was brain dead, because REXX doesn't like floats.

So, can anyone suggest a language which is:
(a) at least as common as REXX outside of the Amiga world
(b) interpreted, because I don't want to sit around for a compile and link
(c) can handle floats at least as well as C (which isn't saying much)
(d) is relatively small and fast, because I hate bloated software :pissed:


Rexx doesn't handle floats? Are you sure?
The following rexx script worked fine for me

/* test */
f = 0.0;
do n=0 to 10
   say f
   f = f + 0.25
end

As far as I know it's typeless and there are rexx maths libraries that provide various trancendal functions all of which use floating point.

Failing all else, you could use javascript. It's pretty common, dynamically typed and works in most places
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Language shopping
« Reply #1 on: May 06, 2004, 01:14:06 AM »
@BigBenAussie

Yes I meant writing a Javascript application that runs within a browser context. It's perfectly doable for anything that would otherwise be done with a language like Arexx (excluding the use of application ports, however).

You can write all sorts of useful calculation tools and stuff that simply run scripts in a browser window. All the input can be handled via forms and so on.

As long as you dont start using css and stuff, your application would thus run most places, amiga included.
int p; // A