« first day (4400 days earlier)      last day (741 days later) » 

00:21
@Adám haven't favicons always allowed transparent backgrounds?
00:55
0
Q: Longest path between two nodes in DAG

Aitzaz ImtiazFind the path that is the longest between any two nodes in a directed acyclic graph (DAG). Any number of nodes can be included in the path, but the edges must be moved in the right direction. The Longest Path Problem is the name of this problem, and it is NP-hard, which means that there is no kno...

01:23
0
A: Sandbox for Proposed Challenges

YousernameNumber Cliques code-golf number array statistics Your task is to create a program or function, that when given an input list of nonnegative integers of length \$l \ge 2\$ and a nonnegative integer \$c\$ where \$2 \le c \le l\$, group the list into \$c\$ "cliques." What this means is, the average ...

CMC: Calculate the Standard Deviation of a list of values.
01:56
0
Q: Busy Beaver Problwm

Aitzaz ImtiazCreate a program that takes the integers n and k as input and returns the smallest prime number with at least k distinct prime factors and a digital root of n. The sum of a number's digits is the digital root, and the process is repeated until a number with just one digit is obtained. 1+2+3 = 6 i...

 
1 hour later…
02:59
Rate my lambda syntax: lambda n: n * 0
vile
doesn't look anything like any lambda syntax i've ever seen
what kind of programming language even is this
a dynamically typed, interpreted one
it also uses duck typing :p
how does duck typing relate to chicken typing
because snakes eat chicken?
03:05
n = 4
if n:
 print(4)
for some reason, this prints 0
no clue why
slugs beat snakes
4 is 0
so now you need a frog in there somewhere
no clue why the u is highlighed blue when it should be a string colour
very strange behaviour
huh you must have selected the wrong language
03:10
I think so
maybe that will fix it?
Odd, I can't see that box anywhere
@lyxal Jesus what alien language is this
13 mins ago, by lyxal
a dynamically typed, interpreted one
Inconceivable
03:16
definitely not related to snakes
nothing to do with a popular praclang at all
totally not
Ah yes, the Ekans programming language
the language name totally doesn't rhyme with skython
I suggest a new programming language derived from snakelang™ with hostility to the programmer in mind. I call it, Prion.
yes
to borrow some ideas i jotted down 5 years ago, the only control constructs are while comprehensions and try ... except
03:38
@UnrelatedString While is too powerful, allows instant not-running-of-code. do{}while() is much more annoying to work around.
03:57
I once started work on a language without any control constructs whatsoever
Everything was an object, including booleans, so you just had to monkey-patch the boolean class to add an if method, and then take advantage of dynamic dispatch to execute the thing you wanted
Had to abandon it because it was an object-oriented LISP that used {} written in Smalltalk with no first-class functions and that restriction ^, so very close to a tarpit
4
My worst control-flow language was Maybe Later, of which control flow was handled soully by If Statements and When Statements.
You know it's cursed when souls get involved
Ah yes, ~ATH
…Now I want a programming language in which the colour of code is syntactic. Requiring a custom editor, of course.
There was a joke language like that. Someone posted it here a while back iirc
It wasn't just the color but also italicization, bolding, underlining, font size, etc.
04:13
Spin up there threads, Cyan Magenta Yellow, which splinter when the colour of the code 'splits', and waits when they're the same again and combines state. Black exectues on all three threads. Red executes on Magenta & Yellow, and so on.
There's Randall Munroe's X language
Which has actually been implemented
@user i think it's from sigbovik?
04:38
Anyone wanna come up with a name for my fractal triangle thing?
Just call it a Weinberger Triangle. Own it
Narcissism is how Mathematicians become immortal, Euclid...
@ATaco I'm down for that but I want at least one adjective
Like, the Weinberger shwoop-floop triangle
Technically Fractal. Thus Weinberger Fractal Triangle.
(Not actually fractal)
04:52
@ATaco some call it narcissism. I call it the inability to think of anything better :p
At least that's how I justify it :p
 
2 hours later…
06:35
CMQ: Is it a good idea to have Rust-style memory management in a general purpose language that isn't really focused on low-level applications? Would it be a good idea to go halfway and have affine types as an option? Like Nim's sink parameters
@AkivaWeinberger Weinbergerian
Leaves you open for a whole lot of Weinbergerian shapes later on
Or Idris's uniqueness types
The combinatorics stuff I did in the comments there was not trivial
If I solve the other questions I asked, and if it turns out I'm the first to do so, I feel like I deserve to get my name attached to it
07:17
Unfortunatly it's very unlikely, most everything is named after the second or third person who discovered it
07:39
colorForth is a programming language from the Forth language's creator, Charles H. Moore, developed in the 1990s. The language combines elements of Moore's earlier Forth systems and adds color as a way of indicating how words should be interpreted. Program text is tokenized as it is edited; the compiler operates on the tokenized form, so there is less work at compile-time. An idiosyncratic programming environment, the colors simplify Forth's semantics, speed compiling, and are said to aid Moore's own poor eyesight: colorForth uses different colors in its source code (replacing some of the punctuation...
@Neil Maybe the tools used to generate them didn't. Some certainly still don't.
08:27
LDQ Preferred type casting syntax: (type) expr, expr as type or type(expr)?
no special syntax, it should be a normal function call
08:51
@mousetail For consideration, BrainChild uses the -> operator. (val -> type)
09:40
@pxeger I don't suppose you saw my previous message? for some reason Charcoal's CompressLZMA crashes the process on ATO (works fine locally and on TIO)
Yeah I saw it but I haven't had much time to investigate
It gets SIGKILLed, which means either it ran out of resources (seems unlikely?) or had a segmentation fault
 
1 hour later…
10:57
0
A: Sandbox for Proposed Challenges

l4m2Play chess. You can't see the current board, and can only memory two bytes. Each turn, you're given your current state(initially 0) and opponent's move(a special value if first move in the game). You then output a list of [moves,state] pair, and the first valid one will get used. If no valid move...

yeah my vote is also for casts to just not be syntax
casts in general are kinda icky; they make perfect sense when you're dealing with like integers of different widths and such but there's little else where explicit casts really feel sensible as their own thing
i feel like it should be all or nothing
like if you don't go full rust, then it goes from an actual correctness kind of feature to just an opt-in performance boost
though i guess depending on how convenient and pervasive the opt-in affine types are they could still offer similar levels of utility in a higher-level language
hmm
11:50
@RydwolfPrograms careful, we still have a few fridge nukes to use
12:20
@cairdcoinheringaahing are you available for some 11'ing? We need Vyxal Bot to be unsuspended from chat - we had hyper temporarily suspend it because it was being annoying and Ginger wasn't around to fix the bot
but now Ginger is here, and the bot can be unsuspended
unsuspended. Definitely unsuspended
12:42
@Neil it works fine on staging which makes me very suspicious
they should be running exactly the same version of code
Hmm, the server now won't boot...
0
Q: Split some points

mathcatproposed by @Adám in chat Given an even number of finite points return a line \$y=mx+b\$ that evenly splits the points on both sides. Specs Take a list of points \$(x,y)\$, output a possible \$(m,b)\$ pair Half of the points should be true for \$y>mx+b\$, the other half should be true for \$y<mx...

ato is down :/
@pxeger @mathcat this might be related
oh lol
might be lol
should be back up in a few minutes
13:07
thanks for checking
@mathcat you just created the [code-gof] tag!
or better yet
14:08
14:32
@Seggan Haskell and rSNBATWPL both do it
(and those two are definitely comparable in quality and thought-through-edness :p)
Oh no...rSNBATWPL 2 might be about to happen
I've been thinking
I've got a lot of ideas
And the last straw just fit in place
@pxeger thanks for the fix
^ ty
14:56
The language shall be called CMOP
ohno
Oh yes...I have just finished designing the type system and it's gonna be awesome
oh no
oh yes
@RydwolfPrograms you still havent released ur esolang despite promising us it "today" quite a few times :P
I know. I just really hate writing documentation and answers and stuff :/
I feel like I have a responsibility to show off just how cool it is, but doing that would require so much work
15:56
0
A: Sandbox for Proposed Challenges

EzioMercerOpposite of string code-golf Your function must accept one string and return the opposite The opposite string is a string where all characters go in reverse order, all letters are replaced with the opposite mirror letter from the English alphabet and are changed in case, and all digits are replac...

16:10
anyone know how to get seven rep
im at 993
Downvote one answer, receive one downvote and one upvote
You can also downvote two additional answers in place of receiving one downvote
I'd do it quickly since talking about your rep here when you're close to a milestone tends to get you mysterious upvotes :p
16:28
@RydwolfPrograms not like we know anything about that, of course... :b
17:10
CMC: Draw a five-pointed star.
In technical terms, your output must be a 10-sided polygon in which every other interior angle is greater than 180 degrees. It has to be big enough to be visually recognizable as a five-pointed star. Everything else (colors, filled or not, the exact angles and lengths) is up to you. Printing a Unicode character is allowed but boring.
@Jacob well congrats, u r over 1k now!!
@DLosc me: pulling out Desmos as soon as i see
17:24
@DLosc Python 3, 62 bytes: from turtle import*;ht();exec("fd(9);rt(144);fd(9);lt(36);"*5)
which, ungolfed, is
import turtle
turtle.hideturtle()
for i in range(5):
    turtle.forward(9)
    turtle.right(144)
    turtle.forward(9)
    turtle.left(36)
@DLosc Desmos, 69 bytes:
l=[0...9]
k=180mod(n,2)-36n
A=∑_{n=1}^lcosk
B=∑_{n=1}^lsink
(A,B)
(Note: Desmos has to be set in degrees mode for this to work)
definitely golfable but this is what i initially thought of
I feel like the repeated summations should be golfable somehow, but idk
a shame that ∑_{n=1}^l(cosk,sink) doesnt work
Like goddamn smth like (1,0) + (2,0) works but when i put a point in a summation, nope, "Cannot sum a point" like literally stfu desmos, its one of my complaints of desmos, very annoying
17:40
@AidenChow Cool! Looks like you only need l=[0...5] as a matter of fact (not that it saves bytes).
Does Desmos do polar coordinates well? I think that would be a helpful approach if possible.
@DLosc theres polar coords, ye, but i dont know enough about polar coords to work with them lol
u have to put it in form r=function of theta
theres also parametrics
Hmm. But no way to plot a list of points in polar coords, like you can for a list of cartesian points?
@DLosc no, not that im aware of
Too bad.
I supposed one could convert them to cartesian manually.
@AidenChow I have this, but why isn't it drawing lines between the points?
17:58
@DLosc click and hold on the dots next to the expression, and a menu should pop up. turn off points and turn on lines.
@AidenChow Oh, interesting. I was trying to right-click but of course that didn't work.
That setting isn't part of the text you consider your Desmos program, right? Is it just considered a "free action" in golf to set the graph style?
@DLosc yea, im not sure what consensus is there on that tho. i just assume that it doesnt cost any bytes
So that's 51 bytes:
l=[0...10]
t=36l
d=1+mod(l,2)
X=dcost
Y=dsint
(X,Y)
@DLosc bruh how tf does that work
Oh actually, 43 bytes:
l=[0...10]
t=36l
d=1+mod(l,2)
(dcost,dsint)
18:04
(also t is kind of like a reserved variable for parametrics so its usually not a good idea to set it to a value)
Oh whoops :D
@DLosc damn nice
tryna understand what u doing here lol
becuz i use summation to simulate tracing a star lol
Let me know if you want a hint
oh wait its alternating between radius 1 and radius 2, thats smart
big brain
2
A: Sandbox for Proposed Challenges

l4m2Base64 fixed point It can be proven that there's exactly one string of infinite length that remain same after base64 encoding Vm0wd2QyUXlVWGxWV0d4V1YwZ... Given \$n\$, output one of the \$n\$-th character the first \$n\$ characters The whole string code-golf sequence

18:52
@DLosc Oh hey, -1 byte by using different angles: from turtle import*;ht();exec("fd(9);lt(24);bk(9);rt(96);"*5)
And 40 bytes in Desmos:
l=[0..10]
d=1+mod(l,2)
(dcos36l,dsin36l)
 
2 hours later…
20:29
This is definitely solvable with AutoHotkey by opening MsPaint and drawing a stat
 
3 hours later…
23:16
@RydwolfPrograms so ive got a problem
youve hooked me on rust
while imo kotlin is still the better language, rust is great for a bunch of things
fast compilation times are real noice
23:46
Uh
I’ve found rust to compile much slower than kotlin
hrm, maybe its the bias from the gradle daemon stating
@DLosc 39 if you put the d after the parentheses

« first day (4400 days earlier)      last day (741 days later) »