« first day (2883 days earlier)      last day (1976 days later) » 
00:00 - 17:0017:00 - 00:00

12:09 AM
We got 3 people for Contact, anyone else interested?
 
12:20 AM
oh heck yes
 
12:36 AM
@ASCII-only Apparantly DjMcMayhem
@Skidsdev No you do since it references itself
 
@Pavel oh you did recursion?
 
Well, I didn't
 
1:01 AM
@Pavel Yup
 
1:34 AM
You ever make a Contact clue so good, it persists across several kill commands and a new game? I have
 
Lens is kinda crap
 
yeah for real
 
 
2 hours later…
3:55 AM
calculus is hard
send help
 
@Pavel help has arrived
@Skidsdev no i did
@Pavel ffao's bots are kinda crap
@Pavel well imo a userscript is way, waaaay better for this
 
This question is asking for me to "Find the 3rd degree Maclaurin polynomial" of a function. I'm a bit confused, from what I can tell you have to specify a specific point to center the polynomial around?
 
They likely meant Taylor polynomial
 
Some texts refer to the Taylor polynomial around 0 as the Maclaurin polynomial.
 
Ah did I get it backwards then
 
4:07 AM
Ok that sounds right
Thanks!
 
Some texts refer to the Maclaurin polynomial around 0 as the Taylor polynomial.
All of these are conventions.
 
@Pavel well apart from that
 
Question: How many ways can you write the nth triangle number as the sum of n distinct positive integers?
First couple of terms of the sequence: 1, 1
Could be fibonacci ...
 
@Skidsdev oh yeah did you see the 85 byte one
 
"First couple of terms of the sequence: 1, 1"
 
4:11 AM
literally a couple of terms :P
 
6 = 1, 2, 3
10 = 1,2,3,4
15 = 1,2,3,4,5
pretty sure the function you're looking for is f(n)=1
 
@primo who knows maybe someone will find a counterexample
 
This will be usable to my advantage.
definitely a good lower bound though
 
for great victory
 
4:14 AM
@PostLeftGarfHunter lower bound for what
 
@ASCII-only 1 is a lower bound for the number of ways you can write the nth triangle number as the sum of n distinct positive integers
 
and also an upper bound? :P
 
That has to still be proven.
ok done
 
proof: think of triangular numbers as "lowest number that is the sum of n distinct positive integers" maybe
 
That is a good start but I don't think it is quite enough on its own. Unless you are seeing something I am not.
 
4:18 AM
hmm?
lowest n distinct positive integers = inclusive_range(1, n)
sum(inclusive_range(n)) = triangle(n). qed
 
Yes it is true and useful but I don't see how it proves the statement on its own.
 
It's an upper bound because any other combination of n positive integers would be larger than the first n positive integers.
 
You have not shown that it is unique
we cannot assume that just because some sequence has the smallest possible sum that there is not another sequence with an equal sum.
 
:|
they have to all sum to the same number right. then let seq_2 = inclusive_range(1, n) as a, where a_x = a_x - m and a_y = a_y + m
a_x - m must not be between 1 and a_x - 1 since they're all taken. hence it must be 0
 
Yeah that proves it.
But that is an additional step lacking in the original
 
4:40 AM
wait
SE has hotdog flair :|
 
yes
 
 
1 hour later…
5:48 AM
@cairdcoinheringaahing very late, but Germanic languages are pretty different from Romantic languages
 
6:16 AM
@ASCII-only usually it's really easy, but I had a bout with some ancient software that generated reports in CSV, except that multiple values in the tables were strings that had commas in them. With 200k lines across 50 files, it turned ugly, though it could have been worse
 
6:44 AM
@Neil the issues should be fixed once Dennis pulls
 
7:06 AM
now to implement actual operators. let's hope this works
 
 
1 hour later…
8:25 AM
@ASCII-only I should probably get that done some day, but with it being a side project, and the compilation of all files and running them in a separate process to ensure that the testing environment isn't tampered with by the unit test code, things got too bothersome
 
@maxb tampered with?
:| what kind of black magic does your language need
 
@ASCII-only I just took my quick reference sheet and turned it into an explanation generator, it was like 10 minutes of work. But I just got lucky that I had structured my reference sheet that way to begin with.
 
:|
oh
it's stack based
of course the explanation is easy to generate
@maxb just making sure, sbcs to unicode translation (and vice versa) works right? :P
 
@ASCII-only I have had unexpected behavior when external scripts have altered the code page for my language, breaking everything. I don't really have a good structure as it is my first (and only) language, but I've had really fun with it. You can check out the compilation function to get an idea of why coverage would be harder than usual to get working
 
...
0/10 you don't call a function to run program
also protip: make the preprocessor a function
it's like 5 lines anyway
 
8:35 AM
@ASCII-only since I have a compilation step in between, as long as the input can be parsed by python, I can get a file of bytes containing the correct bytes.
@ASCII-only Yeah you're probably right... Looking through this I see a lot of sloppy coding. One of these days (before the heat-death of the universe) I hope to get around to refactoring MathGolf
 
@maxb :| that deadline is a while away
also. i've tried to refactor Charcoal several times :/
gave up every one of those times
and Charcoal has a lot (I mean a lot) of random/abandoned features
 
When I started with MathGolf, it was basically one class with 256 if-elif-cases. It felt like I was programming an advanced AI
 
@ASCII-only and I should get around to remaking Canvas. it has way too little random features :/
 
advanced AIs clearly have 256 if-elif-cases. clearly
 
8:42 AM
Then I actually got everything working quite nicely, with separation of operators by how many arguments they consumed from the stack, and turned the 256 cases to 3 cases and polymorphism (kind of)
 
@dzaima good luck trying to beat implementing part of the wolfram language :/
just look at the number of lines :/
 
@ASCII-only yeah why did you do that
 
@dzaima so Charcoal could blow away all the competition for Bake a Slice of Pi
that's literally the only reason
also regex. very important
it hasn't been used afaik but that doesn't matter ;_;
@maxb oh god. it's still a massive amount of elifs. use a lambda dictionary
note to self: i need an explanation generator too
more random features incoming, probably
 
@ASCII-only It's a work in progress, but yes, dictionaries of functions is the approach I've used for refactoring so far, and it's probably the way I'll keep going.
 
another useless feature (part of wolfram. it doesn't expand it though, oops)
@maxb nice
and then you see charcoal's interpreter
you literally have no idea what's happening because different parts are in different files :/. plus, most of the logic is in the Canvas class (not to be confused with dzaima's Canvas)
@dzaima ok. real reason was mostly i was bored at the time :/
@maxb i'm not much better, i've used the same (self-written) parser for every single interpreter i've written (well, ones that need an interpreter)
on the plus side, that means the same ASTs. and this AST format is pretty nice
 
9:04 AM
@ASCII-only Ah yes, the Anamorphic strech transform, of course
 
@maxb :|
 
9:22 AM
@ASCII-only hmm...
I think you copied the code for Minus and ended up making all those function subtract arrays if you pass two arrays
L appears to be listed twice in multidirectionals
 
@Neil oops :/
@Neil intentional, one is floor (doesn't make sense to add char for ceil without adding the one for floor too)
 
@Neil oops. what would be the most expected result? vectorize to length of shorter array?
cartesian product? hmm
@Neil also, yeah i did copy the code from Subtract. oops :/
 
@ASCII-only depends on the operator, for instance, should Equals compare two arrays rather than returning an array of their elementwise comparisons?
but I guess vectorising to length of shorter array would be a good default behaviour at least
 
true
hmm. i was thinking about set union/intersection for & and |, but i guess you can do that easily by making one of the arguments a python set
@Neil should be fixed now, I think?
 
9:52 AM
probably
 
CMC: answer with an inline version of:
```\
 
@Adám 3 chars: ಠ_ಠ
 
@dzaima Save two: ⍨
 
@Adám wat
 
@Adám incorrect emotion
 
9:58 AM
@Fatalize The challenge is to answer the cmc with a message that (visually) has the exact four characters from the code block below, but as inline code.
 
so it's a SE markdown challenge then
 
@Fatalize Yes, chat markdown to be specific(ally evil).
 
``````\
```\
I give up, I have tried everything
 
yeah, i'm pretty sure it's impossible
 
10:14 AM
 
``` \
@Adám do I win?
 
@LeakyNun Uh, I don't see the right result. It should look like ```\​
 
$\texttt{```\}$
 
\`\`\`\
yeah no
 
@LeakyNun test in sandbox pls
 
10:19 AM
no i'm not testing no more
 
@EriktheOutgolfer good luck
 
```\​
found it :P
 
well congratulations
but you cannot trick me to give up my time :P
 
@EriktheOutgolfer Trailing zero-width space? I want just those four.
 
@LeakyNun bet you that I'll trick you to give up your money too :P
 
10:24 AM
oh
cheater
 
so it's like brilliant.org?
 
nah, there's no rick-roll in there
 
ngn
@Adám this can be used to circumvent the minimum chars limitation in comments
 
@ngn No, it used to, but they plugged that. Ah, maybe if your comment ends with code, but then people can't copy and paste it without risk.
 
10:27 AM
also... U+200B is basically the one character you generally want to delete before copying from SE... ;-)
 
I just insert empty latex to get around comment limitations
 
ngn
@Adám really?? i've always a trick similar to this (i'm not saying what) and it worked not too long ago
 
remember hidden pings?
 
ngn
you're right U+200B doesn't work
mine still works :)
 
@Adám hm, have you found something or should I conclude it's impossible?
 
10:35 AM
@EriktheOutgolfer I don't have a solution.
 
alright, so, after some testing, here are the results
 
@EriktheOutgolfer Thanks.
 
a) if the number of backticks used to surround the code is 1, then you can include a leading backtick with \`
 
@Adám wait then how did you do it?
 
b) if the number of backticks used to surround the code is >1, then you can't include a leading backtick
U+200B...
 
10:37 AM
@LeakyNun I didn't.
 
oh
 
c) if the number of backticks used to surround the code is 1, then you can't include a trailing backslash
d) if the number of backticks used to surround the code is >1, then you can include a trailing backslash without escaping
 
```\‌ has no U+200B
Neither has ```\‍
But they still don't count ;-)
 
given a), b), c) and d), it follows that doing that is impossible
 
@EriktheOutgolfer OK, so now we can make a clear rule for when TIO's CMC-answerfier should give up: When a line of code has both a leading ` and a trailing \
 
10:50 AM
@Adám haven't proven if that's the only case
 
Having them on separate lines is ok: MyLang, 123 bytes: ` leading backtick\ntrailing backslash\
 
@Adám ah, "\n" not formatted on purpose?
 
@EriktheOutgolfer Yeah, without a userscript, it is hard to tell where the line breaks are in multi-line code
 
@Adám that's what I meant, yeah
 
ngn
how do i format this as inline markup? `j@
i need it for one of my answers
 
10:54 AM
<code>`j@</code>
 
@ngn in an answer, <code>`j@</code>
 
ngn
thanks all!
 
actually, I don't think chat formatting works in answers
 
@EriktheOutgolfer Oh, you're right. Grr.
@ngn `` `j@`` backtick backtick space backtick j at backtick backtick
 
yeah, leading spaces are removed there
 
ngn
10:58 AM
@Adám i already used the code tag, but yep, that one works too. thanks
 
11:09 AM
CMC: Given an integer, return <- if negative, -> if positive, | if 0.
 
@Adám Canvas, 11 bytes
 
@Adám Jelly, 10 bytes: Ṡị“->“<-“|
 
Okx
@Adám 05AB1E, 14 bytes „<-'|„->)I.±>è
 
 
1 hour later…
12:32 PM
Can probably golf that a lot more but I'm still learning it.
 
I know nothing about that language, but... 47 bytes: f x=if x>0 then"->"else if x<0 then"<-"else"|";
 
^ did the same thing :P
 
@EriktheOutgolfer derp >.>
I just woke up don't judge me
 
argh thought i almost had a good transpiling setup going but remembered about this transformation problem..
 
ngn
@Adám have you done this in apl?
 
12:43 PM
@Adám ┴¿Å'|{0<ÿ-><-2/§ not a good challenge for MathGolf, I really need a "is negative?" operator or something similar. By the way, what does CMC stand for?
 
Chat Mini Challenge
 
@maxb do you have a sign builtin?
 
@EriktheOutgolfer Ah, I guessed Code Mini Challenge, not too far off
 
actually, way more off than you think
 
@dzaima I do not, that's probably what I should have.
 
12:44 PM
"chat" implies, well, chat :P
 
@EriktheOutgolfer Well yes, but I still got 2/3, which is a passing grade in my book
 
@maxb Semantically, you only got 3 letters wrong. Pretty close, all things considered.
 
@ngn Yes, but the shortest I've found was boring.
29
A: What are the PPCG specific abbreviations and terms?

AdámSee also Stack Exchange Glossary - Dictionary of Commonly-Used Terms. Abbreviations marked with a star (*) are chat specific. Catalog: A type of simple on-topic challenge where the challenge's aim not so much to find a winner as it is to create a catalog of solutions in many languages. CG: Cod...

 
@J.Sallé I just need an Ode to Hat, and I'm all done
 
@Adám how long?
 
ngn
12:50 PM
@Adám apl, 16 bytes: ∪2↑'||-><-'⌽⍨2××
 
I've got a 21 byte dfn in APL
 
@ngn ooh smart use of
 
I actually thought about doing that with Jelly too, but it turned out longer
 
@dzaima 18: '<-' '|' '->'⊃⍨2+×
 
ngn
@Adám you always forget about the first-of-rotate trick ;)
 
12:53 PM
@ngn yes, why is it not among the tips?
 
ngn
⊃'|' '->' '<-'⌽⍨× ⍝ ⎕io←1
@Adám to keep it secret so others can't use it :)
 
@ngn others can see it anyway ;)
 
ngn
kidding. i'll add it in a moment
 
@ngn This is essentially a variation on that.
 
@Adám yeah, I'd say include it there too
that is, in the same answer, since it's basically the same trick
 
12:59 PM
@Adám why not a paragraph mark guess that can be confused with literal paragraph mark in the source code itself
 
background colour for syntax highlighting is underrated.
 
@Adám personally i don't think it's worth inlining code in a chat message if it's got newlines as it's probably rather long then anyway
 
@dzaima not for QuadR and QuadS
 
@Adám I use contrasting bg colours on every IDE I can
Very very useful.
 
I just use very faint colours not to overstimulate:
 
1:08 PM
I can't use light backgrounds for the life of me though
If I can opt for a dark IDE it's what I do
 
@J.Sallé I have still to put in the effort of making a good dark scheme for my self. The default was decent, so I just added the backgrounds to suit my needs (and made a couple of other enhancements too).
 
@Adám in RIDE i made idoms bold, underscored gray as I, as J.Sallé can't stand changed backgrounds
 
@dzaima I guess we don't have any idioms with or or .
 
@Adám oh hm i guess those would be problematic. Though for idioms, I don't think there'd be any where both underlined & regular versions are idioms in the same expression
 
@dzaima Long term, it probably wont matter. I think we'll get rid of idioms soon.
 
1:16 PM
This is my current setting for syntax highlighting
 
@J.Sallé Yikes, too much contrast for me.
 
@J.Sallé ^
 
That's the point for me.
 
Sadly Delphi doesn't allow me to use transparent colors, I'd rather use them
@dzaima that looks pretty good
 
1:19 PM
@dzaima Nice.
 
@J.Sallé couldn't you just manually blend the colors to the color you want?
 
@J.Sallé But RIDE does allow alpha.
 
@dzaima nice...
 
Hm, we need an official way to share colour schemes…
 
@Adám yeah, I just started scavenging for the path they're stored in
 
1:22 PM
@EriktheOutgolfer For Windows IDE they are in the registry.
 
this is mine gotten from the about screen, no idea where'd you put it though:
https://tio.run/##TVFNb4MwDP0rVriiKVBoAYlLbztPPY0d8klRCXQJdFqn/XYWB7otvrz4PdsvjmDDjbllIWLsx9m@iLMyypGKvH41ZGBGNaRqiLyzzrCGxA2ZULAmmb2ElJs@e@VCjrl2qHVbaU1BjAYhj59BzLbmoooExQCphxQpxTPEO8TiUCLOApZBkyOO@H4nJMM7XtmBg@yYeQxR1gZIaczbsaJPeXyMT7CKqRe0/cjrI3TS1CdPYceCYsDlIzRkKfS89@RWD/0wr8bLLOQSMKOseVslmyTNwUziXD8GeirKKEZ8hGG0oTqSFCOQSeaDbc227qzgMF4ThLLMPQwb0XIPTvU4jWbFryWnTId0Ae6d2w3ZXwtp8FAW1B9wUxBIpmASf7YTuPdynaa9TSeMXFekYd6wLvABt6m71v@etBbfpgl/0Ev8Rvk295A35PuNLMsP
 
@Adám yeah, I don't use RIDE under Windows, even though I've installed it
 
@EriktheOutgolfer Same
 
I'm falling, so I'm taking my time on my RIDE
 
I just got used to Monokai in Sublime (default color scheme) and now I can't change anything without feeling unease
 
1:25 PM
@Adám alright, found the gem :P
 
before RIDE got the option of the dark chrome i just manually changed the html & css, that's how much i care about dark themes :p
 
so... yuck, you can't copy the theme data from regedit
 
@EriktheOutgolfer You can export it
there's even a user command to do exactly that
 
@Adám but that would copy e.g. the hotkey nobody but you wants to use for example... better than nothing :P
 
@dzaima I can blend the tones, but the background will always be solid.
 
1:33 PM
@J.Sallé what can't you make with blending tones?
 
Well I'm not very good with colours to begin with :p
 
or what do you mean by "solid"?
 
@dzaima I consider these transparent colours, they're somewhat faded.
Solid colours are not
 
@J.Sallé that's just a solid light yellow rectangle ಠ_ಠ
 
1:40 PM
@J.Sallé oh it limits colors you can choose? ಠ_ಠ also you don't choose light yellow for that, you choose a blue that's a bit yellowish
 
Well it gives that standard windows colour picker
 
@J.Sallé doesn't that have an extended panel?
 
I can use custom colours, but they're still solid >.>
"Custom colours" as in using that slider on the colour picker.
 
@J.Sallé what is a non-solid color i still don't understand. how is it different from a color that's just close to the background color
 
Not sure. I'll fiddle with it some more later today.
As I mentioned, I'm very bad with colours (and anything artistic, in general).
 
 
2 hours later…
3:19 PM
in Jelly Hypertraining, Dec 15 at 16:53, by caird coinheringaahing
CMC: Given a 2x2 matrix A, output A⁻¹ (i.e. it's inverse)
 
Dyalog, 1 byte:
 
3:43 PM
Darn beat me to it
 
4:06 PM
@cairdcoinheringaahing PowerShell, 70 bytes (seems long) Try it online!
 
Does anyone here know how to make dnf install unsigned packages
Nevermind I figured it out
 
4:39 PM
I have an answer in Pure for the Riemann Zeta fn challenge that outputs all but one answer correctly because of precision issues
And it's driving me nuts.
 
00:00 - 17:0017:00 - 00:00

« first day (2883 days earlier)      last day (1976 days later) »