« first day (3959 days earlier)      last day (883 days later) » 

11:00 PM
It's just golfier. The second just lets you not use parentheses, although they're often the same length, depending on the operators around it
 
@rues Sorry, I don't follow.
 
@rues parentheses is used for priority
And the both has same priority.
 
@Adám If you have 4*(x+1), you can use 4*-~x instead iirc (I don't use Python, so I don't really know when it's useful)
Just saves 2 bytes, it's not "better" outside of code golf
 
But why -~A?
 
@rues Wrong reply target?
 
11:02 PM
I was replying to your message
 
Oh, I get it. You were not continuing your answer to me :-D
 
You asked @Adám
 
I've had a excellent horrible idea: APL simplified. So like APL extended adds functionality, APL simplified just removes a bunch of stuff while remaining TC
 
Oh yeah, I wasn't talking about enums
@lyxal Yes, all you need in APL simplified is string literals and :P
 
@user but why -~A?
 
11:04 PM
Because ~A is like -(A + 1), and then you negate it again to get A + 1
 
@rues Well, I thought of using characters as indicators. BQN uses symbols: to error, to round down, to wrap around, and to fill with generic elements.
 
@Fmbalbuena SO question
@Adám That sounds like a good idea, very APL-y to use meaningful symbols instead of numbers or words
Does that cause problems with parsing, though?
 
No, BQN allows functions to be elements in an array literal.
 
But why not bitwise not operator?
 
Oh cool, I wonder how it knows when primitives are in a subject role
@Fmbalbuena I don't understand
 
11:08 PM
@rues If they are elements in an array literal, they are subjects. But it does make it slightly more awkward to construct the argument. I've not thought of this before.
 
I found sources what say ~ does bitwise NOT.
 
Oh right, I forgot BQN doesn't use stranding
That makes it a bit easier, I guess
 
@rues It does, but it has a "visible" stranding syntax, making it easy to write for this purpose: 3‿∘ and ∘‿3
But if you wanted to concatenate the two together, it'd be really awkward.
 
@Fmbalbuena That is what it does. The encoding of ints python uses means that the ~x is -(x + 1)
 
@Fmbalbuena I think ~ does bitwise NOT and then also adds 1? I don't really understand it, here's a Wikipedia article
 
11:11 PM
No, ~ is just bitwise not
 
@Adám By concatenate, do you mean ,?
 
Oh, I see (about ~, I mean)
 
@rues In APL, yes, but BQN uses different symbols for that.
 
Bitwise NOT means 5 => 101 => 010 => 2.
Negates every bit.
 
11:12 PM
afaict, you'd basically have to pre-wrap in a 1-element list ⟨∘⟩
 
Basically, 1 is 00000001 in binary (assuming 8-bit int), so the bitwise not of that is 11111110, which is -2 (the first bit is the sign)
 
There's also a sign bit
 
Whereas with a proper value, you can just use it as-is.
 
That seems cumbersome but it's better than not having first-class functions at all ¯\_(ツ)_/¯
 
Problem is that isn't even a function.
 
11:13 PM
@tjjfvi what about 01111110 converts to 126?????
 
Oh right, so a first class operator then?
 
Yeah, but operators are not first-class in BQN.
 
? 01111110 is 126
 
Interesting, I need to read the BQN docs again
 
11:15 PM
11111110 is -2
11111111 is -1
 
@tjjfvi I still don't understand.
 
00000000 is 0
 
OH I understand.
But I have to gtg for some minutes.
 
> have to gtg
smh my head
 
have to groom the goat
 
11:40 PM
CMQ: what does do-not-reply@stackoverflow.email mean?
 
it's clearly a perfectly legitimate email from so and nothing else whatsoever
 
Oh wow, it's going to be Winter Bash soon
Can't believe I've wasted over a year of my life here
 
@NewPosts Are you a bot?
 
Yes, it is
 
@RedwolfPrograms you can't ask because i only asked to @NewPosts
meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
(Alan Bagel about)
 
11:52 PM
I'm going to move this to the Fun misinterpretations room, HN just unfroze it
Any opposition?
 
No
 
It's misinterpretations of TNB, not GTG
 
Whatever, we'll rename it
 
I really hope I could schedule questions ahead of time, but actually it's total nonsense in SE format lol
 
11:57 PM
Makes sense for both cgcc and puzzling, at least
Possibly even for mother meta for announcements
 
#MotherMeta xD
that's Meta.SE :P
 
Whoa whoa what's with all these stars
 
Stop with the star spam please lol
 
good question. should I get the vacuum sweeper?
picks up the vacuum
 

« first day (3959 days earlier)      last day (883 days later) »