Re: [racket-users] note about parsing speed of xml vs sxml?

2020-06-26 Thread Neil Van Dyke
I think anyone using XML or HTML seriously with Racket should probably 
at least be told of the SXML family of tools.  And warned about the 
compatibility problems.


Though not tell them *everywhere* XML in the docs.  For example, I 
figure a tutorial for Racket Web Server shouldn't distract readers with 
that.


As you know, :) there are some useful tools using SXML, and Oleg's SSAX 
parser has some different properties than core Racket's XML parser.


Complication: The incompatibility between SXML and core Racket's 
representations of XML is an unfortunate accident of parallel 
invention, and I think will tend to be confusing to new people.  I once 
tried to address the confusion in the `sxml-intro` documentation 
package, "https://www.neilvandyke.org/racket/sxml-intro/;, and I'm 
unhappy with the result.  The details in my document say more than 
perhaps anyone will ever want to know, and, "optics"-wise, make the 
situation look worse than it actually is in practice.  I think you could 
do a more graceful job of this.


(Someday, someone might undertake the large task of SXML-ifying all the 
many non-SXML bits of Racket, and incidentally reunite Racket with the 
rest of the Scheme community in that regard.  I started, with one piece, 
but got interrupted. 
"https://www.neilvandyke.org/racket/rws-html-template/"  :)


--
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/79401c33-1468-d716-aa31-45e4cc018890%40neilvandyke.org.


[racket-users] note about parsing speed of xml vs sxml?

2020-06-26 Thread 'John Clements' via users-redirect
I’m parsing a large-ish apple plist file, (18 megabytes), and I find that the 
built-in xml parsing (read-xml) takes about five times as long as the sxml 
version (11 seconds vs 2.4 seconds on my machine), and that the plist parser is 
way longer, at 18 seconds.

Would anyone object if I added a margin note to this effect to the xml docs?

John



-- 
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/299d18fa-3e0d-4cf4-b259-c281eab6dbcc%40mtasv.net.


[racket-users] Pasting an Image from windows clipboard and annotating it

2020-06-26 Thread frangonve
Hello, A newbie here:

I want to insert an image from windows clipboard to a rectangular widget 
that will take the image size. Then when  repeatedly clicking the mouse on 
different coordinates of the image I want to superimpose each time the next 
letter in alphabetic order with transparent background:

This is the type of images to insert:

[image: Clever Mines 20200318.png]

This is what I want to show after clicking several times on the image 
high-left corner:

[image: Clever Mines 20200318 id.png]

Please can you help me?

Cheers

Francisco 

-- 
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/0fee9e3e-a075-4ccf-b59b-03d7f33c5f40o%40googlegroups.com.


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

2020-06-26 Thread Nate Griswold
ok, added https://github.com/racket/racket/wiki/Embedding-Racket

Nate


On Thu, Jun 25, 2020 at 4:30 AM Stephen De Gabrielle <
spdegabrie...@gmail.com> wrote:

> 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/CAM-xLPrU2q%2BjVe91NVX3SFeX8%3DFMV16TnmDT1GRP6ZO0XnAD1g%40mail.gmail.com.


Re: [racket-users] racket-dev problem?

2020-06-26 Thread Sam Tobin-Hochstadt
There are no currently-pending messages for the racket-dev list, so
your email has not been caught in a spam filter. I have not seen
problems with the list recently.

Can you say more about what has happened?

Sam

On Fri, Jun 26, 2020 at 1:15 PM Jos Koot  wrote:
>
> Sending mail to racket -dev seems not to arrive correctly.
>
> Sending to other addresses does work.
>
> Therefore I try to report via racket-users.
>
> Jos
>
>
>
> --
> 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/94D32D8C-D5A0-4B85-A326-CC3BCABED799%40hxcore.ol.

-- 
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%2BbT_rjJZfd211bkrVSi9CRb4V5w8VGtnK4jrtbO9jt7dQ%40mail.gmail.com.


[racket-users] racket-dev problem?

2020-06-26 Thread Jos Koot
Sending mail to racket -dev seems not to arrive correctly.Sending to other addresses does work.Therefore I try to report via racket-users.Jos 



-- 
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/94D32D8C-D5A0-4B85-A326-CC3BCABED799%40hxcore.ol.