« first day (1746 days earlier)      last day (3096 days later) » 

4:00 PM
Hello
 
@flawr If you wanted to speed it up to allow higher resolution in a reasonable time, bear in mind that the standard Mandelbrot set tells you where the non-escaping paths are, so you can avoid calculating most of these. Also, the points of the exterior of the Mandelbrot set that are far from the set boundary have very short escape paths (few steps) so will not contribute much to the final image. You could omit or reduce these to give a much faster program.
 
@TimmyD would a (as opposed to a!) yield an error?
because I can make it if(($a=(gc $PSCommandPath).Length)-ne67){a}
 
Yes, as a is still not a valid cmdlet name
 
then why do you need ! in the first place?
 
>.>
Umm...
I mean ... Thanks for golfing 2 bytes! :)
 
4:10 PM
How about this: if(($a=(gc $PSCommandPath).Length)-ne65-ne65){a}
(5-ne6-ne6 gives False in my PS)
 
this should be converted to cops and robber XD
 
@MartinBüttner Yep. Solved by surrounding the second $a-ne65 with parens and swapping 65 to 67 ... there went those two bytes
 
At the moment it's a shoot out. More than half the answers are dead already :(
 
This is one of the trickiest challenges I've seen on here.
 
@TimmyD if(($a)){a}
looks like you'll need another pair of parentheses
 
4:16 PM
hello i have a question about taylor's challenge
 
link?
 
why isnt {3, 4} a free-sum set ?
 
13
Q: Finding sum-free partitions

Peter TaylorExecutive summary Given input k, find a partition of integers 1 to n into k sum-free subsets for the largest n you can within 10 minutes. Background: Schur numbers A set A is sum-free if its self-sum A + A = { x + y | x, y in A} has no elements in common with it. For every positive integer k ...

 
yes ^
3+4=7 not included in {1:4}
 
@Agawa001 it is
(sum-free)
where does it say that it isn't?
 
4:18 PM
quote: "We can partition {1, 2, 3, 4} as {1, 4}, {2, 3}"
 
The problem would be {1,2}, not {3,4}
 
a missing partition
?
 
and in {1,3},{2,4} the problem is {2,4}
@Agawa001 partition != subset. A partition is a list of sets (technically a set of sets) which share no elements and whose union forms the initial list
 
@Agawa001 1+1=2 (the numbers being added do not need to be distinct)
 
so any missing partition is excluding that choice
?
 
4:20 PM
I'm afraid I don't understand the question
 
@MartinBüttner ok get it
so
the partition {1,3},{2,4} is excluded because of {2,4}
 
yes
for reference, these are all possible partitions of {1,2,3,4} into two sets:
{1}, {2,3,4}
{2}, {1,3,4}
{3}, {1,2,4}
{4}, {1,2,3}
{1,2}, {3,4}
{1,3}, {2,4}
{1,4}, {2,3}
but except for the last one, each partition includes one set which isn't sum-free
 
and the empty set ?
 
well then the other set would be {1,2,3,4} which isn't sum-free either, but I think we're generally considering partitions into non-empty sets.
 
of course
 
4:23 PM
no mathjax in chat
 
why not link it ?
 
it's not sum-free because both all of 1+1=2, 1+2=3, 1+3=4 and 2+2=4 are in the set
 
it appears like a charm in my screen
 
right, then I guess you're using some browser extension
 
yes ,js
yes yes i understood
ll see what gonna do about it
 
4:27 PM
0
Q: Are these trees isomorphic?

ZgarbIntroduction In this challenge, your task is to write a program that decides whether two given trees are isomorphic. A tree means a directed acyclic graph where every node has exactly one outgoing edge, except the root, which has none. Two trees are isomorphic if one can be transformed into the ...

 
@TimmyD not like that... now I can do this again: if((($a=(gc $PSCommandPath).Length)-ne69-ne69)){a}
 
@MartinBüttner Typo'd it on the answer. Had it correct in my ISE.
 
Sock, Town of Socks
11 3
lol
I can't believe a sock answered my Fibo Nacci question. Wonder who it is...
 
@TimmyD uhhh... if((($a=(gc $PSCommandPath).Length))-ne69){}
 
Le sigh.
 
4:33 PM
you should probably write yourself a validation script ;)
 
Apparently.
 
but you already have Martin!
 
My latest creation.
I'm sure it is full of bugs, gimme feedback pls
@ΚριτικσιΛίθος I suspect that's Geobits.
 
@quartata I don't know ruby.
And Sock could actually be @Geobits because he answered in Java, lol
 
You don't have to know Ruby to tell me whether it sucks or not
 
Are you asking me to install TwistScript?
 
I think it currently is like Seed in that it is not possible to generate all GolfScript programs and so may or may not be Turing Complete
@ΚριτικσιΛίθος If you want you can just tell me whether the idea is trash
But if you want to try it that's cool too
 
@ΚριτικσιΛίθος Even my sock wouldn't leave the full import java.math.BigInteger; in a golf. It should be import java.math.*;. Give me some credit :P
 
Who else then? Rainbolt?
 
4:39 PM
Maybe @ಠ_ಠ
 
I dunno, but it's not me. I haven't looked it over, but I suspect there's more golfing that could be done to it.
 
@Geobits In Java can you have import java.*; ?
 
@ΚριτικσιΛίθος No
 
can you have import *;?
 
That's not how packages work
 
4:39 PM
You can only * class level, not packages.
 
Despite what it looks like there is no real "package tree"
It's strange, I know.
 
new BigInteger("0") instead of BigInteger.ZERO and the same for ONE? :/
 
@Geobits I think maybe you are golfing it terribly on purpose to divert suspicion.
 
There is a lot of protestation...
 
Sure, believe that if you want. No skin off my back.
 
4:43 PM
is your back an upvote?
 
@trichoplax Poorly golfed Java makes me cringe a bit, but that's all. I can only assume it's someone new to golfing Java in particular.
Besides, I'm really too busy with Fallout 4 to bother golfing today. I only hopped in just now because I got a ping :D
 
Someone who golfs but not usually in Java. Or someone who doesn't usually golf but doesn't want to write a long answer just for a sock
 
Have fun speculating or just deciding it's me, though.
 
how is fallout 4?
 
@Geobits I have no time for speculating - I'll just consult the wheel of blame ;)
 
4:45 PM
@Optimizer Haven't gotten very far, but good as of now. PS4 version.
 
why does console version has to be mentioned?
 
@MartinBüttner Penny for your thoughts on TwistScript
@Optimizer Fallout 4 is out?
 
yes, today morning for xbox one , not sure when for ps4
 
@quartata I just skimmed the description and decided I would have to re-read it later. Sorry :/
 
@MartinBüttner That's fine.
 
4:46 PM
@Optimizer I dunno, sometimes there's differences between them (or them and PC).
 
Martin can only look at it quart at a time
 
@quartata I'll give you my opinion once there's a hello world :P
 
@trichoplax That might take a while.
 
lol I know
 
In fact I was thinking about putting a bounty out for that.
 
4:48 PM
I'm not sure that's going to help...
But then, if it's possible in Malbolge, it's worth a try...
 
bounty is not real world, you know?
 
@Optimizer I know, but it would at least draw attention.
That bounty on Seed got some people working on it.
I really want to see what programs look like in this thing
A very simple brute-force generator for making programs wouldn't be hard, but I'm sure smarter ones are possible.
 
@quartata To popularise your language, post a "Tips in TwistScript" on PPCG.
 
@ΚριτικσιΛίθος lal
Tip #1 Don't program in TwistScript
 
4:51 PM
18
A: Solve Einstein's riddle

MT0Prolog - 954 Characters m(A,Z):-member(A,Z). e:-e(Z),w(Z). e(Z):-Z=[[1,A,F,K,P,U],[2,B,G,L,Q,V],[3,C,H,M,R,W],[4,D,I,N,S,X],[5,E,J,O,T,Y]],m([_,b,r,_,_,_],Z),m([_,s,_,d,_,_],Z),m([_,d,_,_,t,_],Z),m([WH,_,w,_,_,_],Z),m([GH,_,g,_,_,_],Z),GH=:=WH-1,m([_,_,g,_,c,_],Z),m([_,_,_,b,_,p],Z),m([_,_,y,_,_...

How on earth did Prolog win
 
I'd follow that tip since its coming from the creator itself..
 
Unless you like Malbolge.
In which case step right up
 
The pristine program problem is REALLY hard..
 
what is a sweer potato?
 
@Optimizer you know don't ... say ... sweers
 
4:54 PM
sweerpotato
 
@quartata Like a swear jar but you take a bite instead of putting in a quarter?
 
surely potato is not in the jar
people won't mind at all
 
@Calvin'sHobbies nom nom
 
^ you have to sweer before you eat
 
wow
 
4:57 PM
very
 
Potato is a four letter word
 
huh?
 
@Calvin'sHobbies Potato is just a four letter word
 
wow no one got it
 
5:00 PM
POTATO
 
"Love is Just a Four-Letter Word" is a song written by Bob Dylan, and long associated with Joan Baez, who has recorded it numerous times, and performed it throughout her career. Written by Dylan somewhere around 1965, Baez immediately took to the song, and began performing it, even before it was finished. (In the film Dont Look Back, a documentary of Dylan's 1965 tour of the UK, Baez is shown in one scene singing a fragment of the then apparently still unfinished song in a hotel room late at night. She then tells Dylan, "If you finish it, I'll sing it on a record.") Baez first included the song...
I just saw him say "four letter word" and that is what I thought of
 
That and Scrabble.
@Calvin'sHobbies This shows up as a box for me....
 
potato.carrot
 
carrot.cjam
 
@TheDoctor congratulations
 
@Optimizer swear words are known as four letter words (which is the point in the Bob Dyan title)
 
oh
 
@Calvin'sHobbies Interesting...
They appear to have a Unicode character for everything now
 
potato.carrot.cjam
 
5:05 PM
carrot.pyth
 
parrot
 
@quartata I like 👯
 
o> quack
 
5:11 PM
∭⛄d⛄
 
Integral integral integral snowman d snowman ?
2
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I forgot sorry
 
@Doorknob thoughts on github.com/quartata/twistscript?
@ΚριτικσιΛίθος Basically.
 
5:15 PM
Wait, I'm missing infintesimals
Solve ∭⛄d⛄d⛄d⛄
 
@Calvin'sHobbies Lots of boxes
 
You need to consult a suitable reference
 
@Calvin'sHobbies Man I've forgotten all of my snowman calculus
 
@quartata Isn't MD5 broken?
 
5:19 PM
@ThomasKwa It doesn't need to be secure
Just.... constantly random.
 
@quartata ♫ Do you want to integrate a snowman ♫
2
 
That made no sense great
 
hey, I had an idea for a golflang optimization. Basically there could be 10 special characters (àÁ etc) that could replace numbers. So instead of 10 10 you could have 10Á0 and save 1 byte.
 
I just need a seed that will be the same every time a particular file is run
@anOKsquirrel Rotor already does this
 
@Calvin'sHobbies your challenge is too hard for me :<
 
5:20 PM
But it uses ASCII control chars so they fit in one byte
 
@quartata dangit. Is it worth the 10 chars that could be used for other things?
 
@anOKsquirrel Yes
 
Tried to make some sort of recursive lambda expression in C++14 but everything went to crap after like 3 hours
 
@sweerpotato That's typically how C++ works.
 
@quartata Okay, I'll add it after I get things to work
 
5:21 PM
@quartata If preimage resistance were broken, it wouldn't be hard to code in TwistScript
but it looks like you're fine, because only collision resistance seems to be broken
 
@ThomasKwa Yeah.
 
rip in programming
 
I thought about using SHA instead but this seems sufficient.
 
ahaha, I dropped my earbuds in Pepsi and they still work!
 
Actually I changed my mind.
I'll make it SHA-512.
It's literally a one line change so
The last thing I want is for you to wiggle out of generating hello world the hard way with some MD5 mumbo jumbo
 
5:25 PM
What is MD5?
 
@Calvin'sHobbies syntax error. or whatever is equivalent in maths
 
@ΚριτικσιΛίθος hashing
 
ah, you updated
 
@anOKsquirrel Do you mean hastags #?
 
No, MD5 is a hash function
 
5:26 PM
@ΚριτικσιΛίθος nope en.wikipedia.org/wiki/Hash_function
 
@ΚριτικσιΛίθος (just google those 3 letters...)
 
@ThomasKwa fixed
 
@Calvin'sHobbies Do you mean 4 letters?
 
@MartinBüttner your c program didnt compile to me until i headed it with <time.h>
is it a naive forcebrute ?
 
@Agawa001 oh good point, I thought it was stdlib, and it compiled fine with gcc
@Agawa001 like the post says, it's the greedy solution (add one n at a time, until there's no available bin left), but it chooses one of the available bins at random at each step.
 
5:31 PM
0
Q: Make a math expression from the date

EridanIn my Economics class, my friends and I like to come up with ways to rearrange the digits in the date (in MM/DD/YY) format to create a valid mathematical expression. For the most part, we are allowed to use addition, subtraction, multiplication, division, parentheses, and exponentiation in additi...

 
@Calvin'sHobbies if I input "sphere" in Octave, it outputs a graphical sphere. Is that all right in the pristine program challenge? :~~~)!
 
wow is it true ? @sweerpotato
 
@NewMainPosts I don't know why but this feels like a dupe of the 24 game challenge except for the part with the dates
I mean it isn't exactly but it is similar
 
@Agawa001 yeeeas
It's not a word per se..
Meh, you can remove the "spher" from sphere and it outputs the value of e
rip
 
rip
 
5:36 PM
just see how much i ripped and get inspired from me
 
Spent half my day at work at this challenge
 
still no answer
 
@anOKsquirrel your answer doesn't print one of the words...
 
Wouldn't any single character answer be a pristine word?
@Calvin'sHobbies oh, I'm an idiot
 
5:37 PM
@anOKsquirrel Yes. There are other requirements
 
@Calvin'sHobbies Sorry, for some reason I completely forgot about it.
deleted
 
A naive forcebrute sounds like something out of a Halo game
3
 
so Martin is the only ultimate programmer ?
 
Mixed with Star Wars
 
Don't worry @anOKsquirrel, I fell for that several times today
 
5:38 PM
@sweerpotato haha
 
I'm building a naive brute force generator for TwistScript since I'm too stupid to think of any better ways to make programs for it
 
oo, I actually have a program for the shortest infinite loop challenge
 
Wow I swear I did not know we were just talking about naive forcebrutes
 
@Rainbolt where is force or brute in halo ?
 
The annoying part about TwistScript is that you basically have to consider all characters in ASCII not just the ones that make actual sense
Maybe if it was just alphanumeric it wouldn't be so evil
 
5:41 PM
@Optimizer Brute is a nickname for the Jiralhanae race in Halo
 
ah, I remember now
 
@Rainbolt you sure his name isnt bruce ?
 
so, did you like OPM To finish all episodes released? or left after 1st?
 
A Bruce Force algorithm?
 
what's a function f(x) that approaches 1 as x approaches infinity, and f(0) = 0 and f(1) = .5? Is there a site that I can use to do this in the future?
 
5:48 PM
ok i have a lowlevel program to reverse ill have funtime in seclusion with my cup of coffeemilk
 
@NathanMerrill 1-(2^-x)
 
@NathanMerrill x/x+1?
Yeah x/x+1
lim x->infinity x/(x+1) = 1
0/(0+1) = 0
1/(1+1) = 0.5
 
okay what why does adding -ffast-math to my compile command make the program run slower
 
both of those are similar to what I'm looking for
thank you
 
Between my three XBox Live accounts (one two three), I put in a grand total of 7060 games of Halo 2 and 3. At a lowball average of 6 minutes per game, that is 29.42 days of Halo.
 
5:51 PM
@quartata ahhhh
globals
globals everywhere
D:
 
@Doorknob Hey, I'm a Perl programmer. I like putting dollar signs on my stuff.
 
That doesn't even count campaign time or custom games.
 
and semicolons!
aaarggghhh
 
@Rainbolt You think that's something try the guy who has 11,000 hours in TF2
That's a year and a half.
And technically that means he has mastered it (if 10k hours = mastery).
 
5:53 PM
@ΚριτικσιΛίθος Way.
Actually, he's at 12000 right now.
 
I thought 10237 = mastery?
 
Oh, I got another 535 games in Halo 4.
 
@Rainbolt Why do you have so many XBox Live accounts?
 
you guys dont play story mode?
 
@Doorknob Did I mention I'm also a Java programmer?
 
5:55 PM
@Optimizer Yes but it doesn't get tracked as games
 
ok
 
@quartata Sometimes my real life friends at the time wanted to play but didn't want to be beaten down by the people that I get ranked against, so I would use one of those free 1 month XBox Live cards and play on it. Then I'd end up just switching to that account permanently.
 
@Rainbolt I see.
The problem with terrible matchmaking
@Doorknob so aside from the fact that you don't like how I code my Ruby, how is it?
 
Mini challenge: Take in a single line string and replace all semicolons with periods and corresponding commas on the next line.

e.g.

ex;am p;le;

becomes

ex.am p.le.
  ,    ,  ,
 
@quartata I'm not sure I understand how it works. :P
 
5:57 PM
When I made AThousandNinjas, my friends made names like GroupOfNazis, FiveHundredNuns, etc.
You were killed by AThousandNinjas
You killed FiveHundredNuns
 
@Rainbolt 101 dalmations?
 
@Doorknob :(
So basically it takes the input file
Calculates the SHA-512 hash of it
Uses that to seed ruby's rng
Then it makes an array of 128 random strings, one for each character in ASCII
Then it takes the inputted code, picks a random char from it and takes the corresponding random string and writes it to GolfScript's STDIN
It does this until it has parsed all the chars in the file
Then it runs GolfScript.
 
how did you even think of all this?
 
I'm deranged.
2
By random string I mean random sequence of chars of a random length between 0 and 10.
@Doorknob do you get it now?
 
no
 
6:04 PM
kinda...
 
@quartata Is ruby's rng stable from one version to the next?
 
@Doorknob It might make more sense if you read the code.
 
but the code... it burns my eyes...
3
 
@trichoplax The seed is the same for a given input program
 
eye cancers
 
6:05 PM
So yes it should be.
 
@quartata I think he means Ruby versions
 
@Doorknob It isn't THAT bad.
@Doorknob Ohhh...
I can only assume so.
 
@Doorknob yes I did :)
 
@quartata yes it is
 
if I want to try making a graphical environment for programming/simulating marbelous, I wonder if I should learn more pygame, or try a different framework, maybe even a different language
 
6:06 PM
@quartata So... what happens to actual program input? Is there any?
 
@quartata Assumption sure is cheaper than specification (at least in the short term) :P
 
@MartinBüttner That gets pushed onto the stack by GolfScript
 
are there good desktop gui/game libraries/frameworks for any of the current popular web application languages other than Python?
 
why is everything a global? why are there semicolons? what's with the very un-Ruby-like for...in and << and excess of parens? this just doesn't look like Ruby :P
 
If you take a look you can see that the program always starts with ;"<INPUT>"
 
6:07 PM
@quartata but didn't you say those random strings are written to STDIN?
 
@Doorknob I don't know Ruby that well. This is how I coded it.
@MartinBüttner It isn't really STDIN anymore.
TwistScript hijacks STDIN and replaces it with a pipe.
Then it funnels the code through it for GolfScript to parse later.
 
your code looks more like the random strings become the program, not its input
 
@MartinBüttner They do.
But GolfScript can take code via STDIN.
 
oh okay. then where does it get its input from when the code comes from STDIN?
 
@MartinBüttner The GolfScript program pushes the input onto the stack first.
 
6:09 PM
(GolfScript itself I mean)
@quartata but what input
 
@MartinBüttner The input that TwistScript got ahead of time
 
if I do cat myprogram.gs | ruby golfscript.rb, how do I give it input?
 
@MartinBüttner As far as I understand it, you don't.
 
6:10 PM
@MartinBüttner More cats
 
It only takes input when it uses a file.
@Doorknob lol
 
@quartata ah okay, fair enough
then calling the program "GolfScript's STDIN" is definitely confusing ;)
 
I hope I have sufficiently enlightened/confused all of you.
 
so you're saying, input still goes onto the stack as in normal golfscript... but the golfscript code is basically entirely random
 
@MartinBüttner Basically.
 
6:11 PM
that sounds incredibly useful
 
It isn't random each time though. A program will do the same thing each time.
@MartinBüttner I know, right?
 
@quartata right, if you miraculously manage to find a seed that gives you a meaningful program, the language is totally usable ;)
 
@MartinBüttner I don't see any way to find such a seed aside from just sheer brute force...
If you think of a clever way I'd like to see it.
 
@quartata I don't think I will :P
 
Anonymous
I'm 25% of the way to mortarboarding today, entirely from the showcase challenge :P
 
6:13 PM
So is my language sufficiently evil enough to be counted among the greats (Malbolge, Seed, ...)?
 
mortarboarding ... those were the days
 
@Calvin'sHobbies Solution in J: (';'&={' ,',.~'.',~])"0&.|:
 
I think there's more to Malbolge than securing your language's semantics behind a PRNG ;)
 
0
A: Sandbox for Proposed Challenges

Samed Tarık ÇETİNVigenère Cipher Write a program that is capable of breaking a text encyripted using Vigenère cipher encyription. Goals: Take encripted text from STDIN and write plaintext to STDOUT. Limits Keyword will always be 3 letters in length. Plaintext will always be in between 5-10 letters in leng...

 
I guess it's up there with Seed though, but I'm not sure that itself is in the same league as Malbolge :P
 
6:14 PM
Fair enough.
 
If you want to explore randomness-based esolangs, I'm generally more intrigued by languages like HBCHT which contain inherent (unavoidable) randomness which can be reliably worked around with sufficient effort.
 
I personally think this is more evil than Seed, since Seed isn't really all that clever. But this doesn't have anywhere near the complexity of Malbolge.
 
(And by "effort" I don't mean a brute force program generating the code. ;))
 
@MartinBüttner Interesting.
 
That is, the challenge in writing the program should be "how can hash all of the possible random outcomes to the same deterministic result with the operators I've got".
simple example: if the last bit in any integer literal would be flipped at random, you could double them all and divide them by two manually.
 
Anonymous
6:24 PM
@MartinBüttner That only maps Z -> 2Z
 
Anonymous
You couldn't get 3 out of that, for example
 
I feel like making a challenge about Baudot code.
 

« first day (1746 days earlier)      last day (3096 days later) »