Re: [racket-users] windows, file-or-directory-modify-seconds, can't find errno set to ENOENT

2019-11-01 Thread 'Wayne Harris' via Racket Users
‐‐‐ Original Message ‐‐‐ On Friday, November 1, 2019 6:40 PM, 'Wayne Harris' via Racket Users wrote: > ‐‐‐ Original Message ‐‐‐ > On Friday, November 1, 2019 5:46 PM, Matthew Flatt mfl...@cs.utah.edu wrote: > > > Racket uses the native Windows API for filesystem operations, so it

Re: [racket-users] Re: C++ and pointer registration with 3M?

2019-11-01 Thread Thomas Dickerson
On Fri, Nov 1, 2019 at 6:04 PM Matthew Flatt wrote: > Just unnecessary. Great :) > It's not common, but that can happen. The GC can recognize and ignore > pointers that are not to its own space. This also fits my mental model, but I wanted to make sure I understood the corner cases. > Than

Re: [racket-users] Re: C++ and pointer registration with 3M?

2019-11-01 Thread Matthew Flatt
At Fri, 1 Nov 2019 17:15:57 -0400, Thomas Dickerson wrote: > Is it an error to register things which are not GCable, or just unnecessary? Just unnecessary. > Also - are there ever likely to be pointers which could hold memory which > may or may not be GCable depending on the code path? > (e.g. a

Re: [racket-users] windows, file-or-directory-modify-seconds, can't find errno set to ENOENT

2019-11-01 Thread 'Wayne Harris' via Racket Users
‐‐‐ Original Message ‐‐‐ On Friday, November 1, 2019 5:46 PM, Matthew Flatt wrote: > Racket uses the native Windows API for filesystem operations, so it > generally creates exceptions with a 'windows value in the `errno` field > instead of a 'posix value. The `UNC_stat` function is also i

Re: [racket-users] Re: C++ and pointer registration with 3M?

2019-11-01 Thread Thomas Dickerson
Great, this is very helpful. On Fri, Nov 1, 2019 at 4:53 PM Matthew Flatt wrote: > At Fri, 1 Nov 2019 10:34:50 -0700 (PDT), Thomas Dickerson wrote: > Only pointers to GCable memory --- which tends to be the things passed > to a Racket function, but more generally corresponds to things that > com

Re: [racket-users] Re: C++ and pointer registration with 3M?

2019-11-01 Thread Matthew Flatt
At Fri, 1 Nov 2019 10:34:50 -0700 (PDT), Thomas Dickerson wrote: > The documentation says: > "The 3m collector needs to know the address of every local or temporary > pointer within a function call at any point when a collection can be > triggered." > > A couple questions: > - Is this "every poi

Re: [racket-users] windows, file-or-directory-modify-seconds, can't find errno set to ENOENT

2019-11-01 Thread Matthew Flatt
Racket uses the native Windows API for filesystem operations, so it generally creates exceptions with a 'windows value in the `errno` field instead of a 'posix value. The `UNC_stat` function is also implemented in "rktio_fs.c". But you don't seem to be getting a 'windows error, either, and I haven

[racket-users] Re: C++ and pointer registration with 3M?

2019-11-01 Thread Thomas Dickerson
Sorry for the double-post, one more question. The output of `raco ctool --c-mods` has the form: #ifdef MZ_XFORM > XFORM_START_SKIP; > #endif > static void declare_modules(Scheme_Env *env) { > static unsigned char data[] = { /* bytes go here */ }; > scheme_register_embedded_load(NUM_BYTES, (co

[racket-users] windows, file-or-directory-modify-seconds, can't find errno set to ENOENT

2019-11-01 Thread 'Wayne Harris' via Racket Users
I have a function called ``older-than-days?'' which produces true if a path is older than a number of days. (Source code at the end of the message.) rac...@util.rkt> (older-than-days? 30 "c:/autoexec.bat") #t On Windows, if I give it a non-existent file, I can't seem to get an errno set to ENOEN

[racket-users] C++ and pointer registration with 3M?

2019-11-01 Thread Thomas Dickerson
The documentation says: "The 3m collector needs to know the address of every local or temporary pointer within a function call at any point when a collection can be triggered." A couple questions: - Is this "every pointer which might be passed to a Racket function, or contain the result of a Ra

Re: [racket-users] Re: expanding to typed/racket using #lang turnstile

2019-11-01 Thread Stephen Chang
I dont know much about J, but if I'm understanding correctly, you have an implementation of J in Typed Racket? And then you want to be able to infer more specialized cases in some instances by pruning the type? You might be able to do it with just plain macros in that case, which would generate `

[racket-users] How should I track versions for racket-vulkan?

2019-11-01 Thread Sage Gerard
Re: racket-vulkan, I'd like to have a version number that conveys which version of the Vulkan specification I'm tracking, as well as the version of the utilities I write surrounding it. Per the docs for (valid-version?) and package metadata, it does not look like I can do this well. I'm not eve