« first day (1627 days earlier)      last day (3222 days later) » 
00:00 - 19:0019:00 - 00:00

12:12 AM
You can't unbreak these windows, pops!
 
Haha what?
 
I don't know what you're talking about.
Quick poll: chunky or creamy peanut butter?
 
12:25 AM
Depends, but usually creamy.
Like 98% of the time creamy.
 
I had such faith in you, too... All my friends are turning against me.
 
12:38 AM
:(
Chunky is good, I just usually prefer smooth. I was raised in a smooth only household.
 
I need to sit down.
Every single person I've asked tonight has come down on the creamy side of life. My whole existence is a lie.
 
12:56 AM
It'll be okay. Just breathe.
On a somewhat related note, I just ate a really good sandwich. Good but it made a huge mess all over me, my kitchen, and the table. It was a struggle that ultimately ended with the sandwich's defeat and subsequent consumption.
(there was no peanut butter)
Most of the people come here to talk about code golf. I come here to make smart-ass comments and talk about sandwiches.
 
I definitely support conversations about a good sandwich. I just had Spangles' peanut butter and jelly steakburger with bacon and jalapenos, so these things have been on my mind. (By the way, they put chunky peanut butter on it, the way God intended)
 
What in the world is a Spangles' peanut butter and jelly steakburger with bacon and jalapenos?
 
Exactly what it sounds like.
 
So it's a burger where the patty is steak, topped with peanut butter, jelly, bacon, and jalapenos?
That's the most American thing I think I've ever heard.
Is Spangles' a brand of peanut butter, perhaps chunky?
 
Spangles is a fast food restaurant, out here in Kansas :D
(It may or may not actually be steak, but it tries)
 
1:09 AM
Ah, okay. I don't think we have Spangles in Washington.
 
They're pretty local, I think. Or at least they used to be. Nice little place. Some weird stuff going on with Elvis, though.
 
If I wanted chunky peanut butter, I'd just eat peanuts. Nobody asks for chunky butter.
 
hahahaha
 
I've only made a handful of poor life decisions in Spangles restaurants.
Oh come on. SOMEONE has to be on my side!
 
@Geobits Granted, butter and peanut butter serve two different purposes. Outside of the state of Iowa, I don't think too many people eat butter sandwiches.
@Calvin'sHobbies Chunky or smooth peanut butter?
 
1:13 AM
Sure they do. That's why they bring butter to the table with the bread. It's just an open-faced sandwich, and people don't call it that.
 
@AlexA. I like both
 
That is unacceptable. You must choose a side.
 
@Geobits That... that just blew my mind.
 
@Geobits I'll let you be right this one time...
But not about peanut butter.
 
I'm already right about peanut butter. No 'let' needed :P
 
1:14 AM
I this overhanded joke think seriously staying a tag?
 
How dare you call it a joke?!
 
:D
It seems to be one of the few tags CH hasn't written a challenge for. hint hint
 
@Calvin'sHobbies That's you! ^
 
Any good ideas for a challenge about octopodes? They're overhanded :D
 
I just abolished it. Scream if you must.
 
1:17 AM
screams
3
 
Well that lasted for less time than I thought it would. Only slightly, but less.
 
@Calvin'sHobbies Would you be mad if I added the tags back?
 
@AlexA. As supervisor of CH, I would be rather pleased, thank you.
 
@Geobits I figured it would be Martin or Doorknob that did it.
@BrainSteel You supervise all of Calvin's various hobbies? :P
 
@AlexA. No but I think it's silly. I don't mean to be a kill joy but it seems at cross purposes with our quest for more/better questions.
 
1:20 AM
It's all good.
user image
5
For posterity, since it'll be gone when the script runs.
 
We'll remember the tag as it was.
It lived a short but vibrant life.
 
It was a hero.
 
A real American hero.
 
It loved chunky peanut butter...
 
No it didn't.
 
1:22 AM
It did not.
 
Trying to sneak chunks into peanut butter is underhanded if anything.
 
You don't have to sneak them! They serve a legitimate need!
 
Getting stuck in your teeth? Making a delicious sandwich weird and crunchy?
 
@BrainSteel A legume-imate need, you might say.
2
 
1:24 AM
Ouch. That just hurts.
 
@AlexA. I appreciate this more than you know.
 
@Dennis Chunky or smooth peanut butter?
Nvm, he left immediately after I posted that.
 
Ok, I must get back to the skinner box that has recently trapped me. Have fun reminiscing about tags and insulting chunky peanut butter!
 
I don't know what that means, but bye I guess?
 
Quick, while nobody's looking! Create the tag...
 
1:29 AM
What if I write a challenge about chunky vs smooth to appease people?
 
Perhaps a challenge about throwing peanut butter... overhanded?
Okay, that was a stretch. I'm sorry.
 
@Calvin'sHobbies I would be ap-pleased.
 
0
A: Sandbox for Proposed Challenges

WallyWestShortest Cut and Paste Sort Given a string containing a random sequence of unique characters A to Z (all upper case, no duplicates), determine the fastest method of a "cut-and-paste" sort and output the sort sequence to a specific format (detailed below). Definition of Cut-And-Paste Sort, by ...

 
1:46 AM
0
Q: This is Problem 7 from Project Euler

AstroCarpI can't find out what is wrong with my program; I need to find the 10,001th prime number. I'm relatively new to Java, so help is appreciated: public class Problem7 { public static void main(String args[]){ int[] Primes = new int[10001]; for(int i = 0; i < 150000; i++){ int count ...

 
2:37 AM
@AlexA. We only have one kind of peanut butter here, but it's neither smooth nor chunky.
Jif has been available lately, but it only comes sweetened and I can't eat sugar.
 
Anyone know where one can learn Binary Lambda Calculus? It looks like such a fun language.
 
0
A: Sandbox for Proposed Challenges

Vioz-LindenMASM LindenMASM is an Assembly-like programming language which can be used to generate images from Lindenmayer systems. Lindenmayer systems are very interesting in the fact that they can provide a rudimentary method of generating fractals, such as a Sierpinski triangle. They are also inter...

 
2:53 AM
1
Q: Chunky vs. Smooth Strings

Calvin's HobbiesConsider a string of length N, such as Peanut Butter with N = 13. Notice that there are N-1 pairs of neighboring characters in the string. For Peanut Butter, the first of the 12 pairs is Pe, the second is ea, the last is er. When the pairs are mostly different characters, the string has a chunky...

 
@AlexA. ^
 
3:34 AM
0
Q: Rebuilding an ASCII City

Phase +--+ +--+ | | | | +--+ +--+ | | | | | | | | +--+ +--+ +--+ +--+ The people of ASCIIville are rebuilding their city and are sketching out new blueprints. Your job is to draw their new city based on how many buildings they want. The input will be how many buildings there are. Each buildin...

 
4:01 AM
why doesn't python int have an __eq__ method?
 
 
1 hour later…
5:12 AM
0
A: Sandbox for Proposed Challenges

DennisLossy ASCII art compression code-challenge ascii-art printable-ascii compression overhanded Background This is the creepiest fractal I know (and also one of my favorites): Using PICASCII, I've converted this picture to ASCII art and, with the correct font, this is the result: See for you...

 
@Dennis Only one kind of peanut butter? That's such a foreign concept to me. Are you in the US? You're not missing anything with Jif though, it only loosely qualifies as peanut butter since it's mostly corn syrup.
 
5:32 AM
@AlexA. Which is precisely why I can't eat it. I live in South America. Peanut butter isn't very popular here. Myself not included, I don't know anyone who eats it.
Even my wife, who likes to put crushed peanuts in her coffee, doesn't eat peanut butter.
 
6:06 AM
@xnor Is this Python 2? Python 3 seems to have it
It probably doesn't have it because there's __cmp__ I'm guessing
 
6:22 AM
yes, python 2
 
What are you trying to do, btw?
 
6:50 AM
chunky vs. smooth I assume
 
That's for strings though o_O
 
7:15 AM
0
Q: Print the map of a country with the weirdest code possible

Himanshu MishraIt can be in any language, plus the map must be in the output only not in the source code. This is my first question here, so please feel free to edit it. Also, there might be some rules about scoreboard which I'm not familiar how to put it here. Cheers!

 
@Sp3000 yes, i was doing it for strings, but tried it for it ints to check syntax and was surprised it didn't work
 
7:43 AM
Whoever unmade gets a curse from me of not being able to ask a question for a week!
its 50-50 chance that the curse is valid.
 
deleting the tag and publicly admitting it is a pretty overhanded thing to do
 
publicly admitting it, yes
not deleting the tag. That is pure evil
 
I was thinking of doing a golf-practice for Pyth
Like this:
24
Q: Golf Practice: Python

xnorThis is a challenge of practicing golf optimization in Python -- reusable tricks and shortcuts to shave off a few characters. Many will be familiar to Python golfers and use common ideas from the Python Tips. Some of these use Python-specific features that you might not know exist unless you've s...

Sound good to people?
 
I'd personally prefer another Python one, but I'm biased :P
 
@isaacg sounds great!
can i really not divide two ints and get a float in Haskell without a lengthy conversion?
 
8:00 AM
/ seems to be giving me floats fine
 
it works for, say, 3/5
but not let a=length [1,2] in a/a
length gives an int, 3 gives a num
 
Searches aren't turning up anything good :/ Purity doesn't seem to help much for golf :P
 
part of the joy of golfing a different language is how the hard becomes easy and the easy becomes hard
here i thought chunky/smooth would be easy with the power of map/filter
 
Well you're right about that part :P I didn't expect int/float troubles though
 
this makes me think of a reverse golf challenge
"comes up with the simplest-sounding task you can that can't be done in 50 chars in language X"
 
8:15 AM
I bet it would have to be pretty complicated if you can't do it in 50 chars in Pyth
 
Print 1 in Parenthetic :P
 
ok, the number might need adjusting for the language :-)
 
its name is overhanded, its name is overhanded, its name is overhanded!
 
btw xnor, not posting a Python chunky before Haskell?
 
i got stuck on handling the 0 and 1 length cases
the convention is the opposite of the one I want
and that made me think to do haskell so i could just say f "" = 1
 
8:18 AM
Ah... yeah :/ and str doesn't have __neq__ either, does it :/
 
best I can do now is cmp and .count(0)
for equality
but this requires Python 2 and so integer division...
 
Is that better than special casing with, say, +(len(s)<2)?
 
i suspect so
 
Hmm it needs to be a float, damn
 
i imagine True and False aren't valid for 1 and 0, so that takes out bool and ...
 
8:27 AM
I'm trying to figure out if 1 is okay instead of 1.0 o_O
 
it should be fine: "0 is fine instead of 0.0000"
 
Ah k that's good. Otherwise ><> would have had a lot of trouble :P
btw the best I have is 60 in Python 3 - needs to be 3 because of how map works in 2 :/
 
i'm at 59 in Python 2
wait, map is better in 3!
outrageous
 
Yeah, cos there's no problems with NotImplemented :P
 
oh, for None?
 
8:32 AM
No, for map(...,s,s[1:]), since you don't need map(...,s[:-1],s[1:])
 
oh, didn't know that difference
 
>>> s = "Peanut"
>>> map(str.__eq__,s,s[1:])
[False, False, False, False, False, NotImplemented]
^^ For Python 2, when one is longer than the other
 
ah, yes, I was running into the same problem mapping cmp
 
I guess that's one good part about Python 3 making map act like zip and truncating
 
i'm losing 13 chars on the divide-by-zero cases...
 
8:40 AM
Oh, it's __ne__, not __neq__... hm...
That's makes things 53
It's 52 if I can output -0.0 :D
 
 
2 hours later…
10:25 AM
Any Java experts around ?
@Geobits ?
 
@Optimizer I think your ASCII city needs to be separated by spaces
 
oh, didn't see at all
 
10:42 AM
Hmm I have a lot of leading spaces :/ damn
 
11:11 AM
Is my Java expert request still being processed ?
 
11:49 AM
@Optimizer I wouldnt consider myself an expert, but I've used it for quite some time
 
12:07 PM
Any idea about Future and Disruptor ?
 
nope, sorry
 
12:46 PM
I haven't played with Future much. I do a lot of my Java work in Android, and they have alternative methods for async stuff.
 
Do they also use Fork Join pool ?
 
That sounds similar to what they do, by a different name.
What are you trying to do?
 
My query was using disruptor's event approach vs a Future async task
I would have mostly 1 event with 1 consumer in case of event approach
Didn't find anyone on internet with a similar comparison
 
Hmm. I can't say I'm familiar enough with disruptor to be of help. A single producer/consumer shouldn't be a stretch for future, though.
 
and the thread will be short lived, merely seconds.
but will be spawned every 5-10 seconds
same goes for event. Event will be triggered 5-10 seconds, and the event handler will run for merely a second.
 
12:58 PM
Well on Android I wouldn't think twice about using an Asynctask for that case. I believe Future is going to be your closest comparison to that. But like I said, I'm not an expert on desktopy Java concurrency.
 
why not? Disruptor has been proven to be super lightweight and efficient ..
wrt inter thread communication
 
Because Asynctask is builtin and optimized for the Android thread model? It's simple to use and works like it should.
 
Thus my confusion. There are no stats comparing my user case (o anything related ot that). But Disruptor is the best thread communicator there is . Faster than Blocking Queues
 
So are you just looking for sample code for single event/consumer Disruptor? I can Google assist if that's all you need :D
 
not code, performance benchmark for something similar.
there are benchmarks for disruptor vs queues, but not disruptor vs async tasks.
 
1:09 PM
Maybe for this use case they're both really fast and the difference is negligible?
I can't imagine the thread communication is going to be burdensome for a single event every few seconds.
 
true, but what if it start slacking up. The previous thread is not done while a new event comes in and all.
 
Should they be processed sequentially or does it matter?
 
it doesnt, but now I am eating up threads. Other things are also going on alongside, so threads are costly
 
Ok, so you want to have an event spawn, and if another event comes in, 1) add work to current event, or 2) queue new event until the first is done?
 
if another event comes in while the previous event is still being processed, then I probably want to wait.
 
1:21 PM
The small bit I've learned about Disruptor in the last few minutes of reading tells me that it should work just fine, but is probably overkill where a simple queue would work. Unless you find that you're actually having a bottleneck on the communication.
grain of salt added for the taking
 
by communication, do you mean sum of (spawning thread + transferring data to thread vs sending data in event + consumer getting the event) ?
 
Pretty much.
But like I said before, I can't see it being that bad once every few seconds. Many times per second, sure.
 
I see. Looking from that angle, Disruptor seems to be doing more computation
 
I'd guess so, but don't know the internal details well enough. The flowchart I saw was insane though :P
 
Alright, now off to fixing this race condition.
 
1:27 PM
Hvae fn!u
 
Its not bad that
any thoughts on :
if (queue.size > some_number)
    flushQueue()
type of concurrency condition ? (without using synchronize)
 
I haven't done that before, but I guess it would work.
 
no, so more than 1 thread can go inside that if block. I don't want that
(flushQueue is asynchronously synchronized on the queue)
 
I'm not entirely sure what you're asking.
 
if 4 thread enter that if condition with queue.size > some_number, they will all call an asyncTask flushQueue which flushes the queue and makes its size 0. So out of the 4, 1 will do that, flush all the data from the queue, but other 3 will uselessly flush an almost empty queue.
 
1:38 PM
So why not synchronize that?
 
Power went out at work :(
This is why you save constantly!
 
Start the rituals?
 
then there is no point in using concurrent queue, better off with blocking queue
 
If you're just synchronizing on the condition, then you could use a flag instead of a bare conditional. Flag it as flush needed for one thread, and clear the flag when the queue is flushed? Not very elegant...
That way you're not synchronizing flushQueue() itself.
But that may lead to other issues.
 
but is it guaranteed that only 1 thread will see that flag's value as true (or false) ?
@Geobits can't do that for sure, as no events should enter while flushing.
 
1:42 PM
Hmm. So what is wrong with using a blocking queue then?
This sounds a lot like the right use case for it.
 
it blocks producers too
even when its not flushing
 
Hmm.
 
and I have huge number of producers.
using concurrent+synchronize, I only block producers while flushing.
And even that can be fixed by a bit of more programming :D
 
So get to flushing :P
 
but is the flag approach correct ?
 
1:46 PM
I'm not so sure after thinking it over, to be honest.
 
lets see what internet haz to say
 
Is flushing expensive enough to worry about "needlessly" flushing an almost empty queue?
 
yes
 
Well that sucks ;)
 
I know. But hopefully, the end product would be super fast.
so I am Optimiztic
 
1:50 PM
I refuse to star that. I will, however, applaud your work. Well done.
 
My work of punning ?
 
Yes. What did you think I meant, programming related stuff? That's off topic here.
 
You'd anyways down vote that.
 
I've already got my suit on.
 
2:03 PM
0
Q: Integral triangles and integral medians

Nicolás SiplisLet's call ABC a triangle which has every side as an integer. Every ABC that has at least 1 median (https://en.wikipedia.org/wiki/Median_(geometry)) that is also an integer will be considered a valid triangle (they are all unique, so <6,6,5> = <5,6,6>, for example). T(N) represents the number of...

 
(Conclusion: Nim is a pretty terrible golfing language. First time saying this, but: Almost caught up to C#!)
 
Sure its a golfing language?
 
Copying problems from Project Euler is the new !
3 in last 2 days
 
By "golfing language" I mean "language to golf in", not "language designed for golfing" :P
Also I'm pretty surprised that people copying questions from PE then getting closed isn't a more common occurrence (thankfully)
 
2:18 PM
Woo, beating C#. This language is funky.
 
Anyone here snowboard/ski?
 
Do some of you guys mind reading my sandbox post? I've added a bunch of stuff and I want to make sure I'm making sense :P
0
A: Sandbox for Proposed Challenges

Vioz-LindenMASM LindenMASM is an Assembly-like programming language which can be used to generate images from Lindenmayer systems. Lindenmayer systems are very interesting in the fact that they can provide a rudimentary method of generating fractals, such as a Sierpinski triangle. They are also inter...

 
Everything looked okay except for the "ASCII characters" part
 
What about it?
 
It doesn't seem very well defined for, say, an angle of 25 degrees
How do you determine if an ASCII output is correct?
 
2:28 PM
That's a good point
 
@Sp3000 The worst golfing language I can think of is XSL
 
Maybe determine a standard for the width of the characters
 
What's so bad about XSL?
 
its a great language
just very verbose
and not many built-ins
 
... ah
 
2:30 PM
@NathanMerrill I wouldn't say it's that verbose. Just pretty much impossible to answer any question with it
 
it is turing complete
 
Really? How do you input into it? Using the XML to be transformed?
 
you technically can input a number
you can match a text() node
 
It has too many excess L's for my liking.
 
Also, how do you calculations?
 
2:32 PM
math works inline
as far as I know
you simply pass parameter as xs:integer
 
Oh cool. I only started looking at XSLT yesterday, so I'll try golfing with it at some point
 
Did everyone just wake up? Chunky just got 4 answers in 15 min
 
A bunch of people in mid-US probably just got to work :P
 
"work"
 
lol
I've been looking for that job description: "regularly completes golfing challenges"
 
2:48 PM
Not many jobs like that. I think Martin recently got hired at one, but the pay is lousy.
 
3:14 PM
and Geobits is being nice here when he calls the pay as "lousy"
 
like a very bad version of vanilla sky
Ads Sky
 
@Optimizer You should try and hardcode the offsets up to 15 for ASCII city and see what that gets you :P
 
thats a lot of info . I doubt it will fit in under 20 bytes
 
15 numbers at most 4? Seems like it'd easily fit to me...
[1 0 1 1 1 2 0 1 2 3 0 2 0 1 3]
 
Hey, folks, looking for feedback on my sandbox post:
0
A: Sandbox for Proposed Challenges

BrainSteelTranslate Treehugger to BrainF**k code-challenge (?) Overview This problem deals with two esoteric programming languages that I will briefly describe for completeness. Brainfuck is a language that has only 8 commands. Imagine a tape of values (generally 0-255) stretching infinitely to the rig...

 
3:56 PM
@Sp3000 61
58
 
4:20 PM
Has no one found the easter egg in my chunky question?
 
0
Q: How to take input in XSLT?

Beta DecayI'm thinking of starting answering questions in XSLT, but I don't know what the standard method of input would be? I'm thinking of an XML file like so: <?xml version="1.0" encoding="ISO-8859-1"?> <input>Put your input here</input> And then you access the input by using the following code: <...

 
@Calvin'sHobbies it is overhanded?
 
Is it the scoring in bites?
 
Is it actually not your hobby ?
Is it you, Calvin ?
 
4:25 PM
> Some say the toast will end up chunky,
Some say up smooth.
From what I’ve tasted of peanut butter
I hold with those who favor chunky.
But if I had another slice,
I think I know enough of taste
To say that for distraction smooth
Is also great
And would suffice.
 
@BrainSteel are you planning to write code that makes major use of trehugger? like 2d arrays?
 
@randomra I will probably have 4-5 smallish snippets of code. They won't be particularly advanced. Things like adding two numbers, repeating input backwards, or simple patterns. I do intend to make full use of the binary tree, wherever it applies. I will likely use several completely unnecessary operations traversing the tree to throw more naive approaches off.
 
should we have a tag? I think there are quite a few questions asking for translate from A to B
 
I can only think of one atm...
 
@Sp3000 there are 5 at the top of the BF tag: codegolf.stackexchange.com/questions/tagged/brainfuck
I guess you recalled this:
 
4:33 PM
RoboCritters doesn't count :P
 
16
Q: Translate Prelude to Befunge

feersumThis is Weekly Challenge #2. Theme: Translation Write a program or function that takes in source code for a program in Prelude and outputs code for an equivalent program in Befunge-93. For the program to be equivalent, it should, for any given input, produce the same output as the Prelude progra...

 
Fair point about Fractran though
 
0
A: Sandbox for Proposed Challenges

Beta DecayPrint the Biggest Number code-challenge Challenge Well, the challenge is what it says what it says on the tin: write a program which outputs the longest number it can. This is not an opportunity to screw around with the rules however, and you must output the number as a number and not in alge...

 
@BrainSteel I feel like writing any translator for TH-to-BF would be a hard problem
do you have any idea how you would do it?
 
Yeah, I'm trying to think of ways to make it a bit easier. It's not a full translation, since there is a known finite number of inputs on each test. My approach was to find the deepest that the program would ever go in TH, and put each possible node accessed into an array, BF style.
 
4:40 PM
@Sp3000 Are you there?
 
Yep
 
@BrainSteel that would mean you have to enumerate all possible inputs right? so ,,,, would take 2^32 steps to process
 
So basically you'd print the number all together on the same line
Not each digit line by line (I guess that's what you implied)
 
@randomra I think there's a clever way to do it... Alternatively, I could limit it such that it is guaranteed that only printable ASCII are given as input to the TH. Or even better, only digits 0-9.
Would that help?
 
You can still print digit by digit not each on a new line
Also, possible dupe of one of these
 
4:44 PM
Ohh, no that's acceptable. Theoretically you could out an infinite length number then
 
That's my problem :P
 
Yeah...
 
@BrainSteel doesn't change the method so I don't think so
 
Well, it's a lot easier to think about how to handle 10 inputs than 255.
 
@Sp3000 My idea was that people would use strange methods to get the most out of their memory allowances
 
4:46 PM
@BrainSteel the code is the same
 
True. I'm convinced there's a clever way.
 
@BrainSteel My first impression tells me it's probably doable by enumerating the cells like you would a priority queue/heap. Then going down a branch is either 2n or 2n+1, going up a branch is n/2. You'd have to keep checking a specific cell to know where to go next. My only problem though is where it's possible to translate a number n in a cell to doing > n times
 
That seems doable. I'll fiddle with it and see if I can get a reasonable reference implementation working.
 
Each TH cell would probably have to map to a group of at least 2 BF cells, so that you can also make the return trip back to the "pointer" cell (pointer cell probably needs to be near a few temp cells for arithmetic too)
shrugs not sure if I'm making any sense, but it seems feasible in my head (but then again everything does until the bugs come knocking)
 
yeah, you need some temps and that can blow up quickly if you are not smart/lucky
but maybe not as complex as I imagined
 
4:54 PM
If anybody has time to kill, I'd appreciate some feedback on this:
0
A: Sandbox for Proposed Challenges

DennisLossy ASCII art compression code-challenge ascii-art printable-ascii compression overhanded Background This is the creepiest fractal I know (and also one of my favorites): Using PICASCII, I've converted this picture to ASCII art and, with the correct font, this is the result: See for you...

 
I'd probably recommend more test images rather than more quality settings
It's hard to say if some programs will do better for specific types of images
 
0
Q: The Venerable Bede, 21st Century Style

Michael Stern1300 years ago, the English theologian Bede earned the honorific by which he is now known ("The Venerable Bede") by, among other things, convincingly computing the date of Easter for a number of years. This required reconciling the old, Jewish, lunar calendar with the newer solar one, a task made...

 
(also it gives people more pretty things to post)
 
That's probably a good idea. I'll add a few more.
 
So what is the definition of now?
 
5:08 PM
it was overhandedly taken down :(
 
Does anyone understand how the bonus works for this new question?
I can't see how that makes any sense
 
It doesn't really make sense.
 
Unless you want to literally manipulate strings for arithmetic... Which would be odd.
 
@aditsu Not the kind I was expecting, but thanks anyway. :P
 
@Dennis hmm? what kind?
 
5:19 PM
Well, I was more worried about the quality formula and the scoring algorithm than the nutricional value of the ASCII art.
 
oh, are you talking about the broccoli?
 
That's the one. :D
 
so.. kind of feedback then, ok :)
 
5:56 PM
0
A: Sandbox for Proposed Challenges

aditsuMinimal character set Choose a language and find a minimal set of characters that you can use to write any program in that language. Then provide either a conversion program (preferred) or a proof that any program can be converted to use that character set. Related python question; related javs...

 
0
Q: Reduce rows of data set based on less complete data set

Michael SmithTask: Given a complete set of data, e.g.: WL Excit loggf rad stark waals landefactor 5044.21 2.85 -2.04 8.17 -5.41 -7.28 1.77 5044.72 3.96 -4.54 7.95 -4.43 -7.49 0.27 5045.50 4.58 -5.11 ...

0
Q: Program to compute the number of days you have lived

SruliThis program is supposed to determine how many days someone has lived. There is a test that checks some functions to see if they compute the right answer. My program gets the right answer for the first and fifth test but is just a day off for the other three. ie 59 instead of 60. def leap_year(x...

 
if you choose the scoring system
 
hmm, interesting
@randomra I want to get the minimal set (so smaller character set should be better for the same language), but at the same time, I don't want unary to win automatically
 
6:11 PM
in that case whitespace could be the probable winner
3 chars, decent terseness
Would this be a good challenge?

Adding backwards
 8
+9
-----
 71

 28
+90
-----
 19

 145
+ 98
-----
 1341
 
qW%~+sW%~
wait.
third example is weird.
 
Unary would win that sandboxed challenge, if you just scored based on length. I think popcon may be a good fit for that, honestly.
 
there may be a good formula, but I like the popcon idea
 
@randomra how is third example working ?
 
Java'd probably lose that even with their semi-small charset of 18 :(
 
6:16 PM
@NewSandboxedPosts Isn't there already a challenge which is exactly that?
@aditsu This
 
@Optimizer 1+0=0; 4+9=(1)3; 5+8+1=(1)4 1=1
 
weird
 
if you pad the shorter with 0's it might works with your code
 
no it wont
 
@Sp3000 oh, I hadn't seen that
 
6:19 PM
3 digit + 3 digit never makes 4 digit (except when it actually does)
 
does your logic suggests another result for the last one?
 
So... 98 gets zeroes padded? Hm...
 
36
 
oh, if you pad
got it. sandbox or direct post ?
 
6:22 PM
just idea, maybe sandbox,when I will have time
you can sandbox/post it if you wish
 
nah, its yours
 
6:59 PM
 
00:00 - 19:0019:00 - 00:00

« first day (1627 days earlier)      last day (3222 days later) »