« first day (1681 days earlier)      last day (3161 days later) » 

12:34 AM
@Calvin'sHobbies Something like starwars.wikia.com/wiki/Wookieepedia:Template_messages/Cleanup? It probably varies from wiki to wiki.
 
12:57 AM
@NinjaBearMonkey Yeah! Thanks!
 
1:10 AM
hi I Want how hacked Advanced By way of penetration link By way of penetration image I want advanced methods Breakthrough Please help
please tell me this isn't a real person
 
@PhiNotPi Wow really? Most Java programs I write compile on the first try. And it's not just because of IDE error highlighting.
 
0
Q: Math/Programming question

Curious meYou have a matrix of N rows and M columns. There are 3 possible outcomes in every position. A) There can be a dot, which means that you can go on this position B) There can be a plus sign (+) , which means you went to see an autoshow C) There can be a ladder sign, which represents the not availab...

 
@Justin I don't really remember the context of what I was trying to do.
I'm just a "beginner" java progranmer.
I don't currently intend on learning more, though.
 
1:26 AM
Aww Java's great
Especially with Lombok.
 
1:53 AM
0
Q: Asciimation Jumping Jacks

bitsnbitesThis is my first challenge, so I'm keeping it fairly simple. If you've ever typed telnet towel.blinkenlights.nl on your command line and pressed enter, you will have experienced the joy of asciimation. Asciimation is, quite simply, doing an animation with ascii art. Today we will be doing a very...

 
2:40 AM
i'm trying to hack at this program and i downloaded IDA but idfk how any of this works haha
i'm so lost
 
 
2 hours later…
4:40 AM
@Sp3000 i think you did well writing this tutuorial about cjam due to remarkable lack of informations about it in internet
i didnt know its postfixed operations til now
didnt know its run-length encoding too, hats off to the designer
 
5:13 AM
Who doesn't like pancakes?
 
@Agawa001 Ahaha thanks. I'm still working on the next part, but I've been too lazy to fix it up with Dennis' suggestions from weeks back
Pancake golfing is hard :(
 
It looks rather painful. I took a look at Pancake Stack when somebody offered a bounty for a pancake-related question, but I abandoned it rather quickly.
 
I still haven't made a non-trivial Pancake Stack program - the top-two-only part really hurts
 
Yeah, that's pretty awful. PS is the real BF.
 
5:58 AM
@undergroundmonorail yes ida is a wise choice, each time i dive into ollydbg i feel like bein lost in the deep obscure depths of a labyrinth. and its my fault to take the pain of learning that over ida
@Sp3000 lol now you ll take all the blame that cjam will run off your scope there, it wont be a sectarian language anymore:p
 
 
2 hours later…
8:20 AM
pancake golfing? just eat them in one bite :)
@BetaDecay aww, poor guy was just looking for some penetration :p
 
 
1 hour later…
9:52 AM
@aditsu Wait, what? Now I got to trawl the transcript looking to see what you're talking about :D
 
dawg you can just click the arrow
 
Well that's a small arrow :P
 
i used to play a lot of tf2 and now i can click small things with relative ease
 
Haha now you need to find somewhere where you can apply your skills ;)
 
 
1 hour later…
11:16 AM
0
Q: How to skip 2 and 3 multiples from iteration to find the first divisor of a number?

mtkI am going through a old book 'How to Solve it by Computer' by R. G. Dromey. In this book he has explained a simple algo to find the smallest divisor of a number. The algo is straight forward and goes like this See if it is divisble by 2, If yes terminate If not divisible by 2, then start a loo...

 
11:59 AM
@aditsu You said you're working on CJam 0.6.6, right? are we getting n (oNo)? :)
 
12:42 PM
The Carolina Reapers in my backyard have grown some peppers.
 
12:53 PM
@MartinBüttner likely
 
great :)
 
0
A: Sandbox for Proposed Challenges

muddyfishWho needs a GUI anyway? code-golf ascii-art Most people like GUI's. You don't. They say that GUI's show them pretty pictures. Your task: Write a program that displays said image in full 256-colour ANSI art in the terminal. Because you need to show them your leet skillz at programming, you h...

 
1:17 PM
@MartinBüttner I don't see a better approach. It's similar to Boolean function optimisation, but I doubt that the optimised software for that handle the concatenation, and I think in general that it's mainly using heuristics rather than a proven-optimal polynomial-time algorithm.
 
 
2 hours later…
3:08 PM
2
Q: Print the character names

me and my catEvery Unicode character has a name, like "LATIN CAPITAL LETTER A". A Unicode character name may contain only uppercase letters, white spaces, and the minus sign. Write a program that reads a text and outputs the names of each character on a new line. For example, if the input were "Hello, World!...

 
3:37 PM
hmm, this Muse band is pretty good
 
4:04 PM
Breaking news: Java actually has a builtin that's useful for a golf competition. codegolf.stackexchange.com/a/57144/2867
 
@PhiNotPi :O
 
I've seen that challenge before...
I can't find where, nevermind
 
@aditsu "this Muse band" :D
 
are you a fan?
 
@PeterTaylor ah that's a shame. I'll see what I can do with a heuristic approach then
@aditsu they're quite nice, but I don't listen to them that often
 
4:20 PM
Have we really not had a problem like this before? codegolf.stackexchange.com/questions/57146/the-coin-problem
 
@PhiNotPi Apparently not. I tried to search for it, and then let it sit in the sandbox for a couple of days.
 
Well, okay then.
It seems that PPCG's new trend is "posting problems we thought would have already been posted but apparently haven't been for some reason."
 
do we have a problem about adding 2 numbers? :D
 
@PhiNotPi This is the end of times. Java is the new CJam
 
2
Q: The Coin Problem

ZgarbBackground The official currency of the imaginary nation of Golfenistan is the foo, and there are only three kinds of coins in circulation: 3 foos, 7 foos and 8 foos. One can see that it's not possible to pay certain amounts, like 4 foos, using these coins. Nevertheless, all large enough amounts...

 
4:28 PM
@MartinBüttner whoops, "formed in 1994"... yeah I guess it took me a while
 
4:49 PM
0
Q: Most creative way to randomize points in a circle

sweerpotatoI read about circles (it's actually a pretty common concept) somewhere and thought about codegolf. Your task is to randomize a point in a unit circle in the most creative way. Rules: All points must have an equal probability to be generated Floating point coordinates must be used; the minimu...

 
@PhiNotPi Only Java can have a built-in that solves a task with a single step and still weigh more than 100 bytes.
 
We have a popularity contest to test our new thinking following the big discussion...
Interestingly, this popularity contest has bonus points. Not sure if they count as extra votes or are just for fun
 
@aditsu Yes. The problem is that if anyone tries it, we send someone round to break their kneecaps.
 
@PeterTaylor unless they use jquery, right?
 
Why would you use jQuery for the question?
 
5:00 PM
oh, for the question? but.. but.. we don't have it :p
 
Because jQuery. That's why
 
5:33 PM
@Lembik, math.stackexchange.com/q/1373679/5676 seems right up your street.
 
6:12 PM
@PeterTaylor Thanks. The mathoverflow answer seems near miraculous. How on Earth did they guess it?
 
@MartinBüttner care to explain in what distribution you generate the radii?
 
I take the square root of a uniformly random number on [0,1]
 
0
Q: Writing Query in Excel

Ritwik We have a database with 3 tables Users, Roles and UserRoles that will be referenced throughout the below questions: Describe in non-technical words the relationship between each table. What is the purpose of the UserRoles table, what is this kind of table called? Write a query which displays...

 
@Optimizer only youtube I think
 
6:31 PM
@NewMainPosts At first, I read it as "Writing JQuery in Excel" and my reaction was ಠ_ಠ
and then was like "Not enough JQuery"
 
7:05 PM
0
A: Sandbox for Proposed Challenges

PhiNotPiEnough jQuery? As a general rule of thumb, jQuery is a vital part of any program. It is really great and does all things. Your job, as a quality-control expert, is to ensure that a given program meets industry standards. Only programs that use jQuery are eligible for your seal of approval. T...

 
^ Not Enough JQuery
 
As it stands, it's basically asking for a simple Retina solution.
 
@Lembik I'm not certain, but the generating function was probably suggested by Rate, and having spotted that it implies growth similar to the Fibonacci numbers it's fairly obvious to ask what the difference is. I suspect he tried small offsets to see whether any of them gave differences which were in OEIS.
 
7:33 PM
@Dennis that's what I get for helping you... :P
@PhiNotPi it is.
 
@MartinBüttner I did some mathsies, e^(log(a)/2 + b*pi*i) will give uniform points within the unit circle if a, b are on [0, 1)
 
isn't that exactly the same thing, just written as a complex number?
 
correct
 
also I feel like b should be on [0, 2)
 
7:48 PM
@MartinBüttner You beat me anyway. :/
 
technically, David did
but now my fancy analytic solution is not only slower but also longer :(
although I feel like it should be possible to shave off another byte somewhere
the sine/cosine computation seems really expensive
 
Hello! I was wondering when to accept an answer in my challenge; I searched around on meta but couldn't find a general guideline on when to accept a winning answer. Is it up to me to decide when the activity dies down?
 
yeah that. if you don't set a deadline, it's considered good manners to update the accepted answer when a better one comes in later, so it doesn't really matter if you're planning to do that.
but I'd wait at least a week, or people will freak that you accepted too early
 
Yeah, granted
Thanks :~)!
 
if the question is still reasonably active after a week, I usually wait until activity dies down further
 
7:53 PM
@MartinBüttner e^(log(a)/2 + b*tau*i)
:D
 
lovely :D
 
¯\_(ツ)_/¯
 
Nice!
@orlp Does the space after the x coordinate impact your bytecount in a negative way?
 
@sweerpotato no, positive
if I had to remove that space it would be worse
however, the fact that the brackets have to be () and not [] impacts me negatively pretty badly
also, the fact that it has to be separated by nothing or spaces impacts me negatively
 
8:05 PM
Ah, that's why you asked about the newlines
Sort of figured
Great answer though
 
actually, in this revision the () doesn't matter
the biggest impact is that I'm not allowed to print the complex number
@sweerpotato if I could print complex numbers separated by newlines my score would be 19-5 = 14
VQ*@OZ2^.n1*yOZ.l_1
 
Still trying to wrap my head around these languages..
 
Okay, seems like my challenge has been asked on SO, which is why I couldn't find it here. Do we have a duplicateness policy on that?
 
Tried out some CJam but didn't turn out well
 
@sweerpotato Pyth and CJam are two very different beasts
CJam is stack-based
Pyth is polish prefix iterative
but support for functional is very good in Pyth, often leading to the shortest answers
 
8:10 PM
@PeterTaylor using only characters with odd character codes, or newlines, can you think of a shorter way to turn \n into eval than this:
{{}'}'{)}%+}'9'{)}%'
;'++{}+/
(in GolfScript)
 
I'm not sure what you mean by "turn \n into eval"
 
well, I can't use ~ because it has an even character code. but I need to eval quite a lot because some operators can only be generated from strings. so I thought I'd work around that by doing {~}:\n (where \n is an actual line feed).
so that I could then use line feeds for eval
I should note that there's a string on the stack, which I'm happy to dump (hence the / at the end)
 
Ah, ok. I'll think about it.
 
@MartinBüttner hrm, I'm doing some thinking
your answer uses A = 2*pi*rand(); sin(A), cos(A), right?
 
it uses rand(2 pi)
but yes
 
8:16 PM
obviously the program wouldn't make any sense
but statistically, isn't sin(rand(2 pi)), cos(rand(2 pi)) the same?
actually
I'm dumb
 
@MartinBüttner By "dump" you mean "leave its char codes on the stack", right?
 
nevermind that
 
@PeterTaylor yes
(there's only one character in the string)
 
for those interested, here's what would happen if you actually do my dumb idea
not quite the unit circle :P
 
looks nice though ;)
 
8:22 PM
No . or $. That's irritating.
 
indeed
for reference, here is the current version of the full program: codegolf.stackexchange.com/a/57116/8478
 
No even a *. I'm running out of ideas for ways to duplicate.
 
well, once I have eval, I can do '-'{)}%\n
I think I might be better off switching to a different language for the second program. no clue who well Pyth would do, but I don't know any Pyth
 
@MartinBüttner what characters would Pyth have to miss?
 
The odd characters are !#%')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}
 
8:29 PM
you'd need to be able to implement a = max(ord(c),ord(c)^1); chr(a == 127 || a == 11 ? 10 : a)
 
Is it essential to assign eval to \n? If not, it might be easier in CJam.
 
0
Q: Duplicates on other SE sites

ZgarbAfter noticing that our site hasn't had a challenge on the Coin Problem, I recently posted one. However, it was pointed out that the challenge was posted on Stack Overflow back in the day when codegolf.SE didn't yet exist and such challenges were accepted on SO. The old challenge has a fair amoun...

 
@PeterTaylor not really. I might give that a go
 
Ok, my best so far in GolfScript: ['{}'))'}9'))]'
'+
 
I don't see how I could create my own eval in CJam though
 
8:35 PM
hi
 
sup
 
Huh. You're right: it doesn't seem to have a way to convert a string to a block.
 
no, there's no {}+
 
Well, there is, but it adds the {} as an element in the array.
Oh well. I think I've given you a 10-char saving in GolfScript.
 
unless I misunderstood how your snippet is to be used, it saves 6 bytes, which is quite nice :)
uh... don't I need to append {}+/;?
 
8:38 PM
Just /
 
that doesn't seem to work
 
No, it doesn't. Working on it...
Ok, it's only a six-byte saving.
 
still nice, thanks :)
I think I can save some bytes with ))+ in other places
oh right, that doesn't usually work, because then the integer gets stringified
saves one byte while defining - though
doing both definitions at once saves another two
 
9:02 PM
I just used the word foreach in a Perl program, and it made the golfer part of me cringe.
Nevermind, I fixed it.
 
9:32 PM
1
Q: We can do better: FALSE

RK.The interpreter executable for FALSE is 1020 bytes large. I think we can do better than THIS: ��Û������������������ˆ��È���ˆB0�ˇ*,x�r�pH@NÆ˝T,�g�Œ$F(FIÏa®.GÏu0C˙íp%NÆ˝ÿJÄg�™,@"$<��ÌNÆˇ‚JÄg�í*�"�$&<��a®NÆˇ÷,�"NÆˇ‹F�k�r‹Ç*BA˙¸C˙Ra�ºª∆j��Úp�@�0j�^@�[f(¸A˙�8¸+(¸`�ˇ¯&Ã`‘@�]f8¸Nu c êàTÄ1@ˇ˛`º@�aj�T@�!k...

 
9:54 PM
0
Q: Programming with only alphabet

JustACPPFanAssume we have a code: puts eval(OurCode) The variable OurCode should be using only abcdefghijklmnopqrstuvwxyz, space, and new line. Can we write a code that would read the list of files in the current directory? I have been told it's possible in Ruby, sort of 100% sure about it.

 
@NewMainPosts Hmm... interesting.
 
I'm thinking about added a bizarre "parallelization" concept to my new language.
 
@Doorknob still off topic in its current form
 
Wherein it's possible to make multiple copies of the whole stack and operate on them in parallel.
 
10:21 PM
1
Q: Mutant pangolin

ablighThis is a code-golf challenge whereby you need to devise a program that acts like a quine or a quine that modifies itself to illustrate machine learning. Background There is a basic artificial intelligence program called 'the pangolin game' which is described here. The basic ideas is that the p...

 
@PhiNotPi That sounds really cool!
 
10:49 PM
@AlexA. I just have to figure out how merging the different copies at the end will work.
 
How do you implement parallel stuff in Perl?
I've never seen it done.
 
I don't know if it will be parallel from Perl's perspective, just the perspective of the new language.
 
I don't understand.
Won't the parallelism have to be handled by Perl?
 
@AlexA. I think he means that every loop iteration, stuff is run on all of the stacks, just not actually in parallel or at the same time
 
Like..... I can write a program that's "foreach(whatever array){whatever block}" that does things in "parallel" but that doesn't mean that the CPU is actually multitasking.
But there are ways to do it, with forks and stuff.
 
10:54 PM
Oh, okay. I think I get it now. Thanks @Phi and @Doo.
Element has 2 stacks currently, correct? Will the new language also have 2?
(Also, I'm LOLing internally at "Doo")
TIL Doorknob can be pinged as Scooby @Doo.
7
 
I think it may still have two stacks, but I'll definitely change the way that it handles how things are placed on each stack.
 
@AlexA. :D
 
My goodness, I currently have 5 messages on the starboard.
@Doorknob After a while of pinging you with Scooby Doo, I'll get lazy and set up an autocomplete so that just Scooby stealth pings you.
@PhiNotPi I'm looking forward to seeing it. :)
Oh Phi, I wanted to ask, why did you not include file extensions for the Perl files for Element?
 
@AlexA. Literally no reason.
 
Okay.
 
11:05 PM
there, I fixed it
 
Haha nice
Is .plx for a certain version of Perl?
 
I think the .pl and .plx file extensions are somewhat interchangeable.
 
Yeah I did some Googling and it appears that way
 
One problem I've had with Element can be summed up here: codegolf.stackexchange.com/a/49066/2867
 
Sounds like you found some good ways to overcome that though.
 
11:15 PM
I also think I'm going to add some more looping structures.
Like a looping structure that actually consumes the condition, one that uses the main stack instead of the control stack, one that has a true conditional statement as part of it.
I'm adding an eval() operator, somehow.
I'll definitely add the various split join map fold etc.
I don't have much actual physical progress yet.
sub mult {
  $_[0] * $_[1];
}

sub listfunc {
  print"@_\n";
  local $func = shift @_;
  local @items = @_;
  if(local @listofarrays = grep {ref($_) eq "ARRAY"} @items){
    local $minlen = -1;
    for $item (@listofarrays){
      if($minlen<0 || $#{$item}<$minlen){
        $minlen = $#{$item};
      }
    }
    local @results;
    for $loc (0..$minlen){
      local @newitems;
      for $item (@items){
        if(ref($item) eq "ARRAY"){
          push(@newitems,${$item}[$loc])
        }
        else{
This is me doing multiplication of arrays.
 
Looks like progress to me!
 
Written in Notepad.
 
11:52 PM
@AlexA. I might have to change to "interpreted by Perl" instead of "compiled to Perl" to do the parallelization in the way I think it should work.
There will be a split < and an unsplit '>' command (probably won't end up being those symbols).
The split takes the top thing on the stack (assuming it's and array) and creates a lot of child processes, each with its own copy of the stack. Each child process, however, will only have one item from that chosen array instead of the whole thing.
This being how the workload is divided up.
Then, upon a thread's execution reaching an unsplit command, it pauses and waits for it siblings to also come upon an unsplit command, at which point the threads combine together again.
And, by some method, the stacks are merged to create a single stack that contains the computational results of each child.
Example:
 

« first day (1681 days earlier)      last day (3161 days later) »