T
Thomas Coopman
new try to check the latency
T
Thomas Coopman
it's not better
P
pikdum
test
P
pikdum
lol
T
Thomas Coopman
but doesn't matter that much
Z
Zach Daniel
lame
T
Thomas Coopman
:D
M
Max Gorin
Testing YT chat latency
S
Saul Ernesto
Hi
S
shahryar tavakkoli
hey
P
pikdum
test
M
Max Gorin
it's showing up in about 5 secs
T
Thomas Coopman
foo
T
Thomas Coopman
yes, it's the video chat indeed
B
Barnabas Jovanovics
hey 👋
R
riotonthebay
It's in main
B
Bernhard Hackl
Typo in `:unles`
S
Sean Powell
I'm new!
B
Bill Boz
can't hear it yet
B
Bryan Bryce
barely
S
Sean Powell
I've been watching both you and Louis a couple of time but never chat. I love it though
T
Thomas Coopman
yes it's fin
S
Sean Powell
Also music is so low
T
Thomas Coopman
fine*
S
Sean Powell
Actually music is fine now
S
Sean Powell
must be the delay
S
Sean Powell
What is this editor btw?
P
POEtatoenjoyer
Nah it's great
B
Bryan Bryce
Zed editor
R
riotonthebay
I believe it's from ignoring the meta when updating the AST during renaming
R
riotonthebay
Ah, fair enough; not sure then. Could be in the fancy shit.
R
riotonthebay
What I do in these cases: in IEx, use Sourceror to parse string of an if both with and without the newline
R
riotonthebay
and compare the meta
R
riotonthebay
(btw, I'm @zachallaun, for whatever reason I can't change my display name on YouTube)
R
riotonthebay
Yes, the do was on the next line
R
riotonthebay
line: 2 in the :__block__
R
riotonthebay
(Sorry, there's about a 15 second delay on chat, I think)
R
riotonthebay
Sourceror just uses Elixir algebra though, nothing custom for formatting
R
riotonthebay
Good, that at least makes the fix easier :)
R
riotonthebay
Yes, agreed
R
riotonthebay
Nice, that's handy
P
POEtatoenjoyer
credo would hate this function
R
riotonthebay
This is a totally separate conversation, but I was thinking that you sometimes want the {:ok, zipper} | :error API and sometimes just always want zipper, and it would be nice to have a naming idiom
R
riotonthebay
Yeah, I think you're right, that returns the zipper if it's {:ok, zipper} and just returns original if it's :error
R
riotonthebay
I missed some context but agreed about path, it's tricky to grok and can be surprising in some cases
R
riotonthebay
Is there a reason we need to be operating on supertrees directly? Can you bust out of the supertree and then re-create them after everything's updated as you want?
R
riotonthebay
Don't worry too much about it, I'm very likely just missing something
R
riotonthebay
I think the piece of context that I'm missing is why the supertree would ever need to be explicitly updated. Wouldn't it reform with new children once you break out of it?
R
riotonthebay
It's definitely hard to describe and talk about
R
riotonthebay
I might be accidentally inventing Sourceror APIs
R
riotonthebay
Okay, I think I finally understand the use-case. The zipper is focused on the OLD filter syntax, and it's inside a within, and you're replacing the single call with a block containing 2 calls.
R
riotonthebay
And you don't want nested blocks
R
riotonthebay
And is reducing over the reversed children of the block and calling Zipper.insert_right not an option?
R
riotonthebay
Fair, you've tried a lot more options than I have
R
riotonthebay
Nah, I know what you're saying though
R
riotonthebay
Stick a backslash at the end of the expectation you're interpolating
R
riotonthebay
Yeah that's a nicer fix
R
riotonthebay
*Shakes fist at YouTube*
R
riotonthebay
Arity?
R
riotonthebay
Good catch
R
riotonthebay
I think there might be some missed first arguments elsewhere
R
riotonthebay
I could be wrong, I just noticed it while you were looking through cases and might have seen it incorrectly
R
riotonthebay
All of this really makes me wonder whether higher-level, "syntax pattern matching utilities" that normalize a lot of this stuff would be possible
R
riotonthebay
because this shit is *really* hard to get right
R
riotonthebay
I agree, somewhere you need this stuff
R
riotonthebay
I wonder though if there are patterns that could be extracted and useful
R
riotonthebay
Yes, exactly that
R
riotonthebay
Regex for source code lol
R
riotonthebay
Cool, I think those two you just found were what I saw
R
riotonthebay
they were one-liners like that
R
riotonthebay
I have to run, but enjoyed this! Will try to tune into the next one.