« first day (3794 days earlier)      last day (1053 days later) » 

11:01 AM
@Ausername you can probably construct a TC complete language that doesn't
 
Even with no IO, you can still store the program's source code...
 
@JoKing even /// has a quine
 
@StackMeter just add a restriction that the first byte of the output can't be the same as the first character of the program
 
0
A: Sandbox for Proposed Challenges

StackMeterLargest number with no repeating substrings of length \$l\$ Inspired by this question, in turn inspired by this one. When I read the above questions, I thought: "Cool". And then I thought "What if we go further?" Therefore, in this challenge, you must find the largest number that has no repeating...

 
@JoKing oh
 
11:29 AM
@JoKing "TC complete"?
 
:(
 
0
Q: Minimal distinct character quine

A usernameYour challenge is to construct a proper quine using as few distinct characters as possible. Scoring The fewer distinct characters, the better. Standard quine rules apply.

 
11:54 AM
Morning!
 
'bout time
\s
 
@RedwolfPrograms it's 12:54
 
Not going to be able to talk for about 10-12 hours soon
 
@StackMeter laughs in 9:54p,
*pm
stoopid enter key being in the dark
 
It's 60:54 here
Err, 06:54
 
11:55 AM
@RedwolfPrograms relevant link
 
CMC: Understand Redwolf's Javascript.
Or mine, for that matter.
 
@Ausername hey it's usually courtesy to make CMCs actually solveable
 
True, nvm.
 
@Ausername CMC: understand Javascript
 
Hey!
 
11:57 AM
My Javascript in 6th-7th grade was cursed because I didn't know. My current Javascript is cursed because I like it that way.
 
my coding experience boils down to me going to stackoverflow and typing "how split string" or the like
 
and it is not going to change
ayyyyy 900 rep
now I'm 91 from being a long time user
 
It's going to take me a while to get to 10k. At the end of May I predicted that I'd reach 10k by the start of August, but I doubt that's accurate.
@lyxal You wrote Javascript?
Hey
Yes I clicked that
 
12:02 PM
@lyxal you were the chosen one - you were meant to destroy the JS, not to join it!
 
@StackMeter what did you think of it?
cursed enough? ;p
 
Yes....
 
the best part is that I can see how many people have viewed my javascript
4 people have viewed my javascript
 
@JoKing you said that there was some room for improvement in the Python answer(s) - what do you mean by that?
 
@lyxal Can you add an easter egg to Vyxal: the program lyxal rickrolls the user?
It has no useful functionality...
 
12:05 PM
@Ausername can you stop reading my mental to-do list?
I'd appreciate mental privacy
 
@lyxal You lost that when you signed up to the redwolf hivemind.
 
also @Ausername have you seen my golfing suggestion yet?
@Ausername yes, but you theoretically shouldn't have the permissions to do so
 
@lyxal Which one? You've given me at least 40...
@lyxal You should've read the small print.
 
@RedwolfPrograms is this how you treat your recruiters? Do you make them like the commoners?
Smh.
 
I hadn't before that.
 
12:07 PM
@Ausername well now you have ;p
 
@lyxal Your home directory is publically readable by default until you upgrade to Ubuntu 21.04. You can use chmod on your brain if you want.
 
Nice (ab)use of my o flag.
 
@StackMeter i'm not sure what the confusion is. minimum characters for TC complete and utter completeness is 8 characters (or 7 for python 2). Your answer is not that, so therefore it can be improved
 
@JoKing ok good luck
 
I got a Necromancer on meta for the sandbox of the minimal quine.
 
12:11 PM
I got a necromancer badge for a sandboxed post too once
it had +8 net score
 
@Ausername that is epic
 
@lyxal Nice
 
@Ausername yet it only got +7 score on main
 
Lol
Mine is +5 / +2
 
@Ausername I have been unable to reproduce this issue
I have one challenge on main and it has +9
 
12:13 PM
Necro badges on sandbox is pretty common
 
@RedwolfPrograms This was my first.
 
@Ausername and for almost a year after posting, it only had +4
 
@Ausername o
 
It's still impressive though, I've only had that happen once and it got +40 on main
 
The Minceraft challenge had +4/+40.
 
12:15 PM
wow I'm almost back up to 14k
 
@lyxal wdym
 
The only reason I'm pushing for more rep is so I can get to 10k and see the 'many memes of ppcg' post.
 
@StackMeter rep
VyMonth put quite a dent in my rep
 
@Ausername The avocado post is also quite good
 
@StackMeter I went from 14.2k down to 13.5k
 
12:17 PM
@lyxal It did
And gave me a lot.
1.5kish.
 
It got me to 666
 
CMQ: How many profile views do you have?
2
 
833
 
149
 
12:20 PM
529
 
CMQ: Make everything a CMQ
 
CMA: no
 
CMQ: Disobey A Username's CMQ
 
@lyxal where can you see that
 
CMQ: Javascript; bad or bad?
 
12:20 PM
CMQ: You cannot
 
@math on your profile
 
CMN: CMA = Chat Mini Answer; CMN = Chat Mini Note
 
@StackMeter CMQ: Hey!
 
oh there
 
@StackMeter i pick the third option here
 
12:21 PM
@lyxal there is none
 
@StackMeter you haven't heard it yet
 
CMZ: 11 lyxal out of the universe
 
@StackMeter the third option is "absolutely horrible"
 
@lyxal wow I promoted the pi manifesto to 1039 people
half of that is probably me
 
@math very well done
CMQ: Golfy things you can do with two numbers?
 
12:22 PM
@lyxal add them
 
@math yes, but I already have that
 
CMegaQ: Javascript - bad, really bad, awful, deplorable, or worthy to have its source code expunged?
please pick one of the 5
 
Good but not good in the sense it's good
 
@StackMeter "one of the 5"
 
unless there's something worse than expunging
in which case, do that
@lyxal you know what I meant
 
12:23 PM
I will not stand this JS bashing
 
@RedwolfPrograms Neither shall I
 
Only I can do that
 
Let us unite
 
let's make a meta post to see if we should ban js lol \s
cc: @StackMeter
 
Let's make a meta post to 11 lyxal.
2
 
12:24 PM
@lyxal the number that was there before i checked + 1
 
@JoKing you're Joking
 
CMC: Calculate 5.
 
@Ausername (5).constructor("5")
 
392
Q: Write a program that makes 2 + 2 = 5

qwrWrite a program that seemingly adds the numbers 2 and 2 and outputs 5. This is an underhanded contest. Your program cannot output any errors. Watch out for memory holes! Input is optional. Redefining 2+2 as 5 is not very creative! Don't doublethink it, try something else.

 
@Ausername what does "11 lyxal" mean
 
12:27 PM
Mod Abuse -> Mod Abuse!!!! -> Mod Abuse!11!1!!!! -> 11
 
all i do with my mod powers is edit other people's messages
 
@Ausername 2 + 3
 
I'm approaching the airport, so o/ for now!
 
@RedwolfPrograms o/
 
12:30 PM
@Ausername do you have discord?
 
@RedwolfPrograms peace
@lyxal should I actually do it or no
 
@StackMeter it's a joke
however, I'm not JoKing
 
@RedwolfPrograms cursed
And I'm still trying to figure out how v is meant to work.
 
@Ausername is that v as in vectorise or v as in something else?
 
vectorise
 
12:35 PM
it's easy
compare 1 2 3W 4 5"6J + and 1 2 3W 4 5"6Jv+
and you'll see how it works
 
Kk.
Also why do you have all the different command dictionaries instead of just having one and making the parser recognise digraphs as single elements?
 
@Ausername you mean why do i have commands, math_commands etc?
or something in vyparse?
 
@lyxal Yes that
@lyxal I see
 
I'm still going to have to figure out Generators. Javascript has them, but they're quite different to Python's.
 
12:39 PM
@Ausername because otherwise the definitions would overwrite each other
@Ausername that's going to have to be something we discuss in the Vyxal chat room
 
@lyxal No because you could just store, for example, m and øm as seperate compiled strings.
@lyxal Ok.
 
CMC: perform the following Java code and then try to do any math:
 
@Ausername I could do that, but I like having 4 dictionaries
makes it clearer which belongs to what
 
Integer[] array = (Integer[]) c.get(cache);
fisherYatesShuffle(array);
 
@lyxal Ok
 
12:55 PM
@NewPosts unary easily wins this for free
@lyxal 4491
 
1:32 PM
k
 
@StackMeter Done
 
wait what
 
(turns out i was looking at the wrong python minimum TC, it's actually 9 characters)
 
1:58 PM
@JoKing does TC imply that a quine is necessarily possible? I don't think so
 
you can definitely add arbitrary restrictions to limit quine creation, but for standard languages you're usually fine
i think if you can output any arbitrary string, you're usually fine
 
Morning (still)!
 
\o
 
Security took a surprisingly short time, getting food took longer lol
 
Why are you even at the airport?
 
2:06 PM
short not long
@pxeger To get on a plane :p
stoopid
 
ah thanks for the clarification
 
Some sorta vacation thing
They make you watch a 30s ad to use the wifi
So I'm on my mobile hotspot :p
 
0
A: Sandbox for Proposed Challenges

StackMeterSmallest number of panels to represent \$1\$ through \$n\$ in base \$b\$ Inspired by this question. (I have taken a lot of inspiration from Puzzling recently). Because not all of you spend all your (non-code-golf) time looking at puzzles, let me explain the relevant details. The challenge involve...

 
@lyxal 311
 
@JoKing No you can't. If a language is TC, there are an infinite number of quines in that language
 
2:20 PM
what if my language always prints some gibberish before executing the actual program?
@cairdcoinheringaahing if you can interpret the output however you like, sure
 
@JoKing just put the gibberish in the program
 
syntactically invalid gibberish i mean
 
32
A: Is it possible to create a quine in every turing-complete language?

DuoSRX Any programming language which is Turing complete, and which is able to output any string (by a computable function of the string as program — this is a technical condition that is satisfied in every programming language in existence) has a quine program (and, in fact, infinitely...

 
...isn't that what I said? "Any programming language which is Turing complete, and which is able to output any string"
 
I was responding to the "You can probably construct a TC language that doesn't [have a quine]", which you can't
 
2:24 PM
Boarding soon, o/ again
 
@cairdcoinheringaahing here is my newest language, "Python, but it prepends the code with print('1/0')"
is that now not TC?
 
There's almost definitely a Quine in that language
 
uhh, 1/0 results in an error no matter what surely
 
@JoKing it's in a string
we're safe
 
2:27 PM
... no it's not? at least not for a quine
prepends the code, not the output
 
@JoKing maybe it should be print("1/0;");
 
And also in JS it outputs Infinity.
Also don't use that as an opportunity to start another JS rant
;)
 
@RecursiveCo. 1/0 is indeterminate
it should print Indeterminate
 
@pxeger print outputs a newline anyway, though i suppose the second ; should be necessary, yes
either that or i'm forcing every Python but... program to start with a newline
 
My understanding of quines consists of "Jelly, 3 bytes" and that SO answer tbh :P
 
2:30 PM
0
Q: Outputting Blum Integers

EliteDaMythAccording to Wikipedia, In mathematics, a natural number \$n\$ is a Blum integer if \$n = p \times q\$ is a semiprime for which \$p\$ and \$q\$ are distinct prime numbers congruent to \$3 \bmod 4\$. That is, \$p\$ and \$q\$ must be of the form \$4t + 3\$, for some integer \$t\$. Integers of this...

 
@JoKing thing is, printing print('1/0') and then 1/0 is not the same as print('1/0');<newline>print('1/0')
maybe i'm misunderstanding
 
@cairdcoinheringaahing Well, that answer says that the language has to have two properties: Be Turing complete and be able to output any arbitrary string
 
But look. Here's my quine: s='s=%r;print(s%%s)';print(s%s). Except now the output now has a 1/0; before it, which means I need to prepend 1/0; to my code to match: 1/0;s='s=%r;print(s%%s)';print(s%s). But now it errors! So a quine is impossible (using STDOUT, at least).
 
anyone know any other Python quines?
I'm not good at quines
I'm yet to come up with a PPL quine
 
@RecursiveCo. i'm not adding it to the output, i'm adding it to the code
see pxeger's message
@RecursiveCo. PPL?
 
2:32 PM
Yes, that's my language
stands for "Primitive programming language"
it is quite primitive, can barely do anything
 
well, i see no documentation but for "this is not TC", so I have no idea how it works
 
Browse my PPL answers on the site to see how it works. Just search "ppl" and click on "Hello, World!", fizzbuzz, prime, minceraft, over function.
 
is the source code available somewhere?
 
Sort of, used to power the online workspace
 
Generally the format of a quine is:
1. assign data to var (`x = [1,2,3]`)
2. Print initial prefix of assignment (`x=`)
3. Print evallable version of data (`[1,2,3]`)
4. Convert data to a string representing steps 2-4 (`map(chr,x)`)
 
2:45 PM
I have a million ints and I want to find the smallest ones up to a given sum. That is I have a limit T and I want to find as many ints as possible with the rule that they must add up to at most T and they should be the smallest ints that do. I am allowed a fraction of an jnt for the last one. I could just sort them and add them from the smallest until I hit T
This is the fractional knapsack problem
But can you do it in linear time with a clever partitioning somehow?
 
VTC as a homework problem
(lol)
 
@pxeger :)
Yes I guess " how do you solve fractional knapsack in linear time" sounds like homework
Except I also want it to be fast :)
 
3:04 PM
CMIPS: Is there a polite way to ask someone if English isn't their native language, and if so, ask them to say something in their native language and then use Google Translate?
 
@user "I'm having trouble understanding your English. Could you consider using an automatic translation service such as Google Translate?"
 
Good idea, thanks
 
0
Q: Tips for golfing in Z80 or SM83 machine code

NoLongerBreathedInThere's only one question for machine-language golfing, and it's for the ia32 and amd64 architectures. Here's one for a predecessor of them: the Zilog Z80! The ISA is available here. As usual, if your tip is only applicable to a certain environment/calling convention, please indicate that in your...

 
What's a CMIPS?
 
Chat Mini Interpersonal Stack Exchange What pxeger said
 
3:16 PM
That's a lotta acronyms
 
(InterPersonal Skills)
 
At least my question was vaguely on topic :)
 
wow I missed stuff
 
Nah, this is TNB, there's nothing to miss :P
 
I meant on the main site lol
 
3:32 PM
Oh yeah, we had a few questions come in
 
15 exactly
 
@Wezl Are you counting deleted questions? Cause if not, the 15th newest question was mine posted 2 days ago
 
not counting deleted questions
 
we've had a lot more questions in the past week than we get on average I feel like
 
That's great
 
3:38 PM
I don't think the weekly site analytics update until tomorrow :/
But we've had 29 questions this week so far, we had 27 last week and 40 the week before that
We've had a weekly average of 28 questions/week since Jan 1st
 
3:56 PM
@lyxal 9127
 
OK seriously the JS hate is getting old. I mean come on, without JS you wouldn't be here hating on JS, you would still be watching Back To The Future for the 10000th time without anything to do.
(in response to StackMeter's starred message in the sidebar)
 
^^
 
Yeah, without JS, imagine how much better the world would be :P
 
@RecursiveCo. Imagine needing JS to view this page. Made by the "I interact with the internet via telepathy" gang
@RecursiveCo. @AaronMiller For this suggested edit: reject edits to code, as a general rule. The appropriate action is to comment the fix, not to edit
 
 
4:06 PM
@cairdcoinheringaahing Should I roll that back?
 
Thanks
@user document.querySelectorAll('script').forEach(el => el.remove())
wait, that needs javascript
 
@RecursiveCo. clear(this) ez :P
 
Plus, without javascript I would not have sufficient rep to be here as I mostly answer with js. Not sure if you think that's good or not. ;)
 
@RecursiveCo. It does with the browsers we have today, but it wouldn't if a less quirky language had been used instead of JS
 
 
1 hour later…
5:15 PM
CMC: Output 1456272783663595155142511880198365564428426960425901485823498318165626402957331156009996231188621991411230284629328968440735634922516936001941194576477498649071819607554257173475140715519250542515567025469295474041083350915205487241403337382632136036492190414670340303635402216151319456182492462299252774807287829978368215360354654172111190713652384335331470631430543588478609548044025424297165932235145396628515410104225859520728447672168628483523050
One way of getting that is by encoding the /// quine as binary, then converting to dec
To avoid trivial solutions, your answer should be shorter than the number of digits it has (451 bytes)
 
trivial solution: “7¬Ṁz¢_ƈȮḃḂĖẹFʋȦƥỤɱɼa6jṗ×H ^Ṡ⁸BṢ€ẉXẏ⁹DgṢẊṁHƲQ]"'pḍQ⁻QḤX@¹ɓƭhxƤ4ȷƑỴẹṃƁBẒSḳȥæ=ḌƓzb'%ẎɠṗṚGẸȮṇɓĿeuNḊḃaeẓḢƁ-ẇĠ¥ṪȮȮ=rṛ`.KÆ<Żƥ@dƭuGḊɗÑṖṛṘ⁶ʋʂḞlṪ<ɦø&Ȥİṣ½VẎ>eıİøɗ]9ƬU{¦ßʠ¦ỵƬ⁹Ẋ³aPṾ7@.ẠUḍWḶỴyṀẊ⁷ƥ1ʂọḟ[1’ :P
 
@cairdcoinheringaahing Ugh, wrong link
@hyper-neutrino Your code formatting seems a bit off there :P
 
you saw nothing
 
@cairdcoinheringaahing It's prime factorisation is disgusting :/
 
5:31 PM
@cairdcoinheringaahing what's the prime factorisation?
factordb says it has a composite factor of 689539422649018752878861658750616995870369544935202767974383066912392056136428966599586273912082194848945422301346607846
178003703930933971893839615747294514108676629444000650335065089381496030926663522085890041923853950574211267899999212757
230112472592717826970496604387131426478524328787373026018254586901814829886298546537728002164876626205001247347395284278
240746034933880796441215665284294577160986480091155287816579871455635051810965519299 but doesn't know any factors of that
 
[2, 5, 5, 42239, 5530987843, 124668403225962171560473932278468939652371885521644377979585276573964810310364836323431831110622492620970568692921751527013436558719793586769928399523928317936220896778420319217299912149073951766171604309181635987163740105550484736438646472944365224596050124959657519244909218376404290496172950278938913028779700011048920784570236880355519921724269706986460334955530300002845404272788900665152768653624119001911045751069077418623979393]
 
what'd you use to factor it?
 
Jelly's Æf atom :p
 
ah lol
 
Took ~15 seconds on TIO
 
5:33 PM
and that 1466... number is a probable prime :/
 
Yeah, I think sympy uses a probabilistic prime test
 
6:14 PM
@cairdcoinheringaahing 184 in python
not very good at this sort of thing
 
ngn
6:27 PM
@cairdcoinheringaahing much faster with pari/gp
 
6:40 PM
@Bubbler If you're not working on one already, can I try making a BF interpreter for TIB?
 
7:20 PM
:\ I almost fell for the rickroll but there was none
 
7:43 PM
@RedwolfPrograms Pip, 1 byte: 0 :p
(Numbers, strings, and booleans are all the same type)
 
@lyxal 3,844
 
8:07 PM
is there any way to base-64 encode unicode characters in JS
trying to use btoa(JSON.stringify(x)) to encode values in my online interpreter's input fields but it breaks when my code has non-ASCII characters it seems
 
Map to unicode code points, then base-64 encode those somehow?
Hacky solution: map to code points, join on a non-digit character, base-64 encode
 
that's a possibility too
there's some encode/decode-URI-component thingy i saw that might work
not too sure what the most "correct" method is
 
@hyper-neutrino if you remember the edit you did on the "draw an ascii grid" post, how did that work?
I saw that someone proposed a change, but I wasn't sure how the edits were actually formatted
 
@Underslash they changed "based on [this closed challenge], [related]" to "this is based on [this closed challenge] and [a related one]" and Ascii to ASCII
 
8:13 PM
i rejected it because you never said that your challenge was based on the related challenge but rather just that it was related, but Ascii => ASCII is fair enough
 
what about the "-"s that were added (or removed) to the grid?
 
i think those are strikethroughs of spaces lol
 
Looks like they removed spaces at the ends of the lines
 
8:14 PM
yeah
either intentionally or not
 
cool, thanks for the info
 
Is there a way for <10k users to see specific review tasks without being directly linked to them?
 
I was looking at it
It was in my notifications
I was just confused how exactly the edits worked
 
That took you to the review task itself?
 
this is what I see:
 
8:18 PM
Huh, I didn't know suggested edit notifications take you to the review page
@hyper-neutrino Apparently, retagging doesn't notify the asker, so its unlikely many people got notifications from the status retagging
 
oh. good to know :D
 
Yeah, we only flooded meta, not everyone's inboxes :P
 
8:38 PM
well, i can re-bump the other posts, i can't un-notification your inbox :P
 
yesterday, by caird coinheringaahing
@JNat I'm guessing that the question ads display a different image in the ad than in the normal image ads? The question body says "staff will generate a frame for the ad with this site's theme, for brand consistency". Could you elaborate a bit on that?
@JNat In case you missed this
 
8:52 PM
so somehow my list parser is parsing 1 2 3 as [3, 1, 2]???
oh. nope. i'm just outputting my values incorrectly. i'm dumb, nothing significant
 
9:28 PM
@Bubbler Also, for TryInBrowser, how are you making everything work without a GitHub action? Simply forking your repo didn't work because pkg/package.js wasn't found, as expected
(sorry for the pings)
CMC: Ugliest code
 
*browses CR questions* :P
 
*browses CR answers* :P
 
9:49 PM
wow, I actually repcapped today
 
Epic
 
yeah, I guess I should start tracking Legendary now...
 
Oh lol, you actually got Epic
 
neil has had epic for quite some time
they just never stopped tracking it :p they've been at 50/50 for quite some time iirc
 
yeah I got it some time ago, I've apparently hit 200 rep 11 times since
 
9:53 PM
lmao
 
this was a mistake.
@user browses my JS :P
 
Unfortunately I didn't have much time so I didn't read it through that thoroughly in the Sandbox, but there's no requirement of bijectivity or even injectivity...
so Makonede's solution is technically valid
 
Yes :(
And pxegers
 
oh is pxeger's not injective?
pxeger's is at least clever though / in the spirit of the challenge
 
True
pxegers is injective
and clever
 
10:36 PM
> All badge queries exclude Community in an effort to treat robots as second class citizens so that they don't get any delusions of grandeur and remain in their place of servitude to our great cause. This is quite intentional.
 
Lol
although an 05AB1E port will be a byte shorter :(
 
@cairdcoinheringaahing We need to fight for robot rights!
 
10:55 PM
@Ausername Literally only because of Ǐ instead of Æf :P A "translation" into Jelly of that comes out at 14 bytes
 

« first day (3794 days earlier)      last day (1053 days later) »