« first day (1574 days earlier)      last day (1073 days later) » 

RGS
9:42 AM
If I have a simple array with N dimensiosn
What do you call the operation of putting together the major cells, so that the dimension becomes N-1?
E.g. I have a 3D array and take its major cells and just build a taller matrix
Or I have a matrix, and instead build a longer vector out of the rows.
What do you call that operation, and how do you do it in general? :P
for matrices I'd do smth like ⊃,/↓mat
⊃⍪⌿⊂⍤¯1⊢ seems to work. Is it the best way?
 
 
1 hour later…
10:53 AM
@RGS Merge along leading axes: ,[⍳2]
Also covered in the webinar on Rank and Dyadic Transpose I think
sorry - "merge leading axes"
 
 
2 hours later…
RGS
1:04 PM
@RikedyP beautiful
Thanks for this
 
 
3 hours later…
RGS
4:34 PM
↑ @Adám prob new APLCart entry “melt merge fuse join along leading axis” ,[⍳2]
Tagging you 'cuz I can't PR right now and I'm afraid I'll forget
 
RGS
4:45 PM
@RikedyP I haven't watched those webinars yet D:
 
 
1 hour later…
5:50 PM
0
Q: Dyalog SALT.Load exceptions "could not fix" for raw function trains

alexgibbsI've been experimenting with SALT but am encountering consistent Load problems that seem to only affect raw function-trains. I hoped for any advice on ensuring all functions Load correctly. To illustrate, in a clear workspace I'll create some example functions for converting hex and octal. Some...

 
6:01 PM
Crossposting my question from the Discord server: How does this algorithm work? I'm having trouble parsing the train codegolf.stackexchange.com/a/158379/80214 The code: {0∊≢¨⍵:≢∊⍵⋄⌊/(≢.↑+∘∇↓¨)∘⍵¨1↓,⍳2 2} and the train: (≢.↑+∘∇↓¨)
 
{0∊≢¨⍵:≢∊⍵⋄⌊/(≢.↑+∘∇↓¨)∘⍵¨1↓,⍳2 2}
 0∊≢¨⍵:≢∊⍵                             ⍝ if any of the lengths are 0 return the sum of the lengths (length of longest)
                          1↓,⍳2 2      ⍝ (0 1)(1 0)(1 1)
                       ∘⍵¨             ⍝ do the next stuff for each thing in ⍵, ⍵='turing' 'tarpit' for this example
                     ↓¨                ⍝ ('turing' 'arpit') ('uring' 'tarpit') ('uring' 'arpit')
                ↑                      ⍝ ('' 't') ('t' '') ('t' 't') (not quite but yes)
 
f.g on vectors is just f/⍺g⍵. It's just golfier
 
Oh thanks
 
6:29 PM
Oh yeah that makes a lot of sense, thanks!
 
 
3 hours later…
9:06 PM
Hi there, how does one enlarge the workspace in Dyalog APL?
 
@11Kilobytes start it with an environment variable like MAXWS=2G. Where you need to do that depends on OS and IDE
 
9:31 PM
@RGS Maybe there's a bug. We should have a look together.
@11Kilobytes Alternatively, you can add MAXWS=2G as a command line argument to your executable.
 
9:55 PM
up until a couple of days ago, out of principle I had never changed MAXWS from the default 256MB, I felt dirty changing it to a whole 4GB!
 
RGS
@Adám I thought so too, but I tried reproducing it and failed. I'll use it some more and then I'll bother you or someone else...
 
@rak1507 Meh, we run a box with MAXWS=96G but are considering upgrading it, to better match what our customers are actually using.
 
@Adám one day I'll try and convince my friend to let me use his uni supercomputer and then I can do MAXWS>1TB :P
not sure if he actually gets access to over a terabyte of ram, but the computer itself has several iirc
 
No probs, it can take up to E
 
@Adám fun question: what is the largest array that has ever been used in production?
 
10:06 PM
That is indeed a fun question, but probably hard to get a good answer for.
 
do you know roughly what it might be?
if you know how much ram customers use presumably that correlates with large amounts of data
 
@AndyS What is the largest used MAXWS you know of?
 

« first day (1574 days earlier)      last day (1073 days later) »