The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Jun 5, 2022 17:16
@RadvylfPrograms then it seems like the question was asked because OP was looking for a solution
Jun 5, 2022 16:16
would the non-golfed version be just this code with ~-n replaced by (n-1)?
Jun 5, 2022 16:11
it's n-1 even if n is negative
Jun 5, 2022 13:44
could be interesting in many hard-to-use esolangs (even plain BF)
(but I'm not going to create it)
Jun 5, 2022 13:42
does a "check if the input equals Hello, World!" challenge exist?
May 24, 2022 07:32
for in-place merge it's clearly faster to add a few elements to a large set than to add a lot of elements to a small set
May 24, 2022 07:30
and?
May 24, 2022 07:29
@hyper-neutrino why would the speed differ? it has to copy all elements in either case
May 24, 2022 06:46
@emanresuA for some reason it's missing the "Ukraine"~CountryData~"Flag" Mathematica answer. edit: apparently they banned built-in flags :(
May 20, 2022 07:01
@UnrelatedString it does
Sep 6, 2021 15:14
for some reason everything I get is links to websites that allow me to bet money on extremely-short-term currency exchange rate change directions while using a magic algorithm that wins 96.3% of the time
Aug 31, 2021 17:23
doesn't sound as bad as C#'s ArrayList
Aug 31, 2021 17:19
it also goes away with looking at the page after making a style change
Aug 31, 2021 17:09
the first one (because the diamond has the same color as the link and because it has always been like this)
Aug 31, 2021 16:59
"That is a horrible and unwelcoming attitude to have towards it." - literally someone at SE in response to "restore the last seen indicator!"
Aug 30, 2021 16:18
in fact there's a faster-than-bruteforce solution for it
Aug 30, 2021 16:09
C++ with OpenMP (also, my CPU doesn't have AVX512, which seems to have vectorized popcnt, which would make this even faster)
Aug 30, 2021 16:07
requires more complicated code and is harder to reason about
Aug 30, 2021 16:07
10^6 binary strings of length 64 (I didn't mask them)
Aug 30, 2021 16:01
timed it, took 51 seconds. 100 times as much time still isn't a lot, and this was done on a CPU. The Levenshtein distance is painful to compute and probably even less likely to lead to any fast non-bruteforce approaches.
Aug 30, 2021 15:48
one core can probably do 2^29 in a second
Aug 30, 2021 15:47
bitwise xor (and no, it's not a large number; after doing a bit of math, I still think 'a few minutes' is a good estimate)
Aug 30, 2021 15:46
popcnt(a^b) should only take a few clock ticks, and my computer has multiple threads
Aug 30, 2021 15:44
@Anush but you can brute force it in a few minutes?
Aug 30, 2021 13:48
but the pair you're looking for has hamming distance 0
Jul 22, 2021 17:09
should be [0, -1] as far as I understand
Jul 22, 2021 17:06
@Adám Dot is the function name, so this is technically a function submission. (but if I used the . operator I'd need to do something like #.#2&)
Jul 22, 2021 17:03
Mathematica: Dot (also the . operator)
Jul 22, 2021 16:16
wait so can we walk through walls
Jul 22, 2021 14:40
bad challenge idea: Hello, World! but every character must be part of an ato.pxeger.com font ligature
Jul 22, 2021 14:37
I probably wouldn't figure out that it's a right shift operator just by looking at it
Jul 22, 2021 14:31
but it changes from 'accepted notation' to 'can be simplified to zero'
Jul 22, 2021 14:28
what is the purpose of font ligatures? (they look like weird Unicode characters to me, and 0xFF doesn't become any more clear when the x becomes a multiplication sign)
Jul 22, 2021 13:14
but I can't use the words important and medieval in my answers :(
Jul 22, 2021 10:17
replacing one of them with syntax for extended commands or constants might be better
Jul 21, 2021 12:47
that's an interesting definition of 'decentralized'... aren't literally all open source projects decentralized like this?
Jul 21, 2021 12:33
well that's because these bytes are optimized for it... would be more otherwise
Jul 21, 2021 12:06
Segmentation fault (core dumped)
Jul 21, 2021 12:03
'so' can be a conjunction, an adjective, an interjection, a noun, an abbreviation or an adverb
Jul 20, 2021 12:33
128-bit integers are not standard
 

 Nose Poker

Discussion space for Nose Poker challenge codegolf.stackexchan...
Jul 23, 2021 15:46
just replace these fragments with their actual value in normal JS. Or use something like jsfsck, jjencode or aaencode. Or use English variable names and normal code formatting. Or just use new Function directly, it isn't restricted (and can be obtained as (any function)['constructor']).
Jul 23, 2021 15:40
it's almost impossible to detect that
Jul 23, 2021 15:35
but they don't add much security
Jul 23, 2021 15:34
I feel like if somebody uploaded malware, they'd probably get someone before the answer got deleted... in fact, doesn't the automated deploy run answers?
Jul 23, 2021 13:09
wait it looks like I don't understand (I didn't notice that Controller.declare and Ogre.declare are different)
Jul 23, 2021 13:07
as far as I understand, currently if you are at 1 NP, if you bid 1 NP you lose, but if you bid 10000, someone else also loses (because of cowardice). Is this a bug?
Jul 23, 2021 12:47
@AJFaraday then what did this message mean?
Jul 23, 2021 12:46
because it isn't uploaded
Jul 23, 2021 12:22
I don't understand (I don't see any code in the controller to upload my unposted code anywhere)
Jul 23, 2021 12:14
but I haven't posted any answer yet? (does the controller secretly upload all my code somewhere? :) )