« first day (1387 days earlier)      last day (1283 days later) » 

RGS
12:32 AM
⋄ 1 2 3 {l←≢⍺ ⋄ +⌿(1+-⍳l)⌽(0⍴⍨l-0 1),⍨⍺∘.×⍵} 1 2 3 4 5 6
 
@RGS 1 4 10 16 22 28 27 18
 
RGS
@Adám the IO might've been the problem, the version ^ is for IO 1. I'm still taking the constant coefficient on the left,and not on the right, but mine is not wrong. Some minor modifications and it should work for polys in the order you specified
 
 
5 hours later…
5:36 AM
@Adám APLcart entry for ⎕TS redirects to ⎕TC: aplcart.info/?q=current%20time#
 
5:53 AM
Try it online! how do i shorten this?
is there a short way to get dates as hh:mm::ss?
 
6:05 AM
@Razetime Link to challenge?
1∘↓∘⍕¨ → 1↓¨⍕¨
Change 4 4 to single 4 if it's allowed to omit the first line entirely if all digits are small
 
6:21 AM
10
Q: Draw a BCD Binary clock

JoeyCreate a BCD binary clock in ASCII. As implied, it shall display time in six columns of dots: (source: Wikimedia Commons) Each column is a binary-coded digit, reading hours, minutes and seconds from left to right. Hours are given in 24-hour format. The time to display is read from the comman...

@Bubbler that;s great
now at 45
 
It does work for the test cases but try something like 01:02:01
 
It says Two lines with represent the BCD binary clock so I think 4 4 should be correct
 
Agreed
 
thankfully it's got that line
 
ngn
@RGS no, i was replying to an unrelated message of yours
 
@Bubbler ah I never thought of that
just kept thinking "how do I pad this?!"
 
and actually 0 10⊤ works there in place of 10 10⊤
 
7:10 AM
@Razetime ^
 
@Bubbler I'll change that
How do I convert a date array (mmddyyyy) to a single number?
I've only use 1⎕DT to convert years before
 
@Razetime Example?
 
12 01 2002 → ???
 
What's your expected result?
Also is it a 3-item vector of numbers?
 
I know that date number mod 7 is the day number(monday, tuesday, wednesday)
@Bubbler yep
@Bubbler a single number
a single long number
 
7:24 AM
If any single number works, what about 1e4⊥?
 
basically i need a ⎕DT mode
not sure what does it
 
@Razetime Fixed.
 
@Razetime ⋄ 1⎕DT⊂⌽12 01 2002
Hey, where's the bot?
 
@DyalogAPL where you at?
 
7:28 AM
⋄ 1⎕DT⊂⌽12 01 2002
Bot is there, but apparently not responding
 
@Moonchild ^
 
⎕DT doesn't work on tio, does it work here?
 
Yes, it should. It came with 18.0, so try it locally.
 
oh nice
 
@Razetime 'hh:mm::ss'(1200⌶)ddn where ddn is e.g. 1⎕DT⊂⎕TS
I so hope we'll fold 1200⌶ into ⎕DT so one can do 'hh:mm::ss'⎕DT⊂⎕TS
 
7:32 AM
that would be cool
 
There were intentionally designed to be combinable. The only reason we didn't combine them was because our chief architect thinks that formatting date-times belongs with all other formatting in ⎕FMT and not as part of the ⎕DT conversion.
 
7:45 AM
@Adám But just a very small portion of date processing is formatting. Where do you put the calls to do calendar computations?
 
@EliasMårtenson Those are in ⎕DT
 
 
3 hours later…
10:50 AM
repl.it doesn't support uploading files for ngn/APL, are there any similar things that would support an APL dialect so I could easily give code to my teacher to run?
 
i mean, there's tio I suppose
or you can use the ngn/apl codebase to run stuff on repl.it
 
yeah, but as far as I can tell I can't then upload the file I need for the task
 
huh lemme try
 
11:18 AM
you can upload what you need
the upload menu is next to the add folder icon
 
Oh cool, did you write those programs?
 
no, those are ngn's examples
 
Makes sense, thanks
 
run using node apl.js <filepath>
I just made a programs folder for testing
note that you need ⎕← to display anything at all
 
yeah
 
11:22 AM
kay cool have fun
 

« first day (1387 days earlier)      last day (1283 days later) »