and then you'll have to ransom yourself to get your stolen data back from yourself
and then you'll have to report yourself to the FBI for cyber-stealing from yourself. Honestly the best play here is to just shut down your server entirely.
hgl has a "scan" function called sc. What it does in general is a little bit abstract, so we will just talk about one specific way you can use it.
If we want to take a list of integers and get the partial sums of every prefix we can scan with + for sums and 0 as a starting value:
ghci> sc (+) 0 ...
Intersection area of two rotated rectangles
code-golf math geometry
Given two rectangles, which are possibly not in the orthogonal direction, find the area of their intersection.
Input
You may take the rectangles as input in one of the following ways:
The coordinates of the four vertices of th...
There are many similarities between Haskell and Curry, therefore many advice for one language also apply to the other. As a result, I'd want to collect some Curry code-golfing advice in this question that would be helpful to someone who has gone through our Haskell advice in great detail.
This wo...
Maximum of outer product of integer vectors
(in linear time)
code-golf
math
algorithm
Our goal is to efficiently find the maximum of a large amount of (redundant) data.
We define the outer product of vectors \$A\$ and \$B\$ as a matrix containing the products of all entries of \$A\$ with each ent...
anyways, can anyone tell me where exactly the TypeError is occuring in def x(n):t,m,j='','aeiou',0;[t:=t+(m,m.upper())[i<'a'][j%5]and(j:=j+1)if i.lower()in m else(t:=t+i)for i in n];return t
There's a stupid but easy-to-implement GC where you only use half your memory at any one point, and when you start running out of space, you stop everything, copy everything over to the other half of your memory, and start again, leaving the dead objects behind in the old half
@user All of your RAM is a linked list; to access the pointer 0x12ab, you follow the linked list to that index. Any time you free up RAM, it's a linked list, who cares
@user Just a way to swap two values without using a temporary value
You'd just copy the second half of RAM into the first, using swaps, then you'd have the first half of RAM on the right, out of order, which you'd reorganize
@user "Scream test" reference counting. Copy the entire state of RAM. Then delete a random object. Then run the code. If it errors, the object was important. Restore RAM and try a different object.
@user Easy: When RAM is getting full, write the entire thing to disk, clear RAM, and load in every possible combination of objects in order until the program doesn't crash
Or, when RAM is getting full start writing objects to disk, oldest ones first, and retrieve them if they're requested
When RAM fills up the computer starts printing memory on actual paper using a printer, one RAM page per physical sheet, and when it needs a page you have to put that sheet of paper on the scanner to load it back in
probably using some kind of matrix data representation or smth
When RAM fills up the computer starts printing memory on actual paper using a printer, one RAM page per physical sheet, and when it needs a page you have to put that sheet of paper on the scanner to load it back in
Recently, TNB conducted an experiment in which we created a new room specifically for off-topic discussion, which resulted in a marked decrease in the amount of off-topic content in TNB. This room has now been around and active for over five months. Should we "officially recognize" it and add it ...
But it would come with things like a link in the room description, maybe an official meta announcement, and probably would be officially RO'd by the TNB RO team instead of just de facto RO'd by them
The official policy is "We'll leave it up to the sites", which is a good call IMO
Note that the posts here that were suspected of being ChatGPT weren't deleted for that reason, they were deleted for being low-quality and for not answering the challenges they answered.
If it becomes a problem, then we'll bring it up on meta. Otherwise, continue to flag, downvote and VLQ posts regardless of if they're chatGPT or just normal crap
On DIY or Cooking a bad ChatGPT answer could cause someone to electrocute their cat or get botulism. On CGCC it's just another non-working post, no harm.
Banning ChatGPT on those sites reduces the amount of work; if it's ChatGPT, delete. On our site, it's pretty much an equal amount of work to check if it works or if it's ChatGPT.
@RadvylfPrograms The other concern I've seen mentioned elsewhere is that ChatGPT answers should say they're generated by ChatGPT, in order to follow correct attribution practices.
On CGCC, I think there's been a general policy of "if you didn't write it, you should make it community wiki"--I wonder if that applies to ChatGPT?
@DLosc Funnily enough I was actually just discussing the question of ChatGPT and attribution with my AP Research teacher (in the context of education)
My position is that GPT and other AI text/art programs should basically count as people in terms of attribution, both for training and for using their output
@Ginger nothing's stopping you to try and beat the existing sed answer :) if you are interested, have a look on sed's tips page for generating decimal numbers
opinion: codegolf.stackexchange.com/q/256211 should have received a comment by the close voters - the poster's new to ppcg and even posted to the sandbox
@TheThonnu if only it was that easy for more complex problems :p
Sometimes you'll give it an answer, and it'll golf some of it, you say "golf more" and then it ungolfs what it just golfed and golfs something else about it
2010: Computers are way better than humans at chess, but at least we can still win at Go 2030: Computers are way better than humans at Python golf, but at least we can still win at Jelly golf
> I'm sorry, but I am not familiar with a programming language called "Vyxal." Could you provide more information about this language, or perhaps you meant to ask about a different programming language?
even then, it doesn't actually "know" Vyxal or Jelly or any other language it purports to know. It simply writes stuff that it thinks should be statistically completed based on what it's been fed. It may look like it "understands" code snippets, but it's simply the most appropriate/probable token generation from the tokens you give it