« first day (3617 days earlier)      last day (1523 days later) » 
00:00 - 08:0008:00 - 00:00

08:51
Wow so apparently this site is almost a decade old
TIL
@HyperNeutrino no
@Bubbler Unfortunately, I'm scheduled to run out of rep:
@HyperNeutrino E=1, W=-1, NW=i, NE=1+i, SW=-1-i, SW=-i smh
@Adám Well, that doesn't mean I can't solve problems (and actually I'm willing to give out the APL bounty in case you're out of rep)
@ASCII-only eh, I prefer the former. Either works though.
09:02
NE=1.73+i :p
3
too bad arbitrary floats don't form a group under addition
i cant math
too bad sometimes a + b - b != a in floating point arithmetic
1.75 and call it a day
@JohnDvorak neither do integral floats so its probs a moot point
09:08
integer floats work just fine below 2**50
09:26
@JohnDvorak i mean. same with 1.75 to 2**48 (not 1.73 ofc)
0
Q: End of Year performance review

Matt BartlettWe here at "Behavior Analytics Inc." have been tasked to help a very important client under take an end of year performance review of his catchment area, which at the moment covers.... the whole planet. He currently holds data on all everyone within the catchment area, supplied to him by our sist...

10:14
0
A: Sandbox for Proposed Challenges

pxegerExplain a Code Golf Answer code-golf string Background When writing Code Golf answers, it is often a good idea to add an explanation of the code so the reader understands what's going on. For example, this this answer by @Makonede (abridged): θ # last element of Σ # the input, s...

 
1 hour later…
11:19
@ATaco JavaScript, 15 bytes: x=>y=>~-x%~-y+1
if(!#undo.stack)return
var u = undo.stack:pop()
Spot my huge mistake
Returning a Variable declaration? Sure, why not.
11:51
i'm taking another crack at day 20 and it's going even worse somehow
i think it's sleep time
12:03
yeah on the example it's putting 3079 and 2473 on either side of 2311, then giving up
giving up???
i'm doing some funky pathfindingesque shit where it dynamically grows the grid outward, keeping track of what tiles it hasn't grown from yet
and it's just running out of those tiles
i don't have any idea how the borders are matching this incorrectly
day 20 oh
@UnrelatedString you do reflect when needed, yes?
 
2 hours later…
14:07
@WheatWizard Do we really need the on the Sandbox? With the infobox on main, it's kinda superfluous
14:42
@cairdcoinheringaahing It wasn't showing up on main for me so I featured it again.
 
3 hours later…
17:36
Taking another stab at part 20.
hello all
how things?
17:56
@ASCII-only oh :c oops
For day 20, rotate-then-flip is the same as flip-then-rotate, right? Just want to make sure I'm not going crazy.
18:12
@RedwolfPrograms no
Oh. Guess I need to rewrite a bunch of stuff :p
Actually I don't, it seems like rotating the other direction then flipping gives the same result, as does flipping in the other direction, so it's like a XOR thing. Switching either one transforms it in the same way, but switching both keeps it the same. or something like that.
I have no idea anymore but I think what I wrote won't cause my laptop to catch on fire so it's fine for now.
If you alternate transform/zip and flip, you will generate all 8 orientations
Okay good, there are still only eight?
Yes. The top edge has four positions and then the left edge must be beside it so that doubles the number of cases, and everything else may be determined by the placement of those edges.
Okay good, everything I wrote up until now is still correct. Thanks!
18:20
pog :D
18:35
All of the input is now in a usable format, and I can determine which are corners and edges!
I can even make some assumptions about how tricky the input is(n't) by looking at this
18:51
Cool
anyone here able to code in Julia? I am trying to translate some Julia code into python ~(and eventually cython).
I would love some help please
 
2 hours later…
20:25
Anyone have any opinions on my sandbox post? Specifically do you think it's a duplicate of this challenge?
I'd say just related, not a dupe.
could someone help me out please. How can I compute x + y?
Even though the title/purpose are very similar, the actual task is very different
the triangle is equilateral and there is a square inside it
I feel this is meant to be for 11 year olds :)
@pxeger Yours is range parsing + formatting. The other is sort order parsing + formatting, with the formatting part being identical. It is a good idea to isolate the core of your challenge, i.e. the range parsing, but then it ends up being a duplicate of this. So in conclusion, it isn't a duplicate of any one challenge, but it is a duplicate of the two together.
20:30
@Anush You may want to ask in a math chat room. I know there's an easy way to solve that, I just can't remember it.
@RedwolfPrograms but everyone in here is lovely and helpful :)
Without any angles for the big triangle I don't think you can solve for x and y.
Oh, it's equilateral?
yeah, 60
In that case you know one angle on each of those is 60°, and that the other two sum to 90°
@RedwolfPrograms What do you mean by "the other two"?
20:34
The other two in the triangle formed by the sides of the square, x/y, and the corner of the outer triangle
Wait that explanation makes no sense
Wait yes it does nvm
@RedwolfPrograms the big triangle is equilateral
If we label the angle by x that isn't 60° as w, and the one by y as z, we get:
x+w=120
y+z=120
w+z=90
x+y=150
@RedwolfPrograms yes I can see the sum of the two angles to the and right of the bottom of the square is 90
I think I got it. Let's call the angles to the left and right of the middle bottom point a and b
we know a+x+60=180 and similarly we know b+y+60=180. We also know a+b=90
so we have a+b+x+y+60 + 60 = 360
therefore 90 + x+y+60=360
therefore x+y = 210
does that look right?
grr
how come?
(fixed arithemetic error)
20:47
@HyperNeutrino What happened to the AOC challenges you were planning to do?
Wait, so x+a=120 and y+b=120 and a+b=90, so a=-b+90, so x-b+90=120, so x=b+30, and y=-b+120, and x=b+30 can be written as -b=-x+30, so y=-x+150, so y+x=150
But your above one with x+y=210 also looks right to me...
Wait no, you left out a 60 between your steps.
a+b+x+y+60+60 should become 90+x+y+60+60, not 90+x+y+60
I don't think we have the information we need to find x and y individually, though.
@Anush ^
@Anush this is ezpz x+y=150
@ASCII-only Why? That doesn't match either of our answers.
wait no
im high
@Anush this =300 not 360. @RedwolfPrograms is right
but yea we don't have enough info to know them invidually. you aren't given any info about the rotation of the square
21:38
0
A: Sandbox for Proposed Challenges

Gio DBased Palindromes A palindromic number, as a refresher, is any number which reads the same forward as backwards. However, what about palindromes in other bases? Input Any integer where b > 1. Output All integer base 10 numbers below 1000 that are palindromes in base b. The output can either be a ...

@cairdcoinheringaahing by the time i remembered that it was too late to finish them up and i was busy
finals
22:05
Thanks very much!
No problem!
22:32
@HyperNeutrino Next year maybe? :P
Oh, hey @Mr.Xcoder! Haven't seen you here in a while :D
I can't figure out why my day 20 p2 isn't working :/
@cairdcoinheringaahing Hi there, and merry Christmas! :-)
@Mr.Xcoder Merry christmas to you too :)
@RedwolfPrograms ur a smol brain is why
Oh, and also:
Merry Christmas everyone!
(depending on your timezone)
22:36
merry christmas everyone
anyone not on christmas day right now dont deserve the merry christmas
I should go to bed, I have an intense work day tomorrow…
@Adám My mind is trying to choose between "joke", "actually has to work" or "has young children" :P
I actually have work to do. I'm preparing a workshop with a colleague, and it has to be done by mid-January. I guess he doesn't keep xmas. I certainly don't. The reason it'll be intense is because it is both a winter Friday (so I have to rush to get ready for the Sabbath) and because it is a fast day (no food or drink at all).
23:03
Can anyone help me figure out what's wrong with this? It uses a lot of custom functions/methods but they're all easy to explain. (It's my current partial solution to day 20 part 2 and it's doing some really weird stuff).
/me silently scribbles over "javascript" in CV
4
To be fair that is using 105 sloc of custom predefined array and string methods :p
@RedwolfPrograms I want to talk about how this message isn't a topic on your chat bio even though it is.
Because this statement isn't true
Is this sentence true?
23:15
But seriously I think my code is just messing with me at this point
It's not doing what I told it to.
Basically it's supposed to:
1. Get a list `blocks` of the tiles in the input
2. Make a list `forms` with every possible transform of each block, represented as `[transformed source, index of original tile, list where each edge is represented by the number of original tiles which share an edge with it]]`
3. Create a list `form_sides` which represents each item in `forms` as `[list of edges clockwise from top, index of original tile]`
4. Pick the first valid item in `forms` for the top left
5. Find all valid items in `forms` for right of and below the top left item, which isn't working
23:34
i give up. I have no idea why this isn't working.
Guess I'm not finishing AoC this year.
Five hours and I still haven't made any progress at all.
Yes
story of day 19 part 1
for me at least
It would have been a better use of my time to just print out pieces of paper with each tile and do it by hand
If it was just flipped or just rotated it still would've been hard. There's no way I can do this.
@RedwolfPrograms yes
It's sad that I can't overwrite the pop method of lists in python
Like if you try listobj.pop = some_function, it says no, you can't
Can somebody else explain their approach to day 20 part 2? I don't think mine's going to work.
why would you need to do that
23:41
@UnrelatedString because I'm making an esolang. Why else would anyone need to abuse python?
Hang on wait
Why do I even need to piece them together, can't I just count the number of #s and subtract the number that are part of the two sea monsters?
Does anyone know if this would work?
you probably don't have only two
Oh, it's not two in the one given?
you have to find how many by piecing it together
it is two in the example
I guess since it's a 96x96 result there's way too many possible numbers of sea monsters to just brute force
23:47
CMC: Given a Unicode character property, answer the characters with that property (according to any version of Unicode). E.g. given Lt, answer DžLjNjDzᾈᾉᾊᾋᾌᾍᾎᾏᾘᾙᾚᾛᾜᾝᾞᾟᾨᾩᾪᾫᾬᾭᾮᾯᾼῌῼ and given Pi, answer «‘‛“‟‹⸂⸄⸉⸌⸜⸠.
Can someone please just help me by telling me if my approach to fitting the tiles together would work?
what do you mean first valid for the top left
The first tile which is a corner
transformed so that it is a top left corner
yeah should work
I guess my implementation is just wrong
23:52
there's actually never any contenders for any spot
if one edge fits, that's the one
Wait, really?
totally
I...I just realized what my mistake was and I feel so stupid
Five hours of debugging
It's because I removed items from a list when I was done with them and it messed up the indexes
I made a dictionary "top edge" : "list of tiles"
the list is either 1 long or 2 long
@RedwolfPrograms soooo
23:59
so there is usually a contender, it's the tile you already placed
You got day 20?
not yet
Okay, it's finally giving me actual tiles instead of empty arrays!
00:00 - 08:0008:00 - 00:00

« first day (3617 days earlier)      last day (1523 days later) »