« first day (4046 days earlier)      last day (1094 days later) » 

00:00
@emanresuA You need to do posts as q and posts as a, then do q.id and a.id.
Or something.
Code sample?
It's a while since I last did T-SQL, and I never really understood it.
That code doesn't work because I forgot to add any bound between u and p. But you can do the same thing with the posts table and itself.
This should work. You can tell I'm bad at T-SQL (I changed your perfectly-working is null to a broken = null, and other things) but it works.
Don't remove the limit; there are too many answers, so it crashes SE's servers otherwise.
Thanks :)
01:00
Sandbox posts last active a week ago: Golfing Coins (suggested rewrite), Golfing Coins
I think I got +20 rep from SEDE?
@wizzwizz4 Two upvotes on an old answer, and the only thing I can think of is that it was linked from this query.
@RadvylfPrograms use == null, it's golfier
That's what I usually do yeah
Not as many es either
 
3 hours later…
03:41
Here's a mockup of potential syntax highlighter colors. Onions?
Watching videos from Kyiv is pretty spooky...ordinary city 48 hours ago and how it's half empty, with tanks, APCs, etc. everywhere, air raid sirens...
@DLosc The colors are a little too saturated IMO
Will there be support for custom color schemes? (or an easy way to hack them in)
@RadvylfPrograms Okay, but I like saturated. Even as it is, I have trouble telling some of those colors apart.
@RadvylfPrograms Support, I doubt it; hacking, seems very possible. I'm just using a bunch of spans, each with a single class, so if you change the class's CSS you change the style of every token in that category.
Yeah, that sounds super easy to work with, you'd just need a userstyle.
I wasn't even thinking about the colors from a colorblindness/accessibility point of view, I suppose that's more important than aesthetics especially if they can be changed so easily (since the target audience for anything with syntax highlighting overlaps nicely with people who can use CSS to color things :p)
@DLosc that bright red is not a color i would want for keywords
Just saw a repost of that mosquito joke on reddit and i finally understand it
Math is not entirely useless after all
@user Would it be better if it were a bit less bright, or do you not like red at all?
03:50
I like atom’s thene, which uses a darker red for keyword
Yeah, the red's just a little too bright I think. If it were more of a medium-to-blood red I think it would look nicer.
Also not a fan of the bright orange but it is manageable if only used for operators
Honestly operators should be black IMO
@user Somewhere in the vicinity of #b54, judging from the screenshot I found on Wikipedia?
@RadvylfPrograms The problem is that Pip relies very heavily on operators, so they need to be visible there (and clearly distinguishable from names and other symbols like parentheses).
@RadvylfPrograms +1
03:54
@DLosc Maybe something a little less orange
Unless that makes it difficult to tell apart from another color
I’m trying to make a joke about vector graphics and color gradients now
@RadvylfPrograms You mean less saturated, darker, or closer to some other color?
Maybe something a little closer to #a02?
More of a pure red
@RadvylfPrograms Oh, so by "a little less" you mean "not at all." Got it. ;)
@DLosc are you making a Pip syntax highlighter?
04:02
@PyGamer0 That's the plan--as well as support for some other esolangs, hopefully.
so you are just making a general syntax highlighter?
@PyGamer0 I'm trying first to make it good for Pip and tinylisp, and second to make it general enough to work for other languages too.
technically you can PR highlight.js to add Pip and Tinylisp but I doubt they will support esolangs ...
I'm considering adding syntax highlighting options to DSO.
@PyGamer0 That's what StackExchange uses?
04:08
They don't support the full list though
@DLosc i think
I appreciate that there's built-in syntax highlighting on SE, but sometimes I have to squint at code to tell whether it's even highlighted or not. (Which is why what I'm making is so bold and saturated.)
UN: Let's call on Russia to stop invading
Russia: Vetoes it

Yes, giving countries the power to single-handedly veto UN Security Council resolutions is a great idea
Dark mode syntax highlighters are way more usable than light mode ones
@RadvylfPrograms lmao
04:17
@RadvylfPrograms My understanding is that if the veto hadn't been included, the most powerful countries would've refused to join the UN in the first place. That's the problem with a voluntary organization.
That's fair I suppose
But yes, of course, the results are rather silly sometimes.
04:30
I've just realized: syntax-highlighting a golfing language is harder than syntax-highlighting a normal language. In a normal language, you have other cues besides the highlighting about what something is (commands tend to come at the beginning of a line, operators tend to be symbols, whitespace helps you visually group things that belong together). So the highlighting itself doesn't have to do all the work. In a golflang, most of those cues are nonexistent.
Yeah
And a lot of the builtins are just "elements"
You can separate them by arity but that's about it
hm let me try something
Anyone made golfing language which more fit physic than computer?
^ flax syntax highlighting
(made with MS-Paint)
Noice
04:44
dyads are orange, monads are green, nilads are blue and quicks are purple
All right, take 2. I toned down the red and orange a bit, swapped them so operators are darker than keywords, and tweaked a couple of other colors.
What's the load colour for?
...yeah i feel like the problem with trying to do syntax highlighting for golflangs in general is there's mostly not that many classes of things which interact not always that locally
@emanresuA That's for actual tinylisp builtins. The darker blue of def is for library aliases for builtins (def is an alias for the builtin d). And the purple of lambda is for library functions that aren't aliases.
I used the darker one for Python builtins because I thought it looked better.
04:53
Hm okay
@UnrelatedString With Pip, I anticipate highlighting will help tell apart commands from operators from variables, all of which can be uppercase letters. Also, I'm hoping to include a subexpression highlighter on mouseover, similar to the way matching parentheses and everything in between get highlighted in the tinylisp highlighter.
What's this going to run on?
GitHub Pages
Oh okay
04:55
Which is why it's just a highlighter, not an interpreter too. :P
@DLosc nice
i still have to make this website: pygamer0.github.io/flax
making websites is hard
very hard
Tell me about it
I guess it can help to figure out what you want it to look like first
Or steal from someone else
thats why i have labelled this help wanted lol
@emanresuA ^?
ok that looks bad lmao
05:11
Is this going to be an interpreter, docs site or both?
just the docs
maybe ATO will hold the interpreter
@PyGamer0 That looks pretty much fine then
You're just going to have a menu down the side right?
yes im planning that
the colors looks bad
05:23
Any stack language where argcnt strongly depend on input type?
actual good question
argcnt?
argument count
Not strongly. Vyxal does have some stuff that has arity conditional on types, but everything is mostly fixed arity with overloads. 05ab1e has some stuff like that too
At least, not that I know of
05:39
@emanresuA ^ that looks better
You may want to check the contrast of that
I could imagine it's not very accessible, depending on what color of gray that is
yeah ill change it
@lyxal im gonna commit frick :P
user image
4
 
1 hour later…
07:24
anyone have any opinions on this: codegolf.meta.stackexchange.com/questions/24516/…
07:36
How does one even solve in Geogebra?
@ophact wdym?
Your meta post is about solving challenges in GeoGebra
Could you give an example of how one might solve a challenge in GeoGebra?
in geogebra u take in input and use functions to convert it to the desired output
im mainly asking about the input method for geogebra
Hmm, that sounds very interesting
Is GeoGebra Turing-complete?
@ophact im not too sure what qualities it needs in order to be turing complete
but it can check for primes, do factorial, has conditionals, all that stuff
07:41
Can it do something like desmos actions or similar?
I believe one of the conditions was that it could loop? Does it support recursion?
i havent come across a looping construct in geogebra becuz im quite new to geogebra
there could be one that im not aware of though
If it can do recursion, then it should be able to loop
@ophact dont think theres recursion in geogebra
07:45
Does it have something like desmos' regression bug
@emanresuA not too sure either
but i found geogebra scripting, i think it could have loops: wiki.geogebra.org/en/Scripting
i havent look too much into it though
theres also the repeat command, not too sure if this is what you mean by loops: wiki.geogebra.org/en/Repeat_Command
I couldn't find the conditional construct, where is it?
07:52
@AidenChow That looks like it works. Can you create an infinite loop in any way?
@emanresuA yeah thats a problem, i cant seem to find a way for that
maybe something in geogebra scripting can do that
idk
as i said, im new to geogebra so i dont have much experience in it
Yep, no recursion
so does this mean that geogebra isnt a valid language
ppl have been using it years ago though
You're allowed to use any lang here
oh ok
wait i think i just found a way for recursion in geogebra: wiki.geogebra.org/en/Execute_Command
its like python exec command
idk if it can run infinite loops though
08:07
Theoretically turing complete is fine
(As in, with enough processing power)
uh idk if it can do recursion infinitely though, i think it can only run a set amount of times. lemme investigate further
like idk if it can calculate collatz sequence for example
it can output up to some set number, but not infinitely i think
Try recursive factorial, perhaps?
@ophact yeah i can do that in geogebra even without recursion
but is it possible to do it with recursion?
@ophact yeah
Execute(Join({"f_0=1"},Zip("f_{"+a+"}="+a+" * f_{"+(a-1)+"}",a,1...10)))
^ for 10 factorial
replace 10 with smth else to calculate another factorial
i think you cant recurse infinitely with geogebra though, thats the problem
or like recurse until a condition is met
08:20
You can't hard-code input, right? So you would need to define a function that returns the return value of Execute
with the number set 1, 2, ..., input
@ophact uhhhhhhh so thats what my meta post is about....
geogebra input method
lemme see if i can get a function to return the value
i doubt it
yeah it breaks my code for some reason
I don't think Execute returns anything. Like exec in python
Is there something like eval?
@ophact i dont think so
0
A: "Hello, World!"

DialFrost99, 283 bytes Yes there is a language called 99 999 9 9 99 99999999 999 9 99 99 99999 9 999 9 99 99 99 999 999999 99 99 99 9999999 9999 999 9 99 99 99 9999999 9 999 9 999 9 999 9 99 99 99 999999 9 999999 9 99 9999 99 99999 999 999999 999 9 99 99 9999999 9999 9 999 9 99 99 99 999999 9 99 99 99 999...

 
3 hours later…
11:03
@DLosc could you make numbers not the same as strings? Maybe a bright blue (but not too light)
Or purple
11:17
Uff. The maths exam was very hard
I didn't even finish question 3
in Par for the Course Comics and Film Co., 2 days ago, by mathcat
If I don't fail the competition and do frick
^ I'm off to do frick
11:46
good job gamer
thanks
How to do frick:
ugh no
that didn't work
good job
10/10
amazing rickroll
100% not obvious
:face_palm:
I give up
In other news, I've made progress on vyxal v3 planning. View it here: lyxal.github.io/vyxal-v3-planning
(I decided to style it a little with a github io site)
‮(c‏XgW9w4wQd=v?hctaw/moc.ebutuoy.www//:sptth)[…/moc.elgoog]‏‏
11:59
@mathcat still nope
‮c‏XgW9w4wQd=v?hctaw/moc.ebutuoy.www//:sptth
ugh I give up
@mathcat reject rickroll return to vyxal planning
0
A: "Hello, World!"

Bgil MidolNoxan, 16 bytes ¶"Hello, World! New language!

@Hello,World! gg gamer
12:18
sghyhs
yes
12:30
@SegFaultPlus4 trying to find this post
@lyxal you know what, lyxal?
that's the final straw
i'm going to start working on Rickroll Defender
12:49
0
Q: Give the inverse permutaiton

Wheat WizardTask Given a finite permutation output its inverse. You may take input and output in any reasonable format equivalent to a list of natural numbers. You may choose to use 0 indexing or 1 indexing. Your input and output format should be the same. You may assume a permutation has at least 1 elemen...

 
2 hours later…
14:30
What is going on
Vivaldi showed me that Canvas had an RSS feed, so I subscribed to it and now I'm getting notifications about every assignment since at least eighth grade
0
A: Sandbox for Proposed Challenges

AnttiPRagged slice Your task is to slice a ragged list. Your input is a ragged list and two lists of integers, corresponding to the beginning index and end index of the slice, where the beginning index is inclusive and the end index is exclusive. Explanation Let's start from the very basics. How does r...

0
A: Sandbox for Proposed Challenges

pxegerGray code on N symbols code-golf A Gray code is a permutation on binary numbers where incrementing or decrementing a number only ever causes a single bit to change. For example, a Gray code for the binary numbers up to 7 (so, with 3 bits) are: 000 001 011 010 110 111 101 100 You can see that onl...

14:51
@user rip
@GingerIndustries no
You forgot my AntiAntiRickroll
A website which even a RickBlock can't stop
@mathcat (probably)
@mathcat this is a completely blank page for me
oh I needed to move my mouse
move your mouse
still doesn't work
I am immune to all YouTube-based rickrolls by having autoplay turned off
@pxeger i read that as "oh I needed to move my house"
lmao
15:06
Someone should make a userscript (maybe I will if I have too much time on my hands) that, when you hover over a link to the youtube video of the rickroll song, displays a red warning that says "Warning: rickroll ahead"
15:42
@ophact Good luck with redirecting links
15:56
Fun fact: you can buy official Berkshire Hathaway merch at berkshirewear.com
What's the easiest way to check if a list is another list in any order?
(in python)
set(a) == set(b) (or golfed: {*a}=={*b})?
although that will give True for [1, 2, 2] [1, 2] which you might not want
ah, no I don't want that
in that case, from collections import Counter Counter(a) == Counter(b)
that will check the numbers of occurrences of every item are the same in both lists
nice, thanks
16:08
you could also do sorted(a) == sorted(b) which is simpler but not very efficient
@user ... They're not? Numbers are teal (#09b), strings are green (#091). Making numbers much bluer would send them into tinylisp builtin territory (#66e)... although maybe I could make all the builtins more purple than blue... hmm.
@pxeger Oh yeah? Behold, the unrickroll: https://www.youtube.com/watch?v=dQw4w9WgXcQ
6
@user I suspect this is is not a rickroll :P
@DLosc Ugh, I must've been too sleepy to see that
oh no, I've been examplerolled!
16:10
My hobby: Rick-unrolling
@DLosc Although blue numbers wouldn't be a problem, my current IntelliJ theme has dark (navy?) blue builtins and light-ish blue numbers
@DLosc Isn't there one where he gives you up?
@mathcat AAHHHH someone flag this!!!
You got squared!
@DLosc this is actually a pretty good song, I'm surprised I've never heard it before
16:12
I thought I was going to see a rickroll, or, at worst, some gory video, but it was math 🤮🤮🤮🤮🤮🤮🤮🤮
calm down you just got parker squared
@DLosc I think making numbers around #3cc2fc wouldn't be too bad (mind you, I have no idea what that would actually look like, I'm not great with colors)
oic, load's color is very close to that
@DLosc Not sure about the dark green for the JS regex
@user Yes
lol
I meant an actual song by him
16:17
(actually there are many)
@user Whoa, twilight zone 0_o
And the same album has this song :thonk:
@user The other thing I'm trying to do is keep it a different brightness than the gray of comments. For some reason teal and gray are surprisingly hard for me to tell apart.
That is a nice color, tho
Ah, makes sense
16:25
@DLosc what text editor / IDE do you use?
ill guess VSCode
now i shall log off
:q
@PyGamer0 Notepad++
Except for Python I use IDLE
@PyGamer0 log of what?
2?
which base?
@DLosc +.×
@mathcat e, base z
now i shall really go o/
:q
@pxeger That's a Pip-based decision: regex literals and string literals are closely related types. What about it seems wrong for JS?
(not that I'm planning on making the actual thing work for JS, the practical languages are just there for demonstration purposes)
16:36
it's purely aesthetic, I don't like that particular shade
I have no problem with the idea of highlighting regex literals
I'm open to tweaking it if you have suggestions
16:53
was browsing cgcc for no reason
0
A: Give the inverse permutaiton

PyGamer0flax, 1 byte ⍋ Builtin \o/ Unlike Jelly, flax is 0-indexed.

another answer in flax done lmao
0
A: Sandbox for Proposed Challenges

AnttiPHello Shue! (Cops) In this cops-and-robbers challenge, your task is to write a program h that outputs "Hello Shue!". Next, you have to choose a string i and also write a Shue program p, so that p(i)=h. Your score is len(p)+len(i). Your answer will contain the language of p, i and your score (plea...

CSQ: I'm getting ready to post Bandwidth of a matrix. Do you think inputs should be restricted to square matrices, or should submissions need to handle any shape of matrix?
I was rather confused what "main diagonal" meant in a non-square matrix. Apparently it means the diagonal originating from the very top-left?
17:10
Yes; in other words, it's all entries A[i,j] for which i=j. Would it help to include that formula in the challenge?
Yeah, just make it clear.
Otherwise, your challenge is ready to be posted ;)
Hmm, actually... there is one place in the WP article on band matrices that says n × n; all the examples are square matrices; and I think the algorithms for efficiently storing band matrices might not work for non-square matrices. So I think I just changed my mind and will restrict the input to square matrices only.
17:54
0
Q: Bandwidth of a matrix

DLoscA band matrix is a matrix whose non-zero entries fall within a diagonal band, consisting of the main diagonal and zero or more diagonals on either side of it. (The main diagonal of a matrix consists of all entries \$a_{i,j}\$ for which \$i=j\$.) For this challenge, we will only be considering squ...

0
A: Sandbox for Proposed Challenges

awiFlipping Burnt Pancakes, but Optimally! This is based on the Burnt Pancake problem. For a given array, determine the minimal number of flips needed to be made burnt pancake sorting. Note that this is an NP-HARD problem. You may not make an approximation algorithm. Testcases [1,2,3,4,5] returns 0,...

@PyGamer0 Can I use minefont for a project?
18:13
@DLosc Why do I always miss the posting of new challenges? :(
18:53
@mathcat which is will be online?
I'll add the minefont license
> Czech Republic, Netherlands and Portugal will send reinforcements to assist Ukraine
Finally
19:26
Ukraine has a lot of support on Reddit, but it seems to mainly focus on a part of their President's anatomy
19:47
0
Q: Resize the image

l4m2Given an \$n\times m\$ matrix \$A\$ and two integers \$w,h\$, output a matrix of \$w\times h\$ called \$B\$, such that $$B_{i,j} = \int_{i-1}^i\mathbb dx\int_{j-1}^j A_{\left\lceil \frac xw\cdot n\right\rceil,\left\lceil \frac yh\cdot m\right\rceil}\mathbb dy\text{ (1-index),}$$ $$B_{i,j} = \int_...

@NewPosts ...wut is that integral?
19:59
0
A: Sandbox for Proposed Challenges

AnttiPIs it irrational? Your task is to make a program that decides if a real number is irrational or not. As stated, this is obviously impossible, so instead we will use the following definition: p is your program, which takes in a decimal expansion of a number, and returns 0 or 1. If x is an irration...

20:29
0
A: Sandbox for Proposed Challenges

LecdiHow many ways are there to play the notes? You are given a broken keyboard which obeys the following rules: Each key press takes a set amount of time to be processed. Specifically, the nth note only sounds n seconds after its key is pressed. Only one key can be pressed at a time. So it is imposs...

21:05
Why this fail?
@NewPosts hmm, after optimising my golfed answer to make to take less than 24 GB of RAM, it's still computing after over 4 hours...
I think I might possibly post the proof of concept version without a TIO link, and then write a version relatively optimised for speed to verify that it should work
Why can't I delete my word in chat? because it's too old?
21:20
@l4m2 i think so
once it past 5 minutes i think
2m i think
2m and it's locked
@BgilMidol oh yeah 2 minutes
is it ok if i take in a n by n square matrix as two arguments: a flattened list and its dimension n?
22:26
Hooray, quadruple nested chain rule
@AidenChow Comments have a 5 minute limit for editing
I'm being given a graph of something's velocity where the graph's inflection points are marked
How much do you want to bet whoever wrote this question forgot it was about velocity and my answer's going to be marked wrong
Okay phew I guess it was just a red herring or something
Also I hate anything involving speed (rather than velocity)
Not necessarily because it's that much harder, mostly because I'm always paranoid they're using "speed" in the informal context and it's actually still talking about velocity
22:47
Wait why is marking inflection points of velocity bad?
Unless the problem is about specifically about jerk (change in acceleration) which is extremely rare it's totally pointless
Well, maybe if it had to do with acceleration and the inflection points weren't clearly visible, but this problem was only about speed.
Jerks are not rare around here unfortunately :(
Do y'all know the name for change in jerk?
I've only come across it like once so I doubt it's as commonly known
Rehabilitation?
idk, I don't think jerks usually change very much
Huh, apparently there's two words for it. Jounce is the one I know, but there's also Snap.
22:51
lmao wut
Ooh, and there's names for even higher derivatives!
Why tf do people make dumb names like these?
Crackle and Pop
I've never even heard of jerk
@RadvylfPrograms Okay you've got to be making this up
In kinematics, absement (or absition) is a measure of sustained displacement of an object from its initial position, i.e. a measure of how far away and for how long. The word absement is a portmanteau of the words absence and displacement. Similarly, absition is a portmanteau of the words absence and position.Absement changes as an object remains displaced and stays constant as the object resides at the initial position. It is the first time-integral of the displacement (i.e. absement is the area under a displacement vs. time graph), so the displacement is the rate of change (first time-derivative...
There's a table here
Above Acceleration there's two different names for all of them
If you choose the Jounce route, it's Jounce Flounce and Pounce
22:53
I have...questions for whoever made this
Huh, absement is an actual thing people use
Calculus would be more fun if we had to talk about snap, crackle, pop, and absop
But imagine having to figure out if someone's actually saying "abseleration" when you hear "acceleration"
Even spell check doesn't recognize abseleration
"Abberation" doesn't work, unfortunately
"Abation" is also a word I think, but less likely to cause confusion
Aberration is a great word for these, though
I kinda like "abation" actually
It's a little excessively concise, but so's "absity"
And we are code golfers
Boutta buy two new domain names
I'm going to have like six now lol
23:00
CMC: You can get from that article to Philosopher in 4 clicks or fewer. Can you find a shorter path?
I get three
Wait no :(
I have four to Philosophy too
Nice, which path did you take? Mine was hover for spoiler
Wait, you got four to Philosophy? My path takes 5 steps because it goes through Philosopher first
I have three, if I'm allowed to use the "physics portal" link in the right panel
Oh come on, that's too easy
I think have a promising way to potentially do it without any right panel shenanigans
Well, I have three to "natural philosophy" :/
23:06
Oof
Through like a dozen routes, too
Found three
Nice, what is it?
That was a risky hover right there
One click and I'd be 'rolled
I have two to "chinese philosophy"
23:09
Whoa
I don't think two is going to be possible
23:43
Well, I now own radvylf.com and radvylfprograms.com
Neither redirect to my site yet though
I want to do some testing to see if I could potentially use a droplet as a proxy to bypass my school's internet filtering, but I'd need a domain name in front of it since my school's filter blocks going to any site via its IP address instead of a domain name
So once I do that testing I'll make redwolfprograms.com and radvylf.com redirect to radvylfprograms.com and make that my main site
23:58
@user Oh hey I wrote a program to do that

« first day (4046 days earlier)      last day (1094 days later) »