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

2019-02-11 Thread Alex Harsanyi
Do you have x64 Racket installed? This is an error that usually comes up when a 32 bit application tries to load a 64 bit DLL. Alex. On Tuesday, February 12, 2019 at 2:18:55 PM UTC+8, Philip McGrath wrote: > > I'm encountering an issue using `ffi-lib` to load a DLL on Windows. The > problem

[racket-users] Loading foreign libraries on Windows

2019-02-11 Thread Philip McGrath
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 libgit2. I can build the library and run its test suite

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

2019-02-11 Thread 韋嘉誠
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's https://www.draketo.de/py2guile book (available online for free) about going from Python to Guile Scheme.

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

2019-02-11 Thread Philip McGrath
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 whitespace in the pattern > should be ignored, so if you want

Re: [racket-users] Cannot instantiate `racket/gui/base' a second time in the same process

2019-02-11 Thread Robby Findler
Well, I don't have the cycles to try it myself right now, and I don't mean to presume on others' time! :) Robby On Mon, Feb 11, 2019 at 5:00 PM Stephen Foster wrote: > > Thanks, Robby. That does make sense. > > Meta question: Are you saying that I should attempt this racket/gui > refactoring

Re: [racket-users] Cannot instantiate `racket/gui/base' a second time in the same process

2019-02-11 Thread Stephen Foster
Thanks, Robby. That does make sense. Meta question: Are you saying that I should attempt this racket/gui refactoring myself? Or is this something I should expect would happen without my help? Either is cool. I just wasn't sure which you were suggesting. On Mon, Feb 11, 2019 at 2:46 PM

Re: [racket-users] Cannot instantiate `racket/gui/base' a second time in the same process

2019-02-11 Thread Robby Findler
Probably the best thing would be to adjust racket/gui so that the text% (and perhaps a few smaller other things) was available without racket/gui/base having to be required. I believe that Sam did that to make racket/draw for a reason that was probably like this one. Robby On Mon, Feb 11, 2019

[racket-users] Cannot instantiate `racket/gui/base' a second time in the same process

2019-02-11 Thread Stephen Foster
I've gotten this error many times when building docs. Some google searching gives me the impression that it's a known issue. Usually, I just refactor my code so that racket/gui doesn't get required, and everything is fine. Is there another workaround, though? There was some functionality

[racket-users] Package not updating after push?

2019-02-11 Thread David Storrs
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 my packages" twice. What should I do? -- You received this message because you are subscribed to the Google Groups

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

2019-02-11 Thread David Storrs
There was another thread about regexp-match lately, and it made me think of a couple things I wish were available 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] GitHub color for Racket

2019-02-11 Thread Stephen De Gabrielle
It’s a shame ‘rainbow’ isn’t an available colour S. On Mon, 11 Feb 2019 at 18:06, wrote: > Hi folks, > > As some of you may know, GitHub uses a color bar at the top of a > repository to indicate the languages used. The GitHub color for Racket is > very dark blue, almost black. Racket's logo

[racket-users] GitHub color for Racket

2019-02-11 Thread pavan . maddamsetti
Hi folks, As some of you may know, GitHub uses a color bar at the top of a repository to indicate the languages used. The GitHub color for Racket is very dark blue, almost black. Racket's logo uses a lighter, more distinctive blue color: https://racket-lang.org/img/racket-logo.svg I love

Re: [racket-users] Re: nested for loops and suggested alternatives

2019-02-11 Thread Daniel Prager
Hi Travis Glad you found it instructive. In mathematical terms these kinds of systems map from the current state at t=n to the next time-step at t=n+1. Given a transition function I tend to just use for/list (or for/vector) to build up a history. E.g. #lang racket (require math/matrix)