« first day (1188 days earlier)
← previous day
next day →
last day (1763 days later) »
06:00 - 16:00
16:00 - 00:00
xpqz
16:01
The Dyalog Problem solving problems are most excellent practice. And fun.
I'm finding they get easier with the years, but hopefully that's me improving rather than them actually being easier.
My solutions for 2017
tio.run/##JY/…
Adám
16:32
@RGS Yes.
Jeff Zeitlin
IsPrime←{2=+/0=⍵|⍨⍳⍵}
Adám
@JeffZeitlin Yes, that's pretty much the canonical answer.
Jeff Zeitlin
Unless I miss something, that's going to be O(n) for calculation time.
Is there any way to do better?
Adám
16:51
@JeffZeitlin Yes, a proper sieve.
RGS
@Adám my APL kernel doesn't connect :'(
I already have the option of creating a notebook with the "Dyalog APL" kernel but once opened, the kernel doesn't start
Adám
Hm.
I don't even know where to start trying to debug that.
RGS
C:\Users\rodri\anaconda3\python.exe: No module named dyalog_kernel
Adám
Ah yes, I've seen that error before.
RGS
says the terminal running the notebook thingy
Adám
17:00
@RichardPark May have some ideas.
RGS
Do you think it may have anything to do with the fact that I installed anaconda and
didn't
make it the default for python 3.7?
Adám
I can't rule it out. Tbh, I never really understood how Python picks up its modules.
RGS
hm alright; so should I wait for Richard's help?
Adám
I think that'd be wisest. Of course, you can already now plan then contents.
RGS
I think I'll try reinstalling and leaving that option I mentioned on; should I "uninstall" your dyalog kernel? Or can I just uninstall anaconda, install again and then install the kernel on top of that?
Adám
17:05
@RGS I think just reinstalling on top would do. You can look at the installation batch file. It is really simple.
Richard Park
@RGS Do you only have anaconda installed or do you have a separate python as well?
RGS
I have a separate Python @RichardPark
but I just solved it
maybe not in the best way, but I solved it
Richard Park
@RGS Manually copying files around?
RGS
yes, the dyalog_kernel into the "correct" site-packages folder
Richard Park
@RGS Yes I've used that "trick" before
RGS
17:12
I installed some random package with anaconda's pip
Adám
Can we somehow add that to the bat?
RGS
checked the folder into which the things were going
and copied the dyalog_kernel to that folder
@Adám I would guess so, I just performed one extra copy&paste
Adám
@RGS Feel free to PR.
RGS
prnt.sc/s6wgtq
(proof it works :P)
Adám
Yay.
RGS
17:13
@Adám sure; should I
add
the line or replace the one that seems wrong?
Adám
@RGS I think add, as I remember us having trouble with this before, so we might need to have both destinations to make it work universally.
RGS
Alrighty
Richard Park
@Adám Yeah it bascially just attempts to copy to all python installation folders we've thought of
RGS
PR submitted
1 hour later…
RGS
18:46
@Adám I just want to say I'm sad tomorrow is not an APL Cultivation day
Adám
19:21
@RGS thanks :-)
RGS
@Adám when I'm done with the notebook and I want you to have a look, what should I do? Host it on GitHub?
Adám
19:47
@RGS Sure, that'd work, or you could make it a PR on the existing collection.
RGS
@Adám ah of course
2 hours later…
ngn
21:22
@JeffZeitlin
miller-rabin
is a simple and efficient primality test that doesn't require sieving
RGS
22:18
@Adám I also PR'd the notebook I created. Let me know of
all
the feedback you have; from major problems/adjustments needed to the minor details.
Also, how did your yearly appraisal go..?
dzaima
23:10
@dzaima
another one
, imo much worse/annoying than the others, but for the exact same reason
06:00 - 16:00
16:00 - 00:00
« first day (1188 days earlier)
← previous day
next day →
last day (1763 days later) »
all rooms
Transcript for
Apr
26
Apr '20
27
Apr
28
The APL Orchard
apl.chat
― Learn, teach, ask, code, golf, & discuss usage. See
...
2
1
apl
array-manipulation
j
tips
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2025 Stack Exchange Inc;
legal
mobile