« first day (3765 days earlier)      last day (1373 days later) » 

00:09
@Bubbler Tiny example, although I'm not sure this is what you meant
ngn
ngn
@user i gave you mine tomorrow
10
^ right there is the funniest thing I've seen all day
granted I've only been seeing things for 2 hours, so it might be surpassed later on
Oh I'm so sorry you had such a terrible day (/s, I think it's funny too)
@user well it's easy to be the first king on the hill. staying the king of the hill is a whole lot more harder ;p
01:44
CMC: Until someone decided to upvote me a few minutes ago, my rep (33668) was an anagram of my user ID (66833). Give an integer representing the user ID of a CGCC user, output whether their current rep is an anagram of their ID or not
Also, I just realised I have 35k, not 33k. Ignore the first sentence :P
@UnrelatedString It's no problem, I forgot how much rep I have :P
Also, I should be asleep now, so I'll implement your golfs when it's a reasonable time for me :P
gives me time to maybe get rid of the third filter at the end 😈
well I think I thought of a way to make it shorter at least
maybe
yeah no
shaved one byte off but only if there's no pair of pairs of twin primes without an isolated prime between them
okay regardless of that it fails for n = 5
which is not a test case that is elaborated on in the body of the challenge, but only in the comments, naturally
 
2 hours later…
03:39
Ugh apparently putting my laptop in my backpack just magically causes the SSD to disappear for a few hours :(
Probably just moisture, but it's kind of worrying me
what if you hold your laptop vertically and shake it without putting it in your backpack
Wait it's working now
Running a memory test seems to fix it, bizarrely
huh
schroedinger's SSD
It might have to do with the fact that it actually does work, so that causes it to run the fans for a second and remove any moisture
Wait now it's just sitting there and not booting or doing anything at all
halp
Did the SSD disconnect again mid-boot?
have you tried microwaving it in rice /s
03:43
Disadvantage of having a waterproof backpack: It keeps the water in
I just felt and it's slightly moist in there
wait so it failed to keep the water out
and now is keeping the water in
Probably let a bit in given that I walked through super heavy rain
If it shorted something out and deleted my SSD contents or something like that I'm just going to throw it out the window and follow it down lol
are you able to flip your backpack inside out (by the computer compartment) and like hang it outside or smth
@hyper-neutrino *boiling
03:45
I hear putting your laptop in a rice cooker is the preferred method
well of course, a rice cooker is the only way to boil rice /s
you're missing the obvious way of boiling rice
put it inside glass kettle
ez
The rice is just to add nutritional content to your laptop
I usually add some thermal paste for flavor
does boiling the laptop help?
if your laptop is failing to start up then add rice
starch it up to start it up
5
03:47
Propped my backpack and laptop sleeve open with some sticks, hopefully they'll air out
@lyxal well it evaporates the water, so it'd fix the water damage
I usually soak it in something that repels water, like liquid butter
@RedwolfPrograms 0/10 should have put the bag (and laptop) in an oven
@RedwolfPrograms I was about to suggest using oil but remembered you're american
I deep fried my laptop y'all
Time to bring it to the county fair
And shoot it
America:tm:
also just in case you didn't know I've returned to sus
03:49
that's kinda sus bro
yes
I have no idea whether I should be more or less concerned about my laptop (evidently) detecting a hard drive but still not booting
oh this is wonderful: it's 2021, we have an assignment brief titled "Software - 2020.docx" and the due date is in 2019
If my SSD failed I'm going to be very disappointed
better get that time machine from ngn
03:52
@lyxal this suggests last year's students were also hopelessly late
Okay we're back to no boot device found.
@RedwolfPrograms that's because you need a shoe computer
or a solid shoe drive
that way, it will have a boot decive
*device
36
Q: Draw an hourglass

SickboyAgain inspired by a task for Programming 101 here's another challenge. Input: A positive integer n >= 3. (has to be odd) Output: n lines of asterisks, where the first line has n asterisks and every new line has two asterisks less than the line before. Until hitting 1 asterisk. From there e...

23
Q: Old Spanish alphabetical order

Luis MendoBefore 1994, Spanish dictionaries used alphabetical order with a peculiarity: digraphs ll and ch were considered as if they were single letters. ch immediately followed c , and ll immediately followed l. Adding the letter ñ, which follows n in Spanish, the order was then: a, b, c, ch, d, e, f, g,...

oh hey NFQ actually doing good for once
@RedwolfPrograms you should check out metasmoke/charcoal HQ. I think you'd like reviewing spam network wide
it's seen the foreshadowed fate of its friends and is working hard to avoid the same demise
03:55
@lyxal I'll check that out.
Can't any time in the next few days though.
Speaking of that, I'll probably be offline most of the next few days
I seriously hope that laptop works tomorrow morning
probably not very well; I don't think there's a good way to like string substitute or anything yet
split on ;, get lengths, convert from codepoint
actually could I copy Jonathan's jelly idea? i have split / split on sublist and count / auto-semi-vectorize count
source code could contain non ;# though
but the thing is whether yuno has ascii alphabet in codepage
04:01
it does not but it auto-maps its codepage to ascii
so ascii is multibyte but you can still use ascii
for example 「か」becomes "ka" (my commands.txt lists everything in katakana but the interpreter accepts either)
well if you have ascii in the code it will just automatically attempt to figure out what it means
nice
i have a full mapping of katakana to ascii here
i like that ease of use idea a lot
I know katakana, is it an exact romaji translation or are there changes?
04:03
some are exact, some map to common english digraphs/trigraphs, some are special like
」あ is the uppercase alphabet
」お is "Hello, World!"
also, some are used for symbols like ちゃ is / since full-width slash isn't in the codepage
also, since i anticipate "an" to be more common than "nya" i remapped にゃ
Time to write a challenge about cats meowing in Japanese
@hyper-neutrino oh sort of related to frequency of use
i mean i could just as well do nや it'd just take an extra byte
@Razetime sort of. idrk my though process behind it
all the regular sokuon ones are just turned to romaji directly
04:12
idk if they'd really be that common...
@Bubbler nやn or nyにゃ could work fine
brb adding a mapping for nyan
nyにゃ sounds cursed
yes
@bobble shotgun axes sound cool. where can i get one of those? :P
@Bubbler might be wortha cmc
just the first stnza
I'll put that on my watch list :P (right after creating said list)
04:15
The idea is you shoot them with the shotgun while getting closer, then axe them over the head. I think.
Bruh how you gonna put a movie onto a list of watches?
doesn't make sense
Ain't a movie, 'tis a TV show
because I didn't add a template to my List so it just accepts objects, and as long as I don't attempt to cast (Watch) it'll be fine
@bobble i feel like shooting them once you're within melee range would still be easier though?
actually maybe not. not familiar with the logistics of murder
you helped murder my rep this month ;p
The basic idea is that you can both axe someone and shoot them, so why not combine both into one weapon?
04:18
@lyxal oops
@bobble true. though now you can't throw your axe and still have a weapon :P but it sounds and looks cool so why not lol
@hyper-neutrino enchant it with loyalty obv
Well, once the shotgun is out of ammo you can still axe them
Am I getting put on some watchlist?
set a timer on the trigger so after you throw the axe the shotgun fires and the recoil brings it back
04:19
(not your watch List)
TNB is probably always on some sort of watchlist
> "I don't get it. Doesn't the axe make it harder to shoot?"
"It makes it easier to chop heads off."
i guess there's also the fact that shotguns and axes serve different purposes outside of killing, like it's probably not great to chop down a tree with a shotgun
If you shoot a skinny enough tree trunk enough times, it would probably fall down
only one way to find out
04:24
Hi
elaborate curtsey, trips and faceplants
3
@hyper-neutrino but what if you need to link to anime torrents
what
i believe i am missing something here
pretend i said nothing
Haven't shot at a tree with a shotgun, but having done it with some others it's probably not a very effective technique
04:27
wdym pretend you said nothing, you haven't sent any messages here in the past 2 hours </ funny and original joke>
i haven't shot any trees so i cannot attest to the effectiveness of such an approach
Don't look at my rep. Or change it.
Just 5600 away from an extra funny number :D
I can attest that shooting water guns at a stick planted in the sand will knock the stick over. Also make the sand wet. And stick to everything. And parents mad at wasting so much water.
i don't like sand
how about high ground
04:33
@Ausername Good, someone fixed it.
i don't have it unfortunately, but do not underestimate my power
@hyper-neutrino have you heard of the shotgun guitar
@Razetime That is a terrible idea.
Excuse me it is the greatest thing ever
i have not. can you play funky tunes while murdering someone
04:35
and it's in FLCL
@hyper-neutrino absolutely
beautiful, sign me up
Shotguns have many more uses than just boring old murder you know
like destroying demons
Or cooking
what
04:37
Very tender steaks
is there some special texan dish which involves shotgun shells
a 'murican specialty
@Razetime How'd you find out what the secret ingredient in my chili is?!
Canada is part of America tho
(North America)
(The continent)
04:38
whoever decided that us 'muricans had to share a continent with other people
on that tangent the unironic core of my chili recipes is carrot and soy sauce
a machine gun shoots a lot of things one by one. a shotgun shoots a lot of things at once
@RedwolfPrograms it's not secret if telugu people use it :P
a shotgun is just an async machine gun
8
import multithreading lets you shoot multiple things at once.
04:39
@Razetime is this something to do with "gunpowder" spice
45
Q: Shotgun Numbers

Martin EnderThe Shotgun numbers are a sequence with a rather simple definition but some interesting structure. Start with the natural numbers: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ... Now take all numbers at indices divisible by 2, group them into pairs, and swap the numb...

For some reason there's a shotgun round next to the printer downstairs. Never bothered to ask why.
there's a number sequence golf for "shotgun numbers" because of course there is
more like why not
martin ender has the best challenges
04:41
@RedwolfPrograms what if the printer starts sending your data to the government
gotta always keep yourself protected
@hyper-neutrino Fortunately it can only send as fast as it can print
Right now it's trying to understand your Javascript.
is such a feat possible?
"understanding Javascript" is a bit of an oxymoron
Probably not.
I can read JS about as fluently as English when it's written by someone reasonable
04:47
how many reasonable people exist?
it's me, obviously
You know, there's a whole site for making your code more readable.
That is bad JS
I wrote it in a hurry
Both from a golfing standpoint and a readability standpoint
Very well golfed JS is actually more readable than half-golfed JS
Really?
04:49
[citation needed]
Ever seen an Arnauld/xnor/Neil/tsh/... answer, compared to one from like four years prior?
The recursion and stuff is much easier to follow than all the weird for loop tricks
Not for me...
Sounds like you need more practice at getting outgolfed and trying to figure out how on earth it's 20% shorter
I try, but recursion is a pain.
recursive solutions actually intuitively make more sense
04:53
Recursion is fun
for me, most of the time
i mean, you define fib as "sum of last two", not "take 1 and 1 and keep replacing the first with the second and the second with the sum N times"
For loops suck when you use them in any way other than i = 0; i < x; i++ or similar
just one is more efficient without TCO, and one is more intuitive
for loops are just compacted while loops tho
so they're alright. i still like recursion better
Recursion is about identifying and exploiting subproblems
I just use recursion as a shorter alternative to loops/
04:56
i have a bit of practice finding the appropriate recursive relation a) from doing DP problems and b) because i still don't know how to loop in racket/scheme if there is even a way, so i had to learn how to recurse with accumulators to use TCO properly instead (for my CS courses)
@RedwolfPrograms Btw, if you can show me how this takes input, I have some ideas on how to golf it.
I...I honestly have no clue
When you don't understand your own code
05:19
So there was a golf question on Mathematica SE, which would have been closed as unclear here :P
lol, mathematica has a code-golf tag with 8 questions? nice :P
Graphics[Interpreter["Character"]["yin yang symbol"]["Glyph"]]
and of course, the built-in, because mathematica
05:37
@bobble this has too few answers for a question with a defined recursive formula
we need to get on this quick
05:51
What should I do about this?
@Ausername Just wait until enough opinions are gathered (via votes or answers)
It's just being ignored though, aside from several upvotes.
No one has an opinion really, but no one disagrees...
If it accumulates more upvotes then some high-rep user (power user?) will hopefully address it
(Properly using CGCC.SE requires patience in multiple places. And you can always ask for more feedback by regularly bringing it to chat)
05:59
I keep forgetting about it. I've upvoted it but I typically will wait for more feedback on non-urgent stuff like this
(it hasn't been a week yet; getting stuff done within 2 weeks on SE is already quite impressive, lol)
Honestly i think it's about as useful as an tag
06:37
True, but xkcd isn't a language.
I don't think minecraft is either
makes more sense than JS /s
06:40
We should have an "implement the XKCD programming language" challenge.
@Adám I mean [1, 2, 3] + 2 => False and [1, 2, 3] + 4 => True kind of make sense. + would be acting as a "does not contain" operator
@Adám Really no.
2+2 = Done?
@Ausername [1]
oh I thought it'd be called Minecraft Command / Command Block or something like that
06:41
@Ausername 2 + "2"
then again idk if there have been like schematic submissions
@Ausername 2 + 2 has already been calculated, so why do it again?
@hyper-neutrino There are pure redstone as well.
@lyxal Ummm....
in that case, the other point is then that questions to be tagged minecraft aren't about the minecraft language but rather some aspect of the game
It is all explained.
06:42
idk though. gonna wait for more feedback before offering more specific feedback myself if any
@lyxal No, it basically means 2+=2
@Adám isn't that just deadfish
Sure whatever
@Razetime How so?
it uses the commands xkcd right
or is this another language which was specified in an xkcd comic
06:45
That.
oh well
this is just javascript
i think the tag makes more sense than xkcd. i definitely think xkcd shouldn't be a tag but i'm unsure (leaning towards yes) for minecraft tag
@Razetime No, but clearly related.
@Razetime How dare you!
Javascript's not that bad.
06:46
@Razetime It's more like aviascrjpt
@Bubbler js for birds?
I dig it
@Ausername yes it actually is
@Razetime what about js for bees? Apioscript?
@lyxal Python's indent sensitive
@Ausername javascript destroys the souls of many.
And is useless for expressions
06:47
oh no, i have to format my code reasonably
@Ausername what?
@lyxal How
@Ausername I mean, look at redwolf. Observe the impacts JS has had on him and tell me JS isn't bad. ;p
@Razetime Ok, how do you filter items out of an array (Rarr list) in Python?
filter
06:48
not a fan of python's indentation thing but it's probably the most flexible language ever
@lyxal Redwolf is fine.
@Ausername you're just as inflicted by the curse of JS then
no fine person likes chromebooks
4
I give up, I'm losing this conversation.
06:49
you're not losing this conversation, you're A username
if you're gonna surrender, at least get your facts right
;p
I'm not gonna surrender, I'm A username
I will strategically retreat from TNB.
Bye
We did it fam we won.
07:04
What happened to E man?
@Wasif I don't understand why that got a lot of stars, but as long as this does, I'm fine.
@Ausername I returned to sus
07:37
note that E is marked as "wrong" while sus is marked as "right"
therefore, sus over E
so susE
0
A: Sandbox for Proposed Challenges

Command MasterCalculate \$ \lfloor n \log_2(n) \rfloor \$, exactly code-golf math Given an integer \$ 2 \le n \$, you need to calculate \$ \lfloor n \log_2(n) \rfloor \$, assuming all integers in your language are unbounded. However, you may not ignore floating-point errors - for example, in python lambda n:in...

oh we're calling JS bad
have you heard of JS but only 6 characters
those being []()+!
I'd call it JustStop
wait what happened while I was gone @Razetime
rain
07:54
This is simply insane. I managed to build an algorithm that efficiently evaluates untyped lambda calculus and constructs the normal form. And it's modified from a major conference paper. And it took only two weeks.
13
Or, rather, OMG, because it's beyond insane:
Apr 21 '20 at 9:21, by Bubbler
Though I'd label it as hard, but then the difficulty scale on CGCC goes like easy, medium, hard, insane, OMG, legendary.
gg
I'd star it ten times if I could
also
I managed to finally figure out how to turn a string into a vvariable
that means I don't have to suffer writing a method
CMegaC: Take a ULC expression and reduce into its normal form :P
yeah, that's not happening in the next month
this is amazing
08:12
@Bubbler worth a challenge in main?
I guess it might be, as googling "fastest untyped lambda calculus" gives practically nothing (except for the mentioned paper)
08:27
@Bubbler wow, did you build this on gitpod?
0
A: Sandbox for Proposed Challenges

BubblerFastest untyped lambda calculus evaluator fastest-code functional-programming lambda-calculus interpreter What it says on the tin. Mainly because googling "fastest untyped lambda calculus" gives almost zero meaningful results. Challenge details coming soon. Good starting points include this PEPM ...

08:40
oh
there's a whole lot of chemistry jokes
for example Na
Sodium Sodium Sodium Sodium Sodium Sodium Sodium Sodium Batman!
Huh, that's actually good:
― Do you know any chemistry jokes?
― NaH.
HeHeHeHeHe.
@Ausername That's impossible, I think.
08:55
To the site, I mean.
Oh, yes. Nice read!
09:37
> TryItOnline accepts Piet code, but you have to upload it as a hexdump.
It just says that without any link to TIO, and it doesn't "introduce" or even mention TIO before that :P
Here's the code for prime numbers in my new language!
PUT 2 IN DAT e
REPEATERER 100
PUT e IN DAT f
TAKE AWAY DAT 2 FROM DAT f
PUT 2 IN DAT i
PUT 1 IN DAT p
REPEATERER f
PUT e IN DAT g
MODULO g BY i
IF DAT g IS TWOOFY DEN
ODDERWISE
PUT 0 IN DAT p
BREAK DAT REPEATERER
END DAT CONDITIONAL
ADD ONE TO DAT i
STOP DAT REPEATERER
IF DAT p IS TWOOFY DEN
PRINT DAT THINGY e
END DAT CONDITIONAL
ADD ONE TO DAT e
STOP DAT REPEATERER
Very well spelt. (Is 'spelt' a word?)
I mean, it's more readable than Malbolge...
I think it's Turing-complete.
ngn
ngn
09:55
@Bubbler starred. no idea what the significance of this is, but it looks clever :)
0
Q: 1. Construct a graph with arbitrary number of vertices

preetham sharma Construct a graph with arbitrary number of vertices and find whether the graph has an induced K13 or not? Note that Kis is a complete bipartite graph with one vertex on one partition and three vertices on the other. You have to device an efficient algorithm to check whether the graph is K13-free...


« first day (3765 days earlier)      last day (1373 days later) »