« first day (2284 days earlier)      last day (363 days later) » 

6:38 AM
@Finn Thanks, setting it directly above the ENTRYPOINT didn't work either but the -e command option did it.
 
 
5 hours later…
 
3 hours later…
2:26 PM
I will not be able to attend today at 17:00. If my solution is something different from what has been posted, I will send it later today.
 
no worries
 
This works for me:
docker run -e MAXWS=2G -e RIDE_INIT="HTTP:*:8888" -p 8888:8888 dyalog/dyalog
(direct a browser at localhost:8888 and enter "]config MAXWS" to verify the setting)
Editing a dockerfile and then running it can go wrong in so many ways ... can you say more about how it "does not work"?
 
2:45 PM
I assume he just doesn't get a 2G ws.
Welcome to APL Quest 2019-5! Today's quest is Doubling Up:
> Given a word or a list of words, return a Boolean vector where 1 indicates a word with one or more consecutive duplicated, case-sensitive, letters. Each word will have at least one letter and will consist entirely of either uppercase (A–Z) or lowercase (a–z) letters. Words consisting of a single letter can be scalars.
So, this problem is almost trivial, the actual work consisting of normalising the various valid inputs.
 
3:01 PM
(∨/2=/,)¨⊆
 
Yes, that's equivalent to what I had.
One of my two was just with 1∊ instead of ∨/ — not sure why, actually.
@rabbitgrowth Challenge for you: Do it without parens.
Heh, we can do it in "Perl" instead: (⍬≢'(.)\1'⎕S⍬)¨⊆
I don't really know what more to add to this. Handling length-0 words?
That's pretty simple too: (∨/2=/,∘'_')¨⊆
Since we know words won't have underscores.
And if we want to keep it case insensitive?
(∨/2=/,)¨⎕C∘⊆
The two adaptions can of course be combined.
Anyway, this was simple. Next week is 2019:6: Telephone Names which should prove much more interesting!
 
@Adám can't do it :(
 
@rabbitgrowth ∨/¨2=/∘,¨⊆
Basically, loop-unrolling.
 
3:17 PM
ah I see
 
3:57 PM
@Adám Why'd you call that unrolling? I'd say that's more splitting the loop than unrolling
 
Yes, you're right.
 
 
2 hours later…
5:40 PM
@MortenKromberg As Adam said, when it doesn't work I don't get the WS size I want and run into WS FULL.
 
6:03 PM
@phantomics I just tried with a Dockerfile with the following two lines:
FROM dyalog/dyalog:latest
ENV MAXWS=2G
When I start APL, MAXWS is 2G. So I'm puzzled that it does not work for you.
 
@MortenKromberg I'm apparently using a different Docker config, mine comes from github.com/Dyalog/DyalogDocker/blob/master/Dockerfile and it doesn't have a line saying 'FROM dyalog/dyalog:latest'
 
Right, that Dockerfile should be what defines dyalog/dyalog.
Unfortunateley dinner is on the table, gotta run
 
Thanks, the CLI argument worked in any case
 
6:19 PM
The FROM and ENV should be the same as extending the original Dockerfile with another ENV. If you send me your modified file I can try to take a look, but it may not be tonight.
 
I see, it would go in a new Dockerfile, I'll give that a try
 
6:56 PM
Based on things that have gone wrong for me in the past, my guess would be that you are not running the container that you think you are. Double-check how you tag things and start them up.
 
 
2 hours later…
8:57 PM
Is there a way to query the WS size from inside Dyalog?
 
9:09 PM
⎕←2 ⎕NQ '.' 'GetEnvironment' 'MAXWS' ⍝ Queries the setting
2000⌶16 ⍝ Returns the current max allocation (which MAY have been reduced from MAXWS under program control)
 
9:24 PM
Ah, cool. I was wondering about envars in general. Why is return value output suppressed on `2⎕NQ '.' 'GetEnvironment' 'whatever'?
 

« first day (2284 days earlier)      last day (363 days later) »