« first day (2 days earlier)      last day (719 days later) » 

06:41
@lyxal i think i added it
dont know how to test it lol
07:36
I might need a bit to think on that
08:02
@lyxal click here :)
This is a certified yes moment
@PyGamer0 do you mean like having unit tests or just testing by hand?
@lyxal yesting by hand
Then create random little trains and manually calculate the expected output then see if the program actually gives that output
ok
imma do it in termux
You should pin a link to the gists containing the info for the specs
08:13
no i will rewrite the specs
the gist was for just giving me a list to stuff to implement
But I mean so I can give some examples to test
i have an example for reduce and reduce first
Hey wait where are the quicks implemented?
on [3, 4, 5] should be [6, 8, 10]
3÷¨​ on [5, 8, 12] should be [3/5, 3/8, 1/4]
I know those would automatically vectorise and that flax doesn't have rationals, but they're for demonstration and testing purposes
08:22
ok
Also,
​    ​'₁'​: ​attrdict​(​condition​=​lambda​ ​links​: ​True​,
​        ​qlink​=​lambda​ ​links​, ​outer_links​, ​i​: [​create_chain​(​outer_links​[​i​], ​1​)]),
​    ​'₂'​: ​attrdict​(​condition​=​lambda​ ​links​: ​True​,
​        ​qlink​=​lambda​ ​links​, ​outer_links​, ​i​: [​create_chain​(​outer_links​[​i​], ​1​)]),
Those are the same
ok but how do i run the thing
@lyxal ok thanks
Have you created a way to run programs?
no
@lyxal you can fix that ;)
@PyGamer0 I'll do that later when I'm back at my computer
@PyGamer0 for now, I'd recommend writing a little function that parses and executes a program and use that for testing
I'll work on a repl/cli implementation later
08:26
@lyxal you can do that from a phone you know, i am at my phone
@lyxal ok
@PyGamer0 well yes, but actually no
Duckduckgo can't handle big files on github.com
It just freezes
ok i will fix then
It's just changing a 1 to a 2 if I understand what it's doing
yes lol
i did it
Goodm
s/m/.
 
3 hours later…
11:52
@PyGamer0 can newlines (\n) appear in strings?
because in order to make a repl/cli you need to be able to parse programs
and in order to do that, you need a syntax spec
assuming one train per line, you might be tempted to just do program.split("\n") to get all the trains
but if you can have newlines in "strings", well that goes out the window
because then you need to consider things like:
"a
b"
which is one train over two lines because of that newline
It's not hard, I just need to know so I can modify my approach accordingly
 
1 hour later…
13:01
@lyxal there are no strings
or should i support syntax for strings
 
11 hours later…
23:53
@PyGamer0 there should be some way to create a list of character codes
Jelly doesn't have "strings" as such
just lists of integers as such
well it isn't really a list of integers
but that could be how flax does it

« first day (2 days earlier)      last day (719 days later) »