« first day (4540 days earlier)      last day (600 days later) » 

00:54
How do you check for negatives in brainfuck
I remember seeing something
01:24
@NumberBasher One approach could be zigzagging up and down from the number until you hit zero, and seeing if it takes an even or odd number of iterations
sounds like testing for (unsigned) x >= 128 would work
Oh, I'm assuming infinite Int size
yeah that's surely harder
 
1 hour later…
02:46
@NumberBasher check if the first char of input is a dash?
no
@RydwolfPrograms how exactly though
@RydwolfPrograms yah this is what I'm assuming
@JoKing unbounded int on tape
use another cell to store a counter, alternate between add, subtract, subtract, add, increment counter, repeat until that hits zero at some point
03:05
how exactly
ive been struggling for 2hrs on this lol
Just insert as many "-" symbols as the ASCII code for the negative sign
no the number is not input, it is stored in the tape
assume no Int limit
I don't think that's possible
You could do it if you had 2 copies of the number, so you could increment one and decrement the other
@JoKing we need help
03:25
without testing, something like [>+[>+<<->-]>+<<[>]>[<+<+>>-]<<] ?
x=0
while n:
 x+=1
 n-=x
 if n==0: print('pos'); break
 x+=1
 n+=x
else:
 print('neg')
04:02
How does this I/O work im confused
04:26
Doesn't seem to be any io
How do you even copy a signed unbounded int in bf
05:11
idk
JoKing
@JoKing thank you but we're still confused
@JoKing
what's confusing
with that code, i'm assuming the input is already on the tape
there, i edited the python code of the algorithm to output the sign
given it only adds/subtracts positive values, it should work in unbounded signed int bf
05:29
no so like for the bf code what is the output? tape pointer?
05:54
@NumberBasher yes, either the pointer is on cell zero for negative, or cell -1 for positive
06:09
oh ok
let me test this out
@JoKing wait what is our initial position
with whatever value on cell zero, with some clear cells to either side (-1 through 2)
ok
is there a way to keep the original number though
do all the same operations done to n on another cell with + and - flipped
when n becomes 0, the other cell will be n
oh true im just stupid thank you
wait but which operations are done to n?
06:25
n-=x, n+=x
wdym
for this [>+[>+<<->-]>+<<[>]>[<+<+>>-]<<] which are done to the original number?
idk lol
i mean, x also ends up as the absolute value of n*2 if you need it
 
3 hours later…
09:34
0
Q: Draw the initial positions of Mölkky pins in ASCII art

FhuviWrite a function (or a whole program) that outputs (or prints) an ASCII art of the initial position of Mölkky pins. Output : __ __ __ __(07)__(09)__(08)__ (05)__(11)__(12)__(06) | (03)__(10)__(04) | | | (01) (02) | | |__| | | | | |__| |__| |__| |__| |__| |__| R...

10:21
Can someone smarter than me please explain the joke: thecodelesscode.com/case/114
10:36
I don't get it either
This is what I think by "special characters".
11:36
The "Rejoin favorite chatrooms" userscript isn't working for me; is it having problems for anyone else?
 
3 hours later…
14:09
@mousetail don't get it either
14:45
@Bbrk24 Isn't that a built-in feature?
No, the userscript puts the button back when you're already in multiple rooms (though it's smaller, it looks like a link rather than a fancy button)
ah
@JoKing Can't you also do add-increment-subtract-increment?
That would be simpler and should still visit everything
 
2 hours later…
16:47
I wish "rejoin favorite rooms" didn't include frozen rooms.
Any way to use repeat notation but each repeat is on different key?
Not that I'm aware of
On movable key notation they can just write "2nd repeat: 1=bA; 3rd repeat: 1=A"
Maybe ask in the music chatroom?
17:13
@l4m2 just write (repeat in X key) or (repeat N half-tones shifted up) above the repeat sign or something
You have to write it in Italian
Is it good to write "bbb(####)" key?
(ripetere in chiave di X) (ripetere N mezzi toni più acuto)
the only reason I like being italian is not struggling to read music
For question that require to draw staff, is it good to require using the unicode char to avoid argument "what count as a head"?
17:30
Staff?
 
3 hours later…
20:40
@mousetail Music
21:13
Is there any free software to do ocr on a page of handwritten notes?
Yes
If you have PowerToys, then you can install the OCR module for your language
Probably tons of websites out there for it too
Man, living in the future is wild
2
21:29
@user I will have to look up power toys!
Does piclkle.load(open(“file.pkl”, “rb”)) close the file afterwards?
22:27
@Simd I doubt it does that
22:44
Yeah, it'd be weird
There's also tons of examples out there using with, which wouldn't be necessary if pickle.load closed the file
22:58
@DLosc this made me think of the sentence "man living in the future is tight!"
To which my response was wow wow wow wow wow wow
Which man is that?
Perhaps someone should tell him to loosen up
@user a producer guy
@user only if it is super easy, barely an inconvenience
I have a feeling these are Breaking Bad references but I have no idea what you're talking about
Actually it's Pitch Meetings :p
23:25
@DannyuNDos they probably just meant non-ASCII
Are those letters not ASCII?
wait, thinking about it they have a quoting problem, so they "fixed" it by not supporting some characters
(I originally mistook ' for a smart quote)
although actually, reading it again, they only describe the problem character
I should go to sleep, this chemotherapy has addled my brain (well mainly my stomach)
23:49
@user Me, tomorrow

« first day (4540 days earlier)      last day (600 days later) »