« first day (3997 days earlier)      last day (845 days later) » 
00:00 - 19:0019:00 - 00:00

12:05 AM
I love how x == 1 && x == 2 can evaluate to true in JS
 
maybe ?= could be assign-unless-defined lmao
 
@RedwolfPrograms w...
Is that because of == jank?
 
Did you do some weird stuff like hacking the equals operator so it always returns true or something?
 
12:09 AM
And it's Redwolf, not Hank
@DLosc No operator overloading in JS
 
@RedwolfPrograms autocorrect
 
lol, kinda janky it doesn't know the word jank
 
can't even guess how you'd express that in js but it's probably the same principle
minus the explicit overloading of equality
 
@RedwolfPrograms so what have you modified to make it evaluate like that?
 
12:13 AM
Oh goodness
 
...that is much worse than i expected
 
I used window for those screenshots, which is even more cursed, but since it's not available in Node I figured I'd share this one
You can actually use this technique to add "keywords" of a sort to JS
Make something like window.print_x a getter that prints the current value of window.x, and you can just type print_x; anywhere in your code to do so.
That's how that google text adventure game works
They did this with window.walk, window.look, window.use, etc.
 
@RedwolfPrograms we always ask "can something be done". We never ask "should something be done"
Because in this case, the answer is most probably no :p
 
You can use this to make x == x false, which would be way more fun if NaN didn't exist
Something about old technology that's just charming. Reminds me of a colleague who loves telling the story of how they used to do normalized numerical integration by cutting the curve out of a chart plotter sheet and weighing the area of paper under it. — J... 59 mins ago
Wonder what my Calculus BC teacher would do if I showed up with a roll of paper, some scissors, and a hyper-accurate-scale on exam day
 
@RedwolfPrograms ^
 
12:32 AM
The built-in ban and multithreading ban have been removed from High throughput prime numbers
(In case anyone downvoted for those reasons)
 
@RedwolfPrograms Brachylog v1 is basically a failed attempt at making Brachylog a thing, Brachylog v2 is the "successfull" attempt
Although the basic ideas are the same
(One of the major reasons why Brachylog v2 is infinitely better is that it's all written directly in Prolog, whereas Brachylog v1 had a Java transpiler that transformed Brachylog code to Prolog code)
tl;dr Brachylog v1 is completely useless and irrelevant
 
12:56 AM
@RedwolfPrograms IMO, the challenge premise is flawed
 
Yeah, but if anyone downvoted for the built-in or multithreading bans specifically, which I wouldn't be surprised by, can't hurt to let people know it's been updated
 
The fizzbuzz version worked so well because fizzbuzz is inherently based on the patterns in the natural numbers. Primes, famously, have no pattern to exploit, so a prime based version was never going to work
@RedwolfPrograms oh yeah, I 100% get why you brought it up, Imm just using that to rant ;)
 
I think this will be interesting though
With FizzBuzz, there's very little computation needed
It's almost all I/O
 
I think it's a worse version of codegolf.stackexchange.com/q/74269/66833
The only differences are that the input is fixed in the newer one (which is basically meaningless), and that it's outputting a count, rather than a list
The fundamental task - "identify the primes in a range as fast as possible" - is the same
 
Is it close enough to VTC?
 
1:02 AM
I would, especially because I don't have a hammer
 
when the question is closed for needs more focus
 
I don't think it needs more focus
 
@RedwolfPrograms this question needs more focus
 
Oh, I thought you were talking about the primes one
 
primes?
 
1:05 AM
The one we've been talking about
 
@cairdcoinheringaahing I think it's a better one
 
0
Q: Next Greater Number

DialFrostThe task: Given an integer n, find the next number that follows the following requirements The next greater number's digits have to be greater or equal to the next digit e.g. 1455 1<4 4<5 5<=5 The next greater number has to be bigger than n This is code-golf, so shortest code wins!

 
3 hours ago, by Fmbalbuena
Challenge: print regex that checks the divisibility of input number
 
This one has a better scoring method, no built-in ban, and being newer, someone more likely to be around to run submissions for official scoring
And the 64 KiB rule is more elegant than the no-hardcoding-above-19 one IMO
(And a lot more observable)
 
@NewPosts Oh yay, now I have to do an explanation on mobile :/
 
1:15 AM
@cairdcoinheringaahing only 6 bytes to explain? I've had to explain longer on mobile.
 
@NewPosts I'm stupid, this code don't work
still debugging
@cairdcoinheringaahing what is chameleon challenge?
 
@Fmbalbuena Where a challenge appears to be about one thing, but is really about another
For example, if a challenge was "Do X. Shortest code wins. If you can't do X for a large input in under 10 seconds, you're disqualified" it appears to be a code golf challenge, but it really a fastest code challenge
@lyxal Yeah, but I'm a better golfer ;P
 
@cairdcoinheringaahing or "Do X. Shortest code wins. If there is whitespace, you're disqualified" with , Right?
 
Basically, yes
If a challenge isn't a plain , it should make it clear and obvious what the catch is
 
@RedwolfPrograms let's collaborate!
 
1:26 AM
What is AGTCGTAGTCATGTCAGTCGATCGATCGATCGATCGTACGA?
 
@Wezl-acautionarytale Here, I made a room for us to plan rickrolls in: youtube.com/watch?v=dQw4w9WgXcQ
 
@cairdcoinheringaahing And print that but 10000 chars?
 
@RedwolfPrograms Here, I made an actual rickroll planning room: chat.stackexchange.com/…
 
1:33 AM
Suuure :p
 
chatstackexchange.surge.sh/rooms/4398/rickroll-planning
 
@cairdcoinheringaahing only when you read the challenge specs correctly
Imagine leaving a golfing suggestion to "print 2014 without numbers in your code" that contains numbers in the code.
 
I say nothing about my reading abilities, only my golfing abilities :P
 
In other news I'm now 3rd on the most frequent voters of all time list
 
1:48 AM
👏👏👏
 
Hey all, quick question: is taking input as a list of digits always acceptable when a problem specifies integer input? I feel like I've seen conflicting information surrounding this
 
I think it is unless otherwise specified
 
For instance, codegolf.meta.stackexchange.com/a/18097/97916 seems to imply we can, but it's not highly voted and I haven't been able to find other discussion regarding this
And the other part of it is that I often see people not taking advantage of this when it would reduce the size of their programs.
So I always feel reluctant about using it myself.
 
@chunes that could be because they don't think/know to
I didn't know that was an acceptable default - I usually ask first if I think a list of digits is acceptable
Now I know it's allowable by default
 
Reviewer: Excellent, 8/10 from me
Rating: 2/10
I don’t get how people can do tgat lol
@chunes 5 upvotes seems okay to me
 
1:57 AM
It's 6 now heh
 
Make tgat 7 :p
 
(8)
 
Cursed emoticon
 
Wow TIL my state government's covid check-in application has app trackers in it
 
very nice
 
2:03 AM
Not as much as reddit or other apps
But still, it was caught by ddg's app tracking blocker
Also, frick you imgur for tracking me when you send notifications
Like I don't even use imgur and it tries to send data to Facebook and Amazon
 
It’s everywhere these days :(
 
In less than 14 hours, 874+ tracking attempts have been blocked
 
When I saw this in HNQ I thought it was history/skeptics lol
@chunes Also this
 
at this point, there are two browser extensions that are bare minimum requirements for me when I use a web browser: ublock origin and noscript
unless it's a browser like w3m, and in that case it doesn't load or understand the garbage
 
2:33 AM
22 hours ago, by emanresu A
user image
The rest of the question
 
2:50 AM
Which software is this? Looks like it was made without any css or js lol
 
Something called webassign?
 
That font reminds me of mathsonline.com.au
And when I hadn't learned trig so I just guessed which buttons to press on my calculator
And thinking of school memories has reminded me of all the times I climbed through the windows of locked classrooms to open the door for everyone before the teacher arrived
And there was also this one door you could open by sliding your id card between the door and the lock
Opening it when it was locked became a "party trick" of mine lol
Have I told y'all about the time I was called to go to the IT office with the principal because a teacher saw me mucking around with developer tools and changing the text of websites and thought I was hacking?
 
3:06 AM
HAX
 
Because that's a thing that happened to 14 year old me
 
I learnt how to do that at age 9 :P
 
I learnt it at about 11, but the funny story happened at the age where teens are usually the edgiest
 
3:41 AM
@emanresuA Throw them a curve ball and say that x is a point in the range [3-ε,3+ε] for an arbitrary real ε>0
 
3:55 AM
@lyxal What happened? Were you charged for cyber crimes? :p
 
@user the it guys just laughed because they knew what dev tools are
 
@emanresuA Imagine being a hacker at age 9
Made by textadveturesinpowerpoint gang
 
I remember when everyone at my school simultaneously discovered developer tools and had a 100 in every class somehow but not when you reload
Is C# .NET the same as C# (.NET Core)?
 
I think so yeah
They renamed some stuff but I think they’re the same
 
4:15 AM
Python has the most answers of any language on the site at around 13250, followed by JS with around 9300, then, as far as I can tell, Jelly's third place with about 5300. After that it gets pretty close.
 
@lyxal LMAO
 
Is this from a data.se queey?
Because I would like to see it
 
@lyxal this reminds me of 2 months ago
ok my friend just dm'ed me one day, saying bro, am i safe from hacking. I am like, who is trying to hack you and how? He said, bro i have enabled 2fa on my gmail and discord do i need to worry? I said no, and then he proceeds to say that my classmate is threatening him that he will hack his computer using Notepad++
i teased my friend a lot that day lol
 
Let me guess, the classmate is 14? :p
 
yes
all of them are my age
well not all but most
there is a short boy, who is 15
 
4:27 AM
How short?
 
They ruined #404 by having an actual podcast
> delete your computer because it uses macOS and macOS is bad
 
so you use macos
MacrOS : New OS made by Marc, only made with Rust macros
 
4:59 AM
@thejonymyster For trivial edits like that, just comment
 
5:25 AM
-1
A: Default for Code Golf: Input/Output methods

TheDoctorPrograms may use the camera and microphone I wouldn't expect to see this very often, but it could be applicable to my upcoming challenge.

 
6:03 AM
ok so i contributed to 2 termux tools ok now my explore is filled with hacking stuff and people who are following other hacking acocunts are also following mine
i am not a hacker i am a noob who programs :/
 
6:35 AM
@emanresuA ooh, and I'll make them inclusive for no reason. I like it!
 
Even better, make it have lower associativity than +
 
@user The hack I used for this is, to easily call Python functions from C, is to assume that the Python function is stored in the sys module, and get it using PySys_GetObject("attr")
    PyObject *compose = PySys_GetObject("y_compose");
    if (compose != NULL) {
        PyObject *result = PyObject_CallFunctionObjArgs(compose, o, key);
        if (result != NULL) {
            return result;
        }
    }
 
> not as easy as pxeger made it out to be
 
@UnrelatedString I could add that, as =?, but also ?= which evaluates x ? expression (so, evaluates expression if x is not defined)
@RedwolfPrograms can't you do it with global instead then?
@DomHastings so are they a bit like macros? That's actually a pretty cool feature
Oct 21 '21 at 8:39, by pxeger
TIL Python has a built-in range syntax! https://ato.pxeger.com/run?1=PY5BasMwEEX3PoXIaqaoIlkUioOz7Am8C0Eo9kg12JIZTQIm5CTdZNNeoWfptiep3YYuPh_e58-ft49xktcUb1_fLXlVg9cPFstC-cQqqi5CKCtvvA19Oro-YxkaE0gskyemKBl8n5wYa9uuEWtxvz7s46GSaSSIGlBfVtYuDbsqezccW6dafdZSsouBoIsCZ9Rh7uAVAQvFJCeOqi66YUwsKjQ6T3k7y2QSYdcQ1Lh9qRayXPbsBoKZzG_-xjaNTWop639SbXZrXb-fxD8-f7Kq1FMx8jLdd1lgYwwj_qW3u939Bw
no ctypes required!
 
I remember that
 
6:47 AM
oh that's clever
 
@emanresuA do you still stand by this?
And what are other people's opinions on switching to arrays of numbers?
 
7:11 AM
in fact, I'm probably gonna post this today, so I'll ask for general feedback
 
7:34 AM
@pxeger it works because it checks for each object present in the garbage collector and adds an attribute to it right?
@pxeger wat?
 
@pxeger Yes :P
 
8:20 AM
@PyGamer0 no, it uses the garbage collector only to modify the dictionary of the float type
 
8:35 AM
TIL Safari screen time limits don’t block iframes
 
9:11 AM
@pxeger so technically i can modify any type with this right?
 
9:50 AM
@pxeger yeah, I'm not even sure how useful it is in day to day, but basically, my understanding is that the lvalue flag means the returned variable can be set as well as read. I don't know how much real world use it has, I haven't done any real Perl in years now! I thought it was interesting that technically you could have bareword vars in Perl if you wanted! Perl's quirks are many!
 
There is x, a built in operator that’s alphabetic - I don’t think many languages have that sort of thing
 
 
2 hours later…
12:21 PM
Yeah, which is annoying if you want to replicate a bareword! I guess they just needed to choose something non-mathematical to prevent confusion when using numbers in strings? The symbol variables still blow my mind, after all this time using it!
 
1:02 PM
 
just make it so that a is just a single dot, b is two dots, c is three dots and so on
 
:/
i finished the lower case ⍺bet
 
like that
10/10 font design
the things I do at midnight
o/
 
o/
@lyxal you reinvented braille lmao
 
@pxeger Oh wow, that’s really nice!
 
1:20 PM
ok finished the capital letters
 
2:19 PM
0
Q: An answer for the fibonacci series that doesnt want to work

TJC GamesI have an answer for the fibonacci series problem in hexagony that is only 61 bytes, but code.golf rejects my answer ))')).............../{\/{\)))/=.(\=.+\\*{/..==..\>{;"!<.({("/ https://hexagony.net/#lzN4Igxg9gJgpiBcICUSDkKB0Xs9wemAB1CDiUk8BeDACmOoGpjiAqYPLS6jYgPmADchEAEIAPLWB0QeEABoQASwB2ABwCuA...

 
This is the second time someone asked a question about code.golf this month
 
 
1 hour later…
3:36 PM
Scala can do it with less code :P
 
@PyGamer0 is that a new font you're developing?
 
4:01 PM
@user 21 bytes in Ruby: ato.pxeger.com/…
 
Ooh, nice
 
Is $. some predefined variable that's magically available?
 
yeah, $. starts as 0
16 bytes in C: Try it online!
 
That's evil
 
4:10 PM
You're welcome
 
Uh...thank you?
 
Please
Good morning
 
@mathcat yeah
 
name?
 
why?
 
4:15 PM
do you have a name for it already?
the font
 
yeah, if you want you can suggest a name
 
no I'm garbage at thinking of names
 
the name is oxyle
 
nice
 
also i have fever now
i think its the vaccine
 
4:18 PM
F
 
@mathcat i already have made minefont
@user its 100.4°F
 
somehow I'm not able to open the kbits file
 
@mathcat use BitsNPicas
or just grab .ttf from releases
 
looks cool
 
just ignore a mistake i did
all glyphs are 7 pixels wide, with 1 pixel padding on either side
and in minecraft its 6 pixels with one side padded
although that should be fixed with oxyle
making fonts, whether bitmap or vector, is VERY hard
 
4:30 PM
I tried to do it once but didn't succeed.
 
4:42 PM
w = -1
 m = n = input ()
 for i
in[1] * len (n):
for i
  in m[::-1]:
if w
    == -1:m = "";
     w = int (i);
continue
 if int (i)
   >
    w:
    m = i + m
  else
:m = str (w) + m
 print (i + m)
hmmmmmmm
 
5:27 PM
@wizzwizz4 hey i have a question
 
@Fmbalbuena Okay.
 
@Fmbalbuena I don't, but I'm good at guessing.
Adám is the one to talk to for that.
 
6:02 PM
Why was this closed? I mean, it's not a very good challenge, but I don't see in what way it focuses on more than one problem
 
@pxeger It's poorly specified. The description doesn't describe what they're asking for.
 
I VTCed as needs details and clarity
 
What clarifications do you want? And why did nobody comment and ask?
 
> The communication has to interactive. Means the program needs to output as soon as possible and has to accept more input after that.
This isn't clear to me
 
It's perfectly clear to me
Start waiting for input to arrive, and as soon as it does, write output, and then go straight back to requesting input and waiting for it to arrive
 
6:13 PM
@pxeger Could you edit the question to say that instead? That makes hugely more sense.
 
@user Functions feel kinda cheaty, even though it doesn't look like you're calling them
 
6:45 PM
...honestly i'm tempted to say that calling 0-argument functions without parentheses is actually more worrying than being able to do something funky with properties of a global object
unless you have sufficient laziness that that doesn't stop you from passing 0-argument functions into other functions to be called conditionally
 
@user No, from my language ranking program
I just ran count JavaScript, count Python, count Jelly, count Perl, etc. in the final stage
 
So... almost done?
 
@pxeger Yes, but then it doesn't work for the browser :p
 
globalThis then
 
@emanresuA Well, sort of. Once the final stage of manual review is finished, I still have to add the actual language ranking part, and I still need to do a lot more work since the code for stage 2 and final one are both very messy
 
6:57 PM
@pxeger yeah
 
use let window = window ?? global then
 
19 hours ago, by Unrelated String
maybe ?= could be assign-unless-defined lmao
19 hours ago, by Unrelated String
...that's another idea
backward versions of every augmented assignment operator
 
@pxeger Yeah yeah, I just went with with because it's also pretty cursed
 
But it's not available in strict mode
 
Strict mode is also pretty cursed tho
Putting a string literal at the start of a function in order to make it do different stuff is like...very cursed
 
00:00 - 19:0019:00 - 00:00

« first day (3997 days earlier)      last day (845 days later) »