« first day (1 day earlier)      last day (249 days later) » 

12:22 AM
Hey @A__. What have you done to the input system? Trying to run the cat program ? on TIO doesn’t work, and throws an error.
 
A__
1:11 AM
@Jono2906 Uh-oh. When I ran it offline it works perfectly.
Well, there is one less error in the output though. I am trying my best to avoid the ? command to generate errors.
It used to generate errors offline, now it doesn't.
It is proabably because TIO's EOF handling system.
 
A__
2:08 AM
@Jono2906 Now Dennis had fixed the input. ? on TIO works as it should offline.
 
 
1 hour later…
3:21 AM
It's working now. Don't know what happened there then.
 
A__
Dennis forgot that Keg has multiple ways to take input; thus they only added : and ^ to TIO.
 
Ah. I see.
 
A__
CMC for @Jono2906: If the length of the input is even, reverse the input; otherwise, output as-is. (I have the answer, but I would like you to try it in Keg.)
Test cases: as-is->as-is, change->egnahc
 
?!2%[^]
 
A__
Here is mine: ?(^)
 
3:33 AM
# [Keg], 7 bytes

?!2%[^]

[Try it online!][TIO-jz7udkfa]

[Keg]: https://github.com/JonoCode9374/Keg
[TIO-jz7udkfa]: https://tio.run/##y05N///fXtFINTou9v//xGLdzGIA "Keg – Try It Online"
# [Keg], 7 bytes

?!2%[^]

[Try it online!][TIO-jz7ue2fz]

[Keg]: https://github.com/JonoCode9374/Keg
[TIO-jz7ue2fz]: https://tio.run/##y05N///fXtFINTou9v//5IzEvPRUAA "Keg – Try It Online"
Well done.
 
A__
Hmm, it seems that your program is more efficient than mine.
 
But your program is shorter than mine (2 bytes without the closing ))
 
A__
Wow, can you show me your modified program?
 
?(
No sorry, I can't count
3 bytes ,not 2
?(^
 
A__
3:50 AM
I felt bored because no one had posted CMC's for me. I worried that I did not get enough Keg training...
(How to train people with Keg: write a clever program in Keg and then wrap it up in a CMC.)
 
CMC for @A__: Quine without 100% relying on auto-push
So essentially, you can't just have abc or quine or q
I don't have a program for it, so it would be interesting to see an answer
 
A__
Uh, that is too hard for me because I am just a Keg beginner. I have tried to do that before but failed; I can't successfully print the Keg instructions. (If you tried to push quine data onto the stack, then you also have to push the escapers and so on, repeating forever.)
All Keg commands are dense to each other in the ASCII code, so there is no hope of pushing a Keg instruction without using another instruction.
 
Ah yeah, that's right.
Hmmm
What would make for a good CMC?
 
A__
Make a simple CMC that allows clever solutions (i.e. solutions that people will not think of in an instant). (To achieve that, you should make one yourself, which is relatively easy to do.)
 
I'll have to spend some time to work on it then.
 
A__
4:02 AM
If you can't find inspirations, try random-typing and see what happens on the Keg interpreter.
2
 
Ha. Good idea. I'll get back to you in a while.
 
4:37 AM
CMC: Output Keg without using the letters "K" "e" or "g"
I got 7 bytes
CMC: Output the room name (The Sixth Barrel) without using letters nor unicode characters. Bonus challenge: No addition allowed
 
A__
 
I was thinking more along the lines of this
 
A__
Well done!
 
Nice
 
A__
Well you could golf down 1 byte by using unofficial Keg.
 
4:49 AM
I was thinking that maybe the ; command should be official Keg, as I originally thought the decrement command was unicode, but I've since realised it is ascii.
 
A__
Probably not; you want to keep the simplicity of offical Keg.
 
Hmm true
 
A__
I might take some time to try outputting "The Sixth Barrel".
 
For my second CMC, I got 84 bytes
 
A__
 
A__
 
5:43 AM
The backtick hasn't been implemented yet, so escaping it isn't needed.
 
A__
6:03 AM
Phew, DONE! (that was tedious)
 
52 bytes! Wow.
Amazing!
"'I never ceased to be amazed at the power of Keg.' -- Jono2906" -- A__
My attempt TIO
 
A__
I thought you avoided using +.
I thought your code was an infix mathematical expression breaked into several lines for readability.
I realized that it is postfix when I read the last byte of the program.
 
6:35 AM
The additional source restriction was just a bonus challenge.
Something I'd attempt after finishing it first properly
The several lines are escaped newlines to push 10
 
A__
6:46 AM
-1 bytes and looks more math-expression like
To print compressed English messages in Keg, you should know the letter frequency.
I.e. etao are the 4 most frequent letters in English.
Then, store them to either the bottom of the stack or the accumulator to make texts shorter.
This is specific to your most recent CMC.
 
Ah, good idea!
Also, new CMC:
Print/calculate pi
 
A__
I think that you became fond of making CMC's. ;)
Anyway, do you have an existing program calculating it? (I can search for a formula for pi though.)
 
Well, they're easier to make than PPCG q's and more casual/relaxed too.
And no, I don't have a pre-existing program ATM
(at the moment)
 
A__
x * sin(180 / x)
(where x is a very large number)
 
Huh, so it does. Only in degrees though.
Radians makes it equal 0
 
A__
6:57 AM
Now the easiest series out there: Gregory-Leibniz seiries, π = (4/1) - (4/3) + (4/5) - (4/7) + (4/9) - (4/11) + (4/13) - (4/15) ...
@Jono2906 Does Keg calculate in Degrees or Radians?
 
Depends on how the Python implementation works
I'm gonna go update the esolangs page for Keg with the two new commands.
 
A__
Perfect! Python calculates in Degrees by default.
 
A__
7:26 AM
@EdgyNerd Check out our new CMC: Print/calculate pi
 
this is my current idea
but it throws a printing error due to it being a float
Traceback (most recent call last):
File "/opt/keg/Keg.py", line 530, in <module>
printing += chr(item)
TypeError: integer argument expected, got float
also oops, I forgot that it alternates between adding and subtracting
ok I've got it
@A__
@Jono2906
Idea: If an error is raised and you're in a loop, ignore it and end the loop
It'd allow you to do stuff like (+) to add the entire stack
 
7:48 AM
Hey, that's a good idea. What do you think @A__?
 
A__
Oh I am busy, you need to wait.
The answer is slightly(1 byte) shorter than the GolfScript answer.
@EdgyNerd That is extremely nice!
Now you can also multiply the entire stack. (*) EdgyNerd, did you learn APL/J? You are making Keg closer to the mathematical notation.
 
Oh nope, I was trying to learn a Golfing language (and failed), but I never tried either of those
 
A__
8:04 AM
Is this valid? (using optimizations of the for loop)
 
@A__ I'll implement it tomorrow then.
 
Should it exit all loops, or just 1 loop?
 
A__
(at)Jono 2096 You may want merge my PR first in order to avoid messing up with your code.
@EdgyNerd Exiting just 1 loop will make it easier to program in (anyway, you rarely need to exit all loops in a Python program (Python does not have goto, which can probably be avoided quite easily.).)
 
Yeah, exiting one loop would probably be better
Also, it'll make some stuff really easy (like that 'Is it Double Speak?' thing we were stuck on a while ago)
 
8:21 AM
@A__ I'll hit that merge now.
 
A__
8:35 AM
Merged
 
 
5 hours later…
1:47 PM
Also, can we fix numeric implicit input
If the input is '2456339', it gets inputted as individual numbers, instead of one number
 
A__
2:34 PM
Good idea.
I mean it is a good idea to avoid that feature. It is much easier to input as one number, as many of the challenges take input like that.
@EdgyNerd
 
 
8 hours later…
10:42 PM
Seems like a nice quiet room this morning... might as well make an announcement about Keg! Functions. I'mma gonna implement them as official Keg, as I figured I might as well create a system to work functions in prep for Keg+.
Also, I'll fix the numeric input issue
And I'll still implement the error and skip in for loops
That should be fun
I'm not too sure
Also, guys, what does CMC stand for? "Complete my Challenge"? "Coding Mini Challenge"?
Further, why doesn't my BF->Keg transpiler work? I generate a program (e.g. Hello World) and I run the output and it doesn't work.
(BF2Keg)
(Transpiled Program)
So yeah. Functions. Can't wait.
See y'all in a few hours!
 

« first day (1 day earlier)      last day (249 days later) »