« first day (2221 days earlier)      last day (2607 days later) » 

12:06 AM
@KritixiLithos your bash clipboard answer: : is a noop in bash
replace ls with : for 1 less byte (tested, works for me)
 
1
Q: Input number; Output line number

Albert RenshawPopularity Contest Totally real backstory: I'm a contractor working on a website www.Sky.Net and one of our tasks it to create some self-aware program or something, I don't know I wasn't really listening to the boss. Anyways in an effort to make our code more self-aware we need IT to be able to ...

 
12:22 AM
can a mod clear the comments on this? ^
 
Agreed, thanks!
 
Code I am proud of:
String s = "";
String part;
while((part=input.substring(++i,i+1)).matches("\\d")){
	s = s + part;
}
pushConceptFromWord("$"+s,MODE_GENERAL,c);
 
what do?
 
It... extract the digits from the input, and puts them its own string?
 
Yep
 
12:32 AM
I'm not sure what pushConceptFromWord is tho
 
That's my own little proc, don't worry about that
 
And't I'm not sure why you need regex, can't you use charAt() and compare if it's greater than or equal to 0 and less then or equal to 9?
 
I'm using regex because I've grown dependant on it
 
lol
 
And I didn't entirely use regex because this code is already sitting inside a char by char parser, and regex wouldn't work as I need it to
 
12:36 AM
ok, so I will make a github now, with the codes for my koth, and if anyone wants to help me make the first bots that would be great
 
for(char c:input.toCharArray()) {
    if(c>=0&&c<=9) s+=c;
}
@ATaco Why do you have a char by char parser and not a for-each loop?
 
Also what should I call the mazekoth?
 
The AMAZEing KOTH
 
It allowed me to control i, which I like doing.
 
12:38 AM
also one of those random names was: "didactic parakeet"
 
@ATaco Which is fine, if there is a reason you would want to control i.
 
I suggest to call it "The great wall Maze"
 
Empires of the labyrinth?
EOTL - eeyotle
 
Just run your eyes through RProgN2's Compiler.java, there's probably better ways to do it, but I like how it is.
 
Oh right why did I forget the word labyrinth
 
12:42 AM
Must. Resist. Urge. To. Submit. RPogN2. To. CR.SE.
 
Why did you make RProgN2?
 
@DestructibleWatermelon King of the labyrinth?
 
Because RProgN was written in Lua.
 
oh carry on!
 
@ChristopherPeart because why not. :P
 
12:43 AM
@MatthewRoh well, kingdoms would be more appropriate
Clans?
 
0
Q: Strange byte count for winforms

QwertiyHow to cout bytes for winforms programs? Just met a strange situation here: C#, 120 bytes using System.Windows.Forms;class P{static void Main(){var a=new Form();a.Controls.Add(new CheckBox());a.ShowDialog();}} This code assumes console application and contains full code that can be compiled. ...

 
Realm?
 
I didn't like how most of RProgN was written, so I decided a full we-write would be nice.
 
Clans of the labyrinth realms?
COTLR?
I think that one is good
 
What exactly is the challenge like
 
12:45 AM
I don't know but the name has the right amount of grandeur in it I think
finished naming it
 
Is this a KOTH or a F2P mobile game?
 
thatsthejoke.jpg
I was commenting on the name.
 
and I was ignoring it
 
Is this answer valid?
0
A: Input number; Output line number

DJMcMayhemVim, 7 bytes 1 2 3 4 Try it online! As far as I can tell, this complies with all of the rules. In vim by default, the empty program prints out all of the input. Since <N><CR> Is a noop, nothing changes the input text, and since each input matches the desired output, this same approach work...

It seems valid but feels cheaty
 
12:55 AM
well
isn't the output usually all of the text though?
 
I mean, it works, so why not?
 
so this would output
1
1
2
3
4
if input was 1?
oh wait I got confused lol
yeah thats valid then isn't it
 
No, it would just print 1
 
replace N with number and it will be more clear maybe
 
Given that there needs to be at least four non-empty lines, that's the shortest possible answer
 
1:03 AM
Remember, this isn't
Get Creative, do something interesting.
 
It is now
 
Objective Winning Criteria are for Narcs.
 
1:15 AM
For this challenge, would lines that aren't run in a 2D language like Befunge be counted as comments?
 
comment isn't objective?
I'd say that if the code is stated in the program to not be evaluated, that makes it a comment
 
wat
can anyone on OPPCGMCS come take a look at my base
 
Comment definitely isn't objective.
 
I mean, if I made this code, the last line wouldn't be a comment
print(5)
while True: 1
print("hi")
 
grubsauce is valid code that does nothing in many languages. But it's a no-op, not a comment.
 
1:19 AM
Does this call for a meta question?
 
Probably.
 
hey, I might try and add befunge to the evolution of powers of two challenge
 
@DestructibleWatermelon I had considered that
 
I think I can make a string, then print out the ordinals
 
The Jolf solution is actually rather elegant, imo.
The fact that (int) '2' is 50 is neat.
 
1:26 AM
@ConorO'Brien "Prepended ^2@2)" when code is ^2@2(
Sorry for nitpick
 
You know you could have edited that yourself
 
Oh yeah
Well, I did
 
Could we try and setup the playfield for a befunge answer?
 
Once flobnar is on TIO I might give it a shot, but it would require some serious setup
 
Befunge
the only thing is is that when it is possible it'll be slightly trivial
 
1:33 AM
Could you make use of existing digits to put together a string?
 
@Pavel A cast to int from string gets its code? Neat.
 
@Pavel not really
 
@ATaco Single quotes are for chars
 
a little bit before, but not really
 
Right.
 
1:34 AM
(int) "2" is an exception.
In java, chars actually cast implicitly to ints.
 
ok, so, if we get the next two people to answer to cooperate, and they have enough chars, we can put down some output chars, . and ,
9007199254740992 is 2 ** 53
if we package all the 2 digit pairs we can, we end up with two ascii chars to print and some integers on the stack to print
it'll be .,......,@, then the string just before that
 
This is a bloody pain.
 
@DestructibleWatermelon remember implicit space printing... :(
 
I should have done n^2 instead of 2^n
 
aw
@Pavel nah
otherwise would have been too trivial
just comment some stuff out, you wouldn't have to work for anything
maybe if you had made the levenshtein distance vary...
 
1:39 AM
grow over time, maybe
 
yeah
maybe answer n gets n//2 +10
I almost regret answering in ><>
 
Why, so you could save it for later?
 
also I just realised one of the chars in my proposed string would be unprintable
@MistahFiggins yeh
 
You can squeeze out another ><> answer by using *><>
 
yeah, maybe
 
1:41 AM
@DestructibleWatermelon That's acceptable, all of Unicode is open to you.
 
not sure befunge deals with unprintables though
should we go for befunge?
 
I was sort-of trying to go for C.
But sure, befunge is cool.
Does *><> have exponentiation?
 
maybe we could go for BF?
 
Or bitwise left-shift, for that matter.
@DestructibleWatermelon That would take a lot of bytes, no?
 
@Pavel yeah, thats part of the point
 
1:44 AM
I mean, you can try
 
lol I just wrote r for right in a BF program
 
Alphuck?
 
Turtlèd
also the while loops look weird now
 
Woefully. Go for Woefully.
 
no
thats unpossible
well, mostly
 
1:48 AM
me fail english? that unpossible!
 
hmmm
if you did somehow manage to get woefully in there, it would be legendary
for two reasons:
one, the fact that you made a woefully program that big
two, woefully programs cannot have anything but newlines, spaces and pipes
so it could be possible, but each person would need to cooperate
 
The amount of answers needed, we would run out of langs.
 
so, we would need to both write in the program, and take out the leftover crud
we would need the last program that isn't woefully to be 10 characters or less, to make it into woefully
also I think I made a 2 ** some value program?
in BF
unbounded anyway
wait, still gotta figure out the printing part hah
nevermind
 
Is BF allowed to output by charcode by default? I recall hearing that at some point.
 
well
can you output a number that high as a charcode?
 
1:54 AM
CMC: Given an integer input, output the next biggest power of two, eg 5 => 8
 
also can someone find an unbounded BF interpreter?
wait... can I make...
a deadfish answer!!!!
 
0
A: Sandbox for Proposed Challenges

Wheat WizardBuild the Chain Quine This is an answer-chaining puzzle. Each person will write a program that is not a true Quine but does output its source when given the source of the last program as input. The first program will be a true Quine. Rules Standard quine rules apply You may not write a subm...

 
Don't know how deadfish works
But try!
 
should be pretty simple, actually
as long as the answer is an even number
actually might be annoying to circumvent the if counter == 256 counter = 0 thing
 
Well, i'll ping you if another answer gets added.
 
1:59 AM
I might try deadfish~
 
wat
Asking again, can anyone join the Minecraft server?
 
actually now that I think about it it will be annoying unless the number is a power of two?
 
so, wait for 64?
That might be hard
Wait. I think I can fit Mathics in, BRB.
No, I can not.
 
deadfish ~ for 2**64
iissdss{{{{i}iiiii}d}i}isso
deadfish would be many longer
 
Is Deadfish even valid?
It's not TC.
 
2:10 AM
shhhh
 
Sure it is
It doesn't have to be TC
 
can deadfish decide primality, though?
 
@JanDvorak uuhhhhhhhh
shhhh
 
True deadfish cannot be TC.
 
No one really minds Deadfish tho
 
2:12 AM
The only functions it has purely set the value of its only buffer, or puts it.
 
So what is iissdss{{{{i}iiiii}d}i}isso doing?
 
(random poll) what email service do y'all use?
 
@Pavel That's not Canonical Deadfish.
 
@ConorO'Brien Gmail
 
@ConorO'Brien Gmail
 
2:14 AM
deadfish~ i = increment, s = square, d = decrement, {<foo>} do <foo> 10 times, o = output
 
@ConorO'Brien Gmail
Pretty sure Deadfish can't decide primality, then
 
yeah, doesn't look good.
 
Not sure where {<foo>} came from, is that a derivative?
 
It sure can increment a number, though
 
Does it even take input?
 
2:17 AM
Not canonically
 
you can modify the language to initialize the stack storage with input instead of zero
 
Still can't add two numbers.
 
true
but neither can HQ9+
 
and we can't use that language either >_>
 
Similarly not TC
But it sure can print a bunch of 9s
 
2:20 AM
And yet we allow Help, Wardoq! and Bubblegum
Maybe the rules should change.
 
Bubblegum is TC
Just, not probably so
 
probably
 
._.
Not the point
 
only Google will tell if Bubblegum is Turing complete
 
No it will not.
 
2:22 AM
you should use cinnamon gun
 
It definitely is PPCG-strong, though
 
@ConorO'Brien Why do you need automated tests for something that simple >_>
 
Only @quartata knows
 
wat
Hey guys
Hash idea
 
Take potatoes. Make hash browns. Realize you're satisfied with life, and no longer need to hash numbers.
 
wat
2:25 AM
Basically you add the CRC32 of the input left shifted by 0..7 bytes
 
0..7?
 
wat
0, 1, 2, 3, 4, 5, 6, 7
It's Ruby range notation
 
Why do you need to left shift by 0 bytes at any point during this?
 
also which of 0..7?
 
wat
all of them
 
2:28 AM
07R in RProgN2.
 
um, so sum(0..7)?
 
O_o
 
wat
You take CRC32 of input, left shift, take the CRC32 of that, left shift, and so on
then you add all the CRC32s together
 
wait what is CRC32 lol
 
wat
Left rotate**
@DestructibleWatermelon Checksum algorithm
 
2:29 AM
C Hecksum
> hecksome - adj.: horrifying, awful
Hecksome is a thing now
sample usage:
> The hecksome warriors held the severed head high in the air
 
wat
brb adding to wiktionary
 
no
it'll just get deltacoed
 
wat
???
 
just try using the word hecksome around as many people as possible
@wat baleeted
 
wat
??
makes me think of whales for some reason
 
2:32 AM
its a homestar runner reference
 
Anyone heard of citogenesis?
 
@LuisMendo hey, mind me asking for your opinion on this spanish translation?
it's an answer with a spanish passage on literature.se, but I've tried to fix the english translation to be pretty accurate
how'd I do?
 
Well, I golfed the CMC down to 23 bytes:
2<. 012
*@>#2>g
>||!p-0
I think this works...
 
3:00 AM
When do you guys usually accept an answer in your code golf challenges? I have one approaching the one month mark
 
You don't have to at all, but one month is a good time. The suggestion is 1 week at the minimum.
 
Thanks!
 
ok I'm playing Town of salem, and the maf just voted the GF to the stand...
 
0
A: Evolution of Powers of Two

Matheus AvellarAnswer 51: HTML Distance 10 2.2e15<!--^2@2(#"#28@P2*Jp;math 2\^45#2^41 NB.`(expt 2 39); ^ exit @n.out (*2 32#e#a44******O@)//2 25)#e#2ej#printf("% $[2**43]bye'$/*#"A#327;N<."$"/class HelloWorld {static void Main() 0{;n***~ # System<.Console<.<.#1024 print(2**49);#0}}//4| #6904r"$2 #puts 16...

I don't think you need to worry about Deadfish not being a valid language.
You actually don't since it's a constant output challenge, which means non-programming languages are allowed.
It uses scientific notation, but not very precise scientific notation.
I don't think I can count that.
 
wat
 
3:06 AM
I don't think I will.
 
Imagine a 3 dimensional pascals triangle
 
no clue why there are spheres in it
...but imagine a 4 dimensions pascals hyperpyramid
I've just thought about it and I'm not certain the above rendering is correct... Wouldn't the center be an upside down pyramid? Right now it's more like a blossoming pyramid opening up with triangular channels/hallways
On the other hand how would it even look if the inner "hole" was just a pyramid? What would be on the edges where there are currently holes? hmmm
Ontop of that, these are pyramids with square bottoms; wouldn't it have a 3 sided pyramid with a triangular bottom? that's probably what's causing all of these issues
 
Jester; Got lynched day 2 in Town of Salem. Aw yea!
 
please don't redirect any game chatter into this room
6
be it nethack, DF, or tos
no offense
it's just kinda irritating
 
3:20 AM
@AlbertRenshaw Why is it a square base instead of a triangular? shouldn't it be triangular?
@Pavel :P "Steve Bannon Marks Draft Of Executive Order He Likes With Noxious Pheromone Secretion"
 
Everything about that image feels off
 
There are a lot of pokes at bannon, haha
 
> That's illegal.
10/10 Cocoa errors are great
 
Please tell me that's the message displayed for SIGILL
 
3:34 AM
holy shit @Okx nice job on that challenge
the evolution of powers of two
10 answers o-o
 
We're a bit stuck now though
 
yea
I'll work on it tomorrow
 
Any ideas for a language?
 
hm
befunge?
 
We've been thinking about that.
 
3:37 AM
can't be that hard to work in an "end program" thing somewhere
 
Befunge doesn't have exponentiation though.
 
oh
hm
then another 2d lang
 
Minkolang is in there already. ><> doesn't have it either.
 
hm
 
We're a bit stuck.
Actually/Seriously could work!
 
3:38 AM
maybe
 
â•™ is push 2**a
Which is perfect
 
@Pavel think I got one
 
Fire away.
 
0
A: Evolution of Powers of Two

RikerAnswer 51: Reticular, distance 8 2'51'Jo;^2@2(#"#28@P2*Jp;math 2\^45#2^41 NB.`(expt 2 39); ^ exit @n.out (*2 32#e#a44******O@)//2 25)#e#2ej#printf("% $[2**43]bye'$/*#"A#327;N<."$"/class HelloWorld {static void Main() 0{;n***~ # System<.Console<.<.#1024 print(2**49);#0}}//4| #6904r"$2 #puts 16...

:D
2d language
explanation coming
 
3:42 AM
@Riker Reticular is Answer 46
 
shit really?
dmanit
 
That's why we keep the list of used languages.
;(
 
yeah
I failed my cntrl-f
did "renticular" accidentally ;(
 
XD
 
oh well
 
3:43 AM
Too bad.
It would be great to get some form of print to the front.
 
ye
 
There's one on line 3, I suppose.
I wonder if C is possible.
It will compile fine without the #include, and main is still there from C#
 
There's also a printf("% in line one.
@Riker Flag as NAA?
 
3:49 AM
oic
 
new answer!
 
:o
wot
haskell???
0
A: Evolution of Powers of Two

nimiAnswer 51, Haskell, distance 10 --2@2(#"#28@P2*Jp;math 2\^45#2^41 NB.`(expt 2 39); ^ exit @n.out (*2 32#e#a44******O@)//2 25)#e#2ej#printf("% $[2**43]bye'$/*#"A#327;N<."$"/class HelloWorld {static void Main() 0{;n***~# System<.Console<.<.#1024 print(2^51)--;#0}}//4|#6904r"$2 #puts 16384 8*di ...

 
Magic
 
10/10
 
Gah, removed newlines again
i cri evry tim
 
3:51 AM
hahaha
 
I wonder how many answers of this challenge I can go through and still be able to convince some naiive person that it will still compile in C#
 
hahaha
 
ok, on another note my plan to get befunge in there has failed for the moment
 
I wonder if the existing code contains anything usable by Befunge.
 
*.@ needs to go at the beginning for befunge
but it needs 2^26 pushed to the stack twice tho
not sure it's possible ;/
 
3:58 AM
well, if we put down seventeen 8s, some multiplies, an integer print...
 
@Riker Why tho
 
> seventeen 8s
 
lol
@MistahFiggins that's multiplication
 
has to be distance 10 or less from the prev answer
 
3:59 AM
Actually, befunge 98 should be a breeze
 
yeah, I know
 
just use the k command
 
@MistahFiggins why?
 
Considering how many answers have a distance of 10, and can't add anything new...
 
@MistahFiggins oh shit im a dumb
 
3:59 AM
but you can change stuff if you have < 10...
 
@MistahFiggins What's that?
 
pop a, do following command a times
 

« first day (2221 days earlier)      last day (2607 days later) »