The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Mar 21, 2024 03:57
@UnrelatedString you have to do something like add 1, subtract 2, add 3, subtract 4 etc. until it hits zero
Oct 11, 2023 00:51
i've seen it in a few 2D langs, but i haven't seen a lang where something like (1+2)2 = 32
Oct 11, 2023 00:49
@ATaco wait, you mean it isn't that every digit is an instruction that multiplies the previous calculation by 10 and adds itself? weird
Sep 22, 2023 01:05
@Bubbler spoiled good or spoiled bad
Sep 8, 2023 07:35
sɪmk: find a language that outputs something coherent with the above code
3
Sep 2, 2023 13:11
apparently you can only set the python recursion limit as low as 4 without it complaining. I wonder if that breaks any of the builtins
Sep 2, 2023 12:53
@Simd what sort of question is it that it would be relevant on multiple sites?
Sep 2, 2023 10:04
Recursion errors are usually recursion errors, and so forth
10
Aug 30, 2023 00:16
@TheEmptyStringPhotographer You say that, but you did the exact thing a month ago on this question and of your last 6 answers, half of them are loophole abuse
Aug 28, 2023 16:44
you've been warned about this a lot on previous answers, but i guess it needs to be explicitly stated
Aug 28, 2023 16:44
@TheEmptyStringPhotographer Regarding your recent comments on the CSS question, if your answer is extremely trivial because you've abused some unstated loophole (or a stated one for that matter), then while it may not technically be an invalid answer, it's an extremely boring and unlikeable answer that is going to be downvoted. In the end, it's not smart or fun to answer against the spirit of a challenge
Aug 17, 2023 12:49
f probably explicitly indicates it's a float
Aug 17, 2023 12:44
isn't the e for the exponent
Aug 17, 2023 11:59
@Simd oh no, A006577 has nonn, did i miss something?
11
Aug 13, 2023 08:51
was it in Sandbox, sometimes people might write an answer early
Aug 13, 2023 08:15
it'd be like if a solar system mnemonic had an extra planet for some reason
Aug 13, 2023 08:04
just seems like a bad learning tool if it teachs you something wrong if you take it at face value
Aug 13, 2023 08:02
@mousetail i never really understood these. why is multiplication higher precedence than division/addition higher than subtraction? wouldn't that mean something like 2/3*4 = 2/12 rather than 8/3?
Jul 13, 2023 08:25
e.g. the code could just be empty lmao
Jul 13, 2023 08:22
i mean, i didn't upvote it either, since the flags don't seem necessary and it feels like you're trying to make it rather than actually golfing it
Jul 13, 2023 08:17
@PlaceReporter99 i didn't downvote that one though
Jul 13, 2023 06:25
instead, they're "i saved a byte or two by moving them into the flags, haha"
Jul 13, 2023 06:25
it just seems like most of these are set up as against the spirit of "these are all different languages", when they're not at all treated like that.
Jul 13, 2023 06:22
@TheThonnu 23/5/8 and one i don't know what this means
Jul 13, 2023 06:19
you can have an entirely different set of instructions in your flags that don't have to follow the same rules as your main code
Jul 13, 2023 06:18
the old system still gave you a "discount" on moving code into the flags you know
Jul 13, 2023 06:15
like, the sum builtin is S as well, you're literally moving code into the command line
Jul 13, 2023 06:14
but flags for stuff you already have builtins are totally okay??
Jul 13, 2023 06:12
i see, your language must lack a sum builtin then
Jul 13, 2023 06:11
like, surely your language has a flatten builtin, why do you need a flag for it
6
Jul 13, 2023 06:10
oh, and i guess i downvoted a couple of thunno posts too, sorry @TheThonnu
Jul 13, 2023 06:08
my totally objective list ends up at 16 almost guaranteed to be abused, 14 abusable, and 18 whatevers
Jul 13, 2023 06:01
hence the downvotes (with some upvotes sprinkled in)
Jul 13, 2023 06:01
like, a flag that pushes 100 at the start of the program can only be abused. There's almost no reason that you can't just do that in within the actual program
Jul 13, 2023 05:59
though the way they're used still don't feel in the spirit of the flag decision
Jul 13, 2023 05:58
i finally took a look at Vyxal's flag list, and it turns out that not all of them are actually that abusive
Jul 13, 2023 05:52
the flags actually
Jul 6, 2023 00:27
@RydwolfPrograms that's actually what i ended up doing if you check out the python code
Jul 5, 2023 06:32
i mean, x also ends up as the absolute value of n*2 if you need it
Jul 5, 2023 06:13
with whatever value on cell zero, with some clear cells to either side (-1 through 2)
Jul 5, 2023 05:54
@NumberBasher yes, either the pointer is on cell zero for negative, or cell -1 for positive
Jul 5, 2023 05:17
given it only adds/subtracts positive values, it should work in unbounded signed int bf
Jul 5, 2023 05:14
there, i edited the python code of the algorithm to output the sign
Jul 5, 2023 05:13
with that code, i'm assuming the input is already on the tape
Jul 5, 2023 05:12
what's confusing
Jul 5, 2023 03:30
x=0
while n:
 x+=1
 n-=x
 if n==0: print('pos'); break
 x+=1
 n+=x
else:
 print('neg')
Jul 5, 2023 03:25
without testing, something like [>+[>+<<->-]>+<<[>]>[<+<+>>-]<<] ?
Jul 5, 2023 02:55
use another cell to store a counter, alternate between add, subtract, subtract, add, increment counter, repeat until that hits zero at some point
 

 The Sand Trap

Room for discussions off-topic to CGCC (on-topic discussions s...
Jul 11, 2023 05:06
related, have you read Scott Alexander's Meditations on Moloch?
Jul 11, 2023 05:01
@DannyuNDos i have yet to find a self-consistent definition of "gods". also lol at the guy insisting that people are gods