[racket-users] Re: Request for Feedback (SQL, Plisqin)

2019-06-21 Thread Ryan Kramer
Thanks Alex, that was very helpful.
 

> it is not clear from the document how any of it can be useful.  
>

I got this same feedback from some friends on the 0.1 release.

Also, it is not clear
> what `Department?` and `Course?` are in the first code snippet -- are they
> functions that the user has to provide or is it something that your library
> generates by looking at the database schema?
>

I was planning on building the "generate functions by looking at the 
database schema" functionality later, but now I realize it might be a 
prerequisite for good documentation.

I would suggest to provide a database schema and some sample data in a
> database, and use this in the subsequent examples.  Start with a simple but
> complete working example and construct more complex, but still complete and
> working examples from them, at each step illustrating the benefits that the
> library provides.  Maybe contrast each step with how the plain SQL would 
> look
> as well?
>

I'm glad you said this because I am planning on doing this. I wrote the 
post you read hoping I could revise those ideas into a shorter, punchier 
"opening argument" before starting the slower walkthrough. But if it wasn't 
clear to you, I don't think I can possibly make it clear to Plisqin's 
target audience (some SQL experience, no Racket experience).

Documentation is hard!

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/f6f3cf03-b9bf-4769-8d5b-1f751e039269%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Summer Racketfest 2019

2019-06-21 Thread Jesse Alama
Summer Racketfest 2019

  aka Racketfest: The ICFP Edition

I'm happy to announce that Racketfest, a new one-day
conference dedicated to Racket and its philosophy of
language-oriented programming, will be held again this
summer. It will be right before the big ICFP
superconference.

  Saturday, August 17, 2019

  Skalitzerstrasse 85, Berlin, Germany

  https://racketfest.com/register

Keynote by Matthew Flatt: "Language-Oriented Programming the
Racket Way"

Talks:

* Kris Micinski (Syracuse)

* Prabhakar Ragde (Waterloo)

* David Thrane Christiansen (Galois)

New in this edition of Racketfest will be Office Hours: in
parallel, each of the speakers will be available for the
audience members. It's a time to ask more detailed
questions, learn about a Racketeer's workflow, go behind the
scenes, find out what makes them ticket (Racket-wise), and
generally to ask: "How did you do that?" Everything you
wanted to ask but which doesn't fall under the usual scope
of talk Q (including but not limited to: "How did you get
Slideshow to do that?") Bring your laptop and get help,
information, and inspiration from top-notch Racket talent.

As with the first Racketfest, we'll also have an open mic: a
time for lightning talks (if you have something to show us)
or to sound off on an idea that you'd like to see developed
in Racket, or a problem you're facing.

Register: https://racketfest.com/register

Sponsor: https://racketfest.com/sponsor

  Saturday, Saturday, Saturday!

 August 17, August 17, August 17,

 Berlin, Berlin, Berlin:

   Racketfest, Racketfest, Racketfest!

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/db872da2-3982-4627-985f-b41196ff9c84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] managing competing access to filesystem within places

2019-06-21 Thread Matthew Butterick


> On 06 15 19, at 8:31 AM, Robby Findler  wrote:
> 
> A standard way to work with this is to send a channel over in the
> first communication and then the communication that's specific to that
> initial request happens on that channel. The precise way you set this
> up depends on what invariants of the communication you want. Like, you
> can create a new thread and just do all the communication there


And here's a threaded version, which I agree is neater, because by closing over 
each worker channel, the threads make other channel-tracking housekeeping 
unnecessary.

#lang racket
(require racket/place)
(provide main)

(define (main)
  (define loopback-p
(place lch
   (let loop ()
 (define wp (place-channel-get lch))
 (thread (λ () (let loop ()
 (place-channel-put wp (place-channel-get wp))
 (loop
 (loop
 
  (define worker-ps
(for/list ([i (in-range (processor-count))])
  (place wch
 (let make-request ([count 1])
   (define countout (place-channel-put/get wch count))
   (displayln (format "worker request ~a:~a got response ~a:~a ~a"
  0 count 0 countout
  (if (eq? count countout) "" "### fail")))
   (make-request (add1 count))
  
  (for ([worker-p (in-list worker-ps)])
(place-channel-put loopback-p worker-p))
  
  (map place-wait worker-ps))

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/A5055051-898C-46F9-82C6-BD0A50AC4D20%40mbtype.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Seeking users to try file monitoring package

2019-06-21 Thread Sage Gerard
Hi all,

I'm working on a filesystem monitoring package to contribute to the community.

https://github.com/zyrolasting/file-watchers

This is my first package and foray into threads with Racket, so there's much to 
improve. I'd appreciate your feedback to help me understand more about what the 
community looks for in this kind of work.

I'm particularly curious if the (robust-watch) procedure provided by the 
package in particular behaves consistently across operating systems. I do not 
have a Mac and was hoping that a Mac+Racket user would be willing to try this 
out and report his or her experience. This package is not yet published and has 
to be cloned.

Thank you in advance. Happy to address any questions.
-slg

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/7rtsPUFaQkdYvkHZrDM1Jjp_wbd6xg2x3QUaJWDHttUtHIxdCWOZBjtySnx_u46ET2tbTsMUmPkLBm7F6TLYSm1adPfTVNLu8smjG43C9_c%3D%40sagegerard.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: Request for Feedback (SQL, Plisqin)

2019-06-21 Thread Alex Harsanyi

While I am familiar with SQL, I am not familiar with any of the libraries 
you
mention on the wiki page (Ecto, Honey SQL and Slick), so maybe I am not the
target audience...

Your sections about "Joins Are Values" and "Aggregates are self-contained"
seem difficult to follow: I think I understand the overall idea, but it is 
not
clear from the document how any of it can be useful.  Also, it is not clear
what `Department?` and `Course?` are in the first code snippet -- are they
functions that the user has to provide or is it something that your library
generates by looking at the database schema?

I would suggest to provide a database schema and some sample data in a
database, and use this in the subsequent examples.  Start with a simple but
complete working example and construct more complex, but still complete and
working examples from them, at each step illustrating the benefits that the
library provides.  Maybe contrast each step with how the plain SQL would 
look
as well?

Alex.


On Saturday, June 22, 2019 at 12:41:31 AM UTC+8, Ryan Kramer wrote:
>
> Target Audience: you have 10 minutes and you're familiar with libraries 
> that do SQL kinda like this:
>
> (from i "Item"
>   (where i".ReleaseDate > '2018-01-01'")
>   (select i".ItemName"))
>
> Article: 
> https://github.com/default-kramer/plisqin/wiki/Towards-Better-Relational-Query-Language
>
> Context: Plisqin is my SQL generation library, but I think of it as an 
> "alternate query language" because theoretically it doesn't have to 
> generate SQL. (But it probably always will.)
>
> I'm gearing up to release Plisqin 0.3 and want to improve my 
> documentation. If I can't explain these concepts to fellow Racketeers, I 
> don't stand a chance of explaining them to the general public.
>
> Thanks for any feedback!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/4299131f-3e59-44e0-b53b-52186a3bf95f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] how to uninstall Racket 5.3.6?

2019-06-21 Thread Neil Van Dyke
Quick notes on both installing a new version, and then cleaning up the 
old one...


INSTALLING NEW VERSIONS

Assuming you're not just using a Debian package, and want a 
non-Debian-package install (such as for more rapidly picking up new 
Racket versions, having multiple versions installed at once)...


One way to build and install the latest Racket is with 
"https://www.neilvandyke.org/racket/install-racket-versioned.sh;, which 
will install to a directory like "/usr/local/racket-7.3/". Then you'll 
want to put "/usr/local/racket-7.3/" ahead of "/usr/local/" in your 
shell's executable search path (such as by editing your "~/.bashrc" 
file, if that's where that's set).


You don't have to use that script -- the main thing is that you 
self-contain a Racket install (or run-in-place source tree) in its own 
directory tree, somewhere.  Preferably name that directory tree 
descriptively, for what release version, build variant, or Git 
branch/changes, like "racket-7.3", "racket-git-master", 
"racket-branch-colon-keywords", etc.


CLEANING UP THE OLD MESS

"/usr/local" sounds like it wasn't from a Debian package.  Which still 
leaves a few possibilities for how it was unfortunately installed to 
"/usr/local".


I don't know offhand what uninstall was provided for 5.3.6 (though you 
could download a source tree, and see if they have an uninstall script 
or a `make uninstall` target).  Even if such a script/target exists, 
there's a small chance it might not work for how those files got into 
"/usr/local/".


If you have to *manually* clean up remnants of old Racket in 
"/usr/local/", IIRC, there's more than one possible directory tree 
layout it might be using, so it's harder to say exactly what filenames 
remove, but something like this...


1. Make a directory like "/usr/local/racket-deleted" into which you'll 
move the old files.


2. Look in your new 7.3 install tree for the kinds of file names you'll 
want to move from the old "bin" and "lib" into "racket-deleted", and 
move them.  Be conservative: if you're not sure whether a file is for 
Racket, leave it where it is, or you might break some other program, or 
even not be able to boot your computer and log in.


3. Then move files/directories from "include", "share", and "etc" (which 
might all just be subdirectories named "racket").


4. Optionally rename "racket-deleted" to be more descriptive, like 
"racket-5.3.6-deleted-manually-20190621".


5. "chmod 0 racket-deleted" or whatever you renamed it to.

6. Confirm that you can still reboot your computer and log in. Rebooting 
should also cause the 7.3 path you previously added to the shell 
executable search path environment variable to take effect everywhere, 
even for your login process and desktop processes, so those might work 
better.


Good luck.

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/7563a39b-38e3-42c4-b1f0-46843390ae20%40neilvandyke.org.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] how to uninstall Racket 5.3.6?

2019-06-21 Thread Philip McGrath
One possibility is that you might have installed Racket via apt. A command
like:
sudo apt list --installed | grep racket
should help to see if that is the case. If so, I think uninstalling the apt
package would be sufficient.

-Philip


On Fri, Jun 21, 2019 at 3:23 PM Norman Ramsey  wrote:

> I have an installation of Racket version 5.3.6, which dates from late
> 2013.  The installation platform is Debian Linux, and the installation
> populated a lot of things into /usr/local/bin, which I suspect was the
> default at the time.  I now wish to upgrade to the current version,
> but I have discovered that the current version is reluctant to install
> over an existing version in /usr/local/bin.  My system does not
> contain a `racket-uninstall` script, and searching the documentation
> does not turn up anything about how to remove an installation.
>
> How can I uninstall Racket 5.3.6?
>
>
> Norman Ramsey
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/20190621192341.2B44F119A13%40homedog.cs.tufts.edu
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAH3z3gZ0uUNkZ8rzbVpEcB8Uv2B%3Dq%2B%2Bs7Li6rzG4SQUr9CB-Yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] managing competing access to filesystem within places

2019-06-21 Thread Matthew Butterick

> On Jun 15, 2019, at 8:31 AM, Robby Findler  wrote:
> 
> A standard way to work with this is to send a channel over in the
> first communication and then the communication that's specific to that
> initial request happens on that channel.


This is probably the crudest possible implementation of your suggestion, but 
this version avoids mismatched requests & responses. The `loopback-p` makes a 
table of the worker channels at the outset. After that, as it gets requests, it 
dispatches the response directly to the worker that issued the request.

(I'm not asking you to review this code, I'm just posting this for curious 
people of the future.)


#lang racket
(require racket/place)
(provide main)

(define (main)
  (define loopback-p
(place ch
   (let ([chs (make-hasheq)])
 (let loop ()
   (match (place-channel-get ch)
 [(list wpidx (? place-channel? wp))
  (hash-set! chs wpidx wp)
  (place-channel-put wp 'ack)]
 [(list wpidx count)
  (place-channel-put (hash-ref chs wpidx) (list wpidx count))])
   (loop)
 
  (define worker-ps
(for/list ([i (in-range (processor-count))])
  (place ch
 (match-define (list loopback-p wpidx wp) 
(place-channel-get ch))
 (place-channel-put loopback-p (list wpidx wp))
 (place-channel-get ch) ; wait for 'ack
 (let make-request ([count 1])
   (place-channel-put loopback-p (list wpidx count))
   (match-define (list wpidxout countout)
 (place-channel-get ch))
   (displayln (format "worker request ~a:~a got response 
~a:~a ~a"
  wpidx count wpidxout countout
  (if (and (eq? wpidx wpidxout) (eq? 
count countout)) "" "### fail")))
   (sleep (* 0.01 (add1 wpidx))) ; multiplier makes workers 
go at different speeds
   (make-request (add1 count))
  
  (for ([(wp wpidx) (in-indexed worker-ps)])
   (place-channel-put wp (list loopback-p wpidx wp)))
  (map place-wait worker-ps))

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/14FF4C4B-CE93-4B10-B496-B678DA74B4F4%40mbtype.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] HTML rendering

2019-06-21 Thread David Storrs
Does anyone on the list have the skills to create such a thing, were there
sufficient motivation? (coughmoneycough)

On Fri, Jun 21, 2019 at 3:21 PM Jens Axel Søgaard 
wrote:

>
> Den fre. 21. jun. 2019 kl. 21.10 skrev James Platt :
>
>> I've been looking at HTML rendering in Racket and the Browser package
>> looks interesting, especially since it can execute Racket code from a
>> special HTML tag.
>>
>> https://docs.racket-lang.org/browser/index.html
>>
>> The problem is that the rendering it does is too simple.  It's about on
>> the level of Lynx and doesn't even render tables.
>
>
> The browser package is mostly historical. It was used to browse
> documentation inside DrRacket, but at some point
> it made more sense to use an external web-browser.
>
>
>> Is there another option that I am missing, like something implementing
>> Gecko or KHTML/Webkit?
>
> If not is there much interest in creating such a thing? The idea would be
>> to be able to have a Racket GUI with a component implemented in HTML +
>> CSS.
>>
>
> Using Webkit from within DrRacket would indeed be interesting.
> Dobson made bindings for webkit at some point - but time flies by.
>
>  https://github.com/endobson/racket-webkit
>
> I know of no newer packages.
>
> /Jens Axel
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/CABefVgwAZdSQs42rpS7k0qwr6pAcEs5FLQzZJOTkpzGMmeVVbQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAE8gKofUti%2BBg4AiO7XNKqgEud3tBKonmhhXgK%3DkQ53ZrRMvmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] symbols question

2019-06-21 Thread Kevin Forchione


> On Jun 20, 2019, at 10:18 PM, Sorawee Porncharoenwase 
>  wrote:
> 
> #lang racket
> 
> (require syntax/parse/define)
> 
> (define-simple-macro (#%top . x) 'x)
> 
> (define x 42)
> x ;=> 42
> y ;=> 'y
> (string-length (symbol->string abcdef)) ;=> 6
> Unbound identifiers are wrapped with #%top during expansion steps 
> ,
>  so you can define #%top to deal with unbound ids. For instance, Pollen 
>  by default uses #%top to create default tags 
> .
> 
> Wow! That does appear to be just what I’ve been looking for. 

Thanks so much!  Looks like I’m going to have some fun!

Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/D8F840D6-70E6-4A59-A0A2-ECCDCBCF0DEC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] how to uninstall Racket 5.3.6?

2019-06-21 Thread Norman Ramsey
I have an installation of Racket version 5.3.6, which dates from late
2013.  The installation platform is Debian Linux, and the installation
populated a lot of things into /usr/local/bin, which I suspect was the
default at the time.  I now wish to upgrade to the current version,
but I have discovered that the current version is reluctant to install
over an existing version in /usr/local/bin.  My system does not
contain a `racket-uninstall` script, and searching the documentation
does not turn up anything about how to remove an installation.

How can I uninstall Racket 5.3.6?


Norman Ramsey

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20190621192341.2B44F119A13%40homedog.cs.tufts.edu.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] HTML rendering

2019-06-21 Thread Jens Axel Søgaard
Den fre. 21. jun. 2019 kl. 21.10 skrev James Platt :

> I've been looking at HTML rendering in Racket and the Browser package
> looks interesting, especially since it can execute Racket code from a
> special HTML tag.
>
> https://docs.racket-lang.org/browser/index.html
>
> The problem is that the rendering it does is too simple.  It's about on
> the level of Lynx and doesn't even render tables.


The browser package is mostly historical. It was used to browse
documentation inside DrRacket, but at some point
it made more sense to use an external web-browser.


> Is there another option that I am missing, like something implementing
> Gecko or KHTML/Webkit?

If not is there much interest in creating such a thing? The idea would be
> to be able to have a Racket GUI with a component implemented in HTML +
> CSS.
>

Using Webkit from within DrRacket would indeed be interesting.
Dobson made bindings for webkit at some point - but time flies by.

 https://github.com/endobson/racket-webkit

I know of no newer packages.

/Jens Axel

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CABefVgwAZdSQs42rpS7k0qwr6pAcEs5FLQzZJOTkpzGMmeVVbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] HTML rendering

2019-06-21 Thread Jay McCarthy
As far as I can tell, it has been 16 years since that code has been touched
for anything other than reformatting.

https://github.com/racket/drracket/commit/55dc93d01f6a8113dae46302812debddc1e7d2d8

You should not consider it as a real HTML renderer in Racket.

Jay

--
Jay McCarthy
Associate Professor @ CS @ UMass Lowell
http://jeapostrophe.github.io
Vincit qui se vincit.


On Fri, Jun 21, 2019 at 3:10 PM James Platt  wrote:

> I've been looking at HTML rendering in Racket and the Browser package
> looks interesting, especially since it can execute Racket code from a
> special HTML tag.
>
> https://docs.racket-lang.org/browser/index.html
>
> The problem is that the rendering it does is too simple.  It's about on
> the level of Lynx and doesn't even render tables.  Is there another option
> that I am missing, like something implementing Gecko or KHTML/Webkit?  If
> not is there much interest in creating such a thing? The idea would be to
> be able to have a Racket GUI with a component implemented in HTML + CSS.
>
> James
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/99A41261-8EF1-47FA-9626-5E749E22BCA7%40biomantica.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAJYbDanmvwwX9zUzMDxPcXqHX1GcCFkVovS0QHdN5DcEhsxeZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] HTML rendering

2019-06-21 Thread James Platt
I've been looking at HTML rendering in Racket and the Browser package looks 
interesting, especially since it can execute Racket code from a special HTML 
tag.

https://docs.racket-lang.org/browser/index.html

The problem is that the rendering it does is too simple.  It's about on the 
level of Lynx and doesn't even render tables.  Is there another option that I 
am missing, like something implementing Gecko or KHTML/Webkit?  If not is there 
much interest in creating such a thing? The idea would be to be able to have a 
Racket GUI with a component implemented in HTML + CSS.  

James

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/99A41261-8EF1-47FA-9626-5E749E22BCA7%40biomantica.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: Request for Feedback (SQL, Plisqin)

2019-06-21 Thread Ryan Kramer
Oops, I got the link wrong: 
https://github.com/default-kramer/plisqin/wiki/Towards-Better-Relational-Query-Languages

On Friday, June 21, 2019 at 11:41:31 AM UTC-5, Ryan Kramer wrote:
>
> Target Audience: you have 10 minutes and you're familiar with libraries 
> that do SQL kinda like this:
>
> (from i "Item"
>   (where i".ReleaseDate > '2018-01-01'")
>   (select i".ItemName"))
>
> Article: 
> https://github.com/default-kramer/plisqin/wiki/Towards-Better-Relational-Query-Languages
>  
> 
>
> Context: Plisqin is my SQL generation library, but I think of it as an 
> "alternate query language" because theoretically it doesn't have to 
> generate SQL. (But it probably always will.)
>
> I'm gearing up to release Plisqin 0.3 and want to improve my 
> documentation. If I can't explain these concepts to fellow Racketeers, I 
> don't stand a chance of explaining them to the general public.
>
> Thanks for any feedback!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/f7b58794-2716-4758-8c14-0b354030d460%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Request for Feedback (SQL, Plisqin)

2019-06-21 Thread Ryan Kramer
Target Audience: you have 10 minutes and you're familiar with libraries 
that do SQL kinda like this:

(from i "Item"
  (where i".ReleaseDate > '2018-01-01'")
  (select i".ItemName"))

Article: 
https://github.com/default-kramer/plisqin/wiki/Towards-Better-Relational-Query-Language

Context: Plisqin is my SQL generation library, but I think of it as an 
"alternate query language" because theoretically it doesn't have to 
generate SQL. (But it probably always will.)

I'm gearing up to release Plisqin 0.3 and want to improve my documentation. 
If I can't explain these concepts to fellow Racketeers, I don't stand a 
chance of explaining them to the general public.

Thanks for any feedback!

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/1ec9475b-2d0c-42f2-99eb-ede13075295c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Scribble localization and manual style questions

2019-06-21 Thread Matthew Flatt
At Fri, 21 Jun 2019 10:36:38 -0400, Sam Tobin-Hochstadt wrote:
> On Fri, Jun 21, 2019 at 4:10 AM Dexter Lagan  wrote:
> > By default, scribble/manual displays the Racket version number on top. Is 
> there a way to prevent this, or use my own version number?
> 
> I usually remove this with CSS as well.

You can remove it with `#:version ""` in the document's main `title`.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/5d0cee5d.1c69fb81.21cd1.2e9cSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Scribble localization and manual style questions

2019-06-21 Thread Dexter Lagan
  Great, thanks for the info! 

Dex

> On Jun 21, 2019, at 4:36 PM, Sam Tobin-Hochstadt  wrote:
> 
>> On Fri, Jun 21, 2019 at 4:10 AM Dexter Lagan  wrote:
>> 
>> 
>> Am I allowed to use scribble/manual to write my manual? I love Scribble the 
>> Racket docs style and wish I could use the same style;
> 
> Yes, certainly. Everyone is welcome to use this.
> 
>> By default the scribble/manual style is localized for English: @author 
>> prefixes with ‘by’ and appends ‘and’ between authors. The Author and 
>> Author+Email functions are hardcoded this way. The ‘author paragraph seems 
>> to be writing the prefix ‘by’, but I couldn’t find its definition, and 
>> writing a new scheme file just to override the functions and paragraph defs 
>> seems overkill. Can I localize this to my language?
> 
> Currently there's no way to localize this, but the `author` and
> `author+email` functions are quite simple. The whole implementation is
> here: 
> https://github.com/racket/scribble/blob/54606422140136dbc8f0759f2d44e757a0193ac4/scribble-lib/scribble/base.rkt#L111-L138
> 
> The "by" is added in CSS, in the SAuthorList::before rule. That you
> can change with a simple custom additional CSS file.
> 
>> By default, scribble/manual displays the Racket version number on top. Is 
>> there a way to prevent this, or use my own version number?
> 
> I usually remove this with CSS as well.
> 
> Sam

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/49A03E4F-9E74-4C50-8AE1-0D779FBEB2AB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Scribble localization and manual style questions

2019-06-21 Thread Sam Tobin-Hochstadt
On Fri, Jun 21, 2019 at 4:10 AM Dexter Lagan  wrote:
>
>
> Am I allowed to use scribble/manual to write my manual? I love Scribble the 
> Racket docs style and wish I could use the same style;

Yes, certainly. Everyone is welcome to use this.

> By default the scribble/manual style is localized for English: @author 
> prefixes with ‘by’ and appends ‘and’ between authors. The Author and 
> Author+Email functions are hardcoded this way. The ‘author paragraph seems to 
> be writing the prefix ‘by’, but I couldn’t find its definition, and writing a 
> new scheme file just to override the functions and paragraph defs seems 
> overkill. Can I localize this to my language?

Currently there's no way to localize this, but the `author` and
`author+email` functions are quite simple. The whole implementation is
here: 
https://github.com/racket/scribble/blob/54606422140136dbc8f0759f2d44e757a0193ac4/scribble-lib/scribble/base.rkt#L111-L138

The "by" is added in CSS, in the SAuthorList::before rule. That you
can change with a simple custom additional CSS file.

> By default, scribble/manual displays the Racket version number on top. Is 
> there a way to prevent this, or use my own version number?

I usually remove this with CSS as well.

Sam

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAK%3DHD%2BadkLuRu7D22tYKrzpUigC1dS02d41WwQA%2BWUe%3DvsPC7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: doing a "show hn" of your racket project

2019-06-21 Thread Dexter Lagan
  Once my git repos will be presentable, you can be sure I'll show it all 
to HN. I'm a beyond-full-time Racket programmer and I intend to share most 
of the non-commercial code I write. I also started two blogs:

About lisp in general, but contains a lot of Racket-related posts
www.newlisper.com/blog

and

A more general, deeply technical blog, will also contain less specific 
posts about Racket:
www.eicm.net/blog

  They haven't been published anywhere, and maybe Racketeers can give me 
some feedback before I make a fool of myself elsewhere. If the content is 
up to par, feel free to mention it in the newsletter.

Dex

On Friday, June 21, 2019 at 12:28:07 AM UTC+2, Neil Van Dyke wrote:
>
> If you make something in Racket, such as a microstartup Web site, or 
> something that HN readers can otherwise use, you can publicize it with a 
> "Show HN" post, and possibly also promote Racket as a side effect. 
>
> For example, here's one making the front page of HN right now: 
>
> "Show HN: A star map creation tool with Common Lisp (thestarmaps.com)" 
> https://news.ycombinator.com/item?id=20231328 
>
> Other recent examples at: 
> https://news.ycombinator.com/show 
>
> Here's how to do it (HN has reasoned rules): 
> https://news.ycombinator.com/showhn.html 
> https://news.ycombinator.com/newsguidelines.html 
> https://news.ycombinator.com/newsfaq.html 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/972cbb2f-4320-4621-b988-0f7a73805b8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Scribble localization and manual style questions

2019-06-21 Thread Dexter Lagan
Hi folks,

 

  I hope this is the right group for my questions. The Scribble users Google
group seems empty.

I am in the process of writing a commercial application's manual. This
particular app is in French and so should be the manuals.

 

1.  Am I allowed to use scribble/manual to write my manual? I love
Scribble the Racket docs style and wish I could use the same style;
2.  By default the scribble/manual style is localized for English:
@author prefixes with 'by' and appends 'and' between authors. The Author and
Author+Email functions are hardcoded this way. The 'author paragraph seems
to be writing the prefix 'by', but I couldn't find its definition, and
writing a new scheme file just to override the functions and paragraph defs
seems overkill. Can I localize this to my language?
3.  By default, scribble/manual displays the Racket version number on
top. Is there a way to prevent this, or use my own version number?

 

Thanks in advance,

 

Dexter

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/01df01d52811%247b861ec0%2472925c40%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.