« first day (4194 days earlier)      last day (663 days later) » 

12:02 AM
0
Q: Multiply numbers by their depth

emanresu AGiven a ragged list, we can define an element's depth as the number of arrays above it, or the amount that it is nested. For example, with the list [[1, 2], [3, [4, 5]]] the depth of the 2 is 2, as it is nested within two lists: The base list, and the list [1, 2]. The depth of the 4 is 3 as it is...

 
Sure.
 
Thanks!
 
They should have write access now. I added them to the explicit write access list.
 
Yup, I can see that.
 
1:00 AM
Sandbox posts last active a week ago: Encode the systematic binary Varshamov–Tenengolts code
 
1:54 AM
@GingerBot Yes it should!
That's exactly the sort of stuff we do want in this room
Interesting and relevant to CGCC
But since it's its own room now, should link to it:

 CGCC Langjam

Room for discussion of the CGCC Langjam chat event
 
2:20 AM
Good news: Trianguish is now working!
I just need to add better UI, a non-console-based way to do I/O and change various settings, and some online interpreter features like permalinks
 
pls im so excited
is there a github page yet LOL
or a wiki or watever
 
No, but I guess I should start writing some docs
 
@NoHaxJustRadvylf New lang?
 
Yep
It's the one with the hexagons and stuff
 
Oh that one
 
2:29 AM
Trying to think of a good UI for the inputs and outputs
Maybe a modal?
 
Radvylf esolangs are either tarpitty or very complex
 
por qué no los dos
 
no hablo español
 
"Why not both"
 
Lol
 
2:33 AM
i don't speak spanish either but could have sworn that phrase had some memetic status
 
Looks like it's possibly a very obscure meme: reddit.com/r/OutOfTheLoop/comments/7obmoa/…
 
makes sense
 
i dont remember it being obscure so much as just being a macro
(nearly) every reaction image has its lifespan
@NoHaxJustRadvylf i made this joke already but this really really looks like a zachlike puzzle game lol i hope its as fun to mess with as im imagining it will be
 
^
@NoHaxJustRadvylf Is this a fully working UI? How does it translate to ASCII/other source code?
 
1. Yeah it's a fully working UI, though keyboard-only at the moment
2. Right now it doesn't, but every operator can be represented with 3 digits of base-6, so a representation of it in a file will likely consist of that plus some instructions for structuring it
 
 
1 hour later…
att
4:17 AM
I am unreasonably proud of my last two answers
 
@att your multiply by depth answer seems particularly elegant imo
 
4:48 AM
@graffe ace expliots
 
5:32 AM
@PyGamer0 what do you mean?
 
I can answer that
ACE here stands for "Arbitrary Code Execution"
it means that people can inject python into your calls to sympy and then have that python executed where you're running your code
 
Can you give an example?
I am all about reporting bugs :)
 
2
A: Inject arbitrary code into a compiler (cops)

SteffanVyxal 2.7.2 to 2.11.1 (safe, patched in v2.11.2) Yet another ACE in Vyxal. Commands with randomness aren’t allowed, and neither are EĖ†. Info is in the repo. Explanation:

@graffe the unfortunate thing is that they know about it
It's because they use eval under the hood
Trust me we've looked into this
 
Ah ok
if it is known I will ignore it :)
CMC output a random integer between 2 and 10^100 along with its prime factorization
@lyxal I am not sure why nsimplify accepts a string at all. Do you know why?
 
5:51 AM
So you can pass expressions like "5x + 3x" and have it return 8x
 
6:02 AM
sweet :D
oh that reminds me
do you guys think itd be 1. useful 2. reasonably possible to have a parser detect when a set of conditionals will always return true and skip evaluating them?
i know its bad for like, conditional evaluation on purpose
 
i feel like that's a step above the parser
 
but i was telling myfriend "hey if this thing is good, send it to me, but also if it sucks, sent it to me"
and then after i finished saying that, he sent it, even though he hadnt decided hwether it was good or bad
because sending it was a foregone conclusion
 
i feel like a parser should be pretty semantics-agnostic
and then if you want an optimizing compiler on top of that that's its own thing
 
ahh right, compilers
that makes sense
LDQ: where should concatenation go in order of operations?
 
whatever precedence it has in pip :P
 
6:13 AM
true tbh
lemme copy your homework dlosc take inspiration from that
woah, ato is giving me yargs: execvp: Permission denied idk waht that means or whether i should report it
 
Known issue
 
ok good whew
 
7:23 AM
@lyxal ah ok.
 
0
Q: Exponential transform of an integer sequence

alephalphaThe exponential generating function (e.g.f.) of a sequence \$a_n\$ is defined as the formal power series \$f(x) = \sum_{n=0}^{\infty} \frac{a_n}{n!} x^n\$. When \$a_0 = 0\$, we can apply the exponential function \$\exp\$ on this formal power series: \$\begin{align} \exp(f(x)) &= \sum_{n=0}^{\inft...

 
7:55 AM
@NewPosts very nice
 
8:40 AM
in flax, 16 hours ago, by PyGamer0
anyone have more ideas for quicks?
 
If you don't have them, groupby, sortby, max/minby as digraphs?
 
 
1 hour later…
10:10 AM
apart from groupby, i have the rest as monographs
@UnrelatedString perhaps is that what you are doing for perhaps
 
No one liked my CMC :(
How does python create a random number when you do something like random.randint(0, 10**100)?
 
 
1 hour later…
11:49 AM
Any suggestions for golfs here? I feel like there should be a shorter method then ©ææʒ˜{®Q} to create all partitions of something ( doesn't work since it only generates consecutive partitions, and I couldn't get ā.Œ to work since it creates duplicates of a partition in a different order, and I can't find a way to uniquify it in few enough characters)
 
12:44 PM
@CommandMaster yes to both
 
1:15 PM
@graffe Are there any limitations on the output distribution?
 
1:50 PM
@thejonymyster idt that would be allowed in constructive logic
Neither case was met yet since no decision was made
 
2:06 PM
hey so remember that sympy issue from this time yesterday?
well apparently, it's a problem even deeper than sympy
for once, it isn't actually sympy being stupid
it's the library it's built upon
 
ow
 
2:41 PM
@lyxal that's very interesting
 
It is
I mean there's still something up with how Sympy casts to float when it's clearly an integer, but it's not entirely Sympy's fault
 
the same problem happens if you pass in an integer directly to mpmath.identify though
 
 
1 hour later…
3:47 PM
0
A: Sandbox for Proposed Challenges

mathcatMove n, out n Your task is to write a code, where if you move n adjacent characters, the program has to output n. The code has to work for all integer n's \$0 \le n < \text{code-size}\$ The winning-criteria is code-golf Rules Code length has to be greater than 1 Code size is not measured by byte...

 
@lyxal o_o thats the library im using for flax
atleast it doesnt have ace expliots :P
 
4:21 PM
@PyGamer0 That you know of :P
 
yes :P
does anyone know any "mathjax everywhere" userscript?
so mathjax is everywhere
even on chat
because mathjax is cool
 
You probably shouldn't enable it on every single website because of the security concerns
But there is a chatjax++ userscript
 
Argh, my recent answers to old questions are tanking so badly, and I don't understand why. For example, what is wrong with Quartic Summation that it's apparently being judged equal in value to lambda a,b:a**4+b**4?
 
The question is boring so I'm not gonna upvote any answers to it
 
That's such a shitty attitude.
 
4:34 PM
@pxeger why?
 
I think MathJax can sometimes load arbitrary scripts from other sites depending on config, so if you don't trust the other users of a site, and the site isn't designed to handle it, it might allow XSS?
 
Apparently, the consensus amongst CGCC users is that my posts are not interesting. So I'm thinking I should probably just finally give up on this site, and either totally give up completely on finding an audience for mathematical regexes, or try to find one elsewhere.
 
@Deadcode I'm never gonna see your answer, because if I see the question in the active list, I'm not gonna think it can be interesting and I won't click on the question
 
@pxeger Which is why I bountied it. Why does that not indicate something to you?
 
Because I don't really check the bountied questions list
 
4:43 PM
@NoHaxJustRadvylf For the record, I think this is a bad practice. You're setting them up for disappointment, making them thing that posts of that quality will be met with the same level of response later on. And it's unfair to others, whose posts are being judged by a higher standard.
Anyone else have anything else to add? I'm going to be saying goodbye soon.
 
I reasonably-often downvote posts that are easily improvable
Not those by completely new users though because I don't like to put them off
 
IMO they'd otherwise just leave the site after 2-3 questions, I've seen it happen before
 
I think in general I don't vote that much
I vote on answers to my questions, and questions I answer, and that's almost always it
 
5:36 PM
@Deadcode A heavily downvoted, 4 year old question is not the place to find lots of upvotes, regardless of how interesting the answer is
 
@Zionmyceliaadamancy I would have thought that seeing a solid blue square with "+100" in it next to the question would indicate to people that there's something there
 
Ideally, an answer stands on its own merit, but in reality people are much less likely to bother checking out the 46th answer to an old, downvoted question
@Deadcode The primary use of bounties on this site are to reward answers, typically from the deadlineless bounties list. A lot of people just don't bother to look at something, because it happens to have a bounty
@Deadcode Also, just wanna point out that you have multiple highly upvoted answers, including at least one Best Of winner. It's a little disingenuous to claim that the site doesn't find your answers interesting
 
@Zionmyceliaadamancy Yes, but it still hurts to have answers that I find very interesting do badly.
And I guess there's been severe bounty inflation in the past few years. Bounties used to mean more.
 
 
1 hour later…
7:07 PM
Is it a bad idea to require in a challenge that answers are theoretically almost always correct (they are correct for all inputs but a finite set)? It would minimize annoying edge cases, but it seems like there might be some negative side effect I don't think of
 
@CommandMaster By "almost always" correct do you mean it'd be allowed for them to have a 0 probability (that can still happen) of being incorrect?
 
7:22 PM
(Like a probabilistic is-prime function)
(except that's not 0)
actually I'm really curious what kind of algorithm you're thinking of, which could behave this way
 
 
1 hour later…
8:25 PM
@CommandMaster are you here?
I didn't fully understand your question
 
Why not spawn a child and waitpid so that, as the parent, you're not even sorting any socks yourself? — Mxyk Sep 6, 2013 at 16:48
 
 
3 hours later…
11:49 PM
@Zionmyceliaadamancy I think there was a character in Piers Anthony's Xanth series who was noted for her ability to sort socks
 
@Neil Who was that?
(I read the books a very long time ago, but I'm always happy when I see other people reference them)
 
@forest I also read the books a very long time ago
I think she might have been one of Humprey's wives?
also, I wonder how nice you have to be to the child to get it to sort your socks
 

« first day (4194 days earlier)      last day (663 days later) »