« first day (2295 days earlier)      last day (2547 days later) » 

3:05 PM
i swear, was my question codegolf.stackexchange.com/questions/120052/… in the suggestion list for a second!
yes it was lol, my first question was the most popular at this moment
 
most popular where?
 
Wohoo! It's official, I'm hysterically funny!
 
Anonymous
@PhiNotPi It depends on how heavy their sprite sheets are
 
@StewieGriffin Congratz
@SIGSEGV I submit a zero byte answer... Windows XP.
 
3:20 PM
0 bytes! Windows XP — Christopher 4 mins ago
this is sad but true
@EriktheOutgolfer up for me?
loads instantly
 
not when I posted that message though
 
1
Q: Year progress bar

Marcos MCreate a progress bar indicating year progress Your code has to output the percentage of the year already passed form 1st of January of the current year. You have to display a progress bar and the figure. Each day has to display a different bar besides rounded figure is the same as previous da...

0
Q: Solve this uHerbert challenge (preferably in H) in 13 or less bytes

TimFirst, a little background info: Herbert is a robot simulation which I first encountered in the online IGF (Independent Games Festival) programming challenge back in 2008. For a long time, I was disappointed that I couldn't try out the challenges after the actual contest was over. Luckily, someon...

 
Okx
May I have some feedback on this challenge in the sandbox?
 
101
Weapons

Proposed Q&A site for weapon experts and enthusiasts to ask Questions and get Answers about any type of weapon, from ancient edged weapons and archery to guns and modern tactical or strategic military systems.

Currently in definition.

We need some more users.
Just a few upvotes more and into commit
 
Isn't that a bot that proposed that site?
 
Okx
3:36 PM
@KritixiLithos I don't think so.
 
@ais523 You going to give the bounty soon?
 
Okx
Wait, I just noticed that my sandbox proposal has ID 12345. Whoa.
 
hmm, jsfiddle's css seems a little broken
oh nvm
 
3:55 PM
@Christopher it hasn't expired yet, and for this sort of bounty, I don't want to discriminate against people who spent all week working on a solution and got it in just at the last minute
in general, for any sort of bounty other than "reward existing answer", I wait until the grace period until I award it
(bounties last 7 days from the point of view of the user interface, but actually 8 from the point of view of awarding reputation; for the last 24 hours the bounty doesn't promote the post and isn't shown on the post but it can still be awarded)
 
@StewieGriffin I made a mistake and upvoted your answer after reading the big NO!, then got distracted and didn't continue reading. Your answer seems to suggest that actively hunting for vote-worthy posts of a single user is allowed, so I made a dummy edit to reverse my vote, then reverted the dummy edit. Since this got fixed, that shows [Edit removed during grace period] in the revision history.
 
somehow, I think the "you cannot change your vote unless the post is edited" feature is leading to unintentional consequences
I've edited my own posts at other users' requests before now because they misclicked the downvote button and didn't notice until it was too late to change
 
It's intended to prevent strategic voting on main, but I don't think it has any merit on meta.
 
btw, as to the more general question (i.e. upvoting to test submissions or the like); is it acceptable to change the timing of your upvotes?
i.e. there's a post you'd upvote anyway, but you delay upvoting it until the next day
I may have been guilty of saving up all my question votes for several weeks so that I could use them all in the same day to get a badge
hey, people who voted to close this question, what was the reason? I'm not sure whether to cast a reopen vote because I don't know what the problem was to know if it's fixed now
 
4:30 PM
^
 
@Emigna: @BusinessCat: ^
 
I'm voting to reopen
 
@ais523 Hmm?
 
at least with the bear challenge (which eventually stalled out at 4 reopens and 3 failed reopen reviews), it's at least clear what the controversy is
 
Why am I being pinged
 
4:32 PM
showerthought: @flawr and @SimplyBeautifulArt both entered the room at the same time. Both of them like math. Both of them are good at math. Flawr and SBA are the same person. HL3 confirmed
 
@BusinessCat "keep closed" vote on a reopen review, we don't understand what was behind it
and want to know the problem so that it can be fixed
 
@Riker yep, HL3 confirmed
 
both responded to my message
hl3 really confirmed
huh, I thought wheat had codegolf gold
apparently he's only halfway there
 
@Emigna why did you vote to keep-closed the uHerbert challenge? there are plenty of people who are confused by the basis behind the close votes
and we'd like to know so that it can be fixed
in general, I'm leery of casting a "unclear what you're asking" vote in the first place unless there are comments explaining what parts of the spec need fixing (unless the question is completely incomprehensible, in which case I'd more likely cast a VLQ flag)
here, there's a lot of desire to fix the post, but we don't know what needs to be fixed!
 
4:36 PM
@EriktheOutgolfer Yeah, it was a joke, lol.
 
Well it seems fine... guess I just missed something due to being a sleep deprived zombie at the moment
It might help to have a little tl;dr at the end because it's a lot of text.
 
I came because I heard half life 3
Erp disappointing
 
Sum up the key points
 
I had difficulty understanding what the actual challenge was as there is a lot of text surround the important parts. After re-reading a couple of times I think I have the hang of it, but I really feel like there should be a way to explain the challenge in a shorter way.
 
right, I've let the OP know that that's the problem
 
Anonymous
4:50 PM
@Emigna That was my biggest concern, along with the challenge not being self-contained
 
right
I think the OP's made a new version now taking the criticism into account?
in other news, what's the appropriate action in the VLQ queue when the answer's new, autoflagged as VLQ, technically incorrect, but easily fixable?
clearly you leave a comment requesting the fix, but do you say looks-OK, edit, delete, or skip?
I don't want to make work for the mods if the answer doesn't get fixed (which is what would happen if a VLQ review on the post succeeded, as the post would then become immune to the VLQ queue and remove our main method of removing incorrect answers)
 
Anonymous
@ais523 If it's a very minor problem (like hardcoding input or missing a few test cases), and the poster seems like they'll fix it, I'll do Looks OK. If it's a major problem (loophole abuse, not a serious contender, etc.), I'll vote delete. If I'm on the fence, I usually just skip.
 
right, this is a case of hardcoding input in an otherwise correct solution
I guess I'll put an OK mark on it
 
I've voted to reopen now, since it has been clarified.
 
0
A: Sandbox for Proposed Challenges

PyRulezAn implementation of a game called Nomic code-golf game Nomic is a game where you can change the rules. Humans are biased judges though, so let's have a computer run the rules! (Note that there are many variations of Nomic. Below is just one example.) Since you're minimalists, you want the origi...

 
5:01 PM
OK, thanks everyone
I know how upsetting it can be to be a new user, get a close-as-unclear vote, and have no idea what's going on
but looks like everything was resolved neatly now
 
Feels a lot clearer now. Great that you assisted him with improvements. As you say, without feedback it can be easy to become frustrated and maybe give up.
 
is there a java method for easily rounding away from zero to an integer?
 
away from zero? that's pretty rare as rounding methods go
so you'd almost certainly need a class dedicated to rounding handling specifically
 
Anonymous
@MistahFiggins Math.ceil for positive values
 
ceil rounds upwards, which is different from away-from-zero, but may be usable as an alternative depending on what the question is
 
Anonymous
5:09 PM
if(x<0)return Math.floor(x);else return Math.ceil(x)
 
I'm asking because I'm making a custom comparareTo(Object o) that is based on doubles, and it wants to return an int. It would be a lot easier and simpler if I didn't have to use if statements, but I guess I can
 
oh, in that case definitely use the if statements
 
there are a lot of edge and corner cases with doing any sort of arithmetic on floats
 
Anonymous
Math.signum(x)*Math.ceil(Math.abs(x))
 
5:10 PM
e.g. if the difference is outside of the integer range
in this case, Math.signum probably solves the problem by itself
 
usually, when comparing integers, you can do this.whatever - o.whatever
 
depending on what you want the handling for minus zero to be
like, do you want +0 and -0 to compare equal?
 
eh, I'm just gonna use if statements
@ais523 ideally
if there was a method in Math, for example, I would use that
 
I think Math.signum(this.whatever - o.whatever) is probably what you're looking for here, then
actually, even better: Double.compare
static method that compares two doubles
 
0
A: Sandbox for Proposed Challenges

Caleb KleveterCrash the Program code-golf Write a program that crashes. This does not mean you are supposed to crash the compiler. This is code-golf, so the shortest answer wins!

0
A: Sandbox for Proposed Challenges

Nelson CasanovaParse my passport, please! Recently I was tasked by my manager to build a frontend for a Passport scanner. This little machine extracts data from machine-readable passports and it parses it so you can easily manipulate the data fields on your application. More details on the format: https://en....

 
5:25 PM
@ais523 oh cool
of course, I've already finished that method
 
CMC: given e.g. n=4, output:
1
11
111
1111
(trailing newlines, whitespaces, any non-whitespace printable character for 1)
 
@Riker are you invalid?
 
o-O
 
5:35 PM
@LeakyNun V 5 bytes: Try it online!
 
@DJMcMayhem nice
 
@LeakyNun CJam, 10 bytes: ri{)'1*N}%
 
@flawr 9/10 not enough special effects
@LeakyNun can the non-whitespace char be the input char? and can we output a list?
 
Anonymous
@LeakyNun Actually, 5 bytes: R'1*i
 
@LeakyNun Dyalog APL, 8 bytes: ↑'1'⍴⍨¨⍳
 
5:37 PM
@Riker you must hardcode the char you use. you may not otput a list.
 
and if you speak german /r/parkuhr
 
python, 46 bytes: lambda x:'\n'.join([-~i*'1'for i in range(x)])
 
btw where is cjam cheatsheet?
 
sed, 23 + 1 bytes: Try it online!
 
@KritixiLithos that's cheating lol
 
5:42 PM
I don't want a 100+ byte solution :P
 
@LeakyNun Looks like it mysteriously disappeared
 
0
Q: World Chess championship

Mickey JackThe World Chess Championship 2016 was a chess match between reigning world champion Magnus Carlsen and challenger Sergey Karjakin, to determine the next World Chess Champion. Carlsen has been world champion since 2013, while Karjakin qualified as the challenger by winning the 2016 Candidates Tour...

 
@LeakyNun 05AB1E, 5 bytes: F1)J=
 
Röda, 23 22 bytes: Try it online!
 
6:04 PM
 
0/10 too pythonic :P
 
What do you mean
 
@Riker you are out-golfed
 
Complete program
 
Nvm didn't see input
 
Anonymous
6:06 PM
@Phoenix Remove the space between print and "1"
 
Thanks
 
@LeakyNun yea, I golfed that myself
didn't post though bc internet spazzed
 
Anonymous
Also it starts at 0, not 1
 
Anonymous
So you need range(1,input()+1) or print"1"*(i+1)
 
@Phoenix doesn't work idt, doesn't that do 0 1 2 3? for input 4?
yea
 
6:07 PM
@Mego that's redundant
 
@Mego or print -~i*"1"?
@LeakyNun no?
 
Can't edit anymore, pretend it says input()+1 for 36 bytes
 
Anonymous
@Riker print"1"*-~i is golfiest
 
Fine, let's go with that one.
 
@Riker he did (1,input()+1) as well as "1"*(i+1)
 
6:07 PM
print-~i*"1" is same length
> or print...
 
@Riker oops, I'm blind
 
Anonymous
Python 2, correct at 36 bytes: for i in range(input()):print"1"*-~i
 
Anonymous
@Riker Yeah but I prefer str*int over int*str
 
@mbomb007 I did but no one liked it ;-;
n->{for(int i:new int[n]){for(int j:new int[i])System.out.print(n);System.out.println();}}
Probably a golfier way
 
@Mego shrug
 
6:15 PM
CMC: Create a window/button/small area which changes in some noticeable visible way when double clicked and reverts back when double clicked again.
Double click being two clicks within a timeframe of your choice < 2 seconds.
 
@LeakyNun recursive way in python: f=lambda x:x*"x"and f(x-1)+"1"*x+"\n"
 
same length, nice
 
@Adnan nicely done
 
there has to be a better way though
 
6:51 PM
Can someone migrate this to SO?
 
@programmer5000 it needs a mod if it's closed like that
for some reason, a vote to close blocks a vote to migrate
 
Weird.
 
you have to select the migration option from the close box the first time
 
Where is that?
@Dennis @Doorknob @MartinEnder could one of you migrate this to SO?
 
@programmer5000 "This post belongs on another Stack Exchange site" as a standard offtopic reason
in general, though, it's more common for us to just close the post and ask the OP to repost
 
6:56 PM
-1
Q: How do I create many admins at once with a list of usernames in python?

TfbninjaOK guys, I'm trying to use python with Command prompt to batch create multiple admins at one time. Currently, my code looks like this: import os list = ["person1@domain.org","person2@domain.org","person3@domain.org""] for person in list: os.system("net localgroup administrators /add " + p...

 
(there it is)
 
this site hardly ever participates in migrations
the most recent successful migration was this one
back in October 2015
 
I think that question might be good for SO, though.
 
right
the basic problem is that the vote to migrate competes with the vote to close
and the vote to close basically always wins
 
Should I custom mod flag?
 
7:00 PM
in fact I'm not sure I've seen anyone start a vote to migrate
I have a suspicion that the flag may end up being declined, even if maybe it shouldn't be
I haven't had good luck with "please change the close reason" mod flags
 
I'm impressed with this site's community moderation.
It took 3 minutes to close an off-topic question after it was posted.
 
I've seen it happen in under a minute :P
 
@programmer5000 if a post is off-topic, please don't bother editing
it bumps it into the RO queue sometimes
 
@Riker it's no big deal, edited closed questions in the RO queue are trivial to deal with
 
shrug
 
7:04 PM
our queues are zero basically all the time
4
 
Which queue is RO?
 
reopen
 
huh? I just got the message that a bounty of mine had entered grace period, 3 minutes ago, but the post itself says there's still 47 minutes left
could someone check this post and let me know if the bounty is still open?
 
it is
 
7:16 PM
4
Q: "99 bottles of fizz"

musicman523Challenge Write a program that outputs the lyrics to 99 Bottles of Beer, but instead of "beer", output "fizz" if the number of bottles on the wall is a multiple of 3, "buzz" for 5, and "fizzbuzz" for 15. If the number of bottles on the wall is not a multiple of 3 or 5, just output "beer" as usua...

1
Q: Extract the Coefficients of a Linear Equation

Challenger5Given a linear equation mx+n, return n and m. However, the equation may be in any of the following formats: 5x+2 -> 5 2 5x-2 -> 5 -2 5x -> 5 0 -2 -> 0 -2 x -> 1 0 All of these cases must be handled. Specifications: You can assume that the equation is in one of the above formats, i.e....

 
OK, I'll hold off on awarding it just yet, just in case there's a last-minute answer
hmm, should we have a tag? we have plenty of questions on the subject
 
should we have an tag?
 
I'd argue that is normally enough
 
or a tag
 
how can i golfily check if a number can be written as 4n or 4n+1 (n is an integer)
 
7:19 PM
@betseg n%4<2
 
oh ii missed the obvious answer
tried to do some bit magic
 
you can also do (n&3)<2
 
you can do better: !(x&2)
 
oh right
 
and better still: ~x&2 (requires a language in which complementing integers is safe, but this is true in most)
 
7:21 PM
maybe x+2&2
 
x+2&2 would work in languages with C-like precedence, even if the number wasn't complement-safe (e.g. was a bignum)
 
7:44 PM
@ais523 Yes.
@flawr Yes.
@flawr no
 
but why
 
timer.c:5:6: error: lvalue required as left operand of assignment
 f=g_timer_elapsed(t,i);
  ^
wut
oh nvm f was also a function name, but i declared a float called f
 
:P I hate things like that
 
8:02 PM
@Phoenix C, 501 + 38 (`pkg-config --cflags --libs gtk+-2.0`) = 539 bytes:
#include<gtk/gtk.h>
int n=-1;float*i,g;GTimer*t;GtkWidget*b,*w;f(){g_timer_stop(t);g=g_timer_elapsed(t,i);g_timer_start(t);if(g<2)gtk_button_set_label(GTK_BUTTON(b),~n++&2?"b":"a");}main(c,v)char**v;{gtk_init(&c,&v);w=gtk_window_new(GTK_WINDOW_TOPLEVEL);b=gtk_button_new_with_label("a");gtk_container_add(GTK_CONTAINER(w),b);gtk_widget_show_all(w);g_signal_connect(G_OBJECT(w),"destroy",G_CALLBACK(gtk_main_quit),0);g_signal_connect(G_OBJECT(b),"clicked",G_CALLBACK(f),0);t=g_timer_new();gtk_main();}
GTK is soooo verbose
 
congrats @quintopia on winning the implement-a-TC-language bounty; you actually had the best two answers from my point of view, so I gave it to the shorter one
I really liked the resplicate answer too, though; it's a creative choice of language and one that works well with Python
 
8:19 PM
@betseg GTK_WINDOW_TOPLEVEL is just a constant, right? You should be able to use its value directly.
 
saved 18 bytes!
 
Hi friends!
 
hey!
 
o/
 
0
Q: The circumference of an ASCII art object

Caleb KleveterChallenge: Create a function that takes in piece of ASCII art as a string and returns an int that is the length of the outer edge of the ASCII art in characters. The characters that are used are \, /, _, -, |, and *. The line characters always represent a distance of 1, they increment the answe...

 
8:28 PM
ooh
interesting
i like challenges that stop most golfing languages from being used
it's nice to see C#, C or ruby answers at the top
 
one of those languages is not like the others
 
@JohnHathwood *cough* C# *cough*
 
(Ruby has a long history as a codegolf language)
OK, all three of those languages are not like the other :-)
 
C# is really growing on me, mostly because of the consistency of compiler implementations. Also: Mono 5 is coming soon <3
 
I do like C# every now and then
 
8:37 PM
Also, how C# gets more and more F# features where appropriate. C# 7 really is vastly superior from a productivity standpoint than it's previous users.
 
Now that chat is a bit more active, can I quickly plug my sandbox post again? codegolf.meta.stackexchange.com/a/4750/8478 (Since it's not a new post, it doesn't get much attention otherwise I'm afraid.)
 
yeah the sandbox is a bit clogged
 
> Expect the next one in 6 to 8 weeks.
Hey, that's when PPCG gets a graduation design!
 
exactly
 
PPCG hasnt graduated yet?
 
8:40 PM
We have
No design tho
 
Java question: can any of you think of a string constant defined in the standard java libraries?
 
I can think of one in Processing
 
Anonymous
There's a bunch
 
8:42 PM
oooh
what a cool page
 
Anonymous
9:00 PM
@MartinEnder I like it, but I have no idea how it would be done :P
 
@Mego thanks, that's a start :)
 
9:15 PM
@MartinEnder "The solution should not depend on any particular input to ensure that the output stream is regularly written and flushed." is a little confusing. If we are taking a newline delimited string, can we depend on the newline character being in the input? I'm thinking of languages like sed that read a line at a time.
Other than that, and my comment on the post itself, it looks good.
 
Anonymous
@ThomasWard Your avatar is still unsettling
 
@Riley I'll reword that to "any particular sequence of input values".
If some separator is used as part of the input format that's fine.
 
So you can't wait for the sequence: 10,11,12 for example?
 
I should be able to release a binary of my new language soon
 
9:52 PM
@MartinEnder: OK, I've written up a new Meta question on defining quines
 
Wow, a lot of work in that post
 
right, I don't think I've ever resorted to TIO links on a Meta question before :-)
 
You are based in UK, right? How did you live the ramsonware attack?
It hit hard on some companies in Spain
 
it's not like it affects everyone in the country immediately all at once
 
Sure
 
9:56 PM
it's shut down some companies and organisations (most notably many hospitals are in emergency-only mode)
 
3
Q: We need a new proper quine definition

ais523 Note: In this Meta question, it was determined that the correct thing to do if you think an established consensus has become outdated is to post a new question, even if the question would otherwise be considered a duplicate. Background Our current rule for defining a "proper quine" is as fo...

7
 
but hasn't affected me personally yet
 
Yes, I meant which companies
 
hopefully it'll be fixed before it does too much damage
the NHS is the big one that made the news
I don't think anyone's even reporting on any other victims, because of that
 
Here Telefónica (the telecom operator) had to shut down their computers
 
9:58 PM
does anyone know which sort of ransomware this is? (actual strong encryption-based ransomware which requires payment to retrieve the data, fake ransomware which is claiming to have encrypted the data but actually hasn't, or malware which just outright deletes all the data and then gives a payment line that doesn't do anything?)
 
@ais523 Awesome question BTW
Do you have any examples of an eval quine?
 
there's a couple in the post
I have a five-language polyglot quine that's an eval quine in three languages, somewhere
looking for it now
 
@ais523 They told me it claims to have encrypted the data. I don't know if it's real. It requires payment to retrieve it
 
wait, no, that one isn't a quine
@LuisMendo all three sorts of ransomware do that, but two of them are lying
 
This is an English quine
 
10:00 PM
^^ No idea then
 
@DJMcMayhem here: this isn't a true quine because the question was asking for something else, but it's a clear example of an eval quine structure
 
I really borked TNB
Idk what I just did
 
@DJMcMayhem actually, better, what about this one?
 
I was typing and the screen went white console opened and thousands of eval errors popped up
 
@ais523 Huh. That one doesn't seem very cheap
I don't think a more solid definition of quine should exclude something like that (but that's just my opinion. Maybe someone would object)
 
10:04 PM
the reason some people find it cheap is that it's trivially convertible to a universal quine constructor, and thus makes almost all quine challenges solvable the same way
I personally think that's a problem with the challenge, not with the quine structure; but some people disagree
incidentally, I'm not that attached to my answer on the quine question; I'm hoping that there are better answers there, but I posted it in case there aren't
 
10:20 PM
My laptop is powering on, but it doesn't go to BIOS. I see the power light on and I can hear all the components spinning around inside, but nothing is appearing onscreen
Send help
 
0
A: Sandbox for Proposed Challenges

Comrade SparklePonyTips for golfing in /// What general tips do you have for golfing in ///? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to /// (e.g. "remove comments" is not an answer). Please post one tip per answer. Sandbox stuff: /// is a ...

 
Apparently it's a known issue... caused by Windows 8. That's rather depressing, considering my laptop has Ubuntu 17 on it.
 
But it came with Windows 8, didn't it? Windows 8 left its trace :-P
 
It can with Windows 7 that I upgraded to Windows 10 and then to Ubuntu
I have a project I've been working on for 2 weeks on there...
It's due on Monday...
 
Oh man, sorry
 
10:29 PM
I suppose I could steal another thinkpad and swap the drives.
 
It doesn't even startup on USB / CD?
 
The bios doesn't start
 
So how could WIndows spoil the BIOS?
 
It doesn't spoil the BIOS, it spoils the display hardware that causes the BIOS to crash.
I'm not sure how.
I can tell that it's not just the screen, if it booted to Ubuntu just without the display functioning then I would have to actually hold down the power button to shut it off, rather than it being instant.
The screen turns on, like I can see it getting brighter, but it's black.
 
Anyone knows how to do this challenge in Python for 25 bytes?
I get the 26 byte solution, but 25 seems impossible to me
 
10:35 PM
@Adnan ?
 
@Adnan Are lambdas allowed?
 
@WheatWizard yeah it must be a full program
forgot to specify that
 
Thats no fun
 
It's weird, because 26 is trivial
But I'm probably missing something very obvious here
 
No anonymous function allowed? Then I don't see how Octave can be 32
 
10:39 PM
Probably string formatting?
Is it python 2 or 3
 
2
Python 3 has 30 bytes as the best
 
hm then never mind on the formatting
 
@LuisMendo I don't know Octave too well, but I think it must support IO by itself
 
Question: in java how to do equivilinent of this JS:
 
@Adnan And the output has to be exact? So no ans = ... allowed? Because then I dunno how to get below 35
Hm 34 now
 
10:44 PM
Yup, I don't think ans is allowed
@LuisMendo Hey nice! :)
 
Octave's e is golfy :-)
 
@WheatWizard That actually makes sense
 
I have never see this before. I feel like it should error
 
How does it make sense?
 
10:47 PM
"g""o" == "go"
 
huh
 
Now I want to figure out how to golf with this
 
And I guess it has higher precedence than *
 
@WheatWizard I feel like string formatting should save a byte
I just don't know how
 
10:49 PM
@WheatWizard the only use in golfing this has is when you need to use two types of quotes in a string
 
@DestructibleLemon Oh yeah thats real smart
 
0
Q: Tips for golfing in ///

Comrade SparklePonyWhat general tips do you have for golfing in ///? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to /// (e.g. "remove unnecessary whitespace" is not an answer). Tips for itflabtijtslwi are on-topic and valid here as well. Please pos...

 
@WheatWizard ? is that sarcasm
 
@DestructibleLemon No it works
 
ok thanks
 
10:51 PM
could probably be used for polyglots too
CMC: print '" in python
 
you know what is a real help, or would be, in python Turtlèd polyglots?
 
benchmark 11 bytes
 
' Turtlèd code here' ; Python code here but make sure Turtlèd doesn't do dumb stuff
@WheatWizard print "'"'"'
or
if you want python 2 that is shorter now
 
Unfortunately it turns out print"'\"" is shorter
by a single byte
I'll find some use for this
 
cmc: print '''""" in python
 
10:57 PM
Ah it is shorter if you need to print '''""" in which case the code is print"'''"'"""' whereas the naïve way is print"'''\"\"\""
Time to write a tips answer
> If you ever need to print '''""" the shortest way is print"'''"'"""'
A true game changer
 
@Adnan I'm curious about that Octave 32-byte answer. Are answers ever disclosed? I don't know how Anarchy Golf works
 
@LuisMendo I think so
I'm also curious about the 25-byte Python answer
but my brain starts hurting now
 
Wait. Date says 2011
 
@WheatWizard if you have restricted source...
 
Good point
 
user165474
11:18 PM
Yay almost 60% on Fanatic.
 
11:29 PM
0
Q: Batch - Can we call another script?

SteveFestJust like the title, can we call another external script if that saves some bytes? Thiz queztion iz zo zhort

 

« first day (2295 days earlier)      last day (2547 days later) »