« first day (2171 days earlier)      last day (2674 days later) » 

10:00 PM
@redstarcoder Me? Well, I don't find that type of challenge very interesting, so I couldn't tell you.
 
Well, it's open now!
Hopefully more answers will come in.
 
I mean the "random webpage" idea is interesting, but I dunno if the challenge is going in that direction
 
@El'endiaStarman Haha alright :). I just want to figure out a useful net instruction for *><>, then those types of challenges would be very interesting for me.
 
Pop a string of the stack, push the entire text of that page?
 
If I make it just TCP it'll probably work similarly to that, but it'd buffer the page and you could read one byte at a time with i
If I make it parse web pages I'll probably get more creative than that.
 
10:04 PM
@Downgoat When are you going to clean up all these branches in Cheddar :P
I just took a peek right now and I don't even know what's going on
 
waddya mean, I'm using all of them! :P
 
Hmm we only have two branches currently. I think we need more
 
@quartata When we need them.
 
I know, I'm just kidding
 
btw, do you guys have fancy changelog generator yet
 
10:09 PM
?
 
like from your commits it takes those and makes nice changelog?
 
Well considering only two people are looking at the git log anyways no
In general if there's a change we'd notice and we'd also know who did it
Namely the poltergeists that have infected our C9 workspace
 
is there a TIO for /// ?
 
Yes
 
@TrojanByAccident slashes
 
10:11 PM
K
 
@TrojanByAccident yes
 
I saw your message, typed out a link, pushed send, and accidentally sent it to talk.tryitonline.net somehow?
tio.run/nexus/slashes
 
Interesting
 
CMC: Write a Brain-Flak program that outputs the number of cycles it takes to run.
 
@Downgoat is that website just directly piping everything to TIO?
 
10:13 PM
It uses TIO backend but has different frontend
so yeah
 
What does vim mode do?
The donate link is a 404
 
It lets you use vim commands. E.g. :%s/foo/bar/g or dd etc.
 
TIO is also really nice 'cause it generates a PPCG post for you.
Wait, I can't type things.
In vim mode
 
Didn't work on safari so I didn't think of adding that
@Pavel click a or i
 
Oh, yeah.
How much traffic do you get to there?
I think everyone just uses tio.run
@WheatWizard would () work?
 
10:17 PM
@Pavel idk
 
@Pavel No that doesn't output anything. To output you need to push
 
@Pavel yeah, I just made it because I didn't like TIO's official design :P
 
@Downgoat fuck
now somebody tells me
still then it's goat 2016
time to improve, it's your new years resolution
 
2016 was bad year, why does that have to be year of goat :(
 
nah it isn't
it's just that's your quote for 2016
try to get a new one starred for 2017
 
10:25 PM
@WheatWizard how does brain-flak measure cycles?
 
CMC: Take a double and convert it to a hex string in C++
pls
 
@Pavel Nilads are 1 cycle every time they are run (e.g. () is one cycle) monads are 2 cycles one for each paren
 
Ok
 
@Downgoat CMC?
 
chat-mini-challenge
 
10:31 PM
Holy hell that Sherlock episode
 
@Downgoat What do you mean by a hex string
 
@Downgoat oh
 
@WheatWizard e.g. 255 -> FF
 
@Downgoat What about the decimals? what is 255.5
Is it just a base conversion?
 
@WheatWizard That would be FF.8
 
10:33 PM
So it is a base conversion?
 
yeah but with double
 
@Downgoat thanks! Now back from watching Sherlock. I created it with GIMP
 
Hm... is there a way to loop through the va_list?
I don't think so beacuse compiler wouldn't know how to do the memory
though it could always do union magic
 
If you have a va_list, you are probably doing something misguided.
 
I am trying to make an interface for snprintf
 
10:38 PM
In pure C?
 
no C++
 
Why do you need to do that?
 
Because I have wrapper objects (v8::String) or (CheddarNumberInterface) that I need to unwrap before passing to snprintf
 
You're trying to make an snprintf function in Cheddar that forwards to the C library implementation or what?
 
is there something wrong, with that?
I dont see why I should reinvent wheel with (s)(n)printf
 
10:43 PM
acc='(())'
for i in range(7):
    acc+='('+('[]'*(i+1))+')'
acc+='({}<>)@cy'
print(acc)
 
It would make more sense to have a specification of how sprintf should work, and implement it yourself.
 
I generated it with that python script and adjusting the range until it converged
 
@Pavel Interesting approach
I have a shorter solution if you would like to see
 
@feersum that is what I have now but most of the cheddar primitives (string, number) are in C++ anyway :/
 
Hit me
 
10:45 PM
*hits @Pavel*
 
*slaps @TrojanByAccident with a large trout*
 
If you use the C one, you expose yourself to the vagaries of the platform implementation. There are actually signifcant differences which will result in different outputs.
 
I'm kinda annoyed that I can't do your OEIS question in JS, though. :/ "XMLHttpRequest cannot load oeis.org/A280629. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://codegolf.stackexchange.com' is therefore not allowed access."
 
10:48 PM
That's the same link as the one I sent
 
must have not copied the new one
 
And I forgot to mention the much worse problem... that you can crash in the C library.
If the format string doesn't match the arguments.
 
Is there a list of debug flags anywhere?
 
6
A: Tips for Golfing in Brain-Flak

Wheat WizardUse Debug flags You might not know it because we haven't written it anywhere but Brain-Flak has debug flags and they are really useful. They can be placed anywhere in the code and will run when the command line flag -d is present. Here is a quick rundown of the debug flags. Most flags come in...

 
You know, if GolfCpu actually took off, this could be it's own challenge
 
10:51 PM
that is currently the only complete list I know of at the moment
 
On the other hand, it would only be intresting in BF derivitives.
 
0
A: Sandbox for Proposed Challenges

flawrCompute the Median code-golf Challenge Given a list of real numbers, compute it's median. Definitions The median is computed as follows: First sort the list: if the number of entries is odd, the median is the value in the center of the sorted list, otherwise the median is the arithmetic me...

 
@NewSandboxedPosts I was astonished to find that we haven't had a challenge about computing the median.
But perhaps I overlooked any?
 
11:09 PM
@flawr ban builtins
Or you'll get ony byte in MATL.
 
@Pavel what kind of builtins?
 
To compute the median of a list
 
what about sorting?
 
That's a major problem with banning builtins
 
I don't know MATL, but Mathematica sorts the list for you.
So Matlab probably does to
So MATL has a one-byte built-in.
 
11:16 PM
But I don't like banning builtins
 
Ok
 
It's a divisive issue, but I personally prefer not banning builtins too
It's often difficult to say where to draw the line, so easier not to ban anything
 
Are questions about meta on-topic on meta?
 
@Pavel I just checked, MATL does not have a builtin.
@VisualMelon You'd have to go to meta meta
 
12
Q: Closing as Duplicate on Meta

isaacgThere are some questions about the setup of the site that get asked time and time again on Meta. These include allowing code-golfing languages, language-based handicaps, duplicate-closing on the main site, and others. Whenever these questions are asked, they are immediately closed as duplicates,...

 
11:21 PM
I was expecting "Not sure, you'd better ask on meta", but that works to
 
:D
 
@WheatWizard can I take that as a yes? ;)
 
wat
I just spent the longest time putting together a regex to match decimal numbers
This is what I came up with
^(-|)\d*(\.\d+(e\d+|)|)$
 
11:26 PM
\d+\.?\d* doesn't work?
[1 or more digits][optional decimal point][0 or more digits]
 
Don't forget -?
 
What's -?
Oh, right
-?\d+\.?\d*
 
What about -.7?
 
-0.7
 
11:29 PM
Do you need it to not match anything that isn't a decimal number?
Is it OK to match numbers that have a decimal point but zero decimal places, like 7. ?
 
0
Q: Compute the Median

flawrChallenge Given a list of real numbers, compute it's median. Definitions The median is computed as follows: First sort the list: if the number of entries is odd, the median is the value in the center of the sorted list, otherwise the median is the arithmetic mean of the two values closest to...

 
Yeah, it would be useful to know exactly what's needed there.
 
@NewMainPosts posted in chat within 1 minute of posting to main. Already has an answer.
Also more complicated if you want to match 7. and .7 but not just .
 
how about -?\d+(.\d*)?
though doesn't match .8
 
^New main posts right now
 
11:35 PM
I guess I shouldn't split my statements into two sentences if I don't want them memed...
 
actually the second * in my regex should have been a +
 
Would that then match .?
 
If you say input format requires 0.8 rather than .8, it works.
 
@trichoplax This senteces can again be split into two parts:)
 
No, a leading digit is required.
 
11:38 PM
@flawr Yes but at least I didn't do the splitting myself this time
@Pavel Out of interest, is that a pre-existing phrase or created new for this event?
 
Bad luck brian is just general purpose
 
I mean the overlaid words
 
Oh no I made that
 
Ah right. I was wondering if there was some weird coincidence...
 
@trichoplax Imgur at least has made it really easy to create memes and share them.
 
11:47 PM
@El'endiaStarman I've never made one, but I'd gathered there were tools readily available. I just made the mistake of putting a full stop in the middle of my statement, resulting in it being memed within minutes
 
I used imgflip.com
First search result for 'Bad luck brian generator'
 
In fact, I wonder whether my choice of sentence structure there is a symptom of overexposure to memes
 
@trichoplax I'm not sure leaving out the full stop would've prevented the memefication of your quip. :P
 
Hmmm
 
 
wat
11:50 PM
@Pavel scientific notation
@trichoplax yes
 
Oh
 
wat
@trichoplax no
 
I can't think of anything that isn't multiple cases separated by | then
Do you need to allow a minus sign for the exponent in scientific notation too?
 
wat
@trichoplax mine kind of fails in that regard, but yes
I just realized
IT'S 2017
WTF
 
11:57 PM
It's been 2017 all week... :P
 
:P
@trichoplax week and one day
 
@wat If you missed all these references to 2017 in chat then I guess you missed this too:
yesterday, by betseg
2016 = 3³+4³+5³+6³+7³+8³+9³
2016 = 666+666+666+6+6+6
2016 = 2^10 + 2^9 + 2^8 + 2^7 + 2^6 + 2^5
2016 = 1 + 2 + 3 + ... + 62 + 63
 

« first day (2171 days earlier)      last day (2674 days later) »