[Rd] `sort` hanging without R_CheckUserInterrupt()

2024-02-21 Thread Aidan Lakshman
Hi everyone, Just a quick question/problem I encountered, wanted to make sure this is known behavior. Running `sort` on a long vector can take quite a bit of time, and I found today that there don’t seem to be any calls to `R_CheckUserInterrupt()` during execution. Calling something like `sort(

Re: [Rd] Tcl socket server (tcltk) does not work any more on R 4.3.2

2024-02-21 Thread peter dalgaard
The obvious problem with while (Tcl_DoOneEvent(TCL_DONT_WAIT) && max_ev) max_ev—; is that once something does the http server thing, you'll be running Tcl_DoOneEvent max_ev times, _every_ time you hit TclSpinLoop. I wonder it we could some sort of hybrid between this and Tcl_ServiceAll()? Like

Re: [Rd] Tcl socket server (tcltk) does not work any more on R 4.3.2

2024-02-21 Thread Tomas Kalibera
On 2/21/24 08:01, webmail.gandi.net wrote: Thank you, Ivan for this investigation. I inspected the R changes file (https://cran.r-project.org/doc/manuals/r-devel/NEWS.html) and found nothing about this. I should inspect the sources too! It could possibly break other Tcl/Tk related stuff. The

Re: [Rd] Tcl socket server (tcltk) does not work any more on R 4.3.2

2024-02-21 Thread peter dalgaard
I don't think we're going to fix this before 4.3.3. Given that it has gone unnoticed since June 2022 (yes '22) and that tampering in this area has a history of popping up complications in other areas, I think we should leave it alone until 4.4.0. (I see that Ivan and Tomas has been on the is

Re: [Rd] Tcl socket server (tcltk) does not work any more on R 4.3.2

2024-02-21 Thread Ivan Krylov via R-devel
В Wed, 21 Feb 2024 08:01:16 +0100 "webmail.gandi.net" пишет: > Since the {tcltk} package was working fine with "while > (Tcl_DoOneEvent(TCL_DONT_WAIT) && max_ev) max_ev—;", unless there is > a clear performance enhancement with "while (i-- && > Tcl_ServiceAll())", it would perhaps be wise to rev

Re: [Rd] Bug in comparison of language objects?

2024-02-21 Thread Martin Maechler
> Duncan Murdoch > on Tue, 20 Feb 2024 08:47:30 -0500 writes: > On 20/02/2024 8:03 a.m., Duncan Murdoch wrote: >> I noticed the following odd behaviour today: >> >> exprs <- expression( mean(a), mean(b), { a }, { b } ) >> >> exprs[[1]] == exprs[[2]] #> [1] FA