@ChartZBelatedly I have a metagolf which is a Jelly program that generates a Sage program that generates a Jelly program, the escaping is kind-of crazy
because the Jelly quotes can't be escaped by any reasonable means, so I have to use an unreasonable means
it's still not quite a full break because the boilerplate may be outgolfable
I used to hate the Mathematica builtin-only solutions, because they didn't show much off of the power of the language, just the size of the library which could be written in anything
but nowadays I see them as a challenge: see if you can write a program that's shorter than the name of the builtin
@ChartZBelatedly I've said a while ago that if any Stack Exchange feature is actually useful/beneficial, it's only because it's being used in a way other than the intended one; at this point I think Adám's use of the site is a very long way away from what the Stack Exchange developers expected, but I don't think that's necessarily a bad thing
@OriginalOriginalOriginalVI in that particular answer, it took a while to find the right golfing language to use
I like getting upvotes (it shows that people appreciate my work, or think it's good), but at this point, if there was no rep attached to them, I wouldn't really care
getting upvoted feels nice but not really for the rep anymore, it's more of just people saw my answer and approved of it. even after i stopped caring about the internet points i still seek external validation upvotes are still cool
I had always meant to write a big website about the polyglot, with a syntax highlighter that let you follow any individual language and see how it parsed, but now it's reached the point where that's probably too big a task for one person and maybe fore the entire community
@Wasif since my account deletion, 1000 and am still owed 100; I forget how much I earned from deadline-less bounties before then but it may not have been anything
@HyperNeutrino that's because TIO is timing out, and the V program works by basically echoing almost everything literally and then deleting it at the end
> Bounties are not affected by community wiki mode. When you award a bounty to an answer marked community wiki, the reputation bonus will be awarded to the user who posted the original revision of the answer.
@ChartZBelatedly yep, it's a pity; it means that CWing all my answers isn't quite safe when trying to stay at 11 rep, I'd also need to temporarily delete all my answers to a question if it got bountied
@ChartZBelatedly yes, although not quite; if I receive a bounty for 25 or 50 exactly, I won't have the rep to give bounties and thus would have to delete the account
@ChartZBelatedly indeed, so avoiding that just means being vigilant in not answering questions while they have an active bounty, but that could happen due to race conditions
And most people don't just arbitrarily set bounties without informing the answerer, so if someone wants to offer you a bounty of 50 rep, you could politely decline it
@Wasif yes, and it's really annoying; when I come here to chat I need to log in with my account from Puzzling, rather than Code Golf, to have sufficient rep
Consider the following probability puzzle.
We start with a string of bits all set to 0. At each step we choose a bit uniformly and independently at random and flip. The value your code has to compute is the probability of getting to the all 1s bit string before you get back to the all 0s bit stri...
you will be annoying the rest of CGCC too, because it's them who persuaded me to have a (semi-)persistent account rather than using a new one every time
@ChartZBelatedly Correction: "You can't delete your own question if it has an answer with upvotes (even if that answer has a net zero or negative score)" or "has multiple answers (even if there are no upvotes)"
although, when I was learning Python using an IRC bot, my programs were all one-liners which exec'd a string literal, using \n to replace newlines and 1-space indentation (because as it was a one-liner the code didn't line up anyway)
@HyperNeutrino I tell you what's sufficient to prove this: you can replace every statement in Python with an expression in some form, with the exceptions of try-except, which makes it obviously turing complete
I find Python's statement/expression distinction annoying because it makes Pyth programs error out way more often than you'd expect from a golfing language, making it somewhat harder to work Pyth into polyglots than I'd like
@Wasif yes, it does indeed have a builtin to determine whether an image contains a goat or not (it's a whole suite of bulitins containing recognisers for all sorts of things, and a "caprine animal" is one of the options)
@Wasif this is awkward to define because most builtin-light practical/exoteric languages will accumulate a library over time, even if they didn't start with one
> esoteric languages (esolangs), designed to be extremely compact (GolfScript), to experiment with weird ideas (INTERCAL) or as a joke (LOLCODE, ArnoldC).
actually I'm not even sure what the most idiomatic way to reverse a string in Java is, I can't find any reversing-relating builtins in the string or array or stream classes
It's in the awkward space between not being well-known enough outside of golfing circles to be widely used, but also being nowhere near short enough for "hardcore" golfers to use it (as in, those going for the absolute smallest code)
OK, apparently StringBuilder has an option to reverse a string, that's a bizarre place to put it because StringBuilder is optimized for append operations and reversing a string is about as far from an append operation as you can get
CMC: LTR infix 4-button (so +-×÷) calculator. ÷ can be integer or floating point division, your choice. Symbols will be those 4 exactly. You can assume the input will be well formed, and that only non-negative integers will be in the expression (though the result may be negative). 5+6×3-1÷2 should output 16
I'm not sure whether doing it without eval would be more or less interesting
actually it would be horrifying because V is also Jelly's string-to-number conversion function, so you'd have to do base conversion on the codepoints of the characters in order to avoid it…
@ChartZBelatedly why not? golfing is about learning how to communicate efficiently, and the FGITWiest golfing languages are very good at solving problems given only a specification
so I often use Jelly or Brachylog when writing small programs with easily expressed specifications
@ChartZBelatedly they don't have to be, e.g. I'm sure Adám would claim that APL isn't write-only, and Jelly isn't all that far from APL; also, I've read other people's Jelly code before now
I suppose Jelly could reach the same (or similar) levels of usage as something like APL or J, despite claims it's write-only. I just think it's highly unlikely
wait yeah that's just what M is right, so it shouldn't take much time if we just import sympy and rewrite the literal handling for jelly or smth like that
The big difference actually is that M uses from sympy import *, whereas Jelly uses sympy = lazy_import('sympy'), so you'd need to find all of the sympy bits in M