« first day (2505 days earlier)      last day (85 days later) » 

1:57 AM
@Adám Thanks!
 
 
6 hours later…
7:33 AM
gotta brutal force day5 part2 in J. Used 15GB memory lol
 
7:53 AM
lol got lucky and managed to get the star using intermediate result after program reached 67GB mem
 
@Adám Speaking of large workspaces, does anyone have experience using Dyalog with a WS that ends up paging out to disk?
It seems like a reasonable poor-man solution for handling large data that doesn't fit into ram, but I'm wondering how well the interpreter behaves when memory operations take an order of magnitude or two longer than normal.
 
Right, it should just work. However, we also have ⎕MAP which you can use to keep an array in a file rather than in RAM.
Of course, this means that reads and writes for that variable will be slow, but the interpreter has no issue with such. I can't imagine that page swapping would bother it either.
 
8:17 AM
@Adám Can APL WS size expand dynamically?
 
Yes. You only specify the maximum, and the interpreter will ask the OS for more memory as it needs it (plus a bit extra).
 
Ah I see, works similar to lisp heap image size
 
9:21 AM
@Adám Ooh. Of course ⎕MAP Just Exists™. That's beautiful. Thanks.
 
Ven
10:03 AM
Hm, maybe I should actually start from my part1 solution, produce the list of positions <=> numbers, and reuse that
 
 
10 hours later…
8:17 PM
@user23040657 interested in APL? send email to access@apl.chat
 
@LdBeth Thanks for stepping in. (Next time, you can link directly to apl.wiki/APL_Orchard#Access if you wish)
 
 
1 hour later…
9:53 PM
Hi, a question regarding object-oriented programming in APL. Can I use d-fns instead of trad-fns to access and modify attribute values?
 
@SantiagoNuñez-Corrales Sure, the only real restriction is that dfns within the class aren't visible outside the class
 
10:39 PM
@SantiagoNuñez-Corrales use var⊢←newval to modify global value
 
@LdBeth @SantiagoNuñez-Corrales No need. To modify an attribute, you'll do myobj.myattr←newval which isn't auto-localised.
 

« first day (2505 days earlier)      last day (85 days later) »