Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #1821
| Newsgroups | comp.lang.postscript |
|---|---|
| Date | 2014-03-08 02:15 -0800 |
| References | <c50c5138-a763-4d96-8ae0-b900f06cbb68@googlegroups.com> <becdd894-cacd-4611-b5f3-5733b8fef13e@googlegroups.com> <16465a32-b57b-4ac3-9c1f-69899489eb00@googlegroups.com> |
| Message-ID | <defe9ec9-e0a2-4fb7-81da-6c3ab9aefdaf@googlegroups.com> (permalink) |
| Subject | Re: APL in PS |
| From | luser- -droog <mijoryx@yahoo.com> |
On Saturday, March 8, 2014 1:25:15 AM UTC-6, luser- -droog wrote:
> On Friday, March 7, 2014 11:31:35 AM UTC-6, Ross Presser wrote:
>
> > On Friday, March 7, 2014 2:01:34 AM UTC-5, luser- -droog wrote:
>
> > > It seems appropriate to archive this here as well as
> > >
> > > https://gist.github.com/luser-dr00g/9382217
> > >
> > > This code attempts to build-up enough APLisms to implement
> >
> > *sound of brain exploding*
>
> Richard Dreyfuss gesturing at the mashed potatoes:
> "This *means* something!"
>
> I confess I don't understand any more APL than I've written there,
> and some of that's a little shaky, too.
> At the very end there's a unzip/zip-array operation with that
> single '*' in the middle. Somehow, it makes a multiplication
> table. But without the "exch", it doesn't. But I don't know why.
>
Updated the gist with the part I'm talking about here. This is the
line that makes a multiplication table:
[3 1 roll{1 index * exch}forall pop]
>
>
> Oh, wait a mom. Yes I do. That's not APL's fault. That's because,
> it doesn't check the second argument if the first is not an array.
> It's because I cut corners at the top of the page. :(
>
> I'm still trying to grok the "J incunabulum", with some limited
> success (and lots of helpful search results), but the real
> secret, I suspect is in the 1962 volume: A Programming Language.
> But annoyingly, it uses slightly different symbols and conventions
> from every other version.
Back to comp.lang.postscript | Previous | Next — Previous in thread | Find similar | Unroll thread
APL in PS luser- -droog <mijoryx@yahoo.com> - 2014-03-06 23:01 -0800
Re: APL in PS Ross Presser <rpresser@gmail.com> - 2014-03-07 09:31 -0800
Re: APL in PS luser- -droog <mijoryx@yahoo.com> - 2014-03-07 23:25 -0800
Re: APL in PS luser- -droog <mijoryx@yahoo.com> - 2014-03-08 02:15 -0800
csiph-web