« first day (1488 days earlier)      last day (3360 days later) » 

5:00 PM
All characters before 7f take up 1 byte.
 
@IsmaelMiguel even if you have already used all of printable ASCII, I think it's better to take the CJam approach and add 2-char operators
see e and m operators at the bottom: sourceforge.net/p/cjam/wiki/Operators
 
That would crap up the idea and would cause troubles with variables.
I have to come up with something then
That will be quite near impossible
 
how come?
 
I have to come with 1-byte long utf-8 symbols
 
that's only ASCII
and I guess you want to stick to printable ASCII
if you ditch letters being character literals, you get 52 new operator names for free
2
 
5:04 PM
True, but then I need those for variables
Maybe I should ditch the º ª characters
(Ignore the awful grammar)
That would help
 
btw, another trick to learn from CJam: character literals don't need closing quotes
 
Well, not letters...
But what about |, ^, . and others?
 
Those require quotes
Or that, which is 1-byte shorter
 
yeah, I only meant the closing quote
of course, the opening one is necessary
 
5:16 PM
I will change the specification
 
People have strange ideas about the "original spirit" of my Finnish nouns challenge.
 
Sorry, your what?
 
More specifically, the last comment here
 
With that challenge, I would go insane for a second
I read and re-read and triple-read and I am pretty confident I would fail.
 
5:34 PM
@Geobits 3,010
 
Of course! 3,010!
 
it's nice that we agree for once
 
I already have a hunter lined up to go :)
I just have to test him first :D
 
I just got this weird feeling when I read that Martin can hear what I'm thinking.
 
52 mins ago, by Martin Büttner
@Rainbolt I can hear you thinking "earthlings" ;)
^ ?
 
5:38 PM
Yes, that.
 
Sorry to disturb again
I've changed a few things in the specification
If you want to check it, please feel free
You can also take a peek at the other stuff, but nothing interesting there will be found.
(No 404 will be thrown, I hope)
 
"Flipps" should be "Flips"
 
Thanks :/
I need Opera back!
 
"Expricit automatic register" LMAO this made my day.
 
That's what happens when you avoid doctors
I may be getting dyslexic or something
 
5:43 PM
So if I avoid doctors every day, my day will be made?
Thanks for the tip!
 
(No joke intended)
I don't get it.
Can you please explain it?
 
I read through the entire thing and found no more obvrious typos.
Saw some random places where every item but one in a bulleted list ended in a period (or vice versa)
 
obvrious -> obvious
 
"obvrious typos." <-- like this?
I have those everywhere
The idea isn't to find typos, but that is helpful
The main point of asking the opinion is for you to say what you think of the language if implemented as-is in the specification
The typos are a very nice and sweet catch
 
I built a compiler for a grammar that had maybe five rules for a class project four years ago. I remember decades of English class better than I remember that. So that's all I can help you with.
 
5:49 PM
If I made an interpreter, would you use this language?
 
@IsmaelMiguel You have two distinct ways of explicitly producing a quine. Wouldn't one be enough?
 
(the right answer is, zero would be enough :P)
 
@IsmaelMiguel I enjoy golfing in Python and Java, just to beat other Python and Java submissions. Golfing in a "look it up" language doesn't sound appealing.
 
@Zgarb Not really. I had 3, but deleted one. One simply outputs the code and does nothing, the other fills the stack with the source code. Those are 2 very distinct actions
@Rainbolt Thanks dude. How could I made this language in a way that would at least wake some curiosity to try it?
 
I just realized that drinking/eating all potions/rations before attacking at all does not give any additional health/energy :(
 
5:52 PM
I don't see how the quine bits are/would be good for golfing (at least here). Any decent challenge related to quines would have a "no builtin quine functions" line, right?
 
@Geobits it usually doesn't, I think, because so far only HQ9+ can do that, using which is a standard loophole anyway
 
@IsmaelMiguel I don't know. The last language that really sparked some interest here was Marbelous. Maybe you can take some pointers from its creators.
 
I just think it's generally a bit lame
takes the whole fun out of quining
 
I think introducing one would be a good way to push the builtin loophole into "valid"
 
5:53 PM
@Rainbolt that one wasn't at all made for golfing though
that was more like a fun puzzle language with design goals similar to Manufactoria
 
What purpose does "|Q" serve that can't be done with "K|"?
 
@Rainbolt I've read about it, but briefly.
 
@MartinBüttner I know. I'm just pointing out that those guys knew how to get people interested.
 
@Zgarb K| runs the code, |Q simply outputs the quine without running it.
 
the way some people might get interested in a language is if you implement it, and then get a shorter score than other langs in challenges
3
 
5:55 PM
Worked for pyth, right?
 
not me though..I don't like golfing languages.
 
@Rainbolt I know I don't know how to interest people, therefore asking opinions about it might at least spark a tiny bit of curiosity
 
I think the "get a shorter score than other langs" part isn't even important
just implement it and answer challenges with it to show off some cool features
 
I think winning is helpful.
 
I've seen @Doorknob 's language he showed a while ago
 
5:56 PM
Nobody cares about my cool MTG decks until I win with them at FNM.
 
He didn't won, but his language looked promising
 
Hi
 
@Rainbolt true, but if you win because you have a generalised-quine built-in, that's probably less helpful than not winning and just showing off a nice unconventional paradigm
not this again...
 
Disclaimer: I starred Greetings because it reminded me of something that got starred last week.
 
that was different
 
5:58 PM
if instead you simply added a variable that tells the index of your position in the file, then you could win every CH challenge
 
@feersum you also need to be able to ignore all further or all previous code
 
@feersum That would be a bit hard to implement
 
I assume there would be a commenting method in most languages
 
how can you get the first million characters of a text file in windows? I only know linux where you would use head -c
 
hard to implement ???
lol
 
5:59 PM
@feersum there's almost never a left-facing comment, especially not covering multiple lines
 
@Lembik Copy paste :D
 
And any thoughts onhttp://meta.codegolf.stackexchange.com/questions/2140/sandbox-for-proposed-cha‌​llenges?cb=1 ?
 
(and GolfScript is the only language I know that has a right-facing comment covering more than one line)
 
loads of languages have /*
 
@Lembik that doesn't seem to have the answer ID
 
6:00 PM
many unfortunately barf on unterminated comment
 
@feersum without matching */?
 
AutoHotkey is the only one I found that doesn't barf
 
see :P
and I don't know any language that has the opposite
 
1
A: Sandbox for Proposed Challenges

LembikFinding all-but-one matches This challenge is about writing code to solve the following problem. Given two strings A and B, your code should output the start and end indices of a substring of A with the following properties. The substring of A should also match some substring of B with up to ...

 
anyway, a comment is by no means required in all cases
 
6:01 PM
no but for CH's challenges it would often be very useful
 
How do you know exactly how many characters you have copied?
 
@MartinBüttner C*
 
no.
@Lembik position the cursor at the beginning of the file. hold shift. hit the right arrow exactly one million times. press ctrl+c.
 
@Lembik the indices would make more sense if you decreased the starting index by 1
then same index twice = empty string
do you have a text editor?
 
Thanks.. android seems to have no support for chat except through chrome so apologies for not mentioning properly
Yes I have every free text editor :)
How about the coding/algorithms side of the question? Too hard/easy?
oh did someone downvote it??
 
6:09 PM
RoranStronghammer started dancing and throwing a rock at the Fatalis to get its attention.
I like Thrax's humor :D
 
@Lembik I use ChatSEy. Not perfect, but better than the alternatives I've seen.
 
Well, I've updated it again and added a syntax for comments.
I promise this will be the last time I bother you again
If you want to check it again, you can go to github.com/ismael-miguel/mariogolf
Most likely I will skip my gaming session to make a tremendously basic implementation
@MartinBüttner I don't mind the star there, I just hate bothering people
Whoever put it there, removed it.
 
6:25 PM
@Geobits Thanks
 
6:42 PM
Hi
 
No
 
Hi G
 
O, hi O
 
OhiO
 
O, geez
 
6:47 PM
Joke successfully explained.
 
7:04 PM
H OGF
 
HD
Wow, I am currently leading in source-layout
 
@Doorknob @Optimizer Translation ?
 
No
H1
 
Haha. Someone made a snowman outside my workplace. imgur.com/cPcEr2u
 
7 hours ago, by Calvin's Hobbies
Am I the only one referred to by initials around here? We are all about golfing things down. We can have MB and D-nob and ... O.
Read from there down
 
7:06 PM
And then our Website guy turned it into this imgur.com/0SWepCZ
 
So you work at Genesis ?
 
HO HO HO
 
H1!
 
No that's HO3
 
7:09 PM
H3K
 
3#'HO '
 
Three pound hoe?
That's rather light
 
You missed the space. It's three pound hospice. Still pretty light...
 
7:29 PM
I just got invited to walk from one end of my building to the other end, three times, as a walk of shame for not turning in my steps every day. Along with two others.
 
wow
 
productivity at its best
 
@Rainbolt What's more shameful, declining the invitation or accepting it?
 
@TheBestOne Depends on your weight
 
CH has a sandbox submission with a negative score!?
I would have never expected that.
 
7:40 PM
Wasn't me :P
 
Started a BF Sierpinsky solution but it would be over 200 characters...
and not too interesting either
 
I have an idea for a kolmogorov-complexity-hybrid question.
 
@randomra That challenge is impossible in Java :(
 
The goal is to reproduce a list of numbers (say atomic electronegativity), where you are allowed to round numbers.
The fewer chars, the lower the score. The more rounding, the higher the score.
So, if you cut a byte off your program but lose a byte of accuracy, your score stays the same.
 
sounds interesting but the balancing could be tricky.
 
7:54 PM
@PhiNotPi apart from scoring/rounding is it the same as compressing a random digit-sequence
 
but a) you need numbers with a finite maximum accuracy or you'll get -∞ score and b) there's a chance that outputting 1 for any input will be the best tactic
 
I'm going to have to define "a byte of accuracy" precisely.
 
You mean accurately?
 
Both, probably.
"Precisely" meaning that the definition is unambiguous, "accurately" meaning that it is balanced well.
 
I always thought of accurate as "close to correct"
 
8:06 PM
@TheBestOne why impossible? I don't know java that much but don't see why impossible
 
@randomra All possible ways of taking a Java program and stacking it on top of itself produce an invalid program.
Horizontal concatenation is possible; but not vertical concatenation.
 
The first step is defining a "digit" of accuracy. If I take a random integer and round it to the ten's place, then I would round it by an average of 2.5.
 
@TheBestOne I managed to get this to stack once. Twice and it breaks.
class A {} /*/
class A {} /*/
 
If I round to the hundred's place, I round by 25 on average.
 
Clarification: That's the code already stacked once.
 
8:21 PM
you didn't even get it to stack once because it's an error if there is only 1 line of that
 
Yea, you're right. My compiler was just slow to let me know lol
 
maybe there is a unicode char to cancel out linebreaks or something similar
 
Concatenate program in Linux, compile in Windows :D
 
@TheBestOne :D A special cross-platform program.
 
8:36 PM
@Doorknob Where did you learn to code ?
 
Couldn't you use something like `// \` at the end of the line in Java to comment out the next line?
 
Even if you could, what would comment out the next one?
 
@TheBestOne I'll get back to you on that one later; have to go in a few minutes
 
I'm stumped. I don't think it can be done without some overlapping blocks
 
8:45 PM
@Rainbolt It's simpler to prove impossible.
 
Really? Because a single example would prove it possible.
And you wouldn't know it was simpler to prove impossible until after you actually did so.
 
0
Q: Can I use Meta to vote for the type of my puzzle?

Thomas W.I am about to write a puzzle, but I don't know what type it should be. I think of Code Golf, but perhaps it needs to allow libraries. Then, I don't know whether and how much I should penalize the use of a library (e.g. triple your score if you used a library) Can I initially omit the puzzle type...

 
how about this:
/*
xx <CODE> /* *\u00
// */
where xx is hex for a /
then <CODE> is only uncommented the second time
 
Is that Java?
 
yes
 
8:48 PM
Illegal unicode escape
according to NetBeans anyway
 
oh, does it error if you have \u with less than 4 numbers?
 
Right
 
/*
xx <CODE> /* *\u0000
// */
Works fine
 
maybe if we split between \ and u
 
But then you don't get the / from it.
1) You can't comment all blocks except one
2) A valid program consists of a class
3) You can't have multiples of that class
4) Java sucks for this
 
8:53 PM
it hardly helps for this challenge, but just as a curiosity, this code defines a class only when repeated twice horizontally:
/*
u002f class X {} /* *\
// */
 
Wow you took proofs in elementary school?
 
3rd grade to be specific.
 
maybe I can find an old CH challenge which only requires horizontal repetition
 
I skipped 3rd grade :)
 
See, that's why I had to prove it :P
We need anti-stars in chat.
5
 
8:57 PM
We'll get anti-stars when Facebook gets unlike.
 
I heard they're getting that on May 14th.
 
aww, I can't find any source-layout challenges with horizontal-only block duplication
 
But you could write one ;)
 
lol
 
The problem there is that it still only works for exactly two blocks, right?
 
9:02 PM
it could work for more
err
 
Without defining X more than once?
 
actually, this would not be useful
since a horizontal block challenge would also have the trivial answer with // comments
 
Hi
 
@feersum :D
 
int x = 1 // int x = //
+ 1 + 1
; //
 
9:04 PM
I.... can't.... type....
 
Would have worked thanks to a bug in 2004. bugs.eclipse.org/bugs/show_bug.cgi?id=60848
 
we're slowly reaching the point where I wish stars weren't anonymous so Doorknob could just ban the people from chat who keep starring those "Hi" messages
 
I agree
 
then again, he could just ban the people who post those messages to provoke the stars.
 
I swear it's not me, but I imagine your anger only encourages whomever it is.
 
9:05 PM
No
 
isn't that a bug in the text editor's syntax checker allowing that, and not the compiler?
 
@MartinBüttner that thinking only led Infian Govt. to ban github, pastebin and co
 
Exactly. They're being starred to provoke a response. Quit feeding ;)
 
ban the sites which encourages people to share code
instead of banning/punishing such people (who share bad code and all)
 
@Geobits wait, I just remembered... I'm a room owner :)
 
9:07 PM
I knew the day would come when he abuses.
 
Oh crap. Ban-spamming time.
 
@M you can unstar and stuff ?
 
Either I'm really good (and fast) with photoshop or I am not the culprit: i.imgur.com/G297dJ6.png
 
no, but I can kick you out :D
 
abusing
 
9:09 PM
Everyone else post a pic of your sidebar
Narrow down the suspects.
 
No thanks. My past statements on the topic speak for themselves, I hope.
 
that's what they all say
 
^ - prime suspect
@MartinBüttner ughh
 
I shouldn't have gotten in the way there
 
9:10 PM
Then again, with a newly-realized banner in the room, it might be a good idea to present evidence. Don't ban me Martin!
@Optimizer I was pretty sure it wasn't you, since you can't star your own messages. And you own both starred 'hi' posts.
 
(which is even worse)
 
At least not today...
 
just helping
 
Obviously O did the starring on Optimizer2, right?
 
we have an O2 ?
 
9:13 PM
I breathe it, along with nitrogen and trace gasses.
(given the mood, I almost want to edit that last one to say hi)
43
Q: I'm seeing stars! (I can see who starred a message and so can you)

DoorknobSo I was making a chatbot in Ruby for SE chat, and I discovered that I could find out the starrer of a message. I'm pretty sure stars, like votes, are supposed to be anonymous. Although this knowledge would help for cases of star trolls like this. Here's the specific slice of code that do...

 
i CSS'ed
 
I'll leave my question one more day..I am hoping Peter Taylor will take a look
 
@Optimizer That's... way smarter.
 
obv.
 
9:18 PM
Well that blows this tactic :(
 
0
A: Sandbox for Proposed Challenges

Thomas W.Story This is based on a real world puzzle. A colleague had a very old program. It was announced to be discontinued by the company and then it was really discontinued in 2009. Now I should use that program as well, but it is full of bugs and I refused to use it. Instead I wanted to help my coll...

 
Hi. A high rep user may want to add my new sandbox answer to the list in the question, please. Thanks a lot!
 
Done
I added a note "Story [Challenge type up for discussion]"
 
9:33 PM
@Rainbolt: Thank you. "Story" reminds me of thinking for a good title :-)
 
source-layouts are the reasons why we need stop execution in cjam
 
And also why CJam should have infinite zeroes at the bottom of the stack
This challenge makes me think Golfish was a good idea after all, for the log
 
i dont see a benefit of infinite 0 wrt this question
 
So you can do something like 8\^)8\mL
Oh that's off by 1 isn't it
Point is, so you don't need to initialise, and make sure the initialisation happens once
 
U
the combo can save me a byte
)1+(
3mLn
 
9:49 PM
Yeah, something like that :)
 
I'm going on a function hunt!
 
@PhiNotPi Why not a Monster Hunt ?
 
I need to find a function f(x) such that...
f(-x) = f(x)
f(0) = 0
The average value from 0 to 5 is 1.
The average value from 0 to 50 is 2.
The average value from 0 to 500 is 3.
etc.
@TheBestOne I haven't really taken a look at that challenge yet.
Monster Hunter looks pretty complex.
Also, I found this image, which would have been relevant to yesterday's discussion:
 
10:10 PM
4 more upvotes to cap, but i dont have any hope
later folks.
 
@Optimizer Cap of what?
daily rep cap?
 
10:21 PM
@PhiNotPi what kind of function? Z->R?
 
@randomra I'm thinking non-negative reals to non-negative reals.
Perhaps I should explain the purpose more.
 
than f(-x)=f(x) is quite a challenge
 
lol
Then just ignore the whole negative half then.
 
tell the purpose than
 
f(x) = g(abs(x))
Now to find g(x)
 
10:25 PM
is it for sample generation?
 
Does it have to be continuous?
 
I am trying to find a way to measure how much "rounding" has been done to a number, in terms of "digits". If you have a random number and round it to the tens place (1 digit lost), you lose from 0 to 5 from the value.
I am trying to create a challenge in which the program tries to output a certain set of numbers, but is allowed to round the numbers some.
If you round a number by 2 digits, then your program length incurs a penalty of 2.
I want a way to assign a certain amount of error to a certain amount of rounding.
I anticipate, also, that programs could output non-integers.
 
i see, a continuous, differentiable function would probably include li(x)
but can't you just check the first wrong digit?
or similarly like ceil(log(dif))
 
If I round a large set of random integers by two places (to the nearest hundred), the errors would be random numbers from 0 to 50, so I want the function to return an average value of 2 given random inputs from 0 to 50.
The first wrong digit wouldn't be useful in a case like 2000 -> 1999 or 120 -> 119. The percentage error is small.
 
@PhiNotPi you don't want to return 2 for 504 -> 500
 
10:38 PM
I know.
Similarly, the average value from 0 to 5 would be 1, I think.
 
but you want average 2 for only 6..50 right?
 
I think so...
It could be a step-like function, if we wanted to make it easy.
0 -> 0; 1..5 -> 1; 6..50 -> 2; etc.
 
that's 1+ceil(log(dif/5)) if I'm correct
yep, that
 
The idea for the challenge is to attempt to reproduce a set of data, like the list of atomic radii, as accurately as possible.
So that there is a balance between shorter programs and more accuracy.
Simply rounding/truncating the values should have no benefit, which is why I need a penalty function like this.
The key to scoring well is to try to use patterns (like the atomic trends) to compress the program.
 
10:53 PM
(x * ln(10) - 10 * x * (ln(x) - 1)) / 9
I think that should work ?
 
@TheBestOne I graphed it and the curve goes downwards.
 
Nevermind...
 
11:09 PM
what's wrong with log |err| ?
with a minimum error
 
11:22 PM
If I'm measuring in digits, I've got (1 + ln(2 * |err|))/ln(10).
 
why are you multiplying by 2?
 
Because an error of 50 signifies rounding to the nearest 100.
 
x != 0: log10(|x|) + .7353015051
x == 0: 0
 
There would be a cutoff value of 0.183949, below which all errors give zero rounding.
 
@PhiNotPi Then the averages won't work :(
 
11:36 PM
Well, log10 gives a negative value for err < 1
 
the question sounded impossible without cheating by examining the program's own code, but it's apparently possible in c++
 
|x| >= .1910955809: log10(|x|) + .7187493558
|x| <  .1910955809: 0
The cutoff doesn't miss up the averages anymore :D
 

« first day (1488 days earlier)      last day (3360 days later) »