Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Apl > Re: APL & Progr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 18 of 38 Topic 1007 of 1019
Post > Topic >>

Re: APL & Programming Concepts

by "jk" <aqxqy@[EMAIL PROTECTED] (not the q's)> May 7, 2008 at 11:07 PM

"AAsk" <AA2e72E@[EMAIL PROTECTED]
> wrote in message
news:b4bae487-0159-44fd-9abd-1346553431a0@[EMAIL PROTECTED]
> "I thought datatypes where implicit in APL." Indeed they are, much as
> with JavaScript, VBScript, etc.
> APL does have another twist, that you do not need to 'declare' a
> variable.
[...]
> In APL it is simply
>
> name<-'APL'

I know ...

> If you are using APL to teach programming concepts (of which data
> typing is a part), how would you impart the concept from an APL
> environment/workspace?


say, we need to produce figures for a yearly report; we round to
millions; the sums should fit.
then in K, e.g you'd write

f:{x*(_ y)+(<>d)<-0.5+/d:(y:y%x)!1}

or (one to one) in APL
r<-x{times}({negate}y)+({upgrade}{downgrade}d){lessthen}{minus}0.5+/d<-(y<-y{divide}x){iota}1}

try this in e.g. in Fortran.
(already the upgrade-downgrade is impossible, because you'll need the
indices from the downgrade).

Please, tell us, why should we write (and still learn)

BEGIN
FOR I = 1 TO 100
.... some operation, in this case addition
NEXT I
END
oslt

rather then +/n ?

Three examples from other "industries":

1. why was my wife  when at graphic art school learning how to put texts
on a composer-stick, while everybody could just grab his keyboard and
produce any typeface he wants?

2. in composing music they're teaching in schools that fifth's (and
octaves) parallels are forbidden; many composers (even the most famous
like J.S.B.) always knew to find a work around; and Schoenberg (in 1907
finally) therefore asked: why? do they sound bad? why? So, why is this
still taught at conservatories?

3. Do you need to know how many valves your car engine has and how they
are synchronized to drive your car? Yes, for an expert car mechanic, but
for driving from London to High Wycomb?

Why is all that looping around still being taught at schools?

I know the answer: inertia and mass - still after 40 years of APL (and J
and K)
jk




 38 Posts in Topic:
APL & Programming Concepts
AAsk <AA2e72E@[EMAIL P  2008-05-06 11:00:50 
Re: APL & Programming Concepts
pgilbert@[EMAIL PROTECTED  2008-05-06 19:19:16 
Re: APL & Programming Concepts
AAsk <AA2e72E@[EMAIL P  2008-05-06 22:13:30 
Re: APL & Programming Concepts
Gosi <gosinn@[EMAIL PR  2008-05-06 22:36:29 
Re: APL & Programming Concepts
Mb <mebian@[EMAIL PROT  2008-05-07 11:41:17 
Re: APL & Programming Concepts
"Curtis A. Jones&quo  2008-05-07 08:34:14 
Re: APL & Programming Concepts
Mb <mebian@[EMAIL PROT  2008-05-07 19:14:24 
Re: APL & Programming Concepts
"Kerry Liles" &  2008-05-07 13:44:47 
Re: APL & Programming Concepts
Mb <mebian@[EMAIL PROT  2008-05-08 00:53:12 
Re: APL & Programming Concepts
"Curtis A. Jones&quo  2008-05-07 08:42:03 
Re: APL & Programming Concepts
AAsk <AA2e72E@[EMAIL P  2008-05-07 09:05:00 
Re: APL & Programming Concepts
"jk" <aqxqy@  2008-05-07 18:46:37 
Re: APL & Programming Concepts
"David Liebtag"  2008-05-07 14:34:36 
Re: APL & Programming Concepts
"David Liebtag"  2008-05-09 13:37:05 
Re: APL & Programming Concepts
phil chastney <phil.ha  2008-05-10 21:54:22 
Re: APL & Programming Concepts
microapl@[EMAIL PROTECTED  2008-05-07 09:31:53 
Re: APL & Programming Concepts
AAsk <AA2e72E@[EMAIL P  2008-05-07 11:18:26 
Re: APL & Programming Concepts
"jk" <aqxqy@  2008-05-07 23:07:58 
Re: APL & Programming Concepts
Ric <r.g.sherlock@[EMA  2008-05-07 18:07:12 
Re: APL & Programming Concepts
Mb <mebian@[EMAIL PROT  2008-05-08 12:33:11 
Re: APL & Programming Concepts
Randy MacDonald <ramac  2008-05-09 19:07:23 
Re: APL & Programming Concepts
Gosi <gosinn@[EMAIL PR  2008-05-08 04:19:15 
Re: APL & Programming Concepts
Mb <mebian@[EMAIL PROT  2008-05-08 18:13:21 
Re: APL & Programming Concepts
Christopher Browne <cb  2008-05-08 19:48:11 
Re: APL & Programming Concepts
Gosi <gosinn@[EMAIL PR  2008-05-08 13:02:53 
Re: APL & Programming Concepts
microapl@[EMAIL PROTECTED  2008-05-09 02:01:51 
Re: APL & Programming Concepts
Ric <r.g.sherlock@[EMA  2008-05-09 16:54:24 
Re: APL & Programming Concepts
Ric <r.g.sherlock@[EMA  2008-05-09 17:18:43 
Re: APL & Programming Concepts
"Polivka@[EMAIL PROT  2008-05-11 15:55:03 
Re: APL & Programming Concepts
"jk" <aqxqy@  2008-05-12 08:03:21 
Re: APL & Programming Concepts
phil chastney <user@[E  2008-05-12 13:47:27 
Re: APL & Programming Concepts
Randy MacDonald <ramac  2008-05-13 18:03:57 
Re: APL & Programming Concepts
phil chastney <phil.ha  2008-05-13 21:59:03 
Re: APL & Programming Concepts
Randy MacDonald <ramac  2008-05-14 21:57:24 
Re: APL & Programming Concepts
phil chastney <phil.ha  2008-05-15 07:42:40 
Re: APL & Programming Concepts
Steve <steve@[EMAIL PR  2008-05-11 19:53:25 
Re: APL & Programming Concepts
RHui000@[EMAIL PROTECTED]  2008-05-12 11:21:07 
Re: APL & Programming Concepts
Jack <jgrudd@[EMAIL PR  2008-05-12 21:12:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 9:58:25 CDT 2008.