Re: [racket-users] Re: Andy Wingo's fold

2020-06-25 Thread Neil Van Dyke
Catonano, I haven't yet studied that paper of Andy Wingo's (thank you 
for mentioning it), but a couple ideas for answering your questions...


If people in Guile are using that tree fold approach, you might ask 
about it on one of the Guile email lists.  Incidentally, Andy has long 
been a member of the community around Guile, as well as of the Scheme 
community in general.


If you want to use that tree fold approach in Racket afterwards, most 
Scheme code will still work in Racket.  And you could probably port or 
repackage most Guile utility libraries.  (The main tricky part that 
comes to mind, in porting RnRS Scheme code to Racket, is if the code 
uses mutable pairs.)


Another option to keep in mind is that, normally when you read an 
academic paper, once you've given it a close read, and made an effort to 
be reasonably conversant in at least one aspect of the background 
material, IMHO, it's perfectly proper to contact the author of the paper 
directly, with good comments/questions.  They might not be able to keep 
up with their email, nor always sort it perfectly, but reaching out 
about a paper is part of scholarly culture, so don't be too shy.


FWIW, here's another example of tree folding, which I did as an exercise 
while trying to understand some of Oleg Kiselyov's XML work better: 
https://www.neilvandyke.org/racket/json-parsing/  (If it doesn't 
immediately help at all, don't waste your time looking at it any more.  
I'd do the interface differently next time, and definitely not use 
`syntax-rules` in the implementation again, but it's an example.)


Neil

--
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/da82b74d-eb8f-e76b-e730-db98e3c56999%40neilvandyke.org.


Re: [racket-users] Re: Andy Wingo's fold

2020-06-25 Thread Philip McGrath
On Sun, Jun 14, 2020 at 2:20 PM Catonano  wrote:

> I'm referring to a paper titled: "A better XML parser through functional
> programming"
>
> by Oleg Kiselyov
>

Ah, I see. I'm not deeply familiar with it myself (I mostly use Racket's
`xml` library), but there is a Racket port of Oleg's SSAX, and the source
code includes extensive comments.

Code: https://github.com/jbclements/sxml
Package documentation (limited): https://docs.racket-lang.org/sxml/

Oleg's website also has some links, though some are broken:
http://okmij.org/ftp/Scheme/xml.html#XML-parser

Hope this helps!

-Philip

-- 
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/CAH3z3gYHHJ7NHr4%3DNmUBOWHEU6skgBYac3n78OVHn%2BVuB%3D74YQ%40mail.gmail.com.


Re: [racket-users] Re: [racket-money] Fwd: [racket-dev] Racket Survey 2020

2020-06-25 Thread Stephen De Gabrielle
Hi

On Thu, Jun 25, 2020 at 5:34 AM Alex Harsanyi 
wrote:

> I understand that the core Racket team is busy, but they are the only ones
> who can clarify the criteria for merging a pull request and also only they
> can review and merge them --
>

You made me think of the style guide, but when I looked it has a section on
contributing PR's that I hadn't seen, read or remembered:
https://docs.racket-lang.org/style/branch-and-commit.html

This will be after i fix MY bad PR !
https://github.com/Metaxal/quickscript-extra/pull/9#discussion_r445376039


> *Didn't you compile and run the script before submitting? It should tell
> you there's an error.When you make a PR (for any Racket project), always do
> the following:*
>
>- raco pkg setup [package]
>
>
>- raco test [package]
>
>
I was caught out! I made a last minute change without testing.

Maybe we could look a expanding
https://github.com/racket/racket/wiki/Propose-a-fix-or-enhancement
to
a) reference the style guide:
https://docs.racket-lang.org/style/branch-and-commit.html
b) provide a little more detail

As for  https://github.com/racket/plot/pull/5 - I'll commit to having a go
at reviewing it tomorrow AFTER *I fix my bad PR*.

Kind regards
Stephen
(On the laptop in the garden because it is 10:50pm and it is too hot in
house.)

-- 


-- 
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/CAGHj7-J2X9L%2BMCc4fXRv9KCenCGZYkrYHt7rqT1mjiAaz1FsDw%40mail.gmail.com.


Re: [racket-users] Xcode, embedding Racket.framework

2020-06-25 Thread Stephen De Gabrielle
This world be great content for the wiki

Hi Nate,
This would be great content for the racket wiki
https://github.com/racket/racket/wiki

You can post it yourself or I am happy to do it for you.
https://github.com/racket/racket/wiki/_new

Kind regards,
Stephen

On Wed, 24 Jun 2020 at 17:54, Nate Griswold  wrote:

> Hello
>
> I recently went through the process of embedding the Racket.framework in
> Xcode, and i just wanted to share the steps in case anyone else would like
> to do this.
>
> Note the documentation says (
> https://docs.racket-lang.org/inside/cs-embedding.html)
>
> "On Mac OS, besides "libracketcs.a" for static linking, a dynamic library
> is provided by the "Racket" framework, which is typically installed in
> "lib" sub-directory of the installation. Supply -framework Racket to gcc
> when linking, along with -F and a path to the "lib" directory. At run
> time, either "Racket.framework" must be moved to a location in the
> standard framework search path, or your embedding executable must provide a
> specific path to the framework (possibly an executable-relative path using
> the Mach-O @executable_path prefix)."
>
> That sets the rpath search paths but the library binary still needs to
> reference @rpath to make use of these search paths. Below we use
> install_name_tool to fix up the binary to reference the @rpath directly.
>
> Note also that Xcode is hard coded to codesign in the Versions/A
> subdirectory and hasn't added any support for signing other major versions,
> so i link version A in the below steps. This step is only necessary if you
> wish to sign the framework on copy.
>
> Note also for a proper framework structure, the framework should have an
> Info.plist in Resources and a Versions/Current symlink. Top-level symlinks
> directly in Racket.framework should reference only Versions/Current and
> both Resources and the binary library (Racket) should be referenced. (see
> https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
> )
>
> Note also i did all of this with racket cs, you would have to modify the
> steps if you were using normal racket.
>
> All that said, here are the steps:
>
> Drag the framework into xcode
> select copy if needed, ok
> Click on project, General tab, "Frameworks, Libraries, and Embeddeed
> Content"
> Change do not embed to either embed or embed and sign
> cd to your copied framework in your project
> cd Versions
> ln -s 7.7_CS Current
> if "embed and sign" was chosen:
>   ln -s 7.7_CS A (xcode is hard coded to sign the major version A, see
> https://developer.apple.com/forums/thread/65963)
> cp /path/to/Info.plist 7.7_CS/Resources
> cd ..
> rm -f Racket
> ln -s Versions/Current/Racket
> ln -s Versions/Current/Resources
> install_name_tool -id @rpath/Racket.framework/Versions/7.7_CS/Racket
> ./Racket
> otool -L Racket (to verify)
> Switch to Xcode, build and run
>
> Nate
>
> --
> 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/CAM-xLPpC3Ona-zbV6r43dD_xjSmXa_eGGRLfFERuQ_tBgG%3D4HQ%40mail.gmail.com
> 
> .
>
-- 


-- 
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/CAGHj7-%2Bv3nM%3D2X1V7YGrbToAi79GeAAE5cisN0KziLgrRjX9Ew%40mail.gmail.com.