« first day (458 days earlier)      last day (2214 days later) » 

5:24 AM
@ngn that should work if I understand what you mean
you can always do (outer train (f=.inner train f))
 
 
2 hours later…
ngn
7:38 AM
@FrownyFrog so, in my example $: would be the same as g?
 
I’m confused
 
ngn
@FrownyFrog ok, suppose I have "f=:" followed by some tacit expression that includes $:
 
It will refer to f
 
ngn
@FrownyFrog in that case, when I call f, $: should be the same as f
 
I think so
 
ngn
7:43 AM
no what if I have another one, "g=:" followed by a tacit expression involving "f"
the question is, will the original "$:" still refer to "f" or will it refer to "g"?
 
Still f
 
ngn
(by the way, I realised I've swapped ":" and "=" in "=:", my bad)
@FrownyFrog ah
 
f=. 1:`(] * $:@<:)@.*
this is factorial
g=. 2*f
g 5
240
 
ngn
yeah, it would make more sense that way
 
but that’s on separate lines
 
ngn
7:47 AM
so "$: refers to the largest train containing it" is on a syntactic level, not at runtime
 
g=.2 *f=. 1:`(] * $:@<:)@.*
g 5
7680
 
ngn
I see
@FrownyFrog Thanks, it's a bit more clear now. Do you use the J interpreter from GitHub? Yesterday I tried but couldn't compile it.
 
I use the installer
oh you mean on linux
I don’t remember what I use on linux but it’s also precompiled
oh there was a shell script that installed it
 
ngn
@FrownyFrog yep, linux. ok, never mind, tio is great :)
 
the only problem with tio is regex
it doesn’t work
 
ngn
8:01 AM
@FrownyFrog well, I'm a beginner, I can live with that
 
ngn
moderate success! It turns out I was running the wrong build script before, from the wrong working directory (how could I know?). now it builds except for the linking step
 
moderate congrats
 
ngn
I'm using blakemcbride's pull request
@FrownyFrog :D
 
apparently won’t be merged
the repo is just a mirror
maybe they migrated, I just read what it says here
 
 
2 hours later…
10:19 AM
0
Q: Apply a function to a random row of a matrix

Ian MartinI have a 5x5 matrix M and a function f that operates on vectors. r ← ⊃?⍴M is the index of a random row of M. I need to return a modified version of M without direct assignment (it's important for the larger program) where f is only applied to r⌷M. I'm doing this by mapping across M's rows, return...

 
 
11 hours later…
9:23 PM
0
Q: API Platform returns type error instead of validation error when passing null to a string field

James CrinkleyI'm using API Platform v2.2.5, and in the process of writing tests for my resources I've discovered that, when null is provided for a field of type string, an error response is being returned during the denormalization process, which includes a non client-friendly message and a stack trace. This ...

 

« first day (458 days earlier)      last day (2214 days later) »