interleave/join strings

General APL language issues

Re: interleave/join strings

Postby Vince|Dyalog on Wed Jan 18, 2017 9:59 am

Hi Jim,

If you are logged in to the Forums, I think that you can edit your post or delete it.


Posts: 275
Joined: Wed Oct 01, 2008 9:39 am

Re: interleave/join strings

Postby alexeyv on Thu Jan 19, 2017 8:21 pm

Posts: 53
Joined: Tue Nov 17, 2015 4:18 pm

Re: interleave/join strings

Postby petermsiegel on Fri Jan 20, 2017 6:19 am

Try this, so that the RANK operator (⍤) applies directly to the CATENATE (,) function:

etc. As written, your code applies RANK to the enclosing {} DFN, rather than to CATENATE per se.
Posts: 52
Joined: Thu Nov 11, 2010 11:04 pm

Re: interleave/join strings

Postby Marshall|Dyalog on Fri Jan 27, 2017 2:42 pm

Hi Veli-Matti,

I've been working on Dyalog APL for a little while now, and the timings look very different in version 16.0:

We've seen roughly the same speedups on all platforms.

The last expression is a slightly faster variant of the one before it, which was the fastest of the original benchmarks.

Both of those expressions actually get to take advantage of two major improvements. First is a huge speedup on enlist, which applies to every argument with small leaves. Second is some special code for catenate which interleaves arrays much more quickly. The result is pretty quick!
Posts: 1
Joined: Fri Jan 27, 2017 1:34 pm


Return to Language

Who is online

Users browsing this forum: No registered users and 3 guests