« first day (4321 days earlier)      last day (523 days later) » 

12:24 AM
@Steffan congrats on 60k
 
???
 
12:52 AM
60k points on code.golf
 
1:06 AM
@flawr that is really cool
 
1:25 AM
@Steffan I'm not even at 50k :(
 
1:49 AM
0
A: Sandbox for Proposed Challenges

joyoforigamiIs this polygon convex? Input Input should be taken as some form of a list of length >= 3, each element a sublist of 2 elements, which will be the coordinates of the points of the polygon in clockwise order. Output Output truthy if the polygon is convex. Output falsy if the polygon is concave. Yo...

 
 
1 hour later…
3:07 AM
Wow @Steffan u can actually get 2nd for dart easily
 
woah theres a bot that posts sandbox posts here i was just going to ask for feedback
 
Yep, we have a bot that posts new sandbox posts in here, as well as one that posts them if they've gone a week without being edited
 
One change I'd make is another option for output besides truthy/falsy
 
That said, it's always worth linking to it and asking for feedback if it's been a few days since doing so :P
 
Not all languages have a concept of truthiness, so a typical second option is two distinct values x and y in place of truthy and falsy
Also, this seems like it might be a dupe:
21
Q: Determine if a polygon is convex

Keith RandallWrite a program to determine if the input polygon is convex. The polygon is specified with one line containing N, the number of vertices, then N lines containing the x and y coordinates of each vertex. The vertices will be listed clockwise starting from an arbitrary vertex. example 1 input 4...

It even has the same clockwise ordering of points
 
3:14 AM
oops, for some reason that didn’t come up in the search results
 
0
Q: Shortest path between two directories

TedThe challenge is to write a program which will find the shortest (least number of characters) command which will navigate to a target directory, given a starting directory, assuming a standard linux file system. Take the following file system as an example, starting from ~: . ├── target └── test ...

 
@NewPosts totally didn't read directories as directions at first :p
 
3:56 AM
aw man all 4 mods against it
 
against what
 
@emanresuA's idea to post PLD's proposal on our meta
 
well, I'm guessing most of CGCCers interested in PL writing are already following it anyway
we need to promote it somewhere else
 
where?
 
anywhere that is not CGCC
 
4:08 AM
like CR?
 
come to think of it i have a groupme from a related class last year that i could shill it in if not everyone's left yet
 
idk
 
@UndoneStudios For what it's worth, while we don't "speak with one voice", if one of us is against something, it's likely (tho, not guaranteed) that we'll all agree
 
4:10 AM
And, if we do disagree, we'll discuss it amongst ourselves. There's very little reason for you to ping us all to ask our opinions :)
 
fine then
just that i wanted to know opinions of mods
 
That's fair. Mind if I ask why tho? The community's opinion is more valuable than ours :P
 
because you've got the last words on nearly everything
 
Not really, for almost everything community voting is the preferred method
 
voting on what
 
4:19 AM
@UndoneStudios We really don't. If there's something that requires us to act, then we will, but otherwise, we let you guys sort things out. Plus, at least for me, when I weigh in on a discussion, I'm often doing it as a "non-mod" i.e. the same way I would if I didn't have the diamond
 
@cairdcoinheringaahing then I'm not sure what's the point in having mods
 
Mods are exception handlers
 
like SyntaxError managers?
 
and should a mod's word happen to have more weight in a discussion it's more due to the qualities that make them a good mod in the first place than anything
 
Speaking of mods, I should ask Monica Cellio about being a pro-tem mod
but not now
 
4:22 AM
There are some abilities, like deleting accounts, handling certain flags, or deleting/closing posts with a single vote which someone needs to have but can't just be given out based on rep
Mods are those people
@UndoneStudios What?
 
We're not the "leaders" of this site - this is a community driven site first and foremost. Now, we are part of the community, so we do, y'know, interact with it, but we aren't in charge in any way. If the majority of people want something that I disagree with, then I'm not gonna unilaterally say otherwise.
We're here to handle the dirtiest janitorial side of the site that you all don't see most of the time. Flags, spam bots, voting rings, etc.
 
@cairdcoinheringaahing what?
 
Basically mods are more like janitors than dictators
 
@UndoneStudios I wish...
We have to follow the same rules everyone else does.
 
you do, don't you?
 
4:25 AM
We all do.
 
do what?
 
Have to follow the same rules.
It'd be nice being a dictator, but we don't have that right even if we have a diamond. :P
 
I'm talking about having last words on everything
 
@UndoneStudios Lets say 5 friends decided that, "if we vote for each other, we'll get a lot more rep", and so exclusively vote for each other. What can the regular users, according to these privileges do to stop that? nothing. In fact, to stop it requires even identifying that the votes are being cast between them, but votes are anonymous. So, in these rare cases, we have the mods who step in with powerful tools to stop this kind of abuse
 
@forest if mods were dictators I quit
 
4:27 AM
Yeah we don't have the last word on anything either.
 
@cairdcoinheringaahing vote on what?
 
Posts. Like, for rep.
 
@cairdcoinheringaahing votes are anonymous!?
I didn't think of that
 
to non-mods, yeah
when's the last time you identified a voter :P
 
@UnrelatedString uh, never?
 
4:28 AM
Aren't they even anonymous to mods, they just can see likely voting rings? Or am I misremembering
 
yeah moderators don't get to see them by default
 
Only staff can see them IIRC. There's a meta post about that.
 
@RadvylfPrograms We can see patterns, but not individual votes
 
Yeah there are some special tools mods have to detect vote fraud and revenge voting and stuff, although the exact way the tools work is mod-only information (which is silly imo, but thems the rules).
 
@UndoneStudios That kinda happens as a side affect of being a mod: we're elected by the community. The community typically elects mods partially due to their engagement on meta, and because they agree with that mod's opinions on meta. Therefore, it looks like mods' meta opinions have a lot more support than non-mods
 
4:32 AM
^ It's often just that mods are very active on meta, so it seems like mods "rule" meta even if it's not true.
 
They're saying that people who get elected as mods will typically already be well-known and trusted
 
but anyone can nominate themselves right?
for modding
 
Yeah, but it's a vote, and there are very few mods
 
Almost anyone can nominate unless they've been suspended in the last year anywhere, or they have very very little rep.
 
4:34 AM
@cairdcoinheringaahing so like all the mods are like the CIA, watching for voter fraud?
 
If the CIA spends 30 minutes a day max, checking over the mod tools to make sure everything's in order, sure :P
 
Among other things, we just break international laws less than the CIA. :P
 
The vast majority of my mod work I get done in the queue in the coffee shop when I get my morning iced latte :P
 
so in total mods only spend 2 hours moderating?
 
It depends on the site the mod is moderating.
 
4:36 AM
in ours
4 mods * 30 minutes, like what caird said
 
Mods for Stack Overflow often work for hours on end. It's incredibly difficult there, from what I've heard. I'm not a CGSE mod but I imagine it's similar here to the site I'm on.
 
@forest yeah we can see you're a Cryptography mod
 
I won't speak for the other mods, but 2 hours a day total seems about right, yeah
 
Well guess it's time to sign off, bye
 
4:37 AM
Take care.
 
Oh, and I can't forget the daily mod zoom where everyone yells at me, that takes up at least 20-40 mins a day :P
 
You have mod zooms?
 
2 days ago, by Mithical
@UndoneStudios caird attends a special mod zoom where we all take turns yelling at her
 
lol
 
 
2 hours later…
6:16 AM
Hi again
 
howdy
 
@RadvylfPrograms yes I remember that, but I'm still not sure it's true
 
6:39 AM
what reason is there for doubt
we all starred it and everything
 
7:03 AM
wait what
 
do you really think someone would do that, just go on the starboard and tell lies
 
perhaps
it's not like the mods are Big Brother
@RadvylfPrograms I know how RSA works
wanna explain?
 
If you can explain RSA please explain elliptic curve cryptography for me
 
Well I'll start with RSA
gimme 2 prime numbers
 
101 31
 
7:12 AM
multiply them
 
oh there is math involved :(
3131
 
that's your public key
now your private key is e x d % 3131 = 1
 
Ok that's a pretty terrible public key
 
pick a number for e
 
731
 
7:14 AM
figure out 731 x d % 3131 = 1
using Euclid's algorithm
don't tell though
what you find d as
that's your private key
 
If it is so easy to find a private key from a public key the algorithm would be pretty weak though right?
 
wait a mnute
I got this wrong
it's 731 x d % (p - 1 * q - 1) = 1
p and q is 101 and 31
prime factors
factorizing is hard so it is strong
now figure out
besides % is modulus so it is hard
yk what ttyl in middle of bio class
 
this is the first time in like ten years i've seen someone use ttyl
my brain is melting
 
7:30 AM
ttyl is something kernel related right?
 
7:50 AM
"talk to you later"
i ttyl againn
 
oh it could also stands for that
that makes it sound way less dated
 
meaning?
 
@UnrelatedString What, do u mean to say that ttyl means smth else other than “talk to you later”?
 
thought it was something to do with texting specifically
 
@AidenChow touch the yellow lemon
 
8:43 AM
@Steffan I'm 9th :3, you can now go beat primo
So we can both be top 10 :D
 
8:59 AM
k now i can talk
@mousetail?
 
 
1 hour later…
10:19 AM
Potential (free) competitor to copilot? mutable.ai
 
10:40 AM
Probably not as good, unless they're also unethically using trillions of lines of code scraped from github without proper licensing
 
10:57 AM
huh
 
 
1 hour later…
11:58 AM
 
well done gamer
 
thanks :P
 
If I had a dollar for every time a language rewrite was finished during the hour of 11pm on the 28th of November of any year (AESDT), I'd have 2 dollars
which isn't a lot, but it's weird that it's happened twice
 
nice
 
@lyxal lol
 
12:03 PM
because today marks exactly one year since the vyxal rewrite was finished, and since 2.6.0 was released :p
 
nice :P
 
we share a rewrite birthday :p
 
@lyxal interesting, might add it to klein
 
@Ginger one very tiny problem with that
ever so very tiny
it's, uh, closed source
 
12:14 PM
nevermind then
I mean I guess I could try to ask them nicely
 
it's free for individual users, but there are paid plans, hence the need for it to be closed source
 
does copilot check for license at all?
 
yes
you need to link your github account to it after all :p
 
someone here should totally get on building that coding-question-answering-AI-using-CMCs bot
also I'm a bit concerned about how much management-speak there is:
> Meet us for a live demo and let's work together to eliminate pain points from your team's workflow.
 
@lyxal i meant the code it generates
 
12:18 PM
no clue
 
it does not
people have pointed out multiple instances of it just yoinking uncredited code with licenses requiring crediting
 
12:29 PM
Speaking of one year anniversaries my strfilter module is completing its first year this new year's
 
1:11 PM
0
A: Sandbox for Proposed Challenges

UndoneStudiosLS, Part 2: Sebald Code code-golfstring WARNING: You still not gonna answer a challenge about ponies? Sebald code is a code developed by Dr. Gustav Sebald purely for communication through movies. It is decoded like this: We look for an instance of "ring" case-insensitive Starting from the word ...

 
2:05 PM
Morning!
@PyGamer0 I think you need Python 3.10 for Flax:
But the thing says 3.9
Is there a try-online thing for Flax?
@lyxal Obligatory reminder that open source paid software can and does exist :p
E.g., Red Hat
@Ginger Wait I just realized you're not Okie
Not another hivemind, we just escaped from one
 
2:33 PM
@RadvylfPrograms oops
@RadvylfPrograms ATO has flax but its not the latest version, and in DSO flax is not working
ok updated the docs to say 3.10
 
2:56 PM
i have no clue why flax doesn't work on DSO
 
@RadvylfPrograms >:)
@RadvylfPrograms wait that specifier says >3.10 so you'd need 3.11
@PyGamer0 ^
 
@Ginger oh
 
what did you change it to pygamer
 
python = ">=3.9"
now its that
 
ok that's fine
hey wait, okie doesn't use a Niko pfp
 
3:01 PM
yes
 
what is going on here
 
only on chat
its different iirc
 
no, they have a catgirl-in-a-box pfp across the whole network
(I think)
oh, they have Niko on CGCC only
 
that was from cat week
@Ginger oh
 
waiiiiit
okay, it looks like they have a Niko PFP on every site except EE (their main) and chat
weird
 
3:03 PM
@Ginger oh .. yeah i remember
 
@PyGamer0 well I'm still alive so
 
oops
but does it work?
 
no?
idk what it's supposed to do
 
its supposed to show 2 on the output box
(cc @emanresuA)
 
it doesn't
 
3:12 PM
Working on RIPR (a number library I'll be using for making a golfing language) now
I've just implemented Add and fixed all the compiler errors :D
 
Wow you can add numbers? Impressive
 
It's more complicated than it sounds
Most of it is stuff like this:
impl<T> CloneIterator for T
where
    T: 'static + Iterator + Clone
{
    fn clone_box(&self) -> Box<dyn CloneIterator<Item = Self::Item>> {
        Box::new(self.clone())
    }
}
 
It this arbitrary precission?
 
Yep
Will support both real and complex
 
Cool
Now add octurnions
 
someone thinks they're real funny
 
> Per the lang process, this cannot go further than experimenting without an approved RFC -- and will certainly not stabilize under the name Yeet.
awwww
this is so funny, we clearly have to contribute
 
> Will we ever be yeet?
No, and it is probably for the best. yeet is just a placeholder term to prevent bikeshedding and preventing progress on a legitimate (and very cool) feature
throw, bail, and fail are all cool with me, no es
Hey wait rational numbers having a zero denominator is only invalid because we say it is
all of the basic operations still work fine
 
Yea yeet is fantastic
 
3:24 PM
2 / 0 + 1 / 8 is 16 / 0. 2 / 0 * 1 / 8 is 2 / 0. (2 / 0) / (1 / 8) is 16 / 0.
 
I will bet you it won't actually be changed and we will yeet forever
 
Sure the 0 nomf nomf nomfs a lot of data, but so does a zero numerator
nomferator
 
3 mins ago, by Radvylf Programs
Hey wait rational numbers having a zero denominator is only invalid because we say it is
IMO rational numbers with zero as their denominator are perfectly natural and okay
They behave just like float infinity, even. It's so elegant.
 
Some Rings allow it
but not natural numbers
 
3:32 PM
Biggest issue I have with most compiled languages, especially Rust:
No REPL
In JS I can always just test some little thing by hitting three keys in any browser tab and typing the code in
 
well guess what Klein will have a repl
 
In Python I just need to open a new terminal window
But in compiled languages, unless one's built-in, it's neaely impossible
 
does rust have try/catch?
 
@RadvylfPrograms The playground is really nice though
 
@Ginger Probably not a very useful one for compiled languages though
You couldn't write stuff line-by-line, since you can't compile half a program
 
3:34 PM
@RadvylfPrograms time will tell
 
@Ginger No, anything that can error returns a Result you can handle
 
@RadvylfPrograms clearly we need JIT then
 
That or it panic!s
Which is uncatchable
 
hm
 
Create a new language that's like rust except interpreted
 
3:35 PM
I'll let radvylf do that
 
Papyrus is a Rust repl that mostly works, but it has some...issues:
You could simulate a REPL by appending the code to the previous code and compiling/running it again, but as soon as anything's impure it breaks
 
Hmmm you would need a impurity checker that can eliminate those lines
 
So you need to keep track of the contents of every variable and reinitialize them when you run the next thing, which is where it goes from trivial to stupid hard
 
As long as they implement Serde...
 
My main issue with papyrus isn't the jank, it's the lack of ability to use libraries
@mousetail Yeah, but you also have to know which variables exist in the first place, which means you need a Rust parser
 
3:38 PM
You could use the RLS
 
3:56 PM
---
Opinion: I really do not like how most contemporary (intepreted) languages handle imports of files
like in python you have to do all sorts of cursed BS to import a file and even then it's still not quite the same
how tf am I meant to implement plugins when I have to resort to cargo cult programming to even load them
 
Wdym by "imports of files"
As in, import statements and stuff? Or reading data from files
 
as in importing source files in the language by path
 
Differently from normal imports?
@Ginger I don't really know if there is a "most" here
The top few interepreted langs all handle it a lot differently from one another
JS basically didn't have imports until 2018, Python has its whole thing, Ruby uses require which IIRC is basically just copy and paste, etc.
 
4:16 PM
@RadvylfPrograms finally something Java does well
@RadvylfPrograms python basically has copypaste as well
 
4:28 PM
Hmm...I'm worried RIPR won't technically have a partial ordering
Because of the fact that it's approximate some of the requirements may not apply in edge cases
 
4:43 PM
0
A: Sandbox for Proposed Challenges

bigyihsuanJoin Columnar Strings Write the shortest possible program or function that will join a list of columnar strings. For this challenge, columnar strings are defined as one-character-wide strings spanning across multiple lines. Each character, except for the last one, has a newline character. Some ex...

 
@SandboxPosts I would love to answer a challenge about ponies, but we don't have any! :P
 
5:30 PM
0
Q: Range of ASCII values

The ThonnuYour task Given a string, output the range of ASCII values. Example Let's say we have the string Hello. We get the ASCII values: H = 72 e = 101 l = 108 l = 108 o = 111 Now, we get the range (max - min): 111 - 72 = 39 Our answer is 39. Test cases Input Output Hello, World! 82 aaaaa...

 
5:51 PM
is there a voting bot or smth
i posted a Fig answer and literally 5 seconds later i get an upvote
 
What do you mean?
@Seggan People are quick to vote
 
yeah but 5 seconds?
 
Was the answer to a newly posted challenge?
 
1
A: Find the nth number where the digit sum equals the number of factors

SegganFig, \$10\log_{256}(96)\approx\$ 8.231 bytes FmC'=SxLJk Try it online! Returns/prints the infinite list of such numbers. FmC'=SxLJk F # Filter mC # The infinite list of numbers ' # Where Sx # The digit sum = # Equals L # The length Jk #...

 
Cause I think I've been quicker than 5 seconds upvoting answers to my challenges, especially if the challenge was newly posted
 
6:09 PM
@DialFrost Beat primo and you by solving 2 holes
 
6:33 PM
@PyGamer0 No, I need to change it to use the new entry point.
 
it's not just me that sees pygamer's message pinned on the starboard despite it being in another room right
and if I unpin it, will it get unpinned from flax too
oh wait no i am dumb, i clicked the link in the message instead of the message jump link >_>
(in which case why is that pinned anyway...?)
 
¯\_(ツ)_/¯
 
I've unfrozen this room BTW since AoC will be starting quite soon:

 Advent of Code

For discussions about adventofcode.com
4
 
 
1 hour later…
7:59 PM
TIL cd takes you to your home directory
 
8:48 PM
@hyper-neutrino rename it
CMP: simple, good SQL db?
im a total SQL noob i just need something i can install then immediately test from my code
 
"simple, good" and "SQL" don't belong together...
 
lol
 
@Seggan why
this is the room for discussing the actual advent of code challenge
 
aaah nvm
my brain mixed it up with the event here
 
9:09 PM
0
A: Sandbox for Proposed Challenges

ElPedroFour Candles Here in Germany we have a tradition to have an Adventskranz in the run up to Christmas. This is basically four candles, one of which is lit each Sundday during Advent (including the ones that have been lit in the previos weeks). Each week, the one that was lit the previous week will ...

 
9:25 PM
CMC count how many primes there are between 2^i and 2^(i+1) for all i from 1 to 25
 
9:43 PM
0
A: Sandbox for Proposed Challenges

ElPedroFour Candles (Fork handles) Note: the subtitle is nothing to do with the challenge but the title just reminded me of one of the greatest Two Ronnies sketches ever. Feel free to watch it here if you wish, if not just ignore this paragraph. There is a tradition where I live in Germany to have an Ad...

 
10:22 PM
@Seggan SQLite? I haven't used it, but it's meant to be the epitome of "simple SQL db."
 
11:09 PM
mhm ty
 

« first day (4321 days earlier)      last day (523 days later) »