« first day (1613 days earlier)      last day (3233 days later) » 

1:14 AM
0
Q: Print n-z characters of Unicode table

Roberto DuranThe challenge is to write a program which outputs all characters of the Unicode table from n to z range. For code "0000" is the first in order and you must skip all blank Unicode combinations. The output of such a program does not require to be printed and shouldn't be for this challenge. The ...

 
1:27 AM
@MartinBüttner That's crazy cool! I'll have to study that fission :3
 
am I doing something wrong with auto-initializing variables in pyth
they always initialize in the wrong spot :(
for instance, a program that is primarily a reduce lambda
I want to assign the thing as one of the inputs to the reduce and reuse it in the lambda
but because the lambda comes first syntatically, nope
 
1:59 AM
@MartinBüttner Interesting idea. I guess I'd should match the tasks difficulties a bit more carefully in that case.
 
 
2 hours later…
4:02 AM
@Dennis Trying to decide how hard to make negabinary? :P
 
@Sp3000 Something like that. I had noted that at least two answers didn't work for input 0, so since my original wording that forbade leading zeroes left the possible output for zero wide open, I hastily excluded zero altogether.
Then one of the answers got edited and and dealing with zeroes seems to have been an important part of others. Since nobody solved or edited task 4 since my initial edit, I went back to keeping the zero. I hope it didn't cause any major confusion
 
Well I just edited my answer to include 0 this morning because I realised I forgot to test for it :P
 
Yes, I noticed. I'm sure learning a thing or two about (eso)langs. I wonder if I'll be able to test all submissions some time.
Just gave Martin's Fission answer a spin. My architecture doesn't seem to like the code.
 
Ah, yeah... that's a problem :/
 
(The interpreter, that is. Not the program.)
 
4:14 AM
It's basically why I tend to use the Python interpreter where possible, because a lot of the C/C++ don't work on my system
 
Well, in this case, it was just a call to arc4random the compiler didn't understand. I don't know if I'm missing a library or if I just have the wrong operating system, but replacing it with rand seems to have solved the problem.
Not sure if it works like intended now, but I hoped a negabinary implementation wouldn't require an RNG. :P
 
Oh, the Fission interpreter needs C++11 :/
Less errors, but still having trouble compiling
 
Yes. I replaced the random function and compiled with g++ -std=gnu++11 *.cpp.
Final dot not included. :P
Well, so much for Python's portability: ImportError: No module named Image
:P
 
You need PIL
Or at least that's what it sounds like
 
python-pillow sounds like it might be what I'm looking for.
 
4:20 AM
... what's this for?
 
Piet.
 
Ah yeah, PIL/Pillow. Portable, yes, but third party libraries :P
 
Same stuff, less cryptic errors. If you have the gazillion devel packages the C(++) code requires, everything works just fine.
Hey, Fedora has pypy3 in its repos. Didn't even know that existed.
OK, so much for that theory. python-pillow-2.6.2-1.fc21.x86_64 already installed and latest version
 
 
3 hours later…
8:01 AM
@Dennis yes, that's necessary, unfortunately. Apparently the author has already fixed it, but hadn't pushed the changes yet.
 
8:20 AM
@Dennis s/complicated/works of art/
 
8:33 AM
s/works of art/gratifying self-torture
 
s/gratifying self-torture/lacking most of the character set
 
@Sp3000 @Optimizer s/$/\//
 
Shhhhh we don't test our code before we ship
 
I didn't get it
 
@Doorknob You can save a few more if you make d a default argument
Also, why not mod by 2 instead of -2?
 
8:50 AM
I really wanna do Prelude, but the only one of the remaining tasks I can be bothered to do in Prelude is the kolmogorov one
@Sp3000 why is the last ? in your Prelude on its own column?
you can probably also save two bytes by doing the final check directly on the second voice (and putting the condition 0 or 1 on the first voice)... and in either case you can save another byte by moving the ) of that check into the other voice before the !
 
Oh point, I'm not used to this whole simultaneous thing :P
 
9:06 AM
doing pneumo now...
I need to write up those prelude metagolf challenges...
 
@Doorknob You still need to flip the r<0s but... there's something else you could do instead, isn't there? ;)
(man, putting the ) on the other voice looks so unbalanced :P)
 
stilll on decathon ?
 
Yeah
 
you guys need to learn to let go of the past ;)
 
Sometimes it's nice to just be able to golf something to death :)
5
 
9:17 AM
4 mins ago, by Optimizer
you guys need to learn to let go of the past ;)
 
@MartinBüttner I think that saved a bit more than two bytes actually, can you take a look and see if it looks right?
 
how do you have a cjam answer shorter than the string for task 5 ?
 
Base convert
 
lol
 
9:31 AM
@Sp3000 that's two bytes for compressing the ?, two bytes for switching voices, and one byte for moving up the ), like I said ;)
 
Oh right, two and one for the last part :P
Thanks
 
no problem :)
 
I wonder if I can override a shorter builtin to shave a bunch off Parenthetic...
 
10:27 AM
I should port the Prelude interpreter to JavaScript (and submit it to CH's stack snippet interpreter challenge)... I think having that interpreter would be really convenient for a prelude metagolf challenge.
 
11:00 AM
I feel like trying to see how much I can improve upon yours :P
 
11:22 AM
@Sp3000 please do :)
 
 
1 hour later…
12:22 PM
@PeterTaylor Do you know if there's anything to do when your OEIS contribution proposal seems to be forgotten?
 
0
Q: The very weird word counter

VajuraINPUT: Any string consisting exclusively of lowercase letters OUTPUT: A number that will represent the sum of the distances of the letters according to the following metric: You take the first and second letter and count the distance between them, the distance is defined by the QWERTY keyboard ...

 
12:58 PM
Another day where I'm the only one in the office..
 
Any sacrificial paraphernalia lying around?
 
I could go for a day by myself in the office...
 
There does not appear to be anything suspicious hanging around
Apparently we got a new foosball table
 
It doesn't flip over to double as an altar?
 
Its a TRAP
 
1:07 PM
The bottom does not show any sort of signs of a dual purpose
 
A foosball table doesn't need anything else to serve a dual purpose. The handles double as tiedown points.
 
@Sp3000 Just had a look at your BF stack snippet interpreter. It's really neat that it's running in an interruptible loop. Do you mind if I steal that as a framework for my Prelude interpreter?
 
Go for it :P I can't even remember what I did, it was my first time doing anything significant in JS
Also I'm trying 2 voices for pneumono
 
gulps
 
@Sp3000 heh, I was thinking about trying more voices
 
1:17 PM
I don't think that many voices are necessary tbh
 
well of course not necessary, but maybe helpful
a single voice might not be a bad idea either
 
I'm up to here:
66+(1-)v2-!v7+!12v+!v+!
4   9+ !^1^9-!^8-!^+!^7+!
Thinking what to do about the u
 
@MartinBüttner Can you add a comment, and if so does that enable you to re-submit as Proposed without actually making any changes?
 
I can definitely add a comment, but I don't think it changes the proposal status
I'm not sure if the editors (or what they're called) get notified for comments
@Sp3000 I'm at mic with the a single voice now
 
How's that going?
 
1:29 PM
very well
it's much easier to reuse older letters
 
Maybe I'll try something else then :P
 
well I don't know, two voices might still be better
 
Maybe a third voice's opinion matters ?
 
Hmm actually base encoding doesn't sound like a very good idea :/ 10 digits isn't very much
 
119 bytes and I'm at silic
should definitely give an improvement over 3 voices
 
1:43 PM
0
Q: What does this say?

HikaruA geek friend of mine said that this was what he was listening to and I'm apparently supposed to figure it out: (?ix)(?![AD-ZC][a-jn-zjm]) ( ([[:upper:]]) [[:lower:]] ) (?=[a-z]) (?!b-z) (.) ck ( (?!\t\r\n\f) \s ) ( (?=[A-Z]) (?![A-R]) (?![T-Z]) .\3\2\2\3t ( (h) ) ) \4\-\...

 
Hmm I think I have another idea... let's see how this goes :)
 
1
Q: Is this an appropriate place for questions about esoteric languages?

Captain ManI realize that as per the ask/don't ask the answer is "no", but if I go to StackOverflow how many people are going to answer a question about Fish or CJam? I feel like questions about golfy languages maybe should be on topic here.

 
@MartinBüttner Okay, this is doing my head in, but here's an idea:
66+(1-)v v!vv1v+v
7   9+ 3-7-^5-!
Maybe if you build part of the string backwards you can end with (!)? While printing part of the prefix
 
2:00 PM
ohhh that's neat
 
I'm not sure whether it's worth the effort though, but having 45 ! commands seems to be a quarter of your bytes
 
interestingly, my way of computing 112 is less bytes than the loop
 
Oh?
 
0
Q: bit counting of an integer in ternary operator

nmxprimeFollowing computes the number of bits set in an integer. int main() { int num = 7, mask = 1; int setBitscount = 0, cnt = 0; while(num) { if(mask & num) setBitscount++; num >>= 1; } printf("%d\n", setBitscount); return 0; } Using ternary operators, this can be done in a single line, ...

 
@Sp3000 7+^+^+^+^+
 
2:07 PM
Ahaha right, one voice
 
 
1 hour later…
3:18 PM
where did the save (etc) buttons for jsFiddle go?
huh, now they are there
 
3:45 PM
@MartinBüttner I find sometimes pressing down cursor can make the frame scroll instead of the contents of a pane scroll (not sure if I've got the terminology right)
Then the top bar scrolls off screen
 
4:38 PM
Do you have a working interpreter for Prelude? The two from the Esolang page seems to be buggy...
@MartinBüttner Certainly works of art, but I'm still not sure about reasonably complicated. :P
 
oh that's what you're referring to
I think my other Fission codes are a quine, reverse quine, cat, and maybe tac, and they were all fairly simple.
 
Oh yes, those look a little simpler.
Fixed the Prelude Python interpreter by piping to cjam <(echo 'q~]:c').
 
What problem were you having with the Python interpreter?
 
its made in Python
 
@Sp3000 ! is supposed to output characters, but I get code points.
 
4:45 PM
Oh, change numeric output to False
 
Nevermind. Fifth line: NUMERIC_OUTPUT = True
 
I've got another version on github that also has a NUMERIC_INPUT flag
(I'm working on a JS interpreter right now though which should be ready in a few hours and which will just have checkboxes for both options)
 
How does that count for byte scoring? :P Checkbox options, I mean
 
since Prelude isn't competitive I've never bothered counting this and just treated it as 4 different Prelude dialects
what I really want is a Prelude that has four i/o commands, Befunge style
 
Hmmm dialects, eh...
 
4:51 PM
Give me enough dialects, and I can solve every code golf in 0 bytes. :P
 
right, but you don't have existing interpreters for all of these
 
Seriously though. A Prelude fork with better I/O would be a great idea.
 
I actually considered designing a cross over between CJam and Prelude
so Prelude + types + built-ins
 
Still waiting for it :)
 
Sure I do. Just visit my web page (WIP) and download cjam-q~]$.jar.
 
4:53 PM
:)
@Sp3000 I'm not actually sure though if there was ever a CJam program that could have been shortened with multiple voices
(the main benefit over CJam would be infinite stacks, which aditsu is still reluctant to implement)
 
the main stopper to that is you asking for an option
to choose between 0 and
 
A second, non-destructive stack would already be an improvement. Pretty much eliminates the need for variables.
 
how do you choose ?
 
with a toggle command?
 
then it actually cannot replace variables, right
 
5:00 PM
Personally I've liked the idea of a temporary register like & in ><>, but that's probably just me
 
variables are used only when you need them freely anywhere in the code..
most of the times, stack shifting is shorter
 
@Sp3000 Something like this?
 
Exactly that, yeah (that's not what ><> does, but it's what I had in mind)
 
@Optimizer The non-destructive stack would be acting as a single variable, holding anything that has been on the stack in an array.
 
so when you do A@ (assuming A is that stack) , does A updates ?
 
5:08 PM
I was thinking something like this: The program 3 5 + pushes 3 and 5 on the stack, then pops both to push 8. The non-destructive stack now holds 3 5 8. With some command, analogous to $, you can retrieve items from the second stack, e.g., 2n pushes 3.
 
oh
 
Not sure how that'd work with loops but okay... I'd imagine probably something like regex groups
 
@Sp3000 Negative indexing might work.
I also think that blocks (functions/map/do) should have some sort of local variable. As APL has in alpha/omega.
I've been thinking a lot about designing a stack-based language lately, but I think I'm too lazy to finish an interpreter.
 
@Sp3000, can you think of any improvements to this that I've missed? codegolf.stackexchange.com/a/52447/38417
 
What's (b(x)!=b(y)) for?
 
5:18 PM
Make sure they're not in the same row
So if they are it won't calculate vertical distance
 
If b(x)==b(y) then isn't abs(b(x)-b(y)) 0?
 
..yep
I'm dumb :P
 
@Sp3000 I was gonna congratulate you on your good programming style for using pre-increment in for loops, but then I found stand-alone post-increments elsewhere in the code. :(
 
Where's this?
 
the BF stack snippet ;)
 
5:20 PM
Ah... I normally pre-increment thanks to my C++ lecturer, but I might have missed something
Well, it's hard to say when I don't increment/decrement with ++/-- normally :P
@Vioz- b is really expensive - you can probably shorten it by making a one string then doing arithmetic on find
 
5:35 PM
s/probably/definitely (by a lot)/
 
Alright
 
I'm considering a hiatus on posting meta questions following this comment. Does anyone have any specific feedback beforehand?
@trichoplax, why are you making up so many meta questions the last days? I find most of them annoying, and not useful at all... — Rolf ツ 6 mins ago
 
I'm not sure how I can math this, but i'll try
 
"Not useful"? They might not be the most important things to discuss, but they're still things to think about. Not sure about annoying though.
 
I can avoid being annoying by not posting, or if I can identify what is causing the annoyance I can continue posting without that aspect.
 
5:41 PM
@Vioz- Hint: "qwertyuiopasdfghjkl zxcvbnm"
 
@MartinBüttner I couldn't resist giving Prelude a spin. I solved task 5 in 96 bytes.
 
and there goes another language I thought I was good at...
 
Quick, pick a new one :P
 
@trichoplax That comment is a bit odd coming from someone who has never posted a question, answer, or comment on meta before that. Do what you do.
 
@Geobits Wow. I didn't check who the person was, just assumed they were experienced since they were commenting on it. Thanks for the info...
 
5:46 PM
@Dennis please don't learn Fission
(kidding ;))
 
@MartinBüttner By using a loop, you can get rid of almost all instances of ! and ^ and roughly half of the +s.
 
oh, right
 
Fission's learning curve seems a little steep.
 
@Sp3000 Wow, that saved me another 31 bytes.. Thanks!
 
@Geobits Not sure how much I trust the profile information though: Member for 1 year, 5 months. 1 profile view. That can't be just you, just now, in a year and a half?
 
5:47 PM
And I just realized I can probably save more
 
How low can you go? :)
 
If only there was a shorter way to alias find
 
Will wait and see what you have :)
 
@trichoplax Could be. How often do you look at the profiles of people (on meta) that haven't ever posted/commented?
The only reason I looked was... because he made a comment.
 
Oh that's just the meta profile - makes sense now - thank you :)
 
5:55 PM
@Sp3000 I've updated my post, it's down to 134 bytes now!
 
I think you can chuck out about 19 more :) (for starters, f='qwertyuiopasdfghjkl zxcvbnm'.find works)
 
That's something I should have seen :P
 
6:51 PM
Oh you made it a lambda
 
It was the only other way I could see to shorten it :P
 
There's another :)
 
Since when I read it I didn't see that it just had to return the sum
Jeez
I mean I know it's not in the zip()
 
I bet @Sp3000 can do it sub 100
 
changing 2*abs(f(x)/10-f(y)/10) to abs(f(x)/5-f(y)/5) won't work
 
6:54 PM
Er... I'm not so sure about that one
 
I am
 
Alright, I have absolutely no clue where to save more bytes :P
Maybe if I go grab a coffee I'll have some sort of revelation
 
7:11 PM
I finally put together a leaderboard for the first code golf decathlon. @Doorknob and @Sp3000 occupy places 1 and 2 with 21 points each, followed closely by @mathmandan with 20 points.
 
Did you guys know we have a leap second tonight?
A leap second is a one-second adjustment that is occasionally applied to Coordinated Universal Time (UTC) in order to keep its time of day close to the mean solar time, or UT1. Without such a correction, time reckoned by Earth's rotation drifts away from atomic time because of irregularities in the Earth's rate of rotation. Since this system of correction was implemented in 1972, 25 such leap seconds have been inserted. The most recent one happened on June 30, 2012 at 23:59:60 UTC. A leap second, the 26th, will again be inserted at the end of June 30, 2015 at 23:59:60 UTC. The UTC time standard...
 
yes
 
I didn't know a leap second was a thing
 
No.
 
@Dennis Hmmm... @mathmandan... @ProgrammerDan...
 
7:20 PM
Sorry, what?
 
@Sp3000 I've deduced that you must be insane to be able to find where I can make my code shorter
 
Hint: map
 
I must be missing something, cause going from list comprehension to map makes me lose two bytes :P
Don't tell me just yet
 
momma told me not to take anything from strangers
user image
3
 
0
Q: Leap for Leap Seconds!

mbomb007Since today marks the occasion of the 26th leap second ever to occur, your challenge will be to output the date and time of every leap second in GMT or UTC that has occurred so far, as well as the one to occur today. Input There is no input. Output 1972-06-30 23:59:60 1972-12-31 23:59:60 1973...

 
7:27 PM
so uhhh... we've got a Prelude stack snippet interpreter
 
@NewMainPosts Wow that actually looks like an interesting Kolmog for the years
 
(I actually finished it an hour ago or so, but didn't manage to write up the post yet)
 
I'd be more concerned with leap times if my clocks were more accurate as-is. Unless it's networked, I don't trust any clock any more :(
My microwave loses 2-3 minutes per week for some reason.
Wall clocks are dependant on remaining battery life it seems.
 
@Sp3000 actually, we don't need to worry about those checkboxes for counting at all, because I/O as byte values is perfectly acceptable. numerical output is just more convenient for testing. (cc @Dennis)
 
I shouldn't have looked at the challenge, now i'm distracted from the one i'm still working on :P
 
7:31 PM
Depends on the challenge though, if it needs to work for 32-bit say
 
yeah true
 
@Sp3000 I don't see how map would shorten this :( Everything I've tried seems to add a byte
 
i=map('qwertyuiopasdfghjkl zxcvbnm'.find,input())? Going back to your previous input format
Although if it was raw_input then it'd be the same
 
Ah, I see
 
Done:
0
A: Making Future Posts Runnable Online with Stack Snippets

Martin BüttnerPrelude Maybe I can increase Prelude adoption a bit if people can just play around with it in their browsers, so here is a JavaScript interpreter. It's based on Sp3000's nifty Brainfuck interpreter, whose killer feature is interruptible execution and an optional time out. var ITERS_PER_SEC ...

 
7:42 PM
Yep, if I keep input and just add 2 for the quotes "" that need to surround, I'm at 117
 
@MartinBüttner instead of "Add minified version for copying" do "add meta snippet so that people can use the loader"
 
does that work if there is more than one snippet in the post?
 
no. so post an answer to a meta stack snippet post. then provide a small snippet for ppl to copy in that main answer
 
I guess I could just put the source snippet right there and give it default values which the person using the loader can override
 
8:08 PM
@Dennis I've got 98 with your suggestion. did you use a as the offset?
ah got it, with offset h
do you mind if I use that?
 
8:24 PM
@MartinBüttner Not at all. Go ahead.
 
@NathanMerrill Just got a newsletter that Infinifactory left EA.
 
@MartinBüttner By the way, wouldn't offset a break at the first occurrence of a?
 
oh, right
offset ` then
that's much longer though
 
I'm slightly disappointed I didn't think of pushing the offsets first, then printing :P
 
For a push-and-add approach, offset h seems to be optimal.
 
8:34 PM
@NathanMerrill now I regret not buying it for 33% off during the summer sale -.-
@Dennis yeah, I can't find a shorter way to generate any of the numbers around 104
 
I wonder if somebody is going to solve task 5 in less than 45 bytes.
 
I'd be pretty tempted to switch if I didn't CJam new years :/
 
That Parenthetic code is killing you in the tie breaker.
 
 
1 hour later…
9:48 PM
0
Q: Find the multiples

Gaurav ShankarThis is a code golf Problem. Given an integer T followed by T different number of integers. All we need to do is to calculate the total number of multiples of 3 from the inputted numbers. Since this is a Code golf question the target is to bring it down to less than 34 characters. I worked out a ...

 
10:21 PM
is SE acting up for anyone else?
oh it is
 
I can't fetch votes on Board and Card Games, but I can view questions
 
it's just unstable... every other page load works for me
 
Strike that. I can view questions I have already viewed, which probably means I can blame caching.
Call it confirmation bias, but I am five for five unable to load questions I have not viewed, and five for five able to view the last five magic questions I looked at earlier today.
 
It's working just fine for me.
 
I've definitely just loaded a question and a page that I haven't seen before, but then it sometimes doesn't work for the front page.
 
10:23 PM
Okay, now I can't load a question I looked at earlier today.
 
Oh, there it is.
 
0
A: Sandbox for Proposed Challenges

Joseph MalleTokenize a String Take in a string through STDIN or function parameters, tokenize it by parenthesis, and output the tokens on different lines. If the string contains a parentheses error, output a falsey value or error message. Examples: Input: abc(def)ghi Output: abc ghi def Input: ...

 
I read that as "Tolkienize a string"
 
 
1 hour later…
11:54 PM
0
Q: Tokenize a String

Joseph MalleWrite a program or function that takes in a string through STDIN or function parameters, tokenizes it by parenthesis, and outputs the tokens on different lines. If the string contains a parentheses error, the program/function must output a falsey value or error message. Examples: Input: abc(de...

 

« first day (1613 days earlier)      last day (3233 days later) »