« first day (410 days earlier)      last day (2237 days later) » 

1:56 AM
0
Q: APL Poker Game Scoring

cphoenixI've been struggling like never before trying to figure out a problem in APL which involves getting values and scoring them like a poker game. So I used CHARS⍸CAR3 5 29 30 8 29 23 5 34 34 33 2 34 3 34 6 10 10 15 6 15 15 Which is an integer representation of characters in "deck" of car...

 
 
3 hours later…
4:47 AM
0
Q: APL: how to search for a value's index in a matrix

z.rubiIn APL, matrices and vectors are used to hold data. I was wondering if there was a way to search within a matrix for a given value, and have that values index returned. For example, say I have the following 2-dimensional matrices: VALUES == 1 2 3 4 5 6 7 8 9 10 11... all the way up to 36 KINDS ...

 
 
5 hours later…
10:11 AM
@ngn you can also post that as an infinite bounty
 
10:56 AM
@EriktheOutgolfer Not infinite:
> submitted before 23:59 EET on 18 March 2018
 
 
2 hours later…
12:53 PM
@ngn is 24 bytes short enough? :) (yes, with the naming too)
0
A: An Ant on a Cube

Erik the OutgolferAPL (Dyalog Unicode), 24 bytes (Adám's SBCS) f←{i∊(-@3∘⌽⌽)/⌽⍵,⍨i←⊂⍳3} Try it online! Well, this is embarrassing. At least I tried to. The function is named f, and, in the test cases, 1 represents a left turn (boolean true) and 0 represents a right turn (boolean false). ⍬ represents the emp...

 
 
2 hours later…
ngn
2:37 PM
@EriktheOutgolfer No, mine is shorter than that.
 
@ngn it was more like a joke :P
 
ngn
@EriktheOutgolfer ah :) but seriously, if you look closely at the conversation we had yesterday, you'd be able to deduce a more precise upper bound for my number of characters
 
@ngn yeah of course it can't be the same as GolfScript, I just wanted to inform you I have tried it out :)
(and yeah I do remember that +5 bytes would still be <24)
 
ngn
@EriktheOutgolfer great! thanks for spending effort on group theory and on apl. that's what I wanted to encourage with my little bet :)
 
@ngn well, it doesn't really have to do with group theory, as there are 2 operators and they're unary, not binary :P
(go left, go right)
 
ngn
2:53 PM
@EriktheOutgolfer you're right, group theory is just the mathematical discipline that studies symmetries like that, but of course you can do without any formal knowledge about it - just with intuition
@EriktheOutgolfer by the way, in the dodecahedron variation (which is not covered by my bonus) it's much harder to come up with a purely intuitive solution
 
3:35 PM
@ngn your hash doesn't seem to be on any hash database, hmm
 
ngn
@EriktheOutgolfer did you expect to find apl characters there? :)
 
@ngn what kind of 1990s database doesn't support Unicode o_o
 
ngn
@EriktheOutgolfer yeah, but hash databases (rainbow tables?) probably focus on ascii...
@EriktheOutgolfer anyway, if you break the hash, you still get the 250 rep, as there's no way for me to tell how you arrived at the solution, but I suspect breaking the hash would be harder
 
@ngn you mean 500 rep
17 hours ago, by ngn
I'll award 500 reputation to the first Dyalog APL solution to An Ant on a Cube that is shorter than my own (sha1: 96e876b41df54e13c0f662c897e4e4def7a143c4, I'm not revealing the exact length) and is submitted before 23:59 EET on 18 March 2018. I'll award 250 if the submitted solution is of the same length as mine.
 
ngn
@EriktheOutgolfer 500 if you can make it shorter than mine
@EriktheOutgolfer (and still have it as a function, not a complete program)
 
3:41 PM
@ngn yeah, since I assume you were careful enough not to put your solution over a hashing website which stores it in a database :P
 
ngn
@EriktheOutgolfer why would i do that
next time i should salt it. not because it makes the hash significantly more secure, but because that would discourage people from wasting time on trying to break it
 
@ngn (AFAIK) salting wouldn't help you much. It only helps against dictionary attacks (who'd have an APL dictionary?) and batch attacks (here there's only one goal)
 
ngn
@dzaima yeah, that's what I'm saying about the technical issues around hashing, but there are also psychological issues
 

« first day (410 days earlier)      last day (2237 days later) »