« first day (4854 days earlier)      last day (287 days later) » 

00:05
@lyxal Ooh I just noticed I got that notification at the same time you did lol
nyt eating bugs fr
TIL Amazon themed Canvas?!?
@Seggan Tbf the people I live with aren't family either :p
@user Turns out I needed to do is None not == None
'cause Python lets things be all woogly
oh yeah
python do be like that
is None is how you check for None
yeah
okay i thought i clearly remembered the challenge being exactly this with pipes and all but maybe i'm just thinking of this
00:20
@RydwolfPrograms Oh, that makes sense, you can override __eq__
Does None == foo work?
is None is the pythonic way to do it though
@RydwolfPrograms Not to mention the fact that people keep using me as a scapegoat for all the mistakes they make
User error my ass, it's a you error and you know it
@lyxal Yeah I was just curious if Mypy understood that None.__eq__ would work
There's whole fields of study dedicated to you too
God, I hate those creeps
Must be invasive dealing with all the "user experience" people
00:23
I do not want people interacting with me
you enjoy it
otherwise you wouldn't do things like sneak into my word documents
See those are interactions initiated by me
@user besides, you literally gave me permission to blame you
I don't want other people studying user interaction
@lyxal That comment wasn't directed at you
ah
do I get a blame pass?
00:26
I'm fine with being blamed for Australia's wildfires and all the death and destruction they cause, I'm not fine with being blamed for people entering invalid input or whatever
@lyxal Sure
:D
You can git blame me anytime
I'll make sure to blame all input failures on you
I'll also make sure to blame you if using the Play framework for my uni architecture assignment goes wrong :p
given you introduced me to Scala and all it entails
Oh hey Play finished the Pekko migration, nice
@lyxal "all it entails" sounds so ominous
00:40
It's not as if all Scala programmers eventually spiral into depression and offer themselves up to Lord Nyarlatothep to power the Scala compiler
01:00
Sandbox posts last active a week ago: Anti Tic-Tac-Toe
...is moin a misspelling of main in this wiki.python.org URL? wiki.python.org/moin/Generators
Oh wait no apparently it's just the platform they use to host the wiki lmao
ooh you're getting into generators
those are some of the best things
01:24
Super cool, but also super weird
and potentially funky
and not always easily portable either
wait how does a builtin python feature get unportable
when you start doing funky mutation/state related things
portable to other languages I mean
@lyxal fwiw there is a library to add algebraic effects to Scala
Only it's not maintained anymore, afaik (the designers created a whole language: effekt-lang.org)
01:35
even then, a simple 22 line python generator becomes a nasty looking 69 (nice) line lazylist unfold
which requires a Tuple5
([BigInt, Option[BigInt], Option[BigInt], BigInt, BigInt])
No I mean, with algebraic effects, you basically get generators
do algebraic effects add suport for continue and break?
You can already do that (jankily) with exceptions
Well that's the bloat part
It makes the 22 liner a 69 liner
The lyxal I knew would've considered that a pro
Who even are you?
02:01
What do color on sandpile.org mean? e.g. #E0C0C0 mean unavailable on x64, #B0D0D0 mean only on x64
02:13
@user code golf trumps funny
It's what we (are supposed to at least) do at the end of the day
 
2 hours later…
04:12
@lyxal Pish-posh, next you'll tell me the goal of chess is winning so I shouldn't take every en passant I see
Funny you mention chess
I'm currently designing a neural network to play a chess variant
Ooh, what's the variant? (and the network?)
My friend in comp sci made a game he calls "cursed chess" (a lot of the cursedness was discarded as it actually became playable), which features merging pieces pretty heavily (there are 59 distinct pieces possible as a result, ~50 of which are slightly different combinations of the basic ones)
Ooh
And his approach to making an AI to play it with more traditional means wasn't very fruitful, so I'm basically making a ghetto-AlphaZero for it
04:14
Knook?
It takes some brain wrapping to understand the merging rules, but once you get them they make sense. Basically, every mergable piece has a "base" piece and possibly others which have been merged into it. So if you move a knight onto a bishop, you'd have a base knight merged with a bishop. Then if you move that onto another piece, you add its base piece (and only its base piece) onto the one that moved
There are special cases for pawns (and a variant of pawns, "flankers"), which turn into various levels of "scouts" (which, at level 3, can eventually move in a 5×5 grid arbitrarily), knights which merge into "smilers" (knights but 2-4 instead of 1-2), and rooks merge into "catapults" (only move side to side, can capture ahead a fair distance without moving to the captured space)
I love when you start reading an article and the grammar is terrible but from the first sentence you can tell it's gonna be extremely useful
@user why would I do that?
It's literally the rules of chess
I can't tell you to just break the rules of chess
6
A: Sandbox for Proposed Challenges

Dannyu NDosDisplay integer in balanced base-ϕ Objective Given a positive integer, display it in balanced base-ϕ numeral. ϕ is the golden ratio. Balanced base-ϕ Unlike the usual base-ϕ that uses 0 and 1 as digits, balanced base-ϕ uses 1 and -1 as digits. -1 is written T as a shorthand. To ensure uniqueness o...

This edit is just a duct tape but whatever
04:34
my respect for svelte just went up 2 million percent
on the home page, they have an examples section
nothing special
but clicking on the more examples box leads to something I wasn't expecting at all
> Dynamic Attributes
@RydwolfPrograms I see, interesting
 
2 hours later…
06:45
svickrollte
 
4 hours later…
10:35
CMC Given a list of numbers, reduce them in any order using only the "absolute difference" operator until only one remains. Output the highest possible final result
Basically 24 game but only operator is absolute difference and goal is to get the biggest number, not 24
11:06
@mousetail Different to max(A)-minabs(A-{max(A)})?
11:23
@l4m2 I don't understand what you mean
 
1 hour later…
12:26
0
A: Sandbox for Proposed Challenges

None1Win in a ball removing game This challenge is interactive. You need to win in a ball removing game. Rule The rule of the game is like this. You have N balls in a row, numbered 1 to N, your program and the user will take turns to remove one ball or two consecutive balls, if a player can't remove, ...

13:17
hello people who have used chat for way longer than me. is there a way (setting, script, extension, whatever) to have a count of unread messages next to the names of the chats in the main page, and/or when I open a chat?
there's a button to load the transcript up to your last message :p
but that's it
tbh even a "there are unread messages" flag would be fine
if you keep the tab open it shows unread messages in the title
I just want to know if there's new things to read or not
@Ginger I guess that's better than nothing but most of the time I can't have all the tabs open (on my phone they unload after a while)
23
Q: How did White lose all their pieces?

Tim SeifertRecently, I have been dabbling in composing a few retrograde chess puzzles. This one, I feel, turned out quite nice: In the game leading to the position below, White somehow lost both their rooks and knights. For each of them, can you determine where they were taken and by which piece? (Bonus po...

I fed them to ginger
that's how
13:30
what did I do?
well the question asks how did white lose all their pieces
well that's because I snuck them into your food rations while white wasn't looking
eated
yep
silly nerds doing logical thinking
they don't know what's really going on
it's that simple
probably not what you want to be showing right now :p
13:35
44
Q: Cloudflare is asking for human verification on SE API requests, which blocked flagging by SmokeDetector/metasmoke

MakyenToday, SmokeDetector/metasmoke was unable to raise either automatic or manual flags due to Cloudflare asking for human verification on the SE API for a significant period of time. The response from Cloudflare we saw, multiple times, when we attempted to use the SE API to raise flags was: <!DO...

:screm:
> Legitimate API requests should never get a human validation gate from Cloudflare.
and is my reverse-engineered login code "legitimate"? it's certainly required for my bots to work
that's the official SE API though
smokey has to do exactly what my bots do in order to use chat though
I have forwarded this internally. Hold tight as I get more information please :) — Bella_Blue ♦ 23 hours ago
that's about as good as it gets
ugh, I guess
esp given that there's more pressing concerns in the SE world right now
like fighting the current wave of self-vandalism on posts across the network
@Ginger the question is about raising flags through the SE API for main sites
14:40
@RydwolfPrograms since when has Python had a wiki
@RydwolfPrograms Multiple books on python that I own specifically mention that "moin" is not a typo
14:57
@RydwolfPrograms wait going off what, just "he/him"? since your chat profile's are actually far from golfy if you also include the "they/them" being also fine as part of the bytecount :P
0
A: Sandbox for Proposed Challenges

badatgolfIs this a slovable Numberpile? Challenge Per Wikipedia: Numberlink is a type of logic puzzle involving finding paths to connect numbers in a grid. The player has to pair up all the matching numbers on the grid with single continuous lines (or paths). The lines cannot branch off or cross over eac...

@Ginger (1) fair enough :P (2) oh damn it's been that long already? insert caird time quote (3) saw that already, wish I could say I was surprised or disappointed (4) nice (5) not nice (6) nice
@lyxal For the sake of harmonising the starboard, maybe edit this to say "We just dropped the sand trap for good"
Status completed but differently
New: Sand Trap just dropped
15:32
status completion just dropped
New status just dropped
status dropped: "Just new"
Fun fact: APL has a built-in called "drop"
15:56
my guess was that it removes an element from an array, which seems wasn't too far off from being correct lol
Rust also has a builtin called drop, which just deletes something
16:10
Actually, APL also has something called )drop which deletes a workspace file.
Does it also have the counterpart "forget"? In Rust that deletes a reference to something but doesn't clean up the actual thing. Though not sure what that would mean for a file
No, despite its age, APL never forgets anything.
 
1 hour later…
17:42
So it's an elephant?
No, that's PHP.
or Gradle
o Wolfram Alpha now has dark mode
@hyper-neutrino okay fair :p
APL is an apple, and as you know, 24-based intake of those keeps physicians, including geriatricians, away.
18:34
reminded me of this SE Nitro panel for some reason lol
CMQ: is Brainfuck Turing-complete without [? I need to prove a point
do you have a proof of that? :p
without [, does ] just go back to start of file or something?
@Ginger there are no jumps possible otherwise
18:40
@hyper-neutrino you may assume that it does
18:52
0
Q: How to define a question that will attract "useful" answers?

Erel Segal-HaleviAfter some time of programming in Python, I have learned that many tasks, which previously I performed in several lines, could be solved in a much more succinct way by one-liners, e.g. these ones. Other languages, too, have such idioms, which make their code both shorter and clearer (to those who...

@RydwolfPrograms was rereading SE Nitro and this frame is wrong; Steffan was trying to stop me back in the JVM, not matchat
@NewPosts Ironic that one can research "Fair Division of Land" at Ariel University, located in occupied Palestinian territories.
19:38
@Ginger If ending it with a ] puts it in an infinite loop then yes iirc
20:01
... actually no you have no control flow
20:20
If ] were redefined to test the current cell and conditionally jump back to the beginning of the program, it might possibly be TC. If ] unconditionally jumps back to the beginning of the program, then it's definitely not.
@NewPosts Make it a popularity contest
wait does ] not conditionally jump
or does it always jump back and then [ may conditionally jump back to beyond the ]
I guess there's no difference UNLESS you allow unmatched ] to be valid, lol
Yeah, the usual definition AFAIK is that ] simply jumps back to the corresponding [
oh right I just remembered that the implementation I usually use involves something along the lines of making [ a while statement and ] just the matching }
And if you were doing it in assembly, [ would be a branch if zero instruction and ] would be a simple jump.
@DLosc ye
that's what I'm suggesting
20:36
My language Ouroboros uses a somewhat similar control flow mechanism, although it uses stacks for storage and has multiple execution threads running in parallel, so it's not a great point of comparison.
@DLosc By this definition Stack Overflow is a popularity contest, which is… about right actually
Even more pertinent to Code Review
21:06
@Adám PHP famously does have a lot of memory leaks
 
1 hour later…
22:30
What if they allow in x64 48 40 inc rax? Does it make thing simpler or more complex?

« first day (4854 days earlier)      last day (287 days later) »