« first day (4327 days earlier)      last day (517 days later) » 

12:11 AM
0
Q: CGAC2022 Day 4: Can Santa fit down the chimney?

jezza_99Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. Christmas is coming up, and Santa hasn't kept to his diet very well this year. Due to his size, he is getting the elves to collect a list of all the chimneys he will be able to fit down. Unfortunately, chimneys t...

 
12:23 AM
0
A: Sandbox for Proposed Challenges

FmbalbuenaWrite a program that prints a program that's almost quine. code-golfquine Your task is to make a program in L that takes n as an input number, output a program p in L that prints the first n characters. Rules You can't make a program that outputs a program p, if you removed a substring of p and ...

 
close the window and nuke your browser history
it's the only way to be sure
 
12:51 AM
@mousetail What are the specs?
 
O_O
-_-
:((((
 
is that :( because you're so close or because you once passed the milestone and got downvoted?
 
nah i didnt pass the milestone yet
 
would you like to?
 
hmmmmmmmmmmmmmmmmmmmmm
very tempting
 
1:03 AM
haha just kidding you don't get a choice
welcome to the club
 
LOL LETS GOOO
10k club yessssss
ok now i gotta see some juicy deleted posts
u got any off the top of ur head
 
one second
I actually have 2 such posts
gotta find the links
 
You gotta avocad
 
haha this is hilarious stuff
 
1:16 AM
The adovocad makes a polite request. Do we choose to achnowledge it?
 
I thik so
 
wtf this is strange, on meta im still at 9999 rep
-_-
 
caching
 
Caching
we love it
 
im getting trolled by caching :\
 
1:21 AM
I am going to juic an avocad one day
All I'll need is a sledgehammer, a coffee filter, and commitment
 
 
D:
this is so sad
 
2:20 AM
That is a defeatist attitude
We will juice an avocado
10
 
 
2:58 AM
I intuitively feel like the first rule makes the challenge either trivial or difficult and very interesting and I can't figure out which
Since it's basically asking you to make an infinite slice of a program which can have some boilerplate tacked on the end to print how long that slice is
I think the irreducibility requirement is basically a dead letter
 
 
2 hours later…
5:20 AM
Anyone using the new C23 features?
 
where?
has it been released?
 
Coming in gcc 13
I mean it exists in gcc 13 already I think
 
oh
 
I didn’t know auto had been in gcc since version 11
I guess clang will have c23 support too
 
 
1 hour later…
6:45 AM
@graffe new c standard looks good
 
 
2 hours later…
that's
oddly specific, even by bakery move message standards
 
Don't vtc, flag as spam
 
@UnrelatedString I still have a bit of bill wurtz energy from interacting with gpt chat :p
 
You've probably seen it but it's where the corn idea came from
 
9:20 AM
lmao
 
9:38 AM
@lyxal Maybe should've waited until it was dealt with
 
oh i did not realize that it's an actual (low quality) programming question
all i saw was turkish and a link so i just flagged as spam lmao
 
@UnrelatedString but the link goes to some law consultancy website, pretty sure it’s spam
 
the question seems to be for help making the law consultancy website :P
they can spam it later once the menus have subtitles
 
9:55 AM
@UnrelatedString in stack overflow
Wtf is my phone doing lmfao
 
i know iphones try to smart emdash
not really sure how to avoid it beyond insrting then deleting extra stuff in between
 
@UnrelatedString ok that worked, pretty annoying tho
 
yeah
real pain in the ass
 
Wish I could turn that off
 
@emanresuA even still, it's low quality and would have been moved whether spam or just vlq
 
 
3 hours later…
12:35 PM
immensely disappointed to find out my headphones don't fit over my santa hat
 
1:07 PM
0
A: Sandbox for Proposed Challenges

SuperPizzMerging strings Not sure if this is already done Basically, take two strings of reasonable length (like <32 chars) of numbers and X's and find the shortest superposition of those strings such that there's no 2 numbers at the same position. Number+X or X+X is allowed. Print the result.

 
 
1 hour later…
2:19 PM
0
Q: Output the length of (the length plus a message)

virchau13The task is simple. You're given an arbitrary string message. Return that message prefixed with a number, such that the length of that number plus the message equals the number. In other words, the length in your output must be the total length of your output. If multiple candidates exist, you ca...

 
 
8 hours later…
9:53 PM
Hello!
 
10:27 PM
yeah sex is great but have you ever replaced 30 lines of awful kludges with 3 lines of streamlined perfection
4
 
i have done neither 😎
 
Same
 
10:43 PM
skill issue
 
@Ginger I've replaced 30 lines of streamlined perfection with 3 lines of awful kludges :P
 
although for it to be a fair comparison I'd have to have an idea of what both things are like, not just one
 
11:08 PM
It'd also depend greatly based on the circumstances
For example, turning 30 lines of awful Java kludges into 3 lines of streamlined perfection won't feel like a huge difference because 30 and 3 are basically the same in the Java world and you'll still have 30k lines of awful kludges left
 
it really just means you hid 100 lines of awful kludges somewhere else
 
Or that someone else's library did it for you
 
I think at least a couple of really nice Java libraries I used had an ungodly amount of reflection inside
 
no surprise there :P
reflection seems like a godawful idea for what java seems like it should be
but considering java is actually java, it borders on necessary
 
11:14 PM
You kinda need reflection in a statically typed language with a type system that restrictive
If Java had better compile-time reflection we wouldn't need as much runtime reflection
 
yep lmao
 
But it doesn't even have a proper unified interface for annotation processors that want to do modify code. I think stuff like Lombok has to detect which compiler's being used and use specific approaches based on that
 
holy shit
 
Although apparently there's only like two compilers that everyone uses (source (SO answer by one of the devs))
 
CMC: given a positive integer, return a string of that many characters with a charcode sum that is divisible by that number
So for n = 5, you'd want to return a string where sum(map(ord, s)) % 5 == 0
 
11:28 PM
am i missing something or would any string of that many of all the same character work
 
Hm
Not for n = 1
Nonwait
It would
 
wh
yeah
lmao
 
CM-addendum: characters must be unique. If no such string exists, don't worry about it
 
there we go
 
what do most golfing languages do when you pass an array and a list to the indexing operator?
 
11:34 PM
probably vectorize
i.e. pray that the one that's expected to be an index is full of numbers, and return a list of items at those indices
 
so there's usually a separate operator for multidimensional indexing?
 
at least in jelly there is
and i feel like vectorized indexing is more generally useful, but that's also within jelly's very array oriented model
(and even multidimensional indexing vectorizes, if you have a list of lists)
 
APL has multiple indexing operators, I think (at least) one of them vectorizes and one does multidimensional indexing. You might want to ask in the APL Orchard
 
@UnrelatedString yeah, I was thinking of making Charcoal's indexing multidimensional, but with the option of a list of lists for vectorised indexing
so if you index by [0, [0, 1]] then you get the first two elements of the first row
 
11:44 PM
@lyxal Works for all numbers up to 1114111: if n is odd, use 0..n-1; if n is even, use 0..(n/2-1) + (n/2+1)..n
the answer does not exist if n >= 1114112
 

« first day (4327 days earlier)      last day (517 days later) »