« first day (2093 days earlier)      last day (2733 days later) » 

8:24 AM
hi... it seems we have lost the sandbox link? codegolf.stackexchange.com
anyone know what the link is?
 
@Lembik ?
 
there used to be a link to it on the right
I found my question in any case meta.codegolf.stackexchange.com/a/10355/9206
I am thinking of posting it soon. Any last minute queries/problems?
 
Anonymous
@Lembik If you ever notice that the sandbox is no longer featured, raise a mod flag on the sandbox so the mods will see it and take care of it
 
@Mego thanks
@Mego and thanks for your comments on my codegolf question
just posted the fastest-code version
hope it is less controversial!
 
Anonymous
I like it :) That clarification was the only issue I had with it
 
8:34 AM
great! :)
now I get to wonder what the winning score will be. My guess is 25
but I am usually wrong :)
@Sherlock9 question posted!
 
Anonymous
I'm guessing 10s-20s, until Peter or Dennis come along with a novel solution that blows away the competition, getting 50 or more.
 
:) Shebang has a straightforward implementation of Ryser's algorithm which gets to 22 using pypy
it's very small and simple
 
Anonymous
Hmm, thought... If you don't count compiling time into the score, heavily abusing template metaprogramming in C++ could get a constant runtime (in exchange for increasing compile time)
 
@Mego yes that is a general problem
I mean I have posted a number of fastest code challenges all of which could have been cheated by that method
I think that comes into the category of cheating
I suppose I could a "no cheating clause"?
 
Anonymous
Yeah, but there's no rule against it :P I'd say it would be better as a standard loophole
 
Anonymous
8:38 AM
In fact, I'll write one up now
 
good point
thanks
in general I thought the voting system was meant to handle these things
you just don't get many upvotes if you cheat
 
Anonymous
Well, the difference between "cheating" and "finding a clever way to skirt the rules" is in the eye of the viewer
 
all true
 
1
Q: Calculate the permanent as quickly as possible

LembikThe challenge is to write the fastest code possible for computing the permanent of a matrix. The permanent of an n-by-n matrix A = (ai,j) is defined as Here S_n represents the set of all permutations of [1, n]. As an example (from the wiki): In this question matrices are all square and w...

 
Help, anyone here good with vim?
 
8:39 AM
/join #vim :)
on freenode
 
Too lazy, Dr Ham Jam is good enough
 
who he/she?
@orlp :) Re: your comment
 
@ASCII-only Have you tried Vi and Vim?
Because, you know... Networking.
Help, anyone here good with C?
 
hey geeks
 
Hi @Enthusiast!
whois geeks
Huh, no result...
 
8:52 AM
basically everyone in this chat?
 
You good with C?
 
I have no idea about C
 
H;:(
 
what are u good with
 
@Enthusiast Breaking C.
I have this code that won't compile (see below), and I don't know how to fix it!
 
8:54 AM
@wizzwizz4 I'm okay, I guess?
 
pipecallbackid = XPLMCreateFlightLoop(
    (XPLMCreateFlightLoop_t){
        (int) sizeof(int), //Size of *what* struct?!?
        NULL, //Deprecated parameter
        pipecallback, //Function
        NULL //A parameter to give the function. Unused.
    }
);
 
wow, what is that
 
@wizzwizz4 What error does it give
 
Syntax error: expected ')' but found '{'.
Operands of '=' have incompatible types 'void *' and 'int'.
Syntax error: expected ';' but found '{'.
 
you are missing a '}'
 
8:56 AM
@Enthusiast Where?
Also: Syntax error: expected ';' but found '}'
The line numbers are messed up, pointing to sections of a comment. :-/
 
ehh, maybe u need to have a '{' and '}' like this
pipecallbackid = XPLMCreateFlightLoop({ }) I dont really know.
im just guessing
 
@Enthusiast I have that. The (XPLMCreateFlightLoop_t) is to cast it to XPLMCreateFlightLoop_t.
The {} stuff is a struct, which is a way of encapsulating lots of data into one data type.
 
or you have an extra '('
pipecallbackid = XPLMCreateFlightLoop(XPLMCreateFlightLoop_t){
(int) sizeof(int), //Size of *what* struct?!?
NULL, //Deprecated parameter
pipecallback, //Function
NULL //A parameter to give the function. Unused.
}
); maybe its supposed to be like this ?
oh no.
probably not
 
@Enthusiast I'm calling the function XPLMCreateFlightLoop with the struct as input. That isn't a code block, even though it looks like it.
 
@wizzwizz4 IDK maybe (void*) sizeof(int)?
 
9:00 AM
Gimme a sec, I'll find the documentation page.
 
hmm
 
@ASCII-only It wants it to be an int...
Also, it doesn't recognise the function XPLMCreateFlightLoop...
 
@wizzwizz4 D: Did you forget a header/library or something
 
@ASCII-only No, I have the #include "SDK/CHeaders/XPLM/XPLMProcessing.h" line right at the top.
Perhaps the docs are wrong and the function's actually elsewhere...?
 
@wizzwizz4 Oh maybe the fourth one should be (void*) NULL?
 
9:03 AM
@ASCII-only Testing it, brb.
Well, the line numbering's fixed... -.>(o.o)<.-
But there's still the Undeclared function 'XPLMCreateFlightLoop' (did you mean '(no name)'?); assuming 'extern' returning 'int'. problem.
... Compiler directives.
@ASCII-only What's the way to read out the value of a macro?
It doesn't matter if it errors out the compiler.
 
@wizzwizz4 #pragma message STR(<MACRO_NAME>)?
 
@Lembik for future questions
if you want to confuse anwerers
instead of saying 1, -1 matrix
say B, -B matrix, where B is Legendre's constant
 
@ASCII-only It keeps erroring on the pragma... I have PellesC if that helps...
 
@orlp thanks :)
 
I tried #error STR(<MACRO_NAME>) but it just printed it literally, STR() and all.
 
9:14 AM
@wizzwizz4 Huh not sure if there's a way to do it on Pelles C, the major compilers support #pragma message and looks like there's no other way to do it
 
@ASCII-only :-(
I'll try a borked syntax.
... The macro is the empty string...
Ok. That's confusing.
@ASCII-only I think it's complaining about the use of a struct inside a function. How can I work around that?
 
0
A: Loopholes that are forbidden by default

MegoAbusing compile-time computation to achieve lower runtime in fastest-code challenges Consider a challenge where solutions must print out as many Fibonacci numbers as possible within a certain time limit. A C++ solution might look like this: #include <iostream> using namespace std; int main() ...

 
@wizzwizz4 Then it's because the function accepts a struct pointer?
Declare the struct elsewhere and call the function asXPLMCreateFlightLoop(&struct) maybe?
 
9:43 AM
Monking
 
@Mego Just curious: Has anyone actually used this technique in a challenge?
@NewLoopholeProposal PS: Since when do we have a New Loophole Proposal bot?
 
@flawr Some time
 
WTF: Why did this suggestion get 2 downvotes???
 
It show rarely 'cuz new loopholes are rare
 
10:01 AM
@Lynn I honestly still have trouble to understand how to set up everything e.t.c. but when writing code, it provides very good hints (better than any other editors I've tried) how to simpilfy your functions, improve readability e.t.c.
 
10:19 AM
1
Q: Balanced triplet brackets

jimmy23013A "triplet bracket" (that I made up for this challenge) is one of the following: (...+...) [...:...] {...|...} <...-...> A balanced triplet bracket string (BTBS for short) is either an empty string, two BTBSes concatenated, or one of the above triplet brackets with each ... replaced with a BTB...

 
@NewMainPosts Tried to regex this, ended with a monster ._.
 
hmmmmmm
goddamn recursion depth limits
 
@Dennis Could you pull Charcoal? Thanks!
 
10:44 AM
@Lembik I think I'm confused and actually implemented BBFG
what i'm using is the formula in the wikipedia article that sums over half all ±1-valued vectors
 
@TuxCopter fairly sure regex can't parse nested brackets or something
 
whereas the ryser formula sums over 0/1-valued vectors
 
@DestructibleWatermelon Regexs can parse context-free grammars AFAIK
Recursive groups
 
Oh irregular regular expressions
¯\_(ò.ó)_/¯
I forgot about them
 
11:00 AM
I was at the ophthalmologist
I have astigmatism
And asthma lol
 
@betseg Asthma's annoying. I'm really lucky that it mostly went away as I got older.
 
Wait what
 
huh. They changed the favicon for Slack to be red
 
Looks the same to me. Not really red.
 
It's an .ico file, so it will probably have layers.
Like onions. Or .tiffs.
Or animated .gifs.
 
11:09 AM
So? It definitely is not red.
(well, one of the bars is)
 
@mınxomaτ Each layer of a .ico file contains a different image.
You can only see one at once.
Have you got GIMP?
 
@wizzwizz4 Only if you choose too. ICOs don't have to have more than one layer at all.
 
@mınxomaτ I'll check whether this one does.
 
It's still not red :)
 
It does!
But none of them are red.
They are all just standard re-sizings of each other.
The boring but correct way to use .ico layers.
 
11:13 AM
I don't use slack, but I imagine if you're are logged in your favicon may change to reflect some sort of status (like the GMail favicon shows a mail counter).
 
@mınxomaτ How do you do that? Is it some sort of wizardry?
 
@mınxomaτ :-O Pretending to be Google?!?
 
What's an esolang that uses any two characters as symbols?
 
@Qwerp-Derp Unary?
 
11:20 AM
But that uses 1 char only
I need a lang that uses 2 chars
 
Ook?
Wait, that has punctuation.
Erm...
Gtg, bye.
 
@Qwerp-Derp Spoon
 
@Qwerp-Derp Lenguage can use any number of characters :P
 
Lambda calculus :p
1 and 0
 
11:23 AM
Looks like APL on drugs
 
^ Better
The encoding look like the 'shift states' system used by D2
 
12:00 PM
0
A: ASCII's 95 Characters...95 Movie Quotes

Qwerp-Derp2. Spoon (uses no 8) aaaa44a444a4aaaaa4aa44444aa4a444a444a4aaaa4a4aaaaa4a4aaaaaa4a4aa4a4aa4aa4aa4aa4aa4aa44444aa4a44a44a44a444444444444444444444a4a44aa4aa4aaaaa44a4a44a4aaaa44a4a4aaaaaaa44a4a44a444444a4a44a444444444a4a44aa4aa44444444a4a444444444444444444444444444a4a44a44a444a4a44aa44444444444a4a...

 
I am trying to make a bot for atomas
Retrieving chains is hard o_O
 
12:19 PM
@Qwerp-Derp wat
 
@ΛεγίωνΜάμμαλϠΟΗʹ ?
 
@TuxCopter Zachtronics' SHENZHEN I/O
 
0
A: Sandbox for Proposed Challenges

Sherlock9Finding isomorphic elementary cellular automata code-golf An elementary cellular automaton is a one-dimensional cellular automaton with two possible states (labeled 0 and 1) and calculates the following state based on a cell and its two immediate neighbors. Each elementary cellular automaton ha...

 
Holy cow, that was fast :D
 
12:31 PM
Let me know what you think of that Sandbox post. I'll be back later to read the responses
 
oh hey, the quine challenge finally has gold
 
12:43 PM
@MartinEnder The quine for great good challenge?
 
yeah
 
Destructible Watermelon's Turtlèd quine?
 
12:56 PM
I forget, when are we supposed to get our site design, again?
 
@ΛεγίωνΜάμμαλϠΟΗʹ November 1st.
 
modulo 365.25 days
 
817132 seconds and counting
> How much damage in MONEY $$$$ is actually done, an example would be for the attack on PSN (Play Station Network) or the CIA's web sight.????????
Oh no, <insert social media site> has invaded SE
 
@ΛεγίωνΜάμμαλϠΟΗʹ I wouldn't happen to have you on Steam, would I?
(asking because I have some people friended who I can't remember who they are since they keep changing usernames)
 
@Sp3000 Nope, my only two Steam friends are from IRL
 
1:10 PM
k, just checking :) thanks
 
Any good BF metagolfers out there?
 
I believe Phi had a really good one for strings
 
Know where it is?
 
like it was able to find primo's HW
@ΛεγίωνΜάμμαλϠΟΗʹ You'd have to ask him. I think he uploaded it to GH
 
1:28 PM
32
Q: What kind of weapons could squirrels use?

death meisterOkay, so I know this sounds like a joke, but it's not. I am 100% serious. So my world has this kind of... squirrel expy, that is somehow intelligent enough to use weapons + have some sort of society. Otherwise they're basically your average red squirrel (but slightly longer and chubbier). I was ...

lolwut
 
1:45 PM
> implying squirrels need weapons
Those guys are scary as hell. Don't ever let their cute apperance fool you, they can do a number on you
All they really need is some form of brass-knuckle esque claw device that fits over their claws and has poison all over it. They'd be assassins at that point
 
2:30 PM
@ASCII-only Done.
 
Question: On an question, if an answer is invalid, then is it okay to write another answer based off of that one's parent?
 
@ΛεγίωνΜάμμαλϠΟΗʹ that should be explained in the question itself
 
@NathanMerrill It isn't in this scenario
 
then I'd leave a comment
or see if there's a precedence
 
2:52 PM
@ΛεγίωνΜάμμαλϠΟΗʹ If the answer is invalid, it is subject to removal, so basing another answer on it is a bad idea.
 
@Dennis No, I'm saying to replace it before it's deleted
(i.e., add another answer)
 
Ah, sorry. That should be OK, I guess. Which answer is it?
 
2
A: ASCII's 95 Characters...95 Movie Quotes

Qwerp-Derp2. Spoon (uses no 8) aaaa44a444a4aaaaa4aa44444aa4a444a444a4aaaa4a4aaaaa4a4aaaaaa4a4aa4a4aa4aa4aa4aa4aa4aa44444aa4a44a44a44a444444444444444444444a4a44aa4aa4aaaaa44a4a44a4aaaa44a4a4aaaaaaa44a4a44a444444a4a44a444444444a4a44aa4aa44444444a4a444444444444444444444444444a4a44a44a444a4a44aa44444444444a4a...

(see Martin's comment)
I have a Lenguage answer, just waiting to hit the "Post" button
 
That answer doesn't exist anymore. Lenguage would also be invalid though.
 
@ΛεγίωνΜάμμαλϠΟΗʹ codegolf.stackexchange.com/a/48290/53745
 
2:56 PM
@Dennis Why so?
Oh
oh...
...
(I should read better)
Oh well, here's the Markdown if you want to read it:
# 2. [Lenguage](esolangs.org/wiki/Lenguage), uses no `a`

    8844844844448888884884848484448444844448488484448844448444884844884448448844...
Number of characters:

    370 234 111 905 065 994 107 716 627 461 663 802 034 076 301 777 494 934 370 880
    038 174 592 985 044 999 443 142 030 070 439 392 868 543 363 339 429 774 157 561
    890 064 386 585 518 857 167 453 282 680 397 820 952 678 962 660 341 930 962 659
    174 133 051 154 858 280 401 942 328 621 188 296 054 558 028 352 627 682 454 891
 
Autogolfed and in a language specially made for the challenge
Here come the downvotes :P
 
@TuxCopter Nah, the second part made me not post it
CMC: Give me a way to make the F9 key map to ಠ_ಠ on Win10
 
ಠ_ಠ
 
F9
Seriously though, that should be straightforward in AutoHotKey.
 
That's a really impressive compression ratio. Probably optimal
 
Hahaha. The name is pretty great too
> LenPEG
 
LenPEG 3 really raises the bar
 
4:01 PM
@Dennis Looks like tryitonline.net is down
 
I think he stopped Apache, because I can traceroute and ping it.
Maybe this is the long awaited TIO2 rollout
7
 
maybe :)
 
hype
 
4:16 PM
@JonathanAllan Fixed. Some process played CPU hog. :(
 
Oh.
How disappointing.
 
@Dennis thanks!
 
@quartata Hardly, since I'm developing TIO v2 on a different server.
 
CMC 2: Write a program that takes in audio representing music and tries to extend it
 
ChatMaxiChallenge?
 
4:26 PM
-1
Q: c++ Five Crowns help with vector and cases

user61042#include <iostream> #include <string> #include <vector> #include <ctime> #include "cardHeader.cpp" using namespace std; int main() { vector<Card> deck; for(Face cardFace = THREE; cardFace <= JOKER; Face(cardFace + 1)) for(Suit cardSuit = HEARTS; cardSuit <= CLUBS; Suit(cardSuit ...

 
@ΛεγίωνΜάμμαλϠΟΗʹ labs.echonest.com/Uploader/index.html
 
@NathanMerrill You know that shut down Oct 1st, right?
 
it did?
er, no, its still working for me
 
Yes.
@NathanMerrill I don't think so. Where do you upload your track?
 
4:29 PM
Yeah, working for me
 
oh, well the upload service may not work
but you can still search for/play songs
 
@NathanMerrill So it doesn't do what he asked. The service shut down. The actual API is no longer active, the songs are just archived. There is no extending going on.
 
ah. But the algorithm still runs. It still calculates pathways of previously uploaded songs
 
For playback, but the initial analysis is what made this work.
 
ah, interesting
 
4:41 PM
> Never gonna make you up
> Never gonna let you lie
 
@mınxomaτ wat is dis
 
4:56 PM
^ My new esolang
 
@TuxCopter it could use an interpreter
 
For now it's unimplemented
Hebrew alphabet, Greek alphabet. Next stop: Chinese alphabet? — Glorfindel 9 mins ago
 
Also, the char literal should specify EBCDIC chars
 
Ah yes typo
@ΛεγίωνΜάμμαλϠΟΗʹ Fiksed
 
5:29 PM
IRC channel names can have colons in them?!!?
I... did not know this
 
@DJMcMayhem Thank you! :-)
 
> Now talking on #hqQ!ten#H;q\5[3]r9
A lot of other stuff too apparently.
 
The parsing nightmare
I always did #.*?:(.*)
Guess no longer :(
 
@quartata Profile picture?
More yellow than usual.
@TuxCopter Unfortunately, there is a problem with WPEG: this compression algorithm requires the presumably vast computational power of an external server. Therefore it cannot be used without an Ethernet connection.
And since there is a 1-to-many compression algorithm, you can't even brute-force it!
And the major part of the algorithm is closed-source, so you've got nothing to brute-force with... It's impossible.
 
5:47 PM
Also, if you run the code too much, it gets worn out and doesn't work as well.
 
But it offer a stupidly big compression ratio
It compress a 100GB file in some bytes
 
The internet is not needed anyway... you can implement this algorithm on your own hard disk.
 
-1
Q: Binary fizzbuzz

ElronndThis is the classic fizzbuzz -- with a twist. The winner will not be the person whose code is the smallest, but the person whose executable binary is the smallest. Feel free to use any implementation of any compiler you wish, and even to finetune the binary manually. However, the winning entry...

 
@feersum No, you can't. I tested the speed of a C and a Python offline implementation by timing 1000000 iterations of each, and my computer froze, overheated then crashed. Turning it on again I found my hard drive filled with garbage. Therefore I deduce that my $29950 CPU, 512GiB RAM and 128TiB SSD are not powerful enough to run this algorithm offline.
 
It would have worked fine if you didn't wear out the algorithm by running it such an excessively large number of times.
 
5:54 PM
> The contest will end in 24 hours.
Have a downdoot
 
@NewMainPosts assembly will win
 
Error:(20, 60) java: incompatible types: inferred type does not conform to equality constraint(s)
inferred: fellowship.Event
equality constraints(s): fellowship.Event,fellowship.events.Event
for the life of me, I can't figure out why Java thinks that there is a fellowship.Event class
 
@NathanMerrill What's your code?
 
@wizzwizz4 well, I have a class at fellowship.events.Event, but anywhere I try to use it, it uses fellowship.Event
 
6:03 PM
"I don't know Java, but I expect it's just like JavaScript" - famous last words.
@NathanMerrill Could you show us the prototype / class definition / code that calls stuff?
 
 id = character.on(Events.Damaged, Event.forever((Event event) -> {
        DamageEvent damaged = (DamageEvent) event;
        damaged.cancel();
        character.heal(damaged.getAmount());
    }));
the relevant import is import fellowship.events.Event;
 
I have a suspicion that some variable that you think is pointing to fellowship.events is actually pointing to fellowship.
 
That doesn't make sense. You can't have a package in a variable.
 
@feersum To be honest, we could say "that doesn't make sense" about most things discussed here.
 
and my Event class has the package declaration of "package fellowship.events;"
 
6:07 PM
@wizzwizz4 That doesn't make sense
 
@LuisMendo Hey, congrats on surpassing 30k! :)
10
 
@TuxCopter I beg to differ.
By the way, are these called chat posts or chat comments?
 
@wizzwizz4 No.
 
@feersum No
 
Messages.
@wizzwizz4 They're called "messages"! [post edited by moderator]
@wizzwizz4 This is your first and final warning. Be nice.
 
6:11 PM
wizzwizz4 is crazy confirmed /ಠ\
 
@TuxCopter I'm not crazy!
[this user has been kicked for misbehaviour and calling a certain moderator a bot]
@wizzwizz4 I warned you...
 
@monobogdan wat you don't have 20 rep and you avatar is shown normally o_O
 
Oh @LuisMendo yes congrats!
 
@LuisMendo got 30k? That's more than... wow. Congratulations!
 
@wizzwizz4 > Really, you want to kick yourself? I suggest a long walk instead.
 
6:21 PM
@betseg I didn't manage to kick myself; although I can kick all other users (CMs included (afaik)!) the system doesn't allow me to do it to my own account. Hmm...
... That was close! I almost swore at TheGreatDuck in a comment thanks to the auto-typo module. That... would have been bad.
 
if you try to kick yourself on mobile it says "Really, you want to kick yourself? I suggest a long walk instead."
 
@betseg Oh.
On the web page it gives no option at all, or at least not to me.
 
Aleph null, aleph one, aleph 2, ... — Kριτικσι Λίθος 6 mins ago
lol
Wait my challenge got 3 downvotes ಠ_ಠ
 
TuxCopter has been banned for one day; The face had one underscore...
@TuxCopter Careful...
 
Are you drunk?
 
6:31 PM
TuxCopter has been unbanned; The ban was given in error / jest.
@betseg No, I'm not. I don't drink alcohol.
TuxCopter wasn't really banned...
I really need to work on my sense of humour, don't I?
 
20 mins ago, by TuxCopter
wizzwizz4 is crazy confirmed /ಠ\
 
not just tux, this whole page
 
@TuxCopter That's more correct than it seems.
@betseg What do you mean? I'm confused.
 
>>> base64.b64encode("אבגדהוזחטיכךלמםנןסעפףצץקרשת".encode("utf-8"))
b'Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/'
lolwut
 
6:34 PM
@betseg Yeah, my sense of humour needs improving.
I'll stop trying to be funny until I'm something recognisable as vaguely good at it.
 
> Triforce files are stored with the extension .▲
1337/10
 
@TuxCopter what are the 5th-6th-7th symbols my font can't these symbols
 
@betseg hands
(hand pointing to the left, hand pointing to the right and two hands)
Oh nvm
It's VERTICAL BAR BESIDE x TRIANGLEs
 
Nvm googled the characters and found pics
 
Looks like a super-monopoly incoming: wsj.com/articles/…
 
6:50 PM
yaay
 
0
A: Sandbox for Proposed Challenges

Keyu GanVisualized Tree of 3n+1 Conjecture ascii-art math [Sandbox note: I am not sure which category this problem should lie in, maybe code-challenge ?.] Probably you are already familiar with 3n+1 conjecture (aka Collatz conjecture). As is stated in this golfing problem: Start with an integer n > ...

 
I thought I had a rather clever idea to make a one-to-one relationship in the constructors, but it doesn't work
   private final Team enemyTeam;

    public Team(Team enemy){
        enemyTeam = enemy;
    }

    public Team(){
        this(new Team(this));
    }
 
7:09 PM
0
A: Sandbox for Proposed Challenges

DopappFind the LSRL code-golf math I'm taking AP stats now, so I figured I'd bring the joy to you all here. Input Your job is to find the least squares regression line for two data sets (lists), X and Y. X and Y will be the same size and will contain positive or negative numbers. Input can be tak...

 
@Adnan @Jonathan @wizzwizz4 Thank you!!
 
7:43 PM
3
Q: Visualize an Array

milesGiven an array of any depth, draw its contents with borders of +-| around each subarray. Those are the ASCII characters for plus, minus, and vertical pipe. For example, if the array is [1, 2, 3], draw +-----+ |1 2 3| +-----+ For a nested array such as [[1, 2, 3], [4, 5], [6, 7, 8]], draw +--...

 
7:53 PM
From the Wikipedia polyhedral rotation animations:
 

« first day (2093 days earlier)      last day (2733 days later) »