« first day (3174 days earlier)      last day (1669 days later) » 

12:52 AM
Given an integer s>=3, return the smallest integer n that cannot be expressed with fewer than s s-gonal numbers.
I suspect that's too hard for a CMC; would answers just end up being too slow anyway?
 
 
8 hours later…
9:15 AM
@Cowsquack it doesn't have I/O, but it's fairly easy to define a halt state via simple objective means; my original proof divides the tape into sections and only halting programs will cross from a section into the section before; I think it's possible to improve the proof so that halting is defined as falling off the leftmost end of the tape (as it happens, you only need a semi-infinite tape for TCness)
 
The ABC logic in my newspaper today had 11 clue letters (out of 20 possible clue letters). I only used 6. I wonder if that's a minimum...
 
9:52 AM
@ais523 perhaps I don't understand what a universal tm really is, but in what sense does it model the input taking part? is the "input" baked into the program or does it not need input for universal tc-ness?
 
it doesn't model the input taking part, that isn't a requirement for TCness
instead, you compile your program from some other language (e.g. cyclic tag) into an initial state for the 2,3 machine, then run it to see if it halts
it's a pretty complex compilation, the initial state is infinitely long and has a complicated nested pattern
meaning that the 2,3 machine tends to be useless for proving things TC because generating the pattern is nearly always going to be more complex than just using a more complex Turing machine
 
Who serial-downvoted me?
 
@ais523 oh, so its this "initial state" you mention in the next message that is instead important
 
right, the initial state is sort of the CA equivalent of the program + input combined; it's like you start execution from a memory image
 
@ais523 ah so that halting condition is what wikipedia means by "and the claim is open to debate when taking into consideration traditional definitions of universality and whether the relaxing of the Turing machine properties used for the proof can be allowed in general and may even suggest novel ways to define computational universality more independent of arbitrary choices"
thanks for the replies
 
10:00 AM
it's more the initial state than the halt test that needs relaxing in this case, but yes, the big debate is about how much relaxation you're allowed before you're no longer proving TCness
this isn't objectively defined and it's hard to define objectively
 
interesting
 
A _
Interesting, Windows Notepad now supports Binging by using Ctrl+E on a selected text.
 
@TwilightSparkle What did you get downvoted on?
 
A _
@JoKing Probably the null challenge.
yesterday, by TwilightSparkle
... Why the downvotes for my answer in Null Challenge?
 
10:17 AM
@A_ that's only two answers, one of which doesn't make much sense
i think someone just downvoted all the trivial answers for that question
 
A _
I think they also downvoted non-trivial answers.
I'm not sure whether serial means posts posted to a single challenge or all of the posts by the user.
 
10:55 AM
@JoKing It does make sense... That's an Eater 1. Golfed by rotating.
@A_ According to help page, by user.
 
@TwilightSparkle I was more talking about the Windows Notepad answer
 
Oh.
(The notepad thing is actually based on some discussion here)
 
yeah, editor golfing is fine, but I don't understand why the keystrokes are needed, since the editor is empty by default
 
A _
The input will be hard-coded into the editor. You need to remove it if you want to ignore input and do nothing.
 
Oh.
I'm mimicing vimgolf, so the input is put into the editor first. Then I need to ignore it.
 
11:05 AM
it did say in the question that you can take no input
 
Oooooh.
 
and generally you can assume that a program doesn't take any input if it doesn't need any (to abuse EOF in some esolangs or for other reasons)
 
oh oh oh
 
11:21 AM
@TwilightSparkle While you're here, I just posted a 1+ quine if you want to take a look
 
12:11 PM
Hooray, got my first professional after-hours page. Too bad it was at 2 AM
I'm very tired :'DDDD
 
I wonder if a dispatch table approach will be shorter. There are only about 8 or 9 distinct characters ever used in the code. (1+ quine)
 
A _
12:27 PM
(at)Veskah Good for you. I hope you won't become tired like that day.
The sequence 1, 2, 3, ..., n gets pushed to a stack. The stack will be outputted via an iteration of outputting the top of the stack and popping the stack. Write a formula predicting what will the ith number be in the output.
 
12:51 PM
@JoKing Whew, yet another?
And much shorter!
@user202729 What is dispatch table?
 
1:32 PM
@TwilightSparkle Where 911 keeps their phones
 
A _
@Veskah What is 911? (In this context)
 
1 more than 910. (Actual answer: American emergency services)
((The operators are usually called dispatch and would most likely have a table))
 
A _
It doesn't seem like the American emergency services can golf programs for you.
 
(((please laugh)))
 
A _
It isn't funny at all. I am serious. (It seems like you are looking at the wrong definition in the dictionary.)
 
1:36 PM
I try never to be
 
A _
@Veskah Operator table? Is it a list of instructions?
 
It is a table owned by the operator
 
911 is operated by what is essentially a specialized call center. The employees who take the calls are called operators, and they pass the calls on, or dispatch them, to the relevant emergency services
 
A _
1 hour ago, by user202729
I wonder if a dispatch table approach will be shorter. There are only about 8 or 9 distinct characters ever used in the code. (1+ quine)
 
But each country has a different emergency services number. For example, in the UK where you call 0118 999 881 999 119 725... 3
7
 
1:51 PM
@Veskah Hahahaha!!
In this context, shouldn't it be
 
A _
@user202729 's message is like a riddle. Without the user we will never know what they originally meant.
 
Or you could look up dispatch table
 
A _
2:10 PM
The good thing about The Nineteenth Byte is that I can post anything I want here as long as the message is covered up by another conversation.
 
@DJMcMayhem bot I think 911 works in many other countries too
as well as 112
yellow: 911 blue: 112, green: both, black/gray: idk
 
@flawr 112? I thought it was 999 the UK
 
ngn
2:27 PM
@DJMcMayhem "The pan-European 112 code was introduced in the UK in April 1995 with little publicity. It connects to existing 999 circuits." -W
 
Huh. I know Indonesia uses 112 as one of its emergency numbers
 
ngn
@DJMcMayhem dyalog apl prints "syserror 999" when it crashes :)
 
thailand is 191
112 seems somewhat prone to butt dialing
 
Czechia originally used 150 (fire dept) / 155 (health dept) / 158 (police dept), later we got 112 as well. All managed by the same call center.
 
@DJMcMayhem We only use 999, I've never met anyone who uses 112 over 999
 
2:39 PM
0 is obviously a fire hose, 5 is a wheelchair, and 8 represents handcuffs
 
Also, will that change after Brexit?
 
2:53 PM
I have to say, it's fun seeing all the amazed comments under this answer, given how long 13 bytes is now :P
 
3:24 PM
> my work computer from time to time and my account was hacked twice
The entirety of a ticket that just came in
 
is this a station in your network? o.O
 
I would guess so? The ticket was user-submitted and I don't understand how it made it past the helpdesk with so little information.
 
Wait, that ticket was approved by someone in your company?
 
Not sure what you mean by "approved" but yes, at least one set of eyeballs hit the ticket before it was escalated to my department
 
ngn
hack it a third time for luck
 
3:28 PM
I'm tempted to reset the user password and call it good
 
I approve of that action
 
@DJMcMayhem so far I have no experience with calling the emergency services in the UK:)
 
3:42 PM
That's a good thing, though, right?
 
I'm not mad about it:)
But at the same time I think I'd love to visit the UK some day
 
CMC: Microwave time . Given an input number of seconds, output the time that would show on a microwave, using the convention that 1:00 means 60 seconds. Examples: 60 -> 1:00 ... 65 -> 1:05 ... 200 -> 3:20
 
@AdmBorkBork My microwave will show "0:65" if you enter it that way
 
3:57 PM
Yeah yeah. Some do, some don't. This isn't about entering the time using the numberpad on the microwave, but instead displaying how much time remains.
 
Can we assume the input will be less than 3600?
 
No?
What if I need to cook a chicken?
 
Err, sorry. Better question: Can we assume the microwave only shows minutes, never hours?
 
@AdmBorkBork Use an oven?
 
@DJMcMayhem Yeah, that's fair assumption.
 
@cairdcoinheringaahing Pshaw. Logic has no place in code-golf.
 
Does he even include Steak Drop?
 
@DJMcMayhem Would you mind changing this user's username back to JHTBot?
 
@AdmBorkBork Can we anser as a two-element list?
 
4:05 PM
@Adám sure
 
@DJMcMayhem These guys are cooks, not scientists
 
@AdmBorkBork 3 bytes in that case
 
@AdmBorkBork APL (Dyalog Unicode), 6 bytes 0 60∘⊤
 
O.o I seem to have a doppelganger
 
4:08 PM
@DJMcMayhem bonus points to you for pretty-printing it
Bonus points not redeemable.
 
What do you mean by pretty printing? Padding zeroes?
 
@cairdcoinheringaahing I just noticed that - curiously - Doppelgänger is not the opposite of Einzelgänger, those two actually have quite unrelated meanings.
 
I thought that was mandatory
 
@DJMcMayhem Padding zeros and putting a colon between. I guess I'm more curious as to how short / and % can get in various languages.
 
Otherwise it would just be 20 bytes: lambda n:[n/60,n%60]
 
4:12 PM
And see, that wouldn't work in PowerShell because / will give you a float value.
 
Same for the good python. That's why I used the bad one.
In good python it would be n//60
Anyway, pretty printing makes the challenge more interesting
 
True
 
@DJMcMayhem Good python would use divmod :P
 
Oooh, ":".join(map(str,divmod(65, 60)))
V is good at manipulating strings as long as you don't ask it to understand what those strings mean
 
4:37 PM
@mods
32 mins ago, by caird coinheringaahing
@DJMcMayhem Would you mind changing this user's username back to JHTBot?
 
Oh sorry, I don't know why I didn't do that
 
@DJMcMayhem It's fine, the room was quite busy :P
 
Forgot the login? :P
 
Not sure which email I used :P
Thanks!
Now I just need to get it up and running after two years :P
 
Hey guys!
I was trying some golfing in C, which I hadn't done yet
and came up with this for factorial: f(n){return!n?1:n*f(n-1);}
 
4:49 PM
@ArBo Hello!
 
that worked, but the very similar f(n){return!n||n*f(n-1);} always returned 0
1*
and I can't for the life of me figure out why
anyone have any clue?
 
|| in C != || in Javascript.
In C it always return bool.
{downvote as not read the docs}
 
Despite having done quite some programming in C, I was unaware of this behaviour. Thanks!
 
Wait, then what's happening here? Try it online!
 
(I'm sorry for not checking more thoroughly, since C doesn't really have a "bool" type I didn't consider that possibility at all)
@DJMcMayhem precedence?
 
4:59 PM
@DJMcMayhem ^
 
@ArBo you can shorten this by abusing a gcc implementation detail
 
Of course
 
@Doorknob nice!
is this documented at all? I'd be interested to find out the reason for it
 
Because the return value is usually stored in eax.
It won't work with -O2.
"Documented" on the golfing tips on this site.
 
 
3 hours later…
7:46 PM
Always nice when someone necrobumps a post and you spot a golfing opportunity
2
 
 
1 hour later…
9:10 PM
@cairdcoinheringaahing Whispers, 25 bytes
 
10:07 PM
For those of you who wanted to downvote the CC-BY-SA 4.0 migration announcement, but couldn't because it was locked...

It's not locked anymore.
-237
Q: Stack Exchange and Stack Overflow have moved to CC BY-SA 4.0

Tim PostEffective today, all Subscriber Content on Stack Overflow and the Stack Exchange network will be available under the terms of version 4.0 of the Creative Commons Attribution-ShareAlike (CC BY-SA) license. This change follows our last Terms Of Service (ToS) update where we inadvertently introduce...

@DJMcMayhem I don't get the joke.
 
 
2 hours later…
11:57 PM
for anyone who hasn't watched that entire show twice
 

« first day (3174 days earlier)      last day (1669 days later) »