Re: [racket-users] racket/gui and the Cocoa NSRunLoop

2018-01-22 Thread Matthew Flatt
Sorry for the slow response! At Thu, 11 Jan 2018 12:56:02 -0500, Mark Wunsch wrote: > Yes — that's perfect, thank you! And it also gives me a better sense of how > racket/gui is implemented for macOS. This snippet of code is now included in > my library, and I wonder if there's benefit to having

Re: [racket-users] whither `splicing-parameterize`? or am I doing it wrong?

2018-01-22 Thread Matthew Flatt
At Sun, 21 Jan 2018 17:43:04 -0500, Matthew Butterick wrote: > I have a macro that produces code for a module expression, roughly like so: > > #'(module mod racket/base > . BODY-EXPRS) > > I'd like to `parameterize` the BODY-EXPRS as a group, roughly like so: > > #'(module mod racket/base >

Re: [racket-users] The Birth and Death of Units

2018-01-22 Thread Anthony Carrico
Alexis, have you seen this?: https://people.mpi-sws.org/~rossberg/1ml/ "ML is two languages in one: there is the core, with types and expressions, and there are modules, with signatures, structures and functors. Modules form a separate, higher-order functional language on top of the core. There a

Re: [racket-users] Re: OSX racket install problem - "sudo racket" works, but running as a user fails...

2018-01-22 Thread Scott
Yes - it was (of course) "pilot error"! I had installed racket some years ago, and forgot I had env variables set, and that they would be under PLT*. Thanks for everyone's time and the folks over @ racket.slack.com! -- You received this message because you are subscribed to the Google Groups "

Re: [racket-users] The Birth and Death of Units

2018-01-22 Thread Jon Zeppieri
There's also Backpack, which adds something similar to ML's module system* to Haskell, except at the package level: https://plv.mpi-sws.org/backpack/backpack-paper.pdf * It's more similar to Rossberg & Dreyer's MixML than it is to Standard ML or OCaml's module systems. On Mon, Jan 22, 2018 at 2:1

Re: [racket-users] The Birth and Death of Units

2018-01-22 Thread Matthias Felleisen
I think MLers complain about two things here: — ML’s module system is basically a language that works at the type level. I think OldCamlers mean this mostly. — ML’s module system is also a typed lambda calculus whose basic values are structs, aka, atomic modules. You can get a sense of this w

Re: [racket-users] The Birth and Death of Units

2018-01-22 Thread Alexis King
Thank you for this explanation. I consider myself largely an outsider looking in on module systems, but I often hear SML and OCaml programmers complaining, wondering when Haskell is going to “get a real module system”. I’d like to do right thing in Hackett if I can, but I don’t really know what th

Re: [racket-users] Path to file in dynamic-place

2018-01-22 Thread 'Royall Spence' via Racket Users
Bah, I spoke too soon. Setting the current-load-relative-directory has no effect on the file loading behavior of dynamic-place. On Mon, Jan 22, 2018, at 12:02 PM, 'Royall Spence' via Racket Users wrote: > Thanks, this makes more sense now. I'll just slap this at the type of my > place-creating m

Re: [racket-users] Path to file in dynamic-place

2018-01-22 Thread 'Royall Spence' via Racket Users
Thanks, this makes more sense now. I'll just slap this at the type of my place-creating modules for my own sanity: (current-load-relative-directory (current-directory)) On Mon, Jan 22, 2018, at 11:52 AM, Sam Tobin-Hochstadt wrote: > `dynamic-place` works like (I believe) `dynamic-require`, which

Re: [racket-users] Re: OSX racket install problem - "sudo racket" works, but running as a user fails...

2018-01-22 Thread Ben Greenman
The issue was with environment variables. The user account had some PLT variable set. Running as root un-set the variables that were causing the trouble. On Mon, Jan 22, 2018 at 11:51 AM, Robert X wrote: > I install on MacOS using the .dmg download. I put it in /Users//Racket > and I add that loc

Re: [racket-users] Path to file in dynamic-place

2018-01-22 Thread Sam Tobin-Hochstadt
`dynamic-place` works like (I believe) `dynamic-require`, which starts in `(current-load-relative-directory)`. If you want to use it in a file and get consistent file-relative behavior, I suggest using `define-runtime-path` or `quote-module-path`. Sam On Mon, Jan 22, 2018 at 11:48 AM, 'Royall Spe

[racket-users] Re: OSX racket install problem - "sudo racket" works, but running as a user fails...

2018-01-22 Thread Robert X
I install on MacOS using the .dmg download. I put it in /Users//Racket and I add that location to my PATH. Everything works. That sounds like there is something in the path that root owns. I am not familiar with installing it through homebrew. -- Bob On Thursday, January 18, 2018 at 4:38:54 P

[racket-users] Path to file in dynamic-place

2018-01-22 Thread 'Royall Spence' via Racket Users
In the docs for places (https://docs.racket-lang.org/reference/places.html), the example shows creating a place like so: (dynamic-place "place-worker.rkt" 'place-main) When I do