The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
May 30 04:27
Hello!
May 27 12:44
@Adám this is great, for you :)
May 27 12:43
open.kattis.com is pretty amazing. Their hard challenges are really hard!
May 27 12:41
@mousetail I have in fact answered challenges, just not under my current name
May 27 12:40
@Themoonisacheese ummm.... I don't know!
May 27 12:40
@mousetail also fair!
May 27 12:40
what I want is an LLM that will run code it produces, time it and then carry on seeing if it can make it faster forever
May 27 12:39
it's not for me though
May 27 12:39
@Themoonisacheese that's fair
May 27 12:38
hmm
May 27 12:37
is it just what we would call ?
May 27 12:37
right and not very interesting as a result
May 27 12:36
@mousetail oh! Let me check again
May 27 12:35
ah ok
May 27 12:35
but no one seems to take part ?
May 27 12:34
oh I see. So not really an answer at all
May 27 12:33
why does code.golf exist?
May 27 12:33
ah.. I couldn't even tell it was code :)
May 27 12:32
@Themoonisacheese I didn't know that existed! It looks unanswered
May 27 12:26
have ever had a challenge to compute the Euler–Mascheroni constant to 500 significant figures? I can't find it
May 16 21:04
@att the general problem is standard. The oddity is that it's the number 1 to n
May 16 18:18
CMC input n, k. Take the numbers from 1 to n and partition them nto k sets (k<=n). You should take the numbers from largest to smallest and add it to the set with the current smallest sum.
May 16 11:46
@Neil it's very impressive
May 16 11:45
@mousetail thanks. That's the only heuristic I know but I like your use of min + lambda
May 16 11:44
@Neil how did you get that?
May 16 09:01
I want to partition the numbers 1 to 100 into 8 sets with roughly equal sums. How can I do that?
May 16 09:01
Hello all!
May 7 13:19
I have a question about imap_unordered. I am using it in a method in a class in linux (using fork). It pickles self for each item in the iterable. Why does it need to repickle each time (which is slow in my case)? I can't see how self can be changed between one item and the next
May 7 13:19
I return with another python query :)
May 7 13:19
@mousetail hello!
May 7 12:58
hello all!
Mar 20 21:34
@DLosc you are missing out! It was great
Mar 20 18:05
Quickbasic didn't have a compiler in the sense that C has, for example
Mar 19 21:45
@DLosc is qbasic the same language as quickbasic 4?
Mar 19 21:45
I think my challenge is more difficult than people think
Mar 19 10:58
that seems to be one of the bugs I came across and they are not fixing it
Mar 19 10:52
Once made, I would only ever read my large data structures
Mar 19 10:47
I guess you still get two copies in RAM? The original copy and the mmaped one?
Mar 19 10:46
interesting. i am not sure how I would share a numpy array but I will take a look
Mar 19 10:43
do you pass an address to the workers?
Mar 19 10:43
I should try it
Mar 19 10:42
how would it compare to reading from RAM?
Mar 19 10:41
I wonder how fast that will be to read
Mar 19 10:41
@mousetail that's a good idea!
Mar 19 10:40
@mousetail oh interesting. I don't do networking things so I haven't seen that
Mar 19 10:40
but I can't see how to use spawn and share a large data structure without having two copies in RAM
Mar 19 10:39
@mousetail a deadly one is if you use a module that uses openmp
Mar 19 10:38
the pickle problem disappears if you are allowed to use fork as the workers inherit the state from the parent