« first day (2411 days earlier)      last day (2433 days later) » 
00:00 - 17:0017:00 - 00:00

5:01 PM
Can I get someone's opinion on this as a challenge concept?
 
I don't think it's possible to decode a randomly generated string of lowercase letters that has been encoded because there's no way to know if you have the correct input string
It's like trying to crack a one-time pad
Plus the terms encode and decode are very broad and poorly defined. What exactly does that mean? What if my encoding algorithm is replace all inputs with the lyrics to Never Gonna Give you Up?
 
@DJMcMayhem That's something I'll have to work out, thanks
@DJMcMayhem Then its really weak, and could be "cracked" very easily
 
No it couldn't
It's literally impossible to recover the input if that's your encoding algorithm
Because every single input has the same output, you can't possibly recover the input
 
@DJMcMayhem ಠ_ಠ Nevermind, I can't read.
 
You could even have your encoding algorithm be do absolutely nothing, return the input.
Even that is impossible to recover if the inputs are random
 
5:08 PM
ಠ_ಠ Looks like I have quite a bit to clear up
 
Right now, the challenge is basically Given an arbitrary string, determine what input to an unknown algorithm generates this particular output. That's not even remotely possible
 
@DJMcMayhem Ergo, I must clear it up a lot
 
Anonymous
You could add the restriction that encoders must be bijective, which would help
 
@Mego bijective?
 
Anonymous
@cairdcoinheringaahing Each input has exactly one output, and vice-versa
 
5:11 PM
IIRC, that means that no two inputs result in the same output
Yeah, ninja'd ^^
 
Anonymous
Surjective means each input maps to exactly one output. Injective means each output is produced from exactly one input. Bijective means surjective and injective.
 
So, the original idea for the challenge was based off of two "armies" sending and intercepting encrypted messages, with each army trying to decrypt the other armies messages, which means that messages must have some way of being decoded. I'll make that clearer.
 
@Mego So all deterministic functions are Surjective by default?
 
Anonymous
@DJMcMayhem If you mean function in the mathematical sense, yes
 
I meant in the programming sense
Without randomness, every input has to have exactly one output
 
Anonymous
5:15 PM
I would think the answer is also yes in the programming sense, but there's probably some crazy construction that would disprove it
 
Sure
Can a function be Injective if a certain output can't be produced? (produced from exactly 0 inputs)
 
Anonymous
@DJMcMayhem Yes, because that output wouldn't be part of the codomain
 
That's what I thought, just wanted to clarify
I still have a hard time remembering those terms
 
Anonymous
f(x) = 2x is injective, even though there is no z such that f(z) = 1
 
Exactly
 
Anonymous
5:17 PM
(assuming ints)
 
There's also a term for when a function is Bijective, and it's own inverse, such that f(f(x)) = x, right?
 
Anonymous
@DJMcMayhem I think so, but I don't remember it
 
Oh
Jul 23 at 17:25, by Wheat Wizard
@DJMcMayhem No it does not, bijective functions must not be their own inverses, as stephen linked that is called an involution.
 
Anonymous
Yep, involution is the term
 
I had a CMC that was shortest function that is an involution on all positive integers
But I didn't know the right terms
 
5:19 PM
@DJMcMayhem Wouldn't f(x) = x work?
 
Anonymous
@cairdcoinheringaahing Yep, id is the simplest involution
 
Hmm
Good point
I originally wrote this:
Jul 23 at 17:16, by DJMcMayhem
CMC: Write a function that is bijective for all positive integers. In other words, for all positive N, f(N) is unique and != N && f(f(N)) == N
But that was because I didn't understand what bijective meant
 
Anonymous
@DJMcMayhem f(x) = -x
 
I don't think that works because -x will be outside the range, so it can't be an involution since it can't accept it's own output
 
Anonymous
Then f(x) = x XOR 1
 
5:22 PM
@DJMcMayhem involution just means f(f(x)) == x afaik not that f(x) is in the same domain as x
 
Yes, that was most peoples solutions. Except they wrote it as f(x) = x + 1 if x % 2, else x - 1 or something like that, I don't remember
 
actually f(x) = x XOR 1 isn't the same as f(x) = x + 1 if x % 2, else x - 1
 
I would have expected XOR to be more common
 
I know.
 
but that can be written as f(x) = (x + 1) XOR 1 - 1
 
5:29 PM
I think you did a typo there
Or brackets are confusing
 
assuming XOR has higher priority than +/-
 
5:41 PM
TIL totallyhuman is i cri everytim
 
Is SNOBOL pronounced snuh-bowl or snowball?
 
TIL SNOBOL was a thing.
 
@Pavel Snowbol
@Mr.Xcoder TIL what TIL is :P
 
@Mr.Xcoder basically it was the first language to support regex before regex was a thing.
The S stands for string
SNOBOL (StriNg Oriented and symBOlic Language)
The acronym sorta sucks
 
@Pavel It could have been SOSL :D
(so-sal)
 
5:58 PM
Or SOASL (Swhasul)
 
tfw you're stuck at school for half an hour because it's the first day and school ends half an hour early
 
@HyperNeutrino We missed 2 and a half hours of school today because its the first day :p
 
lol
we did pretty much nothing today lol
we had a spirit assembly
those things are like hell in its truest form
 
@HyperNeutrino spirit assembly?
 
school spirit is a thing
 
6:01 PM
Hehe, Github screwed up their CDN. No CSS on the main page: twitter.com/search?q=github&src=typd
 
you're apparently supposed to care
 
@HyperNeutrino americans and patriotism canadians and politeness. I will never understand that
 
@cairdcoinheringaahing but I live in canada
 
@cairdcoinheringaahing neither will I, and I live there.
 
6:02 PM
@HyperNeutrino Hi. How was vacation?
 
Anyway, it's not a nationalism thing
 
@Mr.Xcoder Pretty good, thanks.
 
@HyperNeutrino That the vacation in the bank? (Halifax)
 
@cairdcoinheringaahing The world and thinking Canadians are intrinsically polite. I will never understand that
 
@HyperNeutrino BTW I pretty much fulfilled my duty
 
6:03 PM
@cairdcoinheringaahing ._. I visited a total of 3 provinces and 3 states
though the states don't count because we were passing through the US as a shortcut from NS to QC
 
@HyperNeutrino I live in Britain, I'm well aware of the stereotypes
 
lol
16 hours ago, by HyperNeutrino
hold on what is this I leave for like 2 weeks and Mr Xcoder has almost as much rep as me
 
@HyperNeutrino Oh lol, how did I miss that?
 
@HyperNeutrino Don't worry, I've deliberately tried not to overtake you in rep
 
but I'm back and I must not let that happen :)))
 
6:04 PM
@HyperNeutrino I hope that's not up to you :)
 
many people have a lot more rep than I remember
@Mr.Xcoder *gets account deleted again*
 
@HyperNeutrino O why no
 
@HyperNeutrino As soon as you left, there was a surge of of easy questions which people FGITW'ed
 
lol
@cairdcoinheringaahing o cmon
btw I'm abandoning proton (huh sounds familiar?)
 
There were a lot of very cool questions (apart from the trivial ones)
@HyperNeutrino Way too deja'vu giving
 
6:06 PM
I need a better lexer, a better parser, and a better interpreter, especially a better object representation
(essentially the whole thing)
 
@HyperNeutrino take a look through these and see what you've missed
 
oh yeah the diet haskell one was interesting
 
Hehe, he missed two closed questions of caird
 
might solve it in proton if nobody's done that yet
 
@Mr.Xcoder ಠ_ಠ I told you about those in confidence
 
6:07 PM
@cairdcoinheringaahing ಠ___ಠ
 
@Mr.Xcoder this and this?
 
yes, of course
@HyperNeutrino 3 then.
 
@HyperNeutrino Plus the first ever question to be closed as a dupe of 5 different questions
 
I want to say 'nice' but at the same time not nice? idk lol
 
6:09 PM
@HyperNeutrino I'm fine with that (and the others) being closed. I'm working on huge KoTH like one at the moment, so I won't be posting recently
 
And I'm quite sad it was closed as a dupe (especially of 5 freackin' challenges)
 
@cairdcoinheringaahing o interesting
 
hey, I'm also writing up a KoTH
 
@Mr.Xcoder Keep linking it enough in chat, and people will upvote your Pyth answer
 
also HW was protected again and apparently nobody noticed
 
6:10 PM
@HyperNeutrino No one really cares anymore :P
 
@cairdcoinheringaahing Wait, I wasn't referring to my Pyth answer at all, I was talking about your challenge.
 
@Mr.Xcoder Is the reason that you're sad it got closed, because people won't see your Pyth answer?
 
@cairdcoinheringaahing No, because the challenge itself is really nice due to the lack of challenges. And it's far less trivial and far more interesting than most of our latest challenges.
 
@Mr.Xcoder I don't see how combining multiple completely unrelated challenges together makes it any less of a dupe
 
6:14 PM
@DJMcMayhem I am not saying it is not a dupe.
I agree that it is a dupe, but I am sad that it is a dupe.
 
Anonymous
Oh dear... I've just earned the privilege for review queues on SO. It's terrifying.
 
And that's before you can review close votes. There are 7.6k in the CV queue right now :O
 
Anonymous
I did 25 tasks in triage and now I want to never visit SO again :P
 
Anonymous
So much "gimme teh codez"
 
@Mego Lucky you. I earned gold review badges on SO.
It was so painful
 
Anonymous
6:19 PM
@Mr.Xcoder You poor soul
 
Anonymous
What possessed you to endure such torture?
 
@Mego s/te/ho
 
0
Q: Golf a generic code-golf machine

HyperNeutrinoChoose a language A, which can be the same as your submission's language if you want, or different. Then, given a valid program in language A that terminates in less than 1 second, takes no input, and is completely deterministic, starting from the first character, remove every character that can ...

 
That was fast.
anyway gtg o/
 
@HyperNeutrino That's the way you avoid me passing you in rep :P - Bye o/
 
6:23 PM
> I will be back in about an hour or two to address any concerns.
ಠ_ಠ You're telling us when to complain :P
 
Brb finding a loophole to complain about
 
@Mr.Xcoder Beat you to it :P
 
@cairdcoinheringaahing ಠ_ಠ the challenge does have test cases.
 
> Test cases will not be provided for this challenge.
 
Then I'm not entirely sure of the reasoning behind your comment.
 
6:28 PM
@Mr.Xcoder I want to know why there won't be test cases
 
Now I am entirely sure of the reasoning behind your comment.
 
ಠ_ಠ The meta review queues haven't changed for 7 days.
 
Well, meta itself was quite dead for the last 7 days
 
0
Q: My device malfunctions... Abuse its undefined string behaviour!

TheIOSCoderHelp! My device malfunctions and whenever I try to repeat a String, I get a messy results. Instead of repeating the same string N times, it fills a square NxN filled with each of its characters. For example, given the String "Test" and the number 2, instead of "TestTest", I get: TT TT ee ee ss ...

 
@Mr.Xcoder The only golfing opportunity I can see is +⁷×⁴ => Y×⁴, but that needs another character to work ಠ_ಠ
 
6:52 PM
0
Q: There's no place like home

caird coinheringaahingI recently watched The Wizard Of Oz and thought that when Dorothy taps her shoes together three times, it would be easier if she used a program to do it. So let's help her. Task Output slippers being tapped together 3 times. Output Slippers being tapped together. A pair of slippers not being ...

 
7:25 PM
CMC: Read your own source code
 
@cairdcoinheringaahing SOGL, 5 bytes: ▼‛F‘→
 
@cairdcoinheringaahing Polyglot, 1 byte: Q
 
@cairdcoinheringaahing Bash, 6 bytes: cat $0
 
Sorry if this already got brought up a hundred times, but you guys were mentioned a few days ago on the database stack exchange. dba.meta.stackexchange.com/a/2831/62128
I searched for messages containing "dba.meta.stack" and saw no results. But then again, I still see nothing after I posted that link. I guess I don't know how to properly search for chat messages containing something.
 
7:41 PM
0
Q: Make an alphabet fan!

MD XFInspired by a bug in a solution to this challenge, your challenge is to produce this exact text: ZYXWVUTSRQPONMLKJIHGFEDCBA YXWVUTSRQPONMLKJIHGFEDCBA XWVUTSRQPONMLKJIHGFEDCBA WVUTSRQPONMLKJIHGFEDCBA ...

 
@cairdcoinheringaahing for compiled languages, read the executable or source?
 
@betseg Source
 
Note: I've removed the part about your program needing to be unchanged when run with itself in the Golf a generic code-golf machine challenge because I realized that that doesn't make sense for A != B
 
@cairdcoinheringaahing C, 90
 
@cairdcoinheringaahing PowerShell, 33 bytes -- gc $MyInvocation.MyCommand.Source
 
8:08 PM
@cairdcoinheringaahing V, 5 bytes: :e <C-r>z
 
@cairdcoinheringaahing APL, 6 bytes: ⎕CR'F' Character Representation.
@cairdcoinheringaahing For the fun of it; an APL namespace which prints its source when loaded: ⎕←⎕SRC⎕THIS (should be self-explanatory)
 
I feel like it can be a lot shorter
 
Switch to V :P
 
ಠ_ಠ
 
8:28 PM
@EriktheOutgolfer how on earth do you write $\xi$?
 
8:41 PM
probably should rewrite it to cover that issue
 
 
1 hour later…
9:57 PM
Ugh, I just suggested an edit on Physics.SE only to get rejected and the OP performing the exact same edit themselves. I feel cheated out of my 2 rep :/
 
lol
also rip
also, waiting for NSP
 
0
A: Sandbox for Proposed Challenges

HyperNeutrinoFill in a pseudo-reverse-Pascal-Triangle Scoring criterion: code-golf Main theme(s): arithmetic, math/mathematics Other theme(s): N/A A "pseudo-reverse-Pascal-Triangle" (sorry, I don't know what it's called) is a triangle/pyramid of numbers where each number is the sum of the numbers below it...

 
0
Q: Let's converge to 9!

ArnauldGiven n > 2, print or return the smallest non-negative integer k such that a(n, k) = 9, where a(n, k) is defined by: a(n, 0) = n a(n, k+1) = a(n, k) / 2 + 1 if a(n, k) is even the sum of the digits of a(n, k)² (in base 10) if a(n, k) is odd Examples For n = 5, the expected output is k = 4...

 
10:59 PM
...ummm
 
I think i found a bug with the Befunge-98 interpreter on TIO
this should print 2
if you put a space before it, it works though...
 
$ python
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.getsizeof(None)
16
>>>
 
11:19 PM
$ python
Python 3.6.2 (default, Jul 20 2017, 03:52:27)
[GCC 7.1.1 20170630] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.getsizeof(364736465747346.5748746436364574)
24
>>> sys.getsizeof(364736465747346)
32
>>> exit()
$
 
@MDXF update this pls?
 
@ASCII-only oh yeah I keep meaning to and forgetting sorry
Wait but now it's practically the same as the other one
 
but... it's shorter
also really different
okay, it's not that different, but it's based on your solution
e.g. I don't use i+= or the puts :P
 
@cairdcoinheringaahing A@p not good enough? :P
@ASCII-only oh ok
also I finally wrote a semi-good golflang
 
@betseg O_o 24
nvm that doesn't reset _ every function call
 
11:34 PM
@ASCII-only standard floats
 
@betseg huh, TIL
 
ieee 754
 
CMC: extract hex literals from a string of the form '0x' followed by hex digits. test cases: qqq0x30x30x40x0xxxx -> 0x30, 0x40, qqq0x30x30x40x0x34a -> 0x30, 0x40, 0x34a
 
@ConorO'Brien JS: s=>s.match(/0x[0-9a-f]+/g)
 
@ConorO'Brien I think this works: Try it online!
 
11:40 PM
@ConorO'Brien Does it have to be case insensitive
 
no
you may accept one, or both cases
 
@ConorO'Brien Charcoal, 13 bytes: ▷SCa⟦S⁺0x″≕HC
>:D look at the unreadable verbose mode
 
RProgN2, 14 bytes: '0x[0-9a-f]+'E
 
This is like the only time Wolfram support has ever been useful :P
 
CMC': without regex
 
11:49 PM
@ConorO'Brien :| Does mathematica pattern matching count as regex (especially if it uses regex on the backend)
 
regex is regex
bonus points for going overboard :P
 
What about lua patterns?
 
>_> so only if I wrote an engine for Wolfram pattern matching would it be valid
 
regex is regex
 
Saying "Regex is Regex" doesn't help with that one.
 
11:51 PM
Wolfram pattern != regex too
 
sorry, let me acquaint myself with wolfram alpha and lua before giving an accurate answer :P
 
@ATaco :|
 
@ATaco see "revision" (link)
 
11:53 PM
@ConorO'Brien Precisely. Wolfram uses operators/functions not a string
 
@ASCII-only then shoot for it
 
Lua patterns are Explicitly not Regexs
 
@ATaco so they're not "Regular expression" and are not a "a sequence of characters that define a search pattern"?
 
It works in Charcoal but not Mathics. wat
 
11:55 PM
it still counts for the former thing however
 
Lua itself explicitely denies it being a regex, which is enough for me.
But, it defeats the spirit of the challenge.
 
@ATaco Hey Golfed looks like a pretty cool language (;P)
 
(That's what I tried to avoid but I really want to make a language called Golfed now)
 
Can you remove the space between in and (...)?
 
11:59 PM
Oh, I can actually.
 
yey I can claim to have golfed Lua code now \o/
 
00:00 - 17:0017:00 - 00:00

« first day (2411 days earlier)      last day (2433 days later) »