« first day (2549 days earlier)      last day (2277 days later) » 
00:00 - 17:0017:00 - 00:00

12:09 AM
Does anyone know where I could find SVGs for this site's logo?
 
@ConorO'Brien What do you need it for? You might get away with the gradscript logo
 
@ConorO'Brien PPCG or grad script?
 
@Pavel I need the actual SVG >_>
 
How does this idea sound for a polyglot challenge restriction?: The submission must contain intermediate steps, and each step must work with only the languages that it is used with? (I'm bad at explaining)
@HeebyJeebyMan @DLosc @MDXF ?
 
1:07 AM
That would make it better.
but you should probably explain it better
 
Can anybody give me a good explanation? I absolutely suck at them.
@HeebyJeebyMan, were you Wheat Wizard?
 
Yes at one point
 
Anonymous
Oh man that explains a lot
 
Anonymous
Including the avatar
 
Yeah ... 'cause it gives me the HEEBY JEEBIES (hence the name?)
 
Anonymous
1:11 AM
Ok you get a pass on that one, because it actually wasn't terrible :P
 
:)
 
Anonymous
So for the Best Of competition, I'm going to be hosting a secondary, unofficial ballot that doesn't show the vote totals. I'm curious to see how having vote totals be public knowledge in the official voting influences the competition.
 
I'm not voting for anything for one reason: I can't vote for QFT
 
Anonymous
@Zacharý You know, the decision to keep QFT out of the competition was decided with the support of several QFT team members, right?
 
I haven't been paying attention to the other ones, is what I mean.
 
Anonymous
1:16 AM
Ah
 
Anonymous
Well now is an excellent time to read up on other submissions
 
Yep
 
1:30 AM
Now is a great time to send me 10k rep!
heck even 8k
 
"If your polyglot runs in N languages, then for each integer in the inclusive range 1 ... N your submission must contain N subprograms. For the Mth subprogram, the polyglot must work for M out of your N languages, and only those M languages. In addition, the subprograms must be successive, that is, the Mth subprogram must have the same languages as the M-1th subprogram, plus another language."
 
0
Q: Detect If a Given Integer is a Fibonacci Number

Sandeep SilwalChallenge: Given an integer n, determine if n is a Fibonacci number. The output does not necessarily have to be true or false, just that the two cases should have distinct outputs. Cannot use a built in function that generates the Fibonacci sequence. Test Cases: 13 -> True 69 -> False 1597-> ...

 
^ Dupe, I think
@Zacharý @Christopher2EZ4RTZ, @MDXF, @HeebyJeebyMan, @DLosc, how does that look?
 
You're ... just there.
 
Anonymous
1:35 AM
@Zacharý Please don't mass-ping people
 
It's for a 404 challenge, possibly for a site-specific 404 page.
@Mego Okay
 
from my perspective I have no idea wtf it says
but it is clear
i just don't understand
 
It's supposed to be for a polyglot 404, the restriction is to make sure you don't have something like print(404) being a polyglot for a CRAP-TON of languages
Crap, I meant to say "N distinct subprograms"
The question is, would something like that be closed as unclear?
 
1:50 AM
Opinions @HeebyJeebyMan ?
It'll show up soon.
 
@Zacharý fun/painful/on-topic
So good job
 
It's definitely not as horrible as the behemoth of polyglot challenges.
 
0
Q: 404 - Unique 404 page not found

ZacharýThis challenge is inspired by the 404 page on Stack Overflow, which contains a polyglot that outputs 404 in different languages. Goal Your goal is simple, to create a polyglot that outputs the number 404 in as many languages as possible. Restrictions Here's the twist, there's a restriction to...

 
The behemoth of polyglot challenges wasn't horrible until it became an echo chamber of useless languages.
@NewMainPosts no sandbox?!
 
I don't sandbox, I take the risk. I don't want people to go making languages for it.
When the OP is dead on the site and the challenge is >1 yr old, you know it's gotten out of hand.
 
2:00 AM
Does anyone have any ideas of how to represent a Rubik's Cube in C++, allowing easy rotation of the faces and such?
 
No clue.
 
I'm porting Cubically to C++ and everything after this really needs to go
 
use better comments if you use them at all
(I didn't realize you were using C)
 
Yeah. I really should've added comments, I have no idea what anything in turncube does
 
/* here be dragons */
 
2:05 AM
>/* here be dragons */

I love that comment
 
I added that last week when I realized how much of a dumpster fire rubiks.c was
 
rubiks.c => rubiks.cpp
Done
 
ಠ_ಠ the whole point is that C++ undoubtedly has a better way to store/modify the cube
 
@MDXF Just found these, might be helpful. Haven't looked at them.
https://github.com/austinkinross/rubiks-cube-solver
https://github.com/SirSharpest/Rubiks-Cube-Solver
 
@bkul First one stores it graphically, second one uses something less efficient than Cubically does
 
2:08 AM
Argh, the downvoats are here.
 
Told you... sandbox
 
Yeah, I probably should've .
Why do I always cause the most split opinions? I have +1 and -1 so far
 
Wow such split opinions, two total votes and they're different :o
:P
 
I've never used the sandbox. But my challenges are pretty simple and uncontroversial.
 
Most of my challenges have barely avoided close votes.
 
2:12 AM
Me too until I started using the sandbox
 
+2 -0, woohoo!
 
2:29 AM
-3
Q: Launch HelloWorld.java on the Amazon AWS Cloud

AlexI give you HelloWorld.java: /** * The HelloWorldApp class implements an application that * simply prints "Hello World!" to standard output. */ class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello World!"); // Display the string. } } What i...

 
2:41 AM
@Zacharý ... that's a terrible reason not to sandbox
 
I know
 
2:57 AM
Ugh I still have no better ways to store/represent/rotate a Rubik's Cube
 
3:09 AM
Port. And cya
 
3:41 AM
for (i = 0; i < size; i++)
    for (j = 0; j < size; j++)
        rotated_arr[i][j] = arr[size-j-1][i];
What's the time complexity of ^ ?
 
wouldn't it depend somewhat on how the matrix is stored in memory?
:P
for sufficiently large sizes, ofc
 
Anonymous
@MDXF O(N^2)
 
What do you mean
@Mego Aha thought so, thanks
 
@Mego @MDXF If the matrix was large enough it couldn't all fit in RAM at once...
:P
 
Anonymous
Since arrays are contiguous, access is constant (it's just *(head+i+j))
 
Anonymous
3:44 AM
@mudkip201 Well sure, but then you have other problems
 
@mudkip201 Well yeah obviously
 
To be fair, for the sizes you're likely dealing with, that won't be an issue
 
Anonymous
Also asymptotic complexity doesn't care about RAM - it cares about operations
 
Anonymous
You do O(N^2) memory accesses/modifications
 
@Mego ah. I was thinking of actual time used
 
Anonymous
3:45 AM
Whether they are RAM or disk is irrelevant to big-O
 
How about this?
 
Anonymous
Instead of changing the memory values directly, I'd just change the pointers
 
Anonymous
It will be a bit more complex, but much faster
 
What do you propose?
 
Anonymous
Ok so there are a small number of different moves you can do to a cube
 
Anonymous
3:47 AM
And they only affect a single plane
 
They also affect the inner layers
 
Anonymous
You're right
 
Anonymous
Hang on, typing up code for example
 
Wait - are you talking about a generic 3x3x3 matrix, or a Rubik's Cube?
 
Anonymous
A rubik's cube
 
3:50 AM
Ok good we're on the same page
 
Anonymous
Ok disregard what I said because I realized it really only works well for 2D, and 3D makes it much more complicated and not very useful
 
Anonymous
Man, I thought building GCC took forever. The test suites have been running for about 6 hours o_O
 
Why are you building GCC from source?
 
Anonymous
7 hours ago, by Mego
@Zacharý Distro version is super old
 
Ah
 
4:08 AM
-2
Q: c code segment . how is it able to print hello in output

vipin yadavvoid main {char *s; s="hello"; printf("%d",s);//it prints hello } how is this possible ,since s is char pointer variable,so how do we are able to insert value directly int instead of address?

 
@Mego do you know of an algorithm to rotate a 2D array counterclockwise in O(n) time/space?
 
Anonymous
@MDXF Nope
 
I wouldn't be surprised if there wasn't a way to do it in O(n) time
 
If we can do it clockwise (and we can), then there's got to be a way to do it counterclockwise with the same complexity
 
huh
 
4:18 AM
(The linked code rotates an array clockwise 90 degrees in O(n) time and space complexity)
 
How is that O(n) though?
 
Because the SO answer said it was and it was verified in the comments? Idk how to check it myself
 
@MDXF What is n?
 
The size of the array
 
Then... of course you can.
"Just do it."
 
4:20 AM
get outta here Nike
 
5
A: How do you rotate a two dimensional array?

user2793692Time - O(N), Space - O(1) public void rotate(int[][] matrix) { int n = matrix.length; for (int i = 0; i < n / 2; i++) { int last = n - 1 - i; for (int j = i; j < last; j++) { int top = matrix[i][j]; matrix[i][j] = matrix[last - j][i]; m...

@user202729 ಠ_ಠ if I could I already would have, idk how to
 
So the array size is sqrt(n) * sqrt(n)?
And n is a perfect square?
 
Yep
 
oh. size is sqrt(n)
then yeah
I thought you were saying an n-by-n matrix
and I was all confused
 
... So... as the usual comment I often made on StackOverflow.
"Show your attempt please. Where are you stuck at?"
 
4:22 AM
I'm stuck at having no idea how the algorithm works and therefore having no idea how to modify it to my desires
:P
 
... at least this is not StackOverflow.
Ok, do this:
 
fun fact: the keypress sequence to close a question for SO is M C 2 1 ENTER
 
flip each assignment operation, and then flip their order?
 
... on which browser?
 
4:23 AM
SE has keyboard shortcuts
@user202729 ....
 
you need to enable SE keyboard shortcuts (ninja'd) which are not on by default
 
Oh they're not?
 
@MDXF since counterclockwise is the opposite of clockwise, just reverse the operations
 
@mudkip201 That might work brb
 
4:24 AM
k
 
Ok, do it yourself. I'm bored.
 
I'm off to sleep
 
I (used to) have a userscript to automatically enable them whenever i join a community but then i got my computer reset and i'm too lazy to find it again
 
@mudkip201 nope borks badly
I might've done something wrong though
 
@MDXF 1. Understand it. 2. Modify it.
 
4:26 AM
@MDXF did you flip the order of operations too?
so... the last assignment becomes the first
 
... duh that was my problem
 
@MDXF Ok, what's the inverse of {temp = a; a = b; b = c; c = d; d = temp; }?
 
@MDXF So, that algorithm is only O(n) if you treat n as the total number of entries in the matrix
 
Is that good or bad
 
4:36 AM
It means that's it's O(n^2) if you treat n as the length of one side of the matrix (i.e. the matrix is n-by-n)
 
Ah. Then n refers to the total number of entries. My old algorithm was O(n^2) with that same definition of n.
Actually, it was like O((n^2)*9) in worst-case, which isn't a thing, but it was terrible
 
lol
 
Thanks for the help
 
np
 
sighs now I just need to figure out what turncube does..
 
Anonymous
4:39 AM
@MDXF Looks like it rotates the cube in 3D space
 
Indeed it does, I just have no clue how it does that
I wrote it in May and didn't leave any comments, all I know now is that it's really messy and confusing and sub-optimal
 
Anonymous
Rewrite it with quarternions :P
 
no. Octonions
:P
 
CMP: should esolang names be capitalized properly? E.g. Triangular vs triangular
 
Anonymous
@mudkip201 But they're nonassociative which is gross
 
Anonymous
4:42 AM
@MDXF It should be capitalized exactly like the language name
 
@Mego updated
:P
 
Anonymous
For the new question: it doesn't matter - personal choice
 
Yeah that's why it's a poll
I say ^ in the most non-confrontational way possible
 
I think it really goes by a case by case basis. ><> obviously looks better when not capitalized, while LOLCODE should definitely not go Title Case.
 
Names should be title case unless it's an acronym, in which case it should be entirely uppercase.
 
4:47 AM
Some languages like Hexagony looks neat in titlecase.
 
Anonymous
And brainfuck is specifically meant to be lowercase
 
starry, for example, might be lowercase
but brainfuck is definitely full lowercase
 
@Mego Why is that, actually?
 
Anonymous
@MDXF Because the language author made a big deal about it
 
Odd
 
4:48 AM
@MDXF it's also a verb, so it shouldn't pretend to be a name
 
Anonymous
And by "a big deal" he said "no lowercase is what I meant"
 
Anonymous
I should make languages that use aLtCaSe and tUMBLRCASE
 
My esolang will be in camelCase
if I get to make it
 
Anonymous
snake_case
 
I want to get Rubyで作る奇妙なプログラミング言語 to learn how that esolang author tackles developing languages, but apparently it's out of print, is there a torrent of it anywhere?
 
Anonymous
4:50 AM
unreadablecA_se
 
... What?
What's that? Can I read Chinese/Korean/etc.? No.
 
Anonymous
@Unihedron Requesting or offering sources of illegally-obtained content is a violation of Stack Exchange's ToS
 
... who says torrent must be illegal?
 
^
nvm I found it on google play
but it's region locked
 
@Mego Oh okay when you said "a big deal" my mind jumped to how PPCG makes a big deal out of nuking every challenge that isn't excruciatingly detailed to the point that a robot could probably understand the challenge and create solutions that completely adhere to the spec. It's reassuring that he wasn't a member of StackExchange.
 
Anonymous
4:53 AM
@user202729 It isn't illegal to torrent things that are legally uploaded. However, the vast majority of torrents aren't legally uploaded, so consider my message to be a warning. I don't know if such a torrent would be legal or not, but if it's not, SE is not the proper place for discussion.
 
Considering that the print media is pretty much non-existent I highly doubt anyone would illegally reupload a book over other media...
 
Anonymous
@MDXF The detail requirement is less for robots and more for people who may have differing backgrounds or levels of English comprehension, to make challenges clear for everyone.
 
Anonymous
We have those rules for fairness, not to satisfy our own pedantry
 
So, my circle of friends advanced to the next code golf problem, and this one is printing 99 bottles of beer repeatedly infinitely. I'm gonna try it in brainfuck. SeemsGood
 
Anonymous
@Unihedron Stick the existing bf 99BB solution in +[ ]?
 
5:02 AM
@HeebyJeebyMan My edit to oeis.org/A187924 that we discussed last month was just approved.
4
 
It didn't even occur to me that I could look up and reuse the existing code...
 
Anonymous
@ØrjanJohansen Neat!
 
Anonymous
@ØrjanJohansen Wait a second, you're the one that made CHIQRSX9+? You're the source of many, many arguments in here and on main :P
 
Heh :P
yep, i am
 
Anonymous
You monster :P
 
5:05 AM
MWAHAHAHAHA
Next, take a look at Malbolge Unshackled.
(Which is actually intended to be evil.)
 
Anonymous
5:35 AM
@ØrjanJohansen That was the movie with Jamie Foxx and Christoph Waltz, right?
 
... There are too many beginner questions on StackOverflow, I wonder why...
 
Too many beginners, obviously.
Got to discourage them somehow.
 
@ØrjanJohansen ... tell them that "you should not learn programming"??? What???
 
5:55 AM
No, they should all just start out advanced
 
Anonymous
They should just do information downloads directly into their brains like the rest of us
 
My loop is 1 byte too long... in Hexagony.
 
@user202729 Ouch
 
@Mego Brains? Nah, we should drop those entirely. The entire difficulty of programming comes from creating a decent protocol for communication between the brain and the computer, so getting rid of the brains and working directly on the computer should make it much faster
Dumb idea: everybody -1 Jon Skeet's posts to get him under 1,000,000 again. Just to see if we can.
 
That would only give him more rep...
(just like how targeted upvoting on him will give him less rep)
 
6:15 AM
CMP: What do you think of having a "language of the week" type event? We'd nominate a different language each time; participants would learn it (if they don't know it already), answer questions in it, try to outgolf each other, and discuss it in chat. (The time period could be more than a week if that's not long enough.)
13
This would be vaguely similar to the writing challenges on Writers.SE or the reading challenges on Literature.SE. The main idea is to get more exposure for lesser-known languages--esolangs or not--and to have fun learning & golfing them together.
 
Anonymous
@DLosc I like it
 
@DLosc One way to do this might be to organize golfing practices (there are many such challenges on main, but they have all been closed) in the language in question.
Also, esolangs.org has a featured section but it's very slow to update (it's been brainfuck for a while now)
Previously there's Deadfish, Emmental, Malbolge, Glass (heard of that one?), and ///.
 
@EsolangingFruit For golfing practice, I like what's been going on in The Third Stack recently: Brain-Flak CMCs. A language-specific chatroom seems like a good place for that sort of thing.
 
Can't close CMC's (I have been grateful for this before)
 
Anyway, if y'all like the idea, I'll see about proposing it on Meta, probably tomorrow.
 
Anonymous
6:39 AM
I'm not sure what the best way to implement it would be, but I like it
 
Proposition for language of next week: Seed
I think one week is not a lot of time to pick up a new language with it, getting good enough to start shortening stuff with 7 days is kinda tight. How about language of the month?
 
Yeah that, probably
and I'll suggest my language once I finish it
 
@Unihedron Yeah, I was thinking a week was too short, but a full month might be too long. Maybe 2 or 3 weeks.
Languages like Seed and Malbolge would not be very good candidates for this--I think the sweet spot is languages where programming/golfing is perhaps a bit challenging, but doable, and which can be used for solutions to many different challenges (i.e. can do more than just Hello, World! and truth-machine).
 
 
2 hours later…
9:10 AM
Are there a list of categories of esolangs?
 
oh, I was looking for something like "length-aware" like starry and lenguage
but I guess this works
 
 
2 hours later…
10:52 AM
0
Q: Largest Prime Factor of Number

Mrigank PawagiI was solving the 3rd problem at Project Euler which requires me to calculate the largest prime factor of 600851475143 which I think is a really large number (more than 6 billion). QB64 At first, I tried solving this problem using QB64. CLS n = 600851475143 FOR x = 1 TO n IF n MOD x = 0 ...

 
11:04 AM
... allowing fastest-code tips questions make some off-topic questions seemingly on-topic...
I will just vote to close questions if I think they are off-topic.
 
(IIRC last time we got fastest yes program in Java)
Last time I asked this question for a similar problem...
"VTC if you think so" seems like a good idea.
CMM: Should we allow off-site fastest-code tips if the improvement is algorithmic? (essentially "do homework for me")
(obviously no, but how can this be banned?)
 
Anonymous
@user202729 There's a difference between "what tricks can I use to speed up this working code? " and "why doesn't this code work?"
 
... Consider the last question. The code does work. Do you want to allow it? No.
 
Anonymous
@user202729 IMO if the tips are broadly applicable (i.e. "how to speed up this kind of operation", not "how do I speed up this exact code") and the question is well-defined, I don't see a problem with allowing them.
 
11:13 AM
Then... "how to speed up bubble sort?" -> "quick sort".
Is it good? I don't think so.
 
Anonymous
@user202729 That last question is basically "gimme teh codez". Also it shows no research effort.
 
The OP has written their codes, but it takes time like O(n^2) to run, which is centuries.
@user202729 (which is similar to this situation)
 
Anonymous
@user202729 Also showing no research effort :P But "how can I efficiently sort a million items under X, Y, Z conditions" would be closer
 
(... posted 60s ago ...)
@Mego How can it be better??? Providing example code (bubble or not) should not be worse than not providing. For example, which condition?
 
Anonymous
@user202729 Example conditions: limited memory, knowledge about the data (e.g. is it random? is it bounded?), etc.
 
11:47 AM
HeebyJeebyMan changed profile picture again, can't find image source this time.
Anyone can answer the "opposite" part here or should I ask a different question?
 
@user202729 Reverse image search.
 
Tried, does not work.
 
@user202729 sudo reverse image search?
 
That can't be better.
(i.e., still won't work)
yesterday, by user202729
For the toroidal challenge, would the following work:
(last time I asked I got no useful information)
 
12:20 PM
@user202729 It looks like Jamie Hyneman
 
Anonymous
@H.PWiz His new avatar is a walrus?
 
I think so, seems reasonable to me
 
I just learned how to write Preproc (C preprocessor program) and wrote an answer to the challenge https://codegolf.stackexchange.com/questions/79155/reverse-a-1-dimensional-array . But it doesn't handle cases when the `is_empty` doesn't work... (for example, `real_reverse("a", "b", "c")`)
https://tio.run/##dVNLb@MgEL77V4yUQyGykuZx6q2nvW@lvSKExw2qDQhIE6va354FA7GTbGQNtme@@ZinsWisFpfLeg14Nlw11aLBViqMv2S1WlFg7M87e//964Oxyfi9ScaIKjIDUkpn2G3GBqciT7G7gt2SIk@x@4LdkSJ32GtasN3vwMse3cyfd4VgT4rcEVTrJRwd/8Q3qFpI8EajUy8eAg/aoMXe@IHQYo1al651UivQSmBB5TOCn@L9SY4OPyP271LBD6Hx9YAkiuac0IsVLNdTbimk6lbBvGZC9z1nU
 
0
A: Sandbox for Proposed Challenges

Jo KingInverse Radiation-Hardened Quine radiation-hardening code-golf A radiation-hardened quine is a program where if any character of the code is removed, the program will still print the original source code. Today, we're doing the opposite of that. Write a program that, when any single character i...

 
@NewSandboxedPosts ... again?
 
1:19 PM
0
A: Sandbox for Proposed Challenges

Manish KunduDefinition Countdown is a game where the user is given 6 smaller numbers and a 3-digit target number. The objective is to use those 6 numbers and form the target number. You are allowed to use the four basic operators: + - * / and also ^. Use of parenthesis is also allowed. Challenge Your cha...

 
2:14 PM
CMC: ASCII-art rhombus/diamond of size>2 and consisting of any non-space character. Examples:
     *          **
    ***        ****
5: *****   6: ******
    ***       ******
     *         ****
                **
 
2:35 PM
Shouldn't 6 be:
Wait, never mind, I understand :/
 
3:09 PM
Jelly really sucks at ASCII art :/
 
@cairdcoinheringaahing but I didn't expect it to be ~2x as long as SOGL (even less 5x as long as Canvas)
 
The fact that we can't output two lines for odd numbers in the middle really hurts :/
 
would allowing the outputting of a boolean matrix golf the code?
 
The entire top line is about the removing the middle line for 5
@dzaima Not by much.
ị⁾* and Y are what formats it
 
3:26 PM
my SOGL solution makes a ceiling(inp/2) long triangle and, depending on input%2, either palindromizes with 1 or 0 overlap. Canvas though - the remainder overlap is built in the last 2 bytes :p
 
I believe it can be done in much lower number of bytes.
(BTW I am getting MLE for some C++ exercise. No idea why.)
@dzaima Jelly, 21 bytes
 
ಠ_ಠ I think I'm the one who sucks at ASCII art :P
 
Jelly, 18 bytes
16 bytes
 
3:37 PM
Nice
 
I guess it's shorter than Sogl now. Canvas is probably at 8 bytes.
(indeed)
 
@user202729 I'm not surprised it beats SOGL, as SOGL's pretty bad at stuff like that - 8 bytes to only make the asterisk triangle and no if-elses..
 
@dzaima Charcoal, 17 bytes: NθGL÷⊕θ²*‖BO↑←﹪θ²
 
3:53 PM
... Do we have a non-closed square root challenge?
It is even harder than Hello World.
 
This is pretty close
 
That's easier than square root, actually.
 
How? Most answers take the square root, then check if it's an integer
 
return any(i*i==x for i in range(x))
 
CMC: Given n, return x when n^(1/x) is an integer for any integer x between 2 and n. Examples: 20 => False, 64 => True
I have 9 bytes in Jelly
 
4:28 PM
-1
Q: Can we have a Hello, World! feed?

caird coinheringaahingRecently I suggested having a feed in The Nineteenth Byte for new answers to the Hello, World! challenge. It received some support (as you can tell from the stars), but it was suggested that it be discussed on Meta first. I see advantages and disadvantages to having this feed, but I'll just stat...

 
4:53 PM
@cairdcoinheringaahing 6 bytes
 
@cairdcoinheringaahing VTC unclear
 
What don't you understand?
ಠ_ಠ I can't English
 
uh, first you say "return x" but your test cases seem to indicate one should return booleans
 
4:58 PM
Whoops, oversight. Can't really change it now though :/
 
but what do you mean
you mean for "any x" or for "all x"
 
Return if any x
 
00:00 - 17:0017:00 - 00:00

« first day (2549 days earlier)      last day (2277 days later) »