« first day (4123 days earlier)      last day (724 days later) » 

12:03 AM
@RadvylfPrograms ^ pin plz
 
@forest Right now OTTNB is a bit of an experiment. I'll wait to see how it goes, and get the approval of caird and the other ROs, before adding anything to the description.
 
cool
 
Thanks!
 
1:01 AM
@RadvylfPrograms you uh might be right...
That's unedited btw
 
love the smell of &^)OI(4 in the morning
 
lyxal, which zip code are you living in?
 
at this stage, I don't know
 
That doesn't look as bad as a negative zip code but it can't be rational
 
1:18 AM
iirc there is an actual pep being worked on for macros
but iirc they're more sanitary than the cpp style mostly-arbitrary replacements
 
1:30 AM
@emanresuA The only thing stopping you from drop-in-place using the C preprocessor with Python is replacing Python comments with C comments.
 
Impressively guly
 
1:48 AM
guly?
 
guly?
 
And that's enough of that
@emanresuA but really, what do you mean by guly?
Because I looked it up and I don't see what a code golf question has to do with the colour red
 
2:03 AM
ugly
 
2:39 AM
y'all ever just forget how to java format strings? because I do
 
does java even have that
oh wait there's like a stringbuilder method or something
 
looks at String.format yeah I think so
 
 
2 hours later…
4:29 AM
@emanresuA uh lol that code doesnt work...
i need to make a new version
 
oh because the Fs get replaced before FN lmao
 
should have used unicode characters ...
 
4:46 AM
i have just come up with a much smarter way to reverse the input in BitCycle
unfortunately i accidentally reloaded the tab and lost my work on it, but i am re doing it (probably more smartly too)
 
instead of having to individually check if each is the bottom of your working string, just peel off the top, and put it at the bottom of the output youre building by making sure its the first bit in the collector
 
@des54321 hmm since reloading the tab makes everyone lose their work: i propose that the new shortcut for reloading the tab will be "ctrl+o"
 
it wouldnt have lost the work (i think) if i hadnt been working in a tab which's url was actually a permalink to a different program
 
5:00 AM
much faster and more sensible reversal algorithm
 
Nice!
 
5:38 AM
@RadvylfPrograms can you give an example of an answer whose validity is or would be ambiguous?
 
5:56 AM
Is there something such as Rare Lisp? — flawr Oct 2, 2015 at 20:15
 
@emanresuA might be a stupid question, but whats the joke here ?
i dont get it
 
6:35 AM
is there some web script i can use that will automatically load up a template for me every time i want to write an answer
 
17
A: Shortest infinite loop producing no output

coredumpCommon Lisp, 6 characters (loop)

The joke relies on the context of the answer
 
6:52 AM
how come the bitcycle interpreter challenge got tweeted lol
@lyxal oh yep that makes sense now
 
7:16 AM
9
A: How to change caps lock key to backspace?

Colonel PanicI used this registry key Windows Registry Editor Version 5.00   [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,0E,00,3a,00,3a,00,46,00,00,00,00,00

^ does anyone know how to revert that change and maybe change caps lock to escape?
 
thanks
 
@AidenChow HNQ questions are tweeted
 
CMC given a positive integer x, output the smallest positive integer whose digits add up to x
 
@pxeger yess i did it!
 
7:57 AM
@graffe vyxal, 5 bytes: Try it Online! - ≬∑?=ṅ
 
@graffe Desmos, 36 bytes
f(n)=mod(n,9)k+k-1
k=10^{floor(n/9)}
 
@AidenChow very nice!
@lyxal seems to need tiny inputs?
Maybe the output should be the sum of the digits
 
@graffe wdym by that ?
isnt the input the digit sum, u basically saying print out the input ?
 
@AidenChow the output is a large number with lots of zeros currently. The sum of those digits would be easier to output
 
@graffe it works by iterating through each number from 1 to the answer
 
8:09 AM
Hmm... Actually I may have this wrong
@lyxal hence the problem!
 
So if the answer is 3490 it'll check every number from 1 to 3490
 
If the input is 123 the output is large
 
@graffe I don't see it as a problem, I see it as the shortest way
 
@lyxal except the answer wont be 3490 ever :P
 
Yes sorry. I have never really bought into purest code golf
I like golfed code that is still quite fast
 
8:11 AM
I'm just going off site defaults
 
just curious, what would a mathematical way look like in vyxal ?
 
If you have a specific formula or time complexity in mind, specify it from the start. Don't go changing the goal post because you don't like the answer.
@AidenChow I don't know lol
Brute force is the best I can come up with
But I suppose it'd involve integer partitions, filtering then sorting
 
@lyxal i meant porting my desmos answer, which is purely mathematical :)
the leading digit is just input%9, followed by the required amount of 9's needed to make the digit sum equal the input
(which is input//9, using python notation)
 
@AidenChow on my phone your code gives surprising answer for input 2015. It should be a number with 223 9s in it I think
What do you get?
8 then 223 9s to be precise
 
mines gives approximately 9*10^223, which is probably desmos rounding it off to scientific notation
 
8:17 AM
@AidenChow 9₌%/⌊↵~*+‹
 
@lyxal oh lol its much longer
 
Exactly
 
@AidenChow ah I see
I guess I should have asked for arbitrary precision
 
i think desmos would have to use a list of digits if arbitrary precision is needed
 
I might ask this as a challenge
Seems just north of completely trivial :)
 
8:22 AM
39 bytes as list of digits (only supports up to 10000 digits cuz desmos list limitation)
f(n)=join(mod(n,9),[1...floor(n/9)]0+9)
 
@AidenChow haha imagine not having arbitrary precision.
 
@AidenChow I like it!
 
@graffe u would prob get a bunch of brute force answers, wont be very interesting except for a select few langs imo
 
@graffe well make sure you put it into the sandbox first so people can give feedback
 
@graffe RProgN2, 16 bytes. x={Ø.S#nr#+àxe}é
NGL it's been a long time since I've actually written any RProgN2
So it's prolly possible to do much faster
 
8:29 AM
this might actually be solvable in bitcycle based on what ive seen other ppl here do, but im not proficient enough in bitcycle to actually do it rn
 
It's probably solvable.
 
0
Q: King of the Hill: Greed Control

Number BasherKing of the Hill: Greed Control What is Greed Control Greed control is a multiplayer round-based game in which in every round, a player bet a number inside a specific range, say 1~100. Say 2 people betted 100, then they'd both get 100/2 which is 50 points in the game. Basically, the players th...

 
@lyxal explain pls
 
probably goes smth like: start at 0, check if digit sum is equal to input. if not equal, increment by 1. otherwise, output number
or maybe start at 1 idk vyxal lol
im just guessing, cuz lyxal said it was brute force
 
@ATaco cool
@AidenChow I guess I could require it runs in TIO
 
8:45 AM
so it would be ?
 
The issue with requiring TIO is that TIO is without current updates
So it limits a few valid languages
 
i think graffe meant it runs on tio as in it runs within the one minute time limit
 
@graffe ngn/k, 29 bytes: {(k+(k:(_x%9)(10*)/1)*9!x)-1}
port of @AidenChow desmos answer
 
9:09 AM
@PyGamer0 find the first positive integer where the sum equals the input
 
How does .net still not have a copy folder method
 
9:23 AM
@PyGamer0 cool.. also fails with 2015 as the input though
 
9:39 AM
Just wrote 574 words in the Introduction Paragraph in the essay, then found out the total should be 630~770 words...
 
argh!
 
How do I shorten it...
 
I would write the rest then go back and shorted the introduction at the end
it will be more obvious what is redundant then
 
@NumberBasher well u start by deleting sentences that arent needed, intro should NOT be more than 100 or so words
 
@AidenChow well i have been accustomed into exceeding the total essay length by about twice as long
jic anyone wants to see it is at txtpad.cn/text123 but I also understand that you're not doing hw for me
 
9:46 AM
@NumberBasher are you chinese speaking?
"In this short essay the mythologies of Greek will be presented upon and analyzed on, answering the question exhibited by humanity for a long eternity: the cultural values of the already-deceased Greek society. " That can be improved
 
@graffe yah
 
" Greek society is one of the most early of civilizations that human beings have now successfully acknowledged, dating back decades, centuries, or perhaps, possibly, millennia. " What does this mean??
Are you referring to ancient Greece?
it's very odd to say that ancient Greece has only now been acknowledged
and all civilizations that you would be discussing involve humans
 
yep ok i'll revise that
 
what does the "dating back" refer to?
are you saying that only in the late 20th century did we realise that ancient Greece was culturally important?
 
Greek society is one of the earliest of civilizations that human beings have now understood, its birth dating back centuries. is this better?
 
9:50 AM
the birth of ancient Greece has a date
and the reference to human beings sounds odd
you need to say it is ancient Greece and not modern Greece for example
I guess we are talking 700-323 B.C.E ?
I am not sure that is well described by "centuries ago"
 
idk y but i hate the word "millennium" in plural form... ;-)
 
over 2000 years ago?
en.wikipedia.org/wiki/Ancient_Greece is quite good if you need reminding
 
ok
revised:
> CS: Ancient Greek society (throughout this essay it will be referred as to simply Greece, we assume, implicitly, ancient Greece) is one of the earliest of civilizations that human beings have now understood, its birth dating back centuries. The ancient Greek cultural values thus are possibly only determined by written forms, especially in the case of Greece, of stories, oral transactions of myths generally converted into written form that is now interpreted.
 

 The Sand Trap

Room for discussions off-topic to CGCC (on-topic discussions s...
 
@emanresuA cruel!
:)
but fair
 
9:54 AM
Some off-topic discussions are interesting to other people, but I don't think this is one of them.
 
@emanresuA see above :)
Here is a possibly more interesting OT topic
 
is there a better place to post
 
do there exist still radios that last for dozens of hours on one battery charge?
 
because i am aware this chatroom is not remotely connected to literature
 
@NumberBasher I suspect not really. You are just doing your homework and don't really have a specific question
radios I claim are closer to computers :)
 
9:56 AM
ok
 
@graffe wind-up radios lol
 
@graffe do you mean i shouldn't post or post here is fine
 
@emanresuA yes that is one option. But is there another one? I used to own a normal radio that lasted forever on two aa batteries. Does that just not exist any more?
@NumberBasher don't post here about literature
 
I think it's more that radios as individual devices are becoming obsolete
 
@emanresuA hmm... in the UK DAB radios are still a thing
there is a problem in that a lot of people want to be cut off from email etc when in bed
and want to listen to the radio
 
10:01 AM
@graffe where then, or nowhere on se
 
@NumberBasher I suspect nowhere really. You are just doing your homework and don't really have a specific question
although you could follow the off-topic link given above
 
ok, is there a place where you just chat woops got same qustion
 
I'd yeet your current conversation over there but I'm not an RO (yet)
 
ok bye
 
@emanresuA I like the profile inclusions!
basically, please who don't sleep needed
 
10:17 AM
I think my time zone makes me a good RO (but perhaps not right now duh
> One concern is that I used to have a sockpuppet account
what's a sockpuppet?
 
Just another account
 
I just found that lefties r more vulnerable to like 20 diseases... not a leftie myself btw jic
@emanresuA ok
why is it a concern?
Idk y but I think newcomers get trp easier
 
@graffe crystal radios?
 
10:51 AM
@PyGamer0 what is that?
 
@NumberBasher yikes
 
@NumberBasher how so?
> Hath not a Jew lefty hands, organs, dimensions, senses, affections, passions; fed with the same food, hurt with the same weapons, subject to the same diseases, healed by the same means, warmed and cooled by the same winter and summer as a Christian righty is?
lol
 
Ah yes, the Verchant of Menice, my favourite Shanksphere play
 
@PyGamer0 ah yes :)
 
@lyxal oh boy i do love shanksphere's plays :P
 
11:19 AM
Shamksphere wrote my favourite plays including Rome-Joe and Juliyeet,Ofellow and McBeth
The part where Hamlet orders a double Big Mac in McBeth was my favourite part
Classic Shamksphere amiright?
 
dont forget the Verchant of Menice
@lyxal yea
 
@lyxal no royale with cheese?
if you loved the Beano it would be the Merchant of Dennis
3
 
@PyGamer0 they are subject to the same disease
but not the same odds
i made a ppt on it
;-)
 
i dont need text i need scientific proof :P
and what about ambidextrous people ?
 
@PyGamer0 as do I
 
11:29 AM
@PyGamer0 I think they are called chiral fluid these days
 
11:47 AM
@graffe what? what the what?
CMQ: Is a one cell brainf*** TC? That cell can hold an arbitrary amount of digits...
 
@PyGamer0 Chiral refers to handedness. As in whether you are right or left handed
but in the modern world we shouldn't categorise people in binary ways
they are chiral fluid instead
 
idk but somwhow i managed to make the loops work
^^MC: Count from 0 to 10 using loops.
i made it 2 celled..
 
m90
12:09 PM
@PyGamer0 No; it can be simulated by a push-down automaton.
 
@m90 what do you mean?
 
m90
@PyGamer0 A Push-down_automaton is less capable than a Turing machine. It can simulate the one-unlimited-cell Brainf*** by storing the absolute value of the cell's value as the number of items on the stack, and having the state encode both the sign of the cell's value and the position of execution in the program.
 
 
2 hours later…
2:03 PM
What the hell is this
 
SE design at its finest
and of course, as expected, there's no relevant mother meta announcement
also yikes, explicit side menu
imagine left navigation
 
2:16 PM
@pxeger looks like just a way of showing whether its a Question or Answer..
 
But it's pointless
I can already tell if it's a question or answer, because the layout is totally different: i.stack.imgur.com/dnzvz.png
And when I search with is:q or is:a, all the results are gonna be the type I expect
so it's objectively useless
 
these are the same people who changed the notification and rep count box mind you
even though basically no-one asked them to
 
@BgilMidol If you visit your chat profile, it shows your active hours under your profile picture (tho, that's active in chat as a whole, there's no way to see your active hours for just one room)
 
2:51 PM
@cairdcoinheringaahing actually you can see it for a specific room...
i think
looks like you can
 
Is that your activity, or overall activity in the room?
 
activity i think
idk
 
Tooltip says "Typical room activity over a 24-hour period," which is technically ambiguous but I think should mean overall activity
But then I don't understand why your graph for TNB looks different from mine
 
@DLosc thats my activity in tnb
 
This uses base64
Wait no
 
2:59 PM
@PyGamer0 I just find it hard to believe that I've ever posted anything in TNB at 11:00 UTC. That's way too early to get up, and the few times I've stayed up that late, I was either golfing (not chatting), reading webcomics, or playing computer games.
 
@DLosc that is the room activity for the entire room
 
@DLosc Different places you see the graph show different data
 
i iz so confuzed :(
 
E.g., the number in the bottom right means "messages posted in room by everyone" in the /rooms page, and "messages posted in the room by Radvylf" in the "Radvylf's rooms" page
 
Clicking a user in the "users in the room list" shows that user's activity across all rooms, the same as the one in the big box on the left on their profile page
The rooms on the right of a user's profile page ("currently in" and "frequently in") show graphs specific to that user and that room
 
3:03 PM
Huh
Apparently there is typically no activity in several of the rooms I'm frequently in. Accurate, I guess.
 
@pxeger Well for example, using atob, I can golf about 200 bytes off the JS answer
 
That's unambiguously not a "compression method"
It's clever abuse of an encoding
 
I would consider it compression
Not a "clever" abuse of an encoding
 
Well all the answers are compression of some sort
the point is you have to implement it yourself
 
Compression they implement
And "atob" is doing the majority of the work, not my code
 
3:10 PM
but atob isn't a compression method
 
Would you consider packed stax to use source compression? Because most people here seem to, and that's just an "encoding" in the exact same way as base64
Jelly's number compression is basically just base 255, isn't that an encoding, not a compression algorithm? There's a lot of overlap.
 
I would say neither of those are compression in this context
 
If btoa/atob provides a way for me to put data in, and get a shorter representation, then convert it back to the original, that's exactly the same as a compression algorithm. Whether it's "encoding" or "compression" just depends on what angle you look at it.
What if my language has a built-in that does huffman coding?
What if my answer is literally just Jelly/Vyxal/Ash string compression?
That's not a "data decompression algorithm", it's usually just base255 stuff, or in Ash's case, a whole separate language within quotation marks
But I don't think many people would consider that to be following the rules
 
@RadvylfPrograms nice idea might steal later
 
And the fact that we can have this discussion and disagree about what is and isn't valid is exactly what makes this an unclear question
 
3:20 PM
CMP: Thoughts on flax :p
 
@RadvylfPrograms it also uses a dictionary and bit twiddling
 
I'm generally of the opinion that questions like this which are possibly slightly unclear in certain circumstances should be left open just on the benefit of the doubt
 
@PyGamer0 It's a lot bigger of a project than I'd realized
 
@PyGamer0 Might be cool, haven't looked at it. Good job getting it working--I'm sure it was a lot of work.
 
3:41 PM
@graffe HBL, 10 bytes: -(*(+(%.'<))(1%(/.'< (using the formula (n%9+1)*10^(n/9)-1)
Or 9.5 bytes to return a list of digits: 1(%.'<)(*'('<)(/.'<
 
4:23 PM
can I just say "the Iverson bracket is implied" is a remarkably stupid way of saying "APL has no strong boolean typing"
 
5:07 PM
i think i need a bit more feedback on this before i post it, jezza was not really helping
4
A: Sandbox for Proposed Challenges

BowlingPizzaBallSpend maximal money Imagine that you're going shopping. You are on a budget and just looking around the store, trying to find things you would be interested in. Eventually, you find a set amount of things. However, since you have zero morals, you want to spend the most money possible without goin...

 
@AidenChow 136 bytes in BitCycle, probably could be golfed more. It runs a lot faster on TIO.
 
@DLosc wow impressive, i knew one of u guys would be able to solve it :P
 
@DLosc are all those slashes to divide it by 9 ?
 
Yeah. The top part takes the input number div and mod 9. Call those results d and m. Then the bottom part does "Loop d times: add 1 to m, multiply it by 10, and subtract 1." 10*(m+1)-1 is 10*m+9.
Also, just gonna reply to your comment here:
Wait actually numbers are represented as bits in BitCycle, so my point is still valid? Even though it doesn't mention numbers explicity, the bits can still represent numbers (though I realize this probably is not the case because of the truth machine test case). — Aiden Chow 21 mins ago
If you drill down to the heart of the language, there are no numbers in BitCycle, only bits.
The flags are just a convenience feature that lets you input 19 instead of 1111111111111111111.
 
5:25 PM
ya, so i was asking if there were any flags
as it wasnt explicitly stated in the post
 
And I'm saying, the flags aren't really part of the language, so the default assumption should be "no."
 
well it would be nice to make that assumption explicit :p
 
Sure.
 
well im not too experienced in this lang so if u say thats obvious from the post that its ran normally, then ig it is (it really wasnt to me tho)
 
That's fair, and like I said, it wouldn't hurt to specify. The whole challenge is pretty badly underspecified at the moment.
Now that I think of it, the lack of any overview of how the language works is a pretty severe problem, so I'm VTCing as unclear.
 
5:37 PM
is it okay to copy text from the bitcycle github page into challenge body (asking for my own challenge in sandbox) ?
 
@AidenChow It's GPL licensed, so I think you can as long as you give credit and link to the original; and even if there's technically a problem with that from a GPL standpoint, I as the copyright holder give you permission to do so as long as you give credit and link to the original.
 
can u check if this is credited properly and clear enough: codegolf.meta.stackexchange.com/questions/2140/…
i put the link to the github near the bottom of the post, should i move it up to the top ?
 
Also, very nearly the same text is in the Esolangs article, which can be copied freely.
@AidenChow Yeah, that's good.
 
@DLosc that's great!
 
6:39 PM
0
Q: Convert Alpha-2 to Alpha-3

SegganThe Task The task is easy: given an Alpha-2 country code, output the Alpha-3 equivalent. The input may be in any case you choose, and the output in any consistent case of your choosing. Here are the codes: [["AF", "AFG"], ["AX", "ALA"], ["AL", "ALB"], ["DZ", "DZA"], ["AS", "ASM"], ["AD", "AND"], ["...

 
6:52 PM
can u put a funny short backstory in challenges
like for my bitcycle challenge, i was thinking of putting smth like this:
Because I am too lazy to write BitCycle programs myself, you will be writing a program which outputs BitCycle programs for me! Unfortunately, the storage space on my computer is only about a bit, so you will have to make the BitCycle programs as small as possible.
 
thats what i wanted to do
 
Lots of challenges have flavortext, and you could even use a details tag so people can choose whether or not they want to see it
 
@NewPosts for this challenge i had a quantum computer backstory
 
That's short enough that it shouldn't distract anyone
 
ok got it
 
6:55 PM
dont write your fanfiction in the challenge description, but feel free to put like a short paragraph or so
 
@des54321 two sentences is fine right
 
imo it is
 
 
1 hour later…
8:17 PM
0
A: "Hello, World!"

stefvanschieSMALL, 16 bytes "Hello, World!"! ! prints the expression before it, giving us the code for this question.

 
Oh wow! A new hello world! It's not like i've seen this exact same solution 20 times already!
 
8:57 PM
That is the "Hello, World!" challenge for you, I guess.
 
 
1 hour later…
10:20 PM
0
Q: Crossing a Lily Pond

NilsterThe Narrative You are a frog who is at the edge of a pond with waterlilies. You would like to cross the pond without getting wet, so you plan to jump from lily to lily. There is, however, one problem: you are a rare species of frog which can only jump one specific distance, and so you might not b...

 
11:06 PM
Hey guys in <MY LANGUAGE> the hello world is just a single byte! Isn't that Wacky?!
 

« first day (4123 days earlier)      last day (724 days later) »