Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

APL versu MatLab

127 views
Skip to first unread message

Jeff Reid

unread,
Oct 11, 2007, 9:15:33 PM10/11/07
to
I've used APL in the past (back in the 1970's and 1980's).
In my current line of work (embedded firmware), I don't really
need this type of tool, but there are other co-workers that
use Matlab, for what appears to me to be the same reasons that
APL was used back in the old days.

Does anyone in this group know the pros and cons of Matlab versus APL?

Doug White

unread,
Oct 11, 2007, 9:30:53 PM10/11/07
to
Keywords:

My understanding is that Matlab was originally created by some APL fans
because there was no APL available for the Mac at the time. I've taken a
Matlab course, and we have it at work. I never use it, because I have
APL. It is very polished, has lots of specialized add-on pakcages, and
is expensive.

Doug White

Jeff Reid

unread,
Oct 12, 2007, 12:39:27 AM10/12/07
to
>>Does anyone in this group know the pros and cons of Matlab versus APL?
>
> My understanding is that Matlab was originally created by some APL fans
> because there was no APL available for the Mac at the time. I've taken a
> Matlab course, and we have it at work. I never use it, because I have
> APL. It is very polished, has lots of specialized add-on pakcages, and
> is expensive.

The guys I've known that use MatLab are usually involved with the analog
aspects of peripherals, such as servo and channel type stuff. One of the
"pros" is the ability to enter equations, and MatLab will solve them
for you, produce a graph, and/or produce a complex number graph.
I've never used it myself, just watch some of my co-workers using it.
Some of the equation, curve fitting, and similar stuff seems pretty
advanced.

Regarding price, I've browsed for APL environments and the ones I found
were around $1500 USA. Then again, MatLab for non-students is $1900, and
there seem to be thousands in add-on components for MatLab. I don't plan
on buying either anytime soon.


Jeff Reid

unread,
Oct 12, 2007, 12:51:57 AM10/12/07
to
> Regarding price, I've browsed for APL environments and the ones I found
> were around $1500 USA. Then again, MatLab for non-students is $1900, and
> there seem to be thousands in add-on components for MatLab. I don't plan
> on buying either anytime soon.

Student version of MatLab is $99 (USA), and includes some add-ons, and
the add-on's are $59 (USA). Since I would never be a commercial user of
the software, it would be cheaper to sign up for classes at a local
college.


Paul Houle

unread,
Oct 12, 2007, 1:29:22 AM10/12/07
to

"Jeff Reid" <jeff...@hotmail.com> wrote in message
news:J3DPi.6490$W06...@newsfe17.phx...


Try http://apl2c.com
It's free.


Jeff Reid

unread,
Oct 12, 2007, 2:12:59 AM10/12/07
to
> Try http://apl2c.com

Thanks for the link.


Dick Bowman

unread,
Oct 12, 2007, 3:15:22 AM10/12/07
to
"Jeff Reid" <jeff...@hotmail.com> wrote in
news:2UCPi.6328$W06....@newsfe17.phx:

>>>[... deleted ...]


>
> Regarding price, I've browsed for APL environments and the ones I

> found were around $1500 USA. [... deleted ...]

For personal non-commercial use Dyalog is around USD100.

Stephen Taylor <editor@vector.org.uk>

unread,
Oct 12, 2007, 4:30:54 AM10/12/07
to

See http://www.vector.org.uk/?area=dnld&page=content/interpreters

for APL interpreters. Some are available free for personal or
educational use,
such as APLX and SAX on Linux.

Dyalog isn't free, but at about USD100 for personal use, offers its
latest
version complete with native class-instance support, scripting tools
and
advanced graphics.

Stephen Taylor
s...@dyalog.com

Sam Sirlin

unread,
Oct 12, 2007, 3:02:27 PM10/12/07
to
Doug White wrote:
> Keywords:
> In article <RUzPi.3581$W06....@newsfe17.phx>, "Jeff Reid" <jeff...@hotmail.com> wrote:
>> I've used APL in the past (back in the 1970's and 1980's).
>> In my current line of work (embedded firmware), I don't really
>> need this type of tool, but there are other co-workers that
>> use Matlab, for what appears to me to be the same reasons that
>> APL was used back in the old days.
>>
>> Does anyone in this group know the pros and cons of Matlab versus APL?
>
> My understanding is that Matlab was originally created by some APL fans
> because there was no APL available for the Mac at the time.

I don't think so. I have the original (free) fortran version, written by
cleve as an interactive interface to eispack,linpack. It's short for
matrix laboratory. Of course it has grown tremendously since then.

> I've taken a
> Matlab course, and we have it at work. I never use it, because I have
> APL. It is very polished, has lots of specialized add-on pakcages, and
> is expensive.

It is expensive, but not for students, hence is now essential for
engineering work, especially in research, controls. The newsgroup is
enormous.

Matlab has I think taken over the scientific/engineering interpreter
market. Key reasons are

- cheap for students
- trivial to code/understand (though many write loops where non-looping
solutions are more efficient, much like apl)
- has a nice built-in plot facility
- uses ascii (but allows latex commands on graphs)
- has solid numerical analysis (e.g. going back to linpack/eispack, but
now lapack)
- trivially extensible -- if you type
foo(x)
it looks for a file somewhere in your matlab path, either a compiled
function (foo.mex) or ascii text function/script (foo.m). This
means it is trivial to extend matlab with your own functions, and in
fact also to share with your friends/coworkers. There are extensive
libraries of all kinds of stuff on the mathworks web site.

The underlying language used to be rather hokey (only matrix objects).
But now has "boxed" objects (cell arrays), structures (analogous to c),
overloading, anonymous fns, and all kinds of data types. The syntax is
still a bit ugly, but very practical. It also has sets of toolboxes,
including simulink, a graphical tool for building system time-domain
simulations.

I think APL could have taken this spot (I used it for this in college),
but went towards finance rather than science, didn't have builtin
plotting, isn't as easily extensible (have to load libraries) and no
easy way to share functions (largely due to charset troubles).

Sam Sirlin


Ted Edwards

unread,
Oct 12, 2007, 5:01:18 PM10/12/07
to
Sam Sirlin wrote:
> I think APL could have taken this spot (I used it for this in college),
> but went towards finance rather than science, didn't have builtin
> plotting, isn't as easily extensible (have to load libraries) and no
> easy way to share functions (largely due to charset troubles).

I save my library functions as "groups" i.e. *.ATF files. I also have a
function called "need" which can be called recursively from within a
function to load one or more functions from one or more groups. e.g.
'Days' 'DR2J Sodano GPX_tracks' 'Pyth Rnd'need'date' 'gps' 'math' 'ed'
This has at least three important features:
Only one copy of a function is needed in the whole system.
Thus easier for maintenance.
Callable from within a function.
*.ATFs are smaller than the same stuff in WSs.

An ATF is a text file although it does contain APL characters. However
I've never had a problem e-mailing them .ZIP'd.

Ted

Curtis A. Jones

unread,
Oct 13, 2007, 10:51:11 AM10/13/07
to
On Oct 12, 12:02 pm, Sam Sirlin <swsir...@charter.net> wrote:
>
...

> Matlab has I think taken over the scientific/engineering interpreter
> market. Key reasons are
>
> - cheap for students
> - trivial to code/understand (though many write loops where non-looping
> solutions are more efficient, much like apl)
> - has a nice built-in plot facility
> - uses ascii (but allows latex commands on graphs)
> - has solid numerical analysis (e.g. going back to linpack/eispack, but
> now lapack)
...

Sam's description of MATLAB's success in the college/engineering
environment agrees well with my experience at San Jose State
University's College of Engineering. The language itself seems
inferior to APL but there's a huge collection of math functions and
tools for e.g. signal-processing systems simulations and for
statistics EASILY available. Mathworks has people out giving seminars
and providing strong support to users.

Bill Koko noted in 1998 at Minnowbrook and told me personally in
Scranton in 1999 that his colleagues at Bucknell (?) were using MATLAB
instead of APL because of the rich assortment of math functions
available with MATLAB. Curtis

Sam Sirlin

unread,
Oct 13, 2007, 2:11:26 PM10/13/07
to
Curtis A. Jones wrote:

> Bill Koko noted in 1998 at Minnowbrook and told me personally in
> Scranton in 1999 that his colleagues at Bucknell (?) were using MATLAB
> instead of APL because of the rich assortment of math functions
> available with MATLAB. Curtis

BTW there were originally (late 80's) some comercial competitors to
matlab: control-c and matrix-x (xmath) that were similar but not as
successful (not sure if they're still around). I think matlab "won" out
on price (for students) and extensibility.

There are some good free "competitors" that fill the same niche, octave
scilab, and R. Wikipedia has a pretty good list (but doesn't include APL...)

http://en.wikipedia.org/wiki/List_of_numerical_analysis_software

charles manoras

unread,
Oct 14, 2007, 12:46:04 AM10/14/07
to

"Stephen Taylor <edi...@vector.org.uk>"

>
> Dyalog isn't free, but at about USD100 for personal use, offers its
> latest > version complete with native class-instance support, scripting
> tools and advanced graphics.

And still no complex numbers 25-30 yrs after APL2. :-(


ddooner

unread,
Oct 15, 2007, 12:17:41 PM10/15/07
to
I am losing my innocence with this post. I am interested in this
comparison between APL and Matlab. I am a mechanical engineer with a
university. I assign “small” computational assignments each semester and
allow students to use any computer language to solve the assignment. I
change the assignment each semester (to avoid copying projects from
previous semesters--a must). The majority of students use Matlab for the
assignments (common alternatives include MathCad, Excel, C, and Fortran).
C is the required language for the engineering students. I use exclusively
APL (specifically, APL2 and is free as part of the IBM academic initiative
program) to also code the assignment for results evaluation. Forget the
details and coding style with engineers--myself included; my dilemma is
promoting APL! It's not realistic to showcase examples using APL when no
faculty member as ever heard of APL. I do not know Matlab but I see its
parallel structure to APL. The added modules can be nice but we all have
a library of support routines with a nominal amount of programming. At a
glance, I still prefer APL and would like to see APL expand within the
engineering community. Specialty code for prototyping is engineering. To
the APL community, please help us in the university to showcase the beauty
of APL.

David Dooner


--
Message posted using http://www.talkaboutprogramming.com/group/comp.lang.apl/
More information at http://www.talkaboutprogramming.com/faq.html

Richard

unread,
Oct 18, 2007, 7:32:53 AM10/18/07
to
In a quick read I didnt see any mention of J.
J has a good interface to LAPACK, complex numbers and
much more of interest for engineering computing.
It is free.
J has a very active support group.
Since Iverson himself said J was "an APL"
then surely it sould be considered?
refer: www.jsoftware.com

Gosi

unread,
Oct 19, 2007, 4:44:27 AM10/19/07
to

Welllll.....

Some of us really think it is the best APL.
Some think that it is not APL because it is missing the greek signs.
I started to use J especially because it was not giving me the
problems the greek signs were giving me with other APLs.
There are lot of reasons to use J and those of us who follow the J
forums see it has a growing number of followers too.

Bob Armstrong

unread,
Oct 31, 2007, 8:26:55 PM10/31/07
to
On Oct 11, 7:15 pm, "Jeff Reid" <jeffar...@hotmail.com> wrote:
> Does anyone in this group know the pros and cons of Matlab versus APL?

Interesting question . Interesting answers . But I sent the following
to my niece who is being exposed to Matlab ( and VB and C++ ) in her
applied math classes at Boulder :

> [ The ] comparisons but don't get into nitty-gritty of difference between the languages .
>
> My friend Devon McCormick said it does not have operators ( adverbs ) which take functions ( verbs ) as arguments .
>
> A sentence I typed this morning in K.CoSy to count the months between March 2006 and this month is :
>
> - -/ 12 _sv' ( 06 03 ; 07 10 )
> 19
> ...
> What would be the equivalent MatLab ?

Loren Shure from MatLab sat next to me on the "Thinking in Arrays"
panel at APL2007 . Afterwards she indicated that at least Matlab
understood the importance of boolean vectors and didn't have the hang
up about TRUE being different than 1 which Wolfram seems to .

What are the linguistic differences ?


Curtis Jones

unread,
Apr 10, 2017, 7:34:41 PM4/10/17
to
Clive Moler is being inducted as a 2017 Computer History Museum Fellow for MATLAB.
http://www.computerhistory.org/fellowawards/current/
http://www.computerhistory.org/fellowawards/hall/cleve-moler/

My search for "Cleve Moler APL" got
https://computinged.wordpress.com/2012/06/14/matlab-and-apl-meeting-cleve-moler/
This is Mark Guzdial's interview with Cleve Moler on 14 June 2012.
"He said that he’s always seen MATLAB as 'portable APL' because he used a traditional character set."
...
" APL is about being uniform about everything, but MATLAB 'is a mishmosh of all kinds of things.'"
The comments suggest there's value in "mishmosh". J is mentioned.

DanNospamSay

unread,
Apr 25, 2017, 2:12:15 PM4/25/17
to
0 new messages