« first day (4127 days earlier)      last day (709 days later) » 
00:00 - 20:0020:00 - 00:00

8:06 PM
@RadvylfPrograms one of lyxal's downvotes is mine, purely in order to balance out the votes again
 
Yeah, I saw it was at 16-17-16 earlier, figured the DV was someone restoring balance to the force
 
is { [variable]: value } the "correct" / best way in JS to make an object with variable keys (since { key: value } wouldn't work)
 
I'd assume so
 
@hyper-neutrino That's the intended way yeah
 
that is on one hand quite clever (i used to just make a blank object and then do obj[variable] = value) but on the other hand i quite dislike that
:P
 
8:16 PM
Better than what I would do
{...((_=>{var o = {}; o[variable] = value; return o})())}
I love javascript
 
ಠ_ಠ
 
^
 
why not just (_=>{ const o = {}; o[k] = v; return o; })()
does that run into scope-related issues
 
I'm revoking both yall's javascript licenses
5
 
@hyper-neutrino That works too, the {...} lets you include additional non-dynamic stuff more easily though
 
8:19 PM
oh okay
 
is it good form to make a list of blocked users public? I assume not
 
const f = o => { const q = {}; for (const k of Object.keys(o)) q[eval(k)] = o[k]; return q; };
and now just do f({ variable: value });
3
@Ginger I can maybe think of cases where it might be fine depending on your philosophy / what exactly your design / purpose is, but in general, I'm going to say no it isn't.
i know of some discord servers that have public ban logs and i've seen mixed opinions on it
 
@hyper-neutrino This makes me sad
 
Although it does allow {"'a'": 5}, for assigning non-variable keys
Opinion: No language should ever have a mandatory eval/exec/Function in its spec
 
8:55 PM
It's like normal but it's decentralized and sometimes people accidentally fork into two different competing answer-blockchains
And sometimes people take screenshots of your code and you get mad at them
 
23
Q: Compose a song, line by line

userIt's time for CGCC to demonstrate our musical talent! In this challenge, you're going to compose songs while keeping your byte count as small as possible. On Day 0, multiple answerers will post a function or program that outputs nothing/an empty string. They will also give a single line that next...

pretty much :P
 
Oh true
@RadvylfPrograms And we have to short an electrical outlet for 40 minutes every time we answer it
 
9:30 PM
@RadvylfPrograms Yeah, my question is proof that this is probably not a good idea
Actually, I guess it could work if implemented better
 
9:53 PM
0
Q: Find a working IP address

LostXORCreate a program that outputs a valid IP address that responds to pings. The method of finding an IP is up to you, but you can not hardcode it.

 
i can't believe someone decided to genuinely post that
 
Yeah, vtc or flag please
 
10:16 PM
@NewPosts I downvote once and everyone downvotes lol
 
please don't answer questions that you know are invalid/low quality/off topic/otherwise need to be closed
 
"learn a golfing lang" :\
 
I'd change that to "learn an interesting language"
 
Define "interesting language"
 
Like, pxeger has Zsh, user has Scala, learn an uncommon language you like, you'll get a lot more rep with ten praclang answers a month than a week of learning Vyxal or 05AB1E and then never using it (or forcing yourself to use it for rep and losing interest in answering)
I don't think a "how to get rep" post is good if that's what it's actually purely about, because we don't want to encourage participating for the sake of rep. It needs to be a "hook" to get people to read about how they can participate on CGCC in fun and new ways, and get rep in the process
Like learning a new language they're not used to, or trying to get bounties
 
@emanresuA we have to define "interesting" and "language" first. But in order to do that we need to define "int", "er", "est", "ing", and every single definition of "language".
 
10:47 PM
@RadvylfPrograms Hmm okay, that's an interesting perspective. But I'm not really sure how to write it :P
 
maybe add a separate section for non-golfing interesting languages
 
@RadvylfPrograms ya this is good point, i find a lot of golfing langs just seem too outlandish and weird for me to learn, and im not particularly interested in learning them anyways
 
because part of the golflang edge as explained is fgitw
 
I'd make the section about learning a new language, that's not what you're used to (or is what you're used to, and isn't commonly used here), then have golflangs as a subset since that's what you're used to
 
but if you're working in something weird then it'll probably take you longer than most praclangs, which you then want to offset by fluently explaining how you wrangled the weirdness
 
10:50 PM
Yeah :P
 
maybe note that that's a good way to get rep (and an actual reputation) that doesn't rely on new challenges at all--you may not get the hnq drivebys but if you dredge something up with an answer in mornington crescent or fractran the community will appreciate it
come to think of it maybe move the section on deadlineless bounties to the top
 
Okay
 
Honestly a good conclusion might be that rep shouldn't really come from some particular strategy to grind for the green bubbles, just do what you enjoy and use the tricks above to maximize your rep potential from it
 
Not really sure how to phrase that, would you mind doing that?
 
or maybe start with "just participate" and phrase the rest as addressing particular issues from "passive" rep income
 
10:55 PM
@emanresuA *privileges
 
Where?
 
First sentence
Also, I would add Jelly to the list of languages to golf in; I get an easy +30-90 with my Jelly answers
 
> learn a golfing language
 
like "there's always a better answer in my language already" or "i almost never get upvotes on what i do post" or "i can't find challenges worth answering"
 
read the paragrapgh after that list
 
10:57 PM
@emanresuA Perfect opportunity to advertise JHT :P
@emanresuA I did, but it doesn't stand out the same way as a bullet pointed list
 
wats jht
 
Something better might be to list a few, then provide a bunch of links for learning resources

 Jelly Hypertraining

Practice your Jelly :) Rules and stuff are here: golfingsucces...
 
oh ok
 
maybe also note some with mid-sized communities of the sort where you have a good chance of getting an answer in before they do but there's still enough people who can help you improve
 
not related to what u guys talking about, but could someone explain what turing complete means ? on wiki it says it need to emulate a universal turing machine but i cant make sense of what that is either
 
10:59 PM
It's very hard to define
the esolangs page may help you
 
a turing machine is just a dfa strapped to a tape head but you don't need to worry about that because there's a ton of stuff that's equivalent to it
 
Basically, a TC language is one that can do any computation
 
and yeah the esolangs page is very good
 
@emanresuA I'd suggest adding in a section just discussing "Participate more". While it's not the first thing in earning rep, you can do all the suggested things in the post, but once every month, and earn much less than someone who posts one answer per day
 
E.g., a language that only has if statements and for loops that do a finite number of iterations, for example, can never do an infinite loop, or a calculation that requires some sufficiently complex looping strucutre.
So it's Turing Incomplete
 
11:02 PM
(High quality) participation is probably the biggest factor to gaining rep
 
Whereas something like JS, or any language which you can write a JS interpreter in, can run "any" code
 
@RadvylfPrograms so without infinite loop, a lang isnt turing complete ?
 
oh speaking of quality maybe add "listen to feedback"
 
And in fact, you can write an interpreter for any TC language in another TC language, which is how you prove something is TC
 
11:03 PM
If every loop in language terminates, it cannot be TC
 
@AidenChow No, it's broader than that. A TC language can do any computation that any other TC language can do.
That includes anything from prime checking, to infinite loops, to interpreting brainfuck
Brainfuck is an example of a very minimal TC language. You could write a Python interpreter in BF if you spent long enough, whereas you could never do it in, e.g., dotcomma
And likewise, you can write a BF interpreter in bitcycle, or a JS interpreter in C++, or a C++ interpreter in JS. Any TC language can be used to run any other TC language, but no non-TC one can run another TC one.
 
Hey @Arnauld :P
 
@RadvylfPrograms (Excluding non-computation-based aspects of the language, like external I/O, internal representation of things like arrays, and more practical functionality like telling the OS to do things)
 
i was halfway through saying that :P
the average bf interpreter couldn't possibly host an implementation of js because js has features for doing things that bf doesn't, but anything js can compute given an input bf can compute too
 
does that count as I/O then
 
11:09 PM
and you could make a somewhat nonstandard bf implementation that assigns special meanings to some i/o actions to bridge the gap, hypothetically
 
i still have to continue that BF website idea
 
@RadvylfPrograms And this is a pretty useless definition on its own, but basically every praclang is Turing Complete when you ignore things like pointer sizes (technically a TC language needs unbounded storage space), so "can this implement BF/BCT/waterfall machine" is the easiest way to get an idea of what the requirements are
 
yeah
it's what i was halfway through typing :P
 
what is waterfall machine ?
 
It's another minimal esolang, one meant for proving TCness
 
11:10 PM
the search bar on esolangs is your friend
 
@UnrelatedString i actually got stuck on trying to figure out the minimum subset of a JS event i would need to pass to my BF code to handle events
 
lmao nice
 
11:39 PM
@RadvylfPrograms does makina count for me? it's not really a golflang...
 
@RadvylfPrograms you know that's an infinite loop right?
@emanresuA silver? how quaint
 
00:00 - 20:0020:00 - 00:00

« first day (4127 days earlier)      last day (709 days later) »