[racket-users] [docs suggest] Suggested documentation change for Structure Inspectors

2019-02-12 Thread David Storrs
Preface: There have been a number of times that I've seen something in the documentation that I would like to suggest an improvement to -- the occasional typo, an idea for a clarifying example, etc. Unfortunately, finding specific parts of the documentation in git feels extremely difficult. There

Re: [racket-users] struct-info

2019-02-12 Thread David Storrs
Thanks Matthias, that makes sense. On Tue, Feb 12, 2019 at 8:50 PM Matthias Felleisen wrote: > > > > > On Feb 12, 2019, at 5:28 PM, David Storrs wrote: > > > > On Tue, Feb 12, 2019 at 5:03 PM wrote: > > This is nice for defining abstract types, but it can be pretty > inconvenien

Re: [racket-users] struct-info

2019-02-12 Thread Matthias Felleisen
> On Feb 12, 2019, at 5:28 PM, David Storrs wrote: > > On Tue, Feb 12, 2019 at 5:03 PM wrote: This is nice for defining abstract types, but it can be pretty inconvenient for defining plain old aggregated data types that just have a bundle of fields. When defining those

[racket-users] Problems with syntax coloring a #lang

2019-02-12 Thread Chris GauthierDickey
Hi! I seem to have some weird behavior with syntax coloring a #lang. Sometimes it seems to think particular words that are normally correctly colored are errors. For example, if I'm starting to type a keyword, it's coloring it red (which it should), but when I complete the word, it doesn't re-col

Re: [racket-users] Re: Loading foreign libraries on Windows

2019-02-12 Thread Alex Harsanyi
The only thing I can suggest than is to try to debug the problem. I would first try to use procmon from the sysinternals suite to determine what API calls are made when the library is loaded into Racket, which one returns an error and what are the parameters to that call. I would also use depe

Re: [racket-users] struct-info

2019-02-12 Thread David Storrs
On Tue, Feb 12, 2019 at 5:03 PM wrote: >>> >>> This is nice for defining abstract types, but it can be pretty inconvenient >>> for defining plain old aggregated data types that just have a bundle of >>> fields. When defining those types as structs, consider using the >>> #:transparent option. T

Re: [racket-users] struct-info

2019-02-12 Thread Shu-Hung You
On Tue, Feb 12, 2019 at 3:55 PM David Storrs wrote: > > On Tue, Feb 12, 2019 at 4:46 PM wrote: > >> > >> Thank you for the explanation. Can I ask why the heck it works this > >> way? This seems to be explicitly designed for maximal surprise and > >> minimal usefulness. > > > > > > It works that

Re: [racket-users] struct-info

2019-02-12 Thread jackhfirth
> > This is nice for defining abstract types, but it can be pretty >> inconvenient for defining plain old aggregated data types that just have a >> bundle of fields. When defining those types as structs, consider using the >> #:transparent option. This means "use no inspector at all" (roughly)

Re: [racket-users] struct-info

2019-02-12 Thread David Storrs
On Tue, Feb 12, 2019 at 4:46 PM wrote: >> >> Thank you for the explanation. Can I ask why the heck it works this >> way? This seems to be explicitly designed for maximal surprise and >> minimal usefulness. > > > It works that way so that, by default, modules can't inspect, modify, or > otherwis

Re: [racket-users] struct-info

2019-02-12 Thread jackhfirth
> > Thank you for the explanation. Can I ask why the heck it works this > way? This seems to be explicitly designed for maximal surprise and > minimal usefulness. > It works that way so that, by default, modules can't inspect, modify, or otherwise muck around with structs defined by other m

Re: [racket-users] Wishlist for regexen: x mode, named captures, embeddable regexn

2019-02-12 Thread David Storrs
Good point; I should have said "built-in". On Tue, Feb 12, 2019 at 12:54 PM Matthias Felleisen wrote: > > > > > On Feb 12, 2019, at 12:48 PM, David Storrs wrote: > > > > That's impressive and yes, you're right that it works. The problem is > > that it is something non-standard, a user extension

Re: [racket-users] Wishlist for regexen: x mode, named captures, embeddable regexn

2019-02-12 Thread Thomas F. Burdick
On February 12, 2019 6:48:49 PM GMT+01:00, David Storrs wrote: >Actually, that raises a question: Does Racket use the pcre library or >does it reinvent the wheel? If it uses pcre then why not make all the >features available? My goodness. Perl isn't the One True Way of regular expressions,

Re: [racket-users] Loading foreign libraries on Windows

2019-02-12 Thread George Neuner
On 2/12/2019 11:44 AM, Jens Axel Søgaard wrote: FWIW here is the readme describing how to build libraries for Windows: https://github.com/racket/racket/tree/master/racket/src/native-libs That is a guide useful in general, but it doesn't answer my question to Philip.  Plain C DLLs are (for t

Re: [racket-users] Wishlist for regexen: x mode, named captures, embeddable regexn

2019-02-12 Thread Matthias Felleisen
> On Feb 12, 2019, at 12:48 PM, David Storrs wrote: > > That's impressive and yes, you're right that it works. The problem is > that it is something non-standard, a user extension that the > programmer needs to know about, ensure is installed, and require. > Perl, Python, and the pcre library

Re: [racket-users] Wishlist for regexen: x mode, named captures, embeddable regexn

2019-02-12 Thread David Storrs
On Mon, Feb 11, 2019 at 7:08 PM Philip McGrath wrote: > > On Mon, Feb 11, 2019 at 2:32 PM David Storrs wrote: >> >> It would be great if Perl's / pcre's "x" mode could be pulled into >> Racket, ideally with modifiers on the end of the regexp instead of >> inside it. This mode specifies that all

Re: [racket-users] Python's append vs Racket's append and helping novices understand the implications

2019-02-12 Thread Matthias Felleisen
This is perfect! Thanks — Matthias > On Feb 11, 2019, at 11:04 PM, Claes Wallin (韋嘉誠) wrote: > > For anyone creating such a web page for Python to Racket specifically, > there is probably a great deal of inspiration, and reminders of > stumbling blocks, to be found in Arne Babenhauserheide'

Re: [racket-users] struct-info

2019-02-12 Thread David Storrs
On Tue, Feb 12, 2019 at 11:43 AM Shu-Hung You wrote: > > On Tue, Feb 12, 2019 at 10:04 AM David Storrs wrote: > > > > Could someone point me to the FM on how to properly use struct-info? > > For the life of me, I cannot get anything except (values #f #t) out of > > it. I see that: > > > > 1) str

Re: [racket-users] Loading foreign libraries on Windows

2019-02-12 Thread Jens Axel Søgaard
FWIW here is the readme describing how to build libraries for Windows: https://github.com/racket/racket/tree/master/racket/src/native-libs Den tir. 12. feb. 2019 kl. 17.37 skrev George Neuner : > Hi Philip, > > On 2/12/2019 1:18 AM, Philip McGrath wrote: > > I'm encountering an issue using `ffi-

Re: [racket-users] struct-info

2019-02-12 Thread Shu-Hung You
On Tue, Feb 12, 2019 at 10:04 AM David Storrs wrote: > > Could someone point me to the FM on how to properly use struct-info? > For the life of me, I cannot get anything except (values #f #t) out of > it. I see that: > > 1) struct-info only works with struct types that are under the control > of

Re: [racket-users] Loading foreign libraries on Windows

2019-02-12 Thread George Neuner
Hi Philip, On 2/12/2019 1:18 AM, Philip McGrath wrote: I'm encountering an issue using `ffi-lib` to load a DLL on Windows. The problem appears to be specific to Racket, as I seem to be able to load the same DLL from Python. Specifically, I'm trying to build platform-specific packages for lib

[racket-users] struct-info

2019-02-12 Thread David Storrs
Could someone point me to the FM on how to properly use struct-info? For the life of me, I cannot get anything except (values #f #t) out of it. I see that: 1) struct-info only works with struct types that are under the control of the current inspector. 2) You can provide an inspector to a struct

Re: [racket-users] Package not updating after push?

2019-02-12 Thread David Storrs
Awesome, thanks! On Tue, Feb 12, 2019 at 10:49 AM Jay McCarthy wrote: > > There was an internal error, but it is fixed now. Thanks! > > On Mon, Feb 11, 2019 at 5:37 PM David Storrs wrote: > > > > I've pushed some enhancements to the struct-plus-plus package but the > > package server is not pick

Re: [racket-users] Package not updating after push?

2019-02-12 Thread Jay McCarthy
There was an internal error, but it is fixed now. Thanks! On Mon, Feb 11, 2019 at 5:37 PM David Storrs wrote: > > I've pushed some enhancements to the struct-plus-plus package but the > package server is not picking them up. I've updated the version > number in info.rkt and I've done "Rescan all

Re: [racket-users] Re: Loading foreign libraries on Windows

2019-02-12 Thread Philip McGrath
As far as I can tell, yes. I've confirmed that the install script is getting Racket from https://mirror.racket-lang.org/installers/7.2/racket-7.2-x86_64-win32.exe -Philip On Tue, Feb 12, 2019 at 2:01 AM Alex Harsanyi wrote: > Do you have x64 Racket installed? This is an error that usually come

[racket-users] 2nd Call for Participation: BOB 2019 (Mar 22, Berlin - right before Racketfest)

2019-02-12 Thread Michael Sperber
BOB 2019 makes for a great combo with Racketfest, with lots of Racket and FP content! BOB 2019 Conference “What happens if we simply use what