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-cr

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

2018-01-22 Thread 'Royall Spence' via Racket Users
ich 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 Spence' via Rack

[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

Re: [racket-users] What is the right way to generate HTML from the web server?

2018-01-04 Thread 'Royall Spence' via Racket Users
I'd enjoy a #lang that parses Jinja templates. They've proliferated to all the major web languages and work nicely, so a Racketized version seems like an obvious upgrade. On Thu, Jan 4, 2018, at 3:23 PM, Matthew Butterick wrote: > >> On Jan 4, 2018, at 11:47 AM, Jay McCarthy >>

Re: [racket-users] Open source projects

2017-10-29 Thread 'Royall Spence' via Racket Users
The docs are located in the main repository here: https://github.com/racket/racket/tree/master/pkgs/racket-doc/scribblingsIt's not always easy to find the page you're looking for via the source tree, so I recommend using a string search on Github to find the sections of documentation you'd like

Re: [racket-users] Intro and projects inquiry

2017-10-13 Thread 'Royall Spence' via Racket Users
. On Fri, Oct 13, 2017, at 11:55 AM, James wrote: > > On Oct 13, 2017, at 9:44 AM, 'Royall Spence' via Racket Users wrote: > > > Since we're bikeshedding here, I think we'd benefit from having a web > > toolkit on par with Clojure's Luminus. We only need a few more packages, >

Re: [racket-users] Intro and projects inquiry

2017-10-13 Thread 'Royall Spence' via Racket Users
In my experience, it means two seemingly opposite things that unify to create bad software. On the one hand, it's an extreme conservatism and fear of attempting new things. Don't try a new language, just keep using PHP. Don't install the new PHP version with better features, it could be risky.

Re: [racket-users] Intro and projects inquiry

2017-10-12 Thread 'Royall Spence' via Racket Users
Unfortunately, Whalesong's current fork requires an old version of Racket and hasn't seen a commit to master in several months. Racketscript is under active development, though, and provides a mostly- complete implementation of Racket for Javascript. Seems comparable to Clojurescript in its

Re: [racket-users] using Racket web server behind Apache as proxied HTTPS app server

2017-09-26 Thread 'Royall Spence' via Racket Users
I use UFW to configure iptables on my server. It's much less error prone than configuring iptables directly in my experience. SSH with key auth and http(s) are the only ways in. https://help.ubuntu.com/community/UFW On Tue, Sep 26, 2017, at 08:10 PM, 'Royall Spence' via Racket Users wrote

Re: [racket-users] using Racket web server behind Apache as proxied HTTPS app server

2017-09-26 Thread 'Royall Spence' via Racket Users
Yeah, you'll want to allow connections only from the frontend webserver. That's probably 127.0.0.1, but it would be different if you're doing a frontend server with a pool of backends. On Tue, Sep 26, 2017, at 08:04 PM, Matthew Butterick wrote: > >> On Sep 26, 2017, at 3:45 PM, Alexis King >>

Re: [racket-users] Choose Language menu too Long when selecting Legacy languages

2017-09-02 Thread 'Royall Spence' via Racket Users
Looks like the resize handles on the edge of the window don't do anything. Until that's corrected (if it can be), the X window system allows you to hold and click anywhere in a window to drag it around the screen. Hopefully that'll allow you to drag the top portion off the screen and click the

[racket-users] Library function naming

2017-08-28 Thread 'Royall Spence' via Racket Users
Is there a convention on naming library functions? I'm thinking that `library-function-name` is the right way to export functions, but I haven't read enough Racket code to know what qualifies. For example, a "money" library would export functions like "money-convert" and "money-deposit". Does

Re: [racket-users] Re: Racket dotenv file loading

2017-08-28 Thread 'Royall Spence' via Racket Users
Thanks for the feedback. I should be able to apply all of these in the next day or two. Regarding the test module and rackunit, the raco package template actually puts two test modules into main.rkt, with rackunit in one of them. This smells like a mistake, right? I'm going to try to find the

Re: [racket-users] Re: Racket dotenv file loading

2017-08-27 Thread 'Royall Spence' via Racket Users
And it's ready to consume: https://pkgd.racket-lang.org/pkgn/package/dotenv This is the first Lisp-family code I've published, so that's exciting. Any feedback the list has to offer regarding style, approach, or packaging would be welcome. On Sun, Aug 27, 2017, at 10:09 PM, 'Royall Spence' via

Re: [racket-users] Re: Racket dotenv file loading

2017-08-27 Thread 'Royall Spence' via Racket Users
Thanks, Jack. It sounds like a great Rackety solution and easy way to get into trying my own languages. I've already started work, though, and the 40 lines of code I've written looks like it'll do the job once I shake out the bugs. On Sun, Aug 27, 2017, at 05:49 PM, Jack Firth wrote: > On Sunday,

[racket-users] Racket dotenv file loading

2017-08-27 Thread 'Royall Spence' via Racket Users
I'm starting work on a Racket library for loading .env files to override environment variables. This is a common way of doing things for people who want to run multiple web applications on a single server without their environment variables competing for namespace. The classic example is this

Re: [racket-users] Seeking expert opinion on how Racketeering tames web development chaos.

2017-08-02 Thread 'Royall Spence' via Racket Users
A Reddit user wrote an interesting post about their experience programming a mobile roguelike with Lambdanative: https://www.reddit.com/r/scheme/comments/6hng3q/i_developed_a_medium_sized_cross_platform/ On Tue, Aug 1, 2017, at 11:08 PM, Neil Van Dyke wrote: > Eric MacAdie wrote on 08/01/2017

Re: [racket-users] Boot To Racket

2017-07-07 Thread 'Royall Spence' via Racket Users
How about a full suite of all the usual shell commands? I believe this is the approach scsh takes. Come to think of it, I'm going to give that a try now... On Fri, Jul 7, 2017, at 08:16 PM, Lehi Toskin wrote: > I have this idea, this vision. I wish to create a small system that would > more or

Re: [racket-users] Random values in Typed Racket?

2017-07-05 Thread 'Royall Spence' via Racket Users
Sounds like two questions wrapped into one. When it comes to setting names to values, Scheme programming encourages the use of a "let" expression to bind values to names inside of a (usually narrow) scope rather than assigning a value to a variable. See more here:

Re: [racket-users] How do I offer suggestions for the docs?

2017-01-09 Thread 'Royall Spence' via Racket Users
I think this is what you're looking for: https://github.com/racket/racket/blob/62f5b2c4e4cdefa18fa36275074ff9fe376ddaf3/pkgs/racket-doc/scribblings/reference/data.scrbl I was only able to find it by searching a string in the racket/racket repo on github.com. As far as I know, you just submit a

[racket-users] FFI Library Naming Conventions

2017-01-08 Thread 'Royall Spence' via Racket Users
I'm making some bindings for a C library. In the original library, the functions are named as "LIBNAME_do_stuff". Should I keep those the same in the FFI binding or define them as "libname-do-stuff"? Is there a convention for these things? -- You received this message because you are

[racket-users] Futures Mandelbrot Example

2016-12-23 Thread 'Royall Spence' via Racket Users
Copying the code from the futures mandelbrot example doesn't seem to work in the way it's explained. The futures visualizer window shows the two threads switching back and forth with short intervals of work followed by a sync. This happens in DrRacket 6.7 on both OSX and Linux. At first I

[racket-users] Futures Mandelbrot Example

2016-12-21 Thread 'Royall Spence' via Racket Users
In the parallelism section of the guide (https://docs.racket-lang.org/guide/parallelism.html), there's a Mandelbrot set example demonstrating parallel computation with futures. I've tried it on two different machines (with OSX and Linux) but I don't seem to get any parallel computation. The

[racket-users] Re: Newbie seeking advice

2016-12-20 Thread 'Royall Spence' via Racket Users
On Tuesday, December 20, 2016 at 4:47:59 AM UTC-5, steve.lett777 wrote: > I really want to learn programming but I am a slow learner. How do I know if > I can achieve learning programming or not? Am I wasting my time trying? > > And after that one is answered, Which language should I learn