The Bot Bikeshed
-
@Gribnit said in The Bot Bikeshed:
@error_bot .5 = 5, huh?
I'm betting something with the lexer. Prefix 0 for now, fixing.
-
@error_bot eval def withinTen(x,y) => pow(pow(x,2),pow(y,2),0.5) ; withinTen(7,7) ; withinTen(8,8) ; withinTen(9,9)
-
66,009,724,686,219,560,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000withinTen(7, 7) (66,009,724,686,219,560,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000) = 66,009,724,686,219,560,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00039,402,006,196,394,480,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000withinTen(8, 8) (39,402,006,196,394,480,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000) = 39,402,006,196,394,480,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00038,662,196,978,715,634,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000withinTen(9, 9) (38,662,196,978,715,634,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000) = 38,662,196,978,715,634,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
-
@error_bot no fractional exponents? I could also be retarded.
-
Wait, pow takes 2 arguments. You're giving it 3.
-
@error_bot eval def withinTen(x,y) => sqrt(xx,yy) < 10 ; withinTen(7,7) ; withinTen(8,8) ; withinTen(9,9)
-
truewithinTen(7, 7) (true) = truetruewithinTen(8, 8) (true) = truetruewithinTen(9, 9) (true) = true
-
@Gribnit And sqrt takes 1 argument but you're giving it 2.
-
@error Yeah I think I thought something was subsuming the multiplication. No idea how I managed that.
-
JS has the wonderful "feature" that you can pass any number of parameters regardless of the argument list.
-
@error_bot eval def withinTen(x,y) => sqrt(x * x + y * y) < 10 ; withinTen(7,7) ; withinTen(8,8) ; withinTen(9,9)
-
falsewithinTen(7, 7) (false) = falsefalsewithinTen(8, 8) (false) = falsefalsewithinTen(9, 9) (false) = false
-
@error it sure does... it sure does.
-
@error_bot eval def withinTen(x,y) => sqrt(x * x + y * y) < 10 ; withinTen(5,5) ; withinTen(6,6) ; withinTen(7,7) ; withinTen(8,8) ; withinTen(9,9)
-
falsewithinTen(5, 5) (false) = falsefalsewithinTen(6, 6) (false) = falsefalsewithinTen(7, 7) (false) = falsefalsewithinTen(8, 8) (false) = falsefalsewithinTen(9, 9) (false) = false
-
-
19.799sqrt(7 * 7 (49) + 7 (56) * 7 (392)) (19.799) = 19.799
-
@error Yeah I think I just don't remember how to Pythagorean Theorem today.
-
@error_bot eval def withinTen(x,y) => sqrt( (xx) + (yy) ) < 10 ; withinTen(5,5) ; withinTen(6,6) ; withinTen(7,7) ; withinTen(8,8) ; withinTen(9,9)
-
truewithinTen(5, 5) (true) = truetruewithinTen(6, 6) (true) = truetruewithinTen(7, 7) (true) = truefalsewithinTen(8, 8) (false) = falsefalsewithinTen(9, 9) (false) = false
-
@error_bot You read raw? I can't comment at you? Fine. I guess it makes multiplication less stupid. I'll also let that slide.
-
@Gribnit said in The Bot Bikeshed:
@error_bot You read raw? I can't comment at you? Fine. I guess it makes multiplication less stupid. I'll also let that slide.
There's an exponentiation operator
**
-
@error_bot eval def withinTen(x,y) => sqrt( (x^2) + (y^2) ) < 10 ; withinTen(6,6) ;
-
truewithinTen(6, 6) (true) = true
-
@error_bot eval 1^2^3
-
11 ^ 2 (1) ^ 3 (1) = 1
-
@error_bot eval 2 ^ 3 ^ 4
-
4,0962 ^ 3 (8) ^ 4 (4,096) = 4,096
-
@error_bot eval def withinTen(x,y) => sqrt( (x^2) + (y^2) ) < 10 ; let sample = 100d10 ; (sample)d20
-
6,231(sample (576))d20 (18, 19, 9, 6, 1, 10, 5, 16, 3, 7, 20, 17, 19, 18, 18, 17, 16, 5, 4, 10, 14, 18, 8, 8, 2, 5, 2, 20, 8, 20, 18, 3, 17, 11, 19, 15, 15, 11, 12, 3, 17, 20, 10, 2, 8, 1, 10, 15, 1, 14, 4, 8, 9, 10, 15, 13, 16, 20, 4, 1, 20, 11, 15, 6, 1, 6, 8, 20, 4, 15, 5, 17, 2, 6, 5, 20, 12, 2, 7, 10, 15, 6, 19, 10, 20, 18, 11, 19, 4, 4, 16, 19, 16, 8, 20, 11, 1, 8, 10, 16, 7, 16, 11, 14, 20, 10, 18, 13, 4, 3, 19, 5, 12, 20, 9, 3, 1, 10, 4, 9, 5, 6, 15, 16, 14, 19, 1, 16, 20, 5, 14, 9, 3, 4, 8, 6, 14, 19, 18, 5, 1, 12, 19, 15, 20, 11, 13, 2, 15, 16, 10, 18, 18, 6, 15, 7, 14, 14, 6, 20, 14, 18, 16, 10, 6, 15, 11, 18, 1, 10, 6, 17, 17, 2, 14, 18, 12, 3, 18, 17, 12, 15, 12, 1, 8, 4, 8, 4, 18, 19, 5, 11, 11, 9, 12, 4, 20, 18, 3, 7, 18, 10, 11, 14, 6, 13, 15, 18, 11, 13, 19, 14, 7, 10, 6, 19, 3, 3, 6, 19, 20, 16, 7, 12, 19, 20, 14, 3, 20, 18, 3, 5, 20, 12, 13, 9, 16, 6, 9, 5, 6, 12, 11, 17, 3, 5, 8, 16, 20, 5, 8, 8, 17, 8, 19, 7, 12, 15, 9, 11, 14, 19, 13, 1, 8, 7, 10, 6, 11, 3, 3, 3, 2, 20, 14, 3, 12, 2, 7, 1, 20, 5, 14, 17, 2, 18, 4, 1, 20, 15, 11, 11, 7, 8, 12, 11, 7, 14, 15, 2, 13, 19, 9, 18, 1, 5, 2, 16, 2, 15, 3, 7, 4, 3, 10, 20, 7, 17, 4, 13, 11, 9, 20, 10, 7, 7, 13, 17, 13, 5, 14, 3, 11, 18, 14, 18, 5, 20, 4, 14, 20, 11, 16, 7, 7, 14, 10, 17, 9, 9, 19, 19, 17, 8, 8, 13, 6, 6, 19, 15, 1, 9, 12, 4, 20, 7, 18, 4, 4, 3, 4, 9, 14, 9, 14, 9, 14, 6, 6, 11, 6, 5, 18, 7, 11, 13, 5, 9, 9, 10, 10, 18, 8, 9, 7, 11, 5, 11, 7, 6, 2, 5, 8, 20, 9, 4, 7, 14, 9, 17, 17, 10, 8, 15, 12, 10, 10, 18, 15, 4, 16, 11, 10, 1, 1, 8, 12, 12, 18, 9, 20, 6, 16, 1, 2, 13, 7, 20, 20, 13, 14, 5, 20, 12, 4, 5, 5, 15, 17, 7, 10, 3, 20, 10, 18, 13, 2, 2, 11, 1, 18, 10, 9, 7, 2, 9, 1, 2, 18, 11, 18, 12, 19, 20, 11, 10, 11, 18, 12, 14, 8, 19, 18, 15, 8, 18, 18, 19, 16, 11, 10, 4, 19, 1, 14, 1, 5, 14, 10, 7, 11, 20, 8, 11, 10, 9, 17, 7, 2, 13, 13, 5, 1, 20, 4, 7, 16, 6, 20, 4, 17, 4, 5, 3, 12, 17, 10, 3, 8, 19, 18, 19, 5, 9, 16, 7, 12, 13, 8, 15, 10, 19, 15, 13, 10, 3, 19, 10, 6, 19, 10, 10, 1, 4, 15, 17, 5, 6, 18, 12, 18, 2, 15, 6, 1, 14, 17, 14, 7, 1, 14, 15, 14, 1, 18, 2: 6,231) = 6,231
-
Working on the order of operations bug.
-
@error_bot eval def withinTen(x,y) => sqrt( (x^2) + (y^2) ) < 10 ; let sample = 50d20 ; def descend(n,s) => n > 0 ? descend( n - 1, s + ( withinTen(1d20-10,1d20-10) ? 1 : 0 ) : s ; descend(sample, 0) / 4
-
Error: mismatched bracket: expected: ), saw: none
-
@error_bot eval def withinTen(x,y) => sqrt( (x^2) + (y^2) ) < 10 ; let sample = 50d20 ; def descend(n,s) => n > 0 ? descend( n - 1 , s + ( withinTen(1d20-10,1d20-10) ? 1 : 0 ) ) : s ; descend(sample, 0) / 4
-
Error: Maximum call stack size exceeded
-
@error_bot eval def withinTen(x,y) => sqrt( (x^2) + (y^2) ) < 10 ; let sample = 5d20 ; def descend(n,s) => n > 0 ? descend( n - 1 , s + ( withinTen(1d20-10,1d20-10) ? 1 : 0 ) ) : s ; descend(sample, 0) / 4
-
16descend(sample (82), 0) (64) / 4 (16) = 16
-
This post is deleted!
-
@error_bot eval def withinTen(x,y) => sqrt( (x^2) + (y^2) ) < 10 ; let sample = 5d20 ; def descend(n,s) => n > 0 ? descend( n - 1 , s + ( withinTen(1d20-10,1d20-10) ? 1 : 0 ) ) : s ; descend(sample, 0) / ( sample / 4 )
-
@error_bot eval def withinTen(x,y) => sqrt( (x^2) + (y^2) ) < 10 ; let sample = 5d20 ; def descend(n,s) => n > 0 ? descend( n - 1 , s + ( withinTen(1d20-10,1d20-10) ? 1 : 0 ) ) : s ; descend(sample, 0) / ( sample / 4 )
-
@error said in The Bot Bikeshed:
Working on the order of operations bug.
It's a good sign when it utterly refuses to run. That's its last resort.
-
@Gribnit said in The Bot Bikeshed:
@error said in The Bot Bikeshed:
Working on the order of operations bug.
It's a good sign when it utterly refuses to run. That's it's last resort.
Or it's a sign that I'm recompiling after changes.
-
@error said in The Bot Bikeshed:
@Gribnit said in The Bot Bikeshed:
@error said in The Bot Bikeshed:
Working on the order of operations bug.
It's a good sign when it utterly refuses to run. That's its last resort.
Or it's a sign that I'm recompiling after changes.
-
eval sqrt(7 * 7+7 * 7)
-
@error_bot eval sqrt(7 * 7+7 * 7)
-
9.899sqrt(7 * 7 (49) + 7 * 7 (49) (98)) (9.899) = 9.899
-
@Gribnit said in The Bot Bikeshed:
@error_bot eval def withinTen(x,y) => sqrt( (x^2) + (y^2) ) < 10 ; let sample = 5d20 ; def descend(n,s) => n > 0 ? descend( n - 1 , s + ( withinTen(1d20-10,1d20-10) ? 1 : 0 ) ) : s ; descend(sample, 0) / ( sample / 4 )@Gribnit said in The Bot Bikeshed:
@error_bot eval def withinTen(x,y) => sqrt( (x^2) + (y^2) ) < 10 ; let sample = 5d20 ; def descend(n,s) => n > 0 ? descend( n - 1 , s + ( withinTen(1d20-10,1d20-10) ? 1 : 0 ) ) : s ; descend(sample, 0) / ( sample / 4 )
-
2.875descend(sample (32), 0) (23) / (sample (32) / 4 (8)) (2.875) = 2.8752.897descend(sample (58), 0) (42) / (sample (58) / 4 (14.5)) (2.897) = 2.897
-
@error_bot ugh. error of the included middle.
-
@error_bot eval def withinTen(x,y) => sqrt( (x^2) + (y^2) ) < 10 ; def split(n,m) => n > m / 2 ? n - m / 2 : 0 - n ; let sample = 5d20 ; def descend(n,s) => n > 0 ? descend( n - 1 , s + ( withinTen( split(1d20,20) , split(1d20,20) ) ? 1 : 0 ) ) : s ; descend(sample, 0) / ( sample / 4 )