Skip to content

Conversation

@ikappaki
Copy link
Contributor

@ikappaki ikappaki commented Dec 9, 2024

Hi,

can you please review change to have have alter-var-root to return the new value. It addresses #1166.

I've also updated various part of the documentation to note the effect of direct linking on this fn. Please feel free to adjust partially or completely.

I've also added test cases for the alter-var-root for the new change plus to demo the direct linking behavior.

Thanks

Copy link
Member

@chrisrink10 chrisrink10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionally LGTM. Had some minor tweaks to text but ready to approve after that.

ikappaki and others added 3 commits December 10, 2024 18:35
@ikappaki
Copy link
Contributor Author

Hi @chrisrink10, before you mrege, let me add some instrumentation to the intermittent windows test to try to better understand the problem with the timeout expiring earlier than set.

@ikappaki
Copy link
Contributor Author

ikappaki commented Dec 10, 2024

Hi @chrisrink10, before you mrege, let me add some instrumentation to the intermittent windows test to try to better understand the problem with the timeout expiring earlier than set.

I've added logging for the timer values in case it helps with the investigation. I can't see why the deref could return before the timeout has expired.

I've also had a quick look at the thread pool executor and it appears the timeout is eventually passed to a threading.conditional, so that should have worked as expected at that level I think (i.e. the conditional shouldn't have returned before the timeout has expired).

Python future conditional wait: https://github.com/python/cpython/blob/035f512046337e64a018d11fdaa3b21758625291/Lib/concurrent/futures/_base.py#L443

Python conditional wait implementation on win: https://github.com/python/cpython/blob/035f512046337e64a018d11fdaa3b21758625291/Python/condvar.h#L171

WaitForSingleObjectEx on win: https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-waitforsingleobjectex

@chrisrink10 chrisrink10 merged commit 2dffcc0 into basilisp-lang:main Dec 10, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants