Re: [racket-users] running tests with different #langs

2018-03-23 Thread Vincent St-Amour
The typed versions of the "common" Scheme benchmarks do something similar: https://github.com/racket/racket/blob/master/pkgs/racket-benchmarks/tests/racket/benchmarks/common/typed/wrapper.rkt Vincent On Fri, 23 Mar 2018 16:15:01 -0500, Stephen Chang wrote: > > I frequently want to run

[racket-users] sharing an awesome plot - warms the cockles of my heart

2018-03-23 Thread Sanjeev Sharma
I've done no math in 20 years - used to do tons (with the not so great graphics of the time) saw this intriguing plot & banged my head against a wall for a couple of hours. Then I just settled down & read the manual systematically, pretending it may have some info, followed the examples and

[racket-users] running tests with different #langs

2018-03-23 Thread Stephen Chang
I frequently want to run the same tests with different #lang's. Has anyone written a test harness that lets me do this without duplicating the test code? (I couldnt find anything on the pkg server.) -- You received this message because you are subscribed to the Google Groups "Racket Users"

Re: [racket-users] Re: error with pdf-read / libpoppler on Windows

2018-03-23 Thread Joel Dueck
OK, I am a bit of an idiot, but in case someone else reads this thread looking for answers, here are the resolutions I've chased down so far. 1. **I did not read the docs for pdf-read well enough** because right there at the top of the main page, it says it only works on Linux and macOS.

Re: [racket-users] Splitting up a GUI source file?

2018-03-23 Thread James Platt
> May be relevant > > https://pkgs.racket-lang.org/package/spreadsheet-editor Indeed, I got part way through working with that package for this exact purpose but ran into glitches. The main thing is just a lack of documentation. At this point, I am favoring the idea of borrowing

Re: [racket-users] Re: error with pdf-read / libpoppler on Windows

2018-03-23 Thread Matthew Flatt
At Fri, 23 Mar 2018 09:39:41 -0700 (PDT), Joel Dueck wrote: > On Friday, March 23, 2018 at 9:16:55 AM UTC-5, Greg Trzeciak wrote: > > > > So it's clear it's not the path issue, see neighbouring thread on another > > possibility - some dependency of libpoppler is missing on Windows > > > > > Ok,

Re: [racket-users] Splitting up a GUI source file?

2018-03-23 Thread Stephen De Gabrielle
May be relevant https://pkgs.racket-lang.org/package/spreadsheet-editor s. On Fri, Mar 23, 2018 at 5:09 PM, James Platt wrote: > > > I am trying to create a GUI program, my problem is that the source code > for the > > GUI portion is growing out of control and I don't

Re: [racket-users] Splitting up a GUI source file?

2018-03-23 Thread Matthias Felleisen
SHORT: You may wish to *look* at the first units paper at https://www2.ccs.neu.edu/racket/pubs/#pldi98-ff because what you describe is almost exactly the example from that paper. Just read the example section. If you like what you see, jump into the docs. ;; - - - SOMEWHAT LONGER:

[racket-users] Re: error with pdf-read / libpoppler on Windows

2018-03-23 Thread Greg Trzeciak
hmm... I've tried to see what dependencies would dumpbin show on my machine for libpoppler and it fails with "e:\libpoppler-glib-8.dll : warning LNK4048: Invalid format file; ignored" so it may be that something is wrong with a binary on Windows 10. Still my previous advice (ignore anything

[racket-users] Re: error with pdf-read / libpoppler on Windows

2018-03-23 Thread Greg Trzeciak
That's why I actually prefer dumpbin (see the other thread) from depedency walker - simpler without so many confusing details. But since you probably don't have VS here is my advice: collapse entire result tree from dependency walker - leave only top level libraries to see which ones are

Re: [racket-users] Splitting up a GUI source file?

2018-03-23 Thread James Platt
> I am trying to create a GUI program, my problem is that the source code for > the > GUI portion is growing out of control and I don't know how to split it up. I'm not sure if this will really answer your question but you may want to look at some code from MrEd Designer and see how it splits

Re: [racket-users] error with pdf-read / libpoppler on Windows

2018-03-23 Thread David Storrs
On Thu, Mar 22, 2018 at 6:45 PM, Neil Van Dyke wrote: > (Warnings: the PDF documentation is big, you'll appreciate why C and C++ > programmers have difficulty implementing PDF without filling it with > vulnerabilities, and you'll also get to see some totalitarian-friendly >

[racket-users] Re: error with pdf-read / libpoppler on Windows

2018-03-23 Thread Joel Dueck
On Friday, March 23, 2018 at 9:16:55 AM UTC-5, Greg Trzeciak wrote: > > So it's clear it's not the path issue, see neighbouring thread on another > possibility - some dependency of libpoppler is missing on Windows > > Ok, I tried Dependency Walker on libpoppler-glib-8.dll, and got all kinds of

[racket-users] Splitting up a GUI source file?

2018-03-23 Thread HiPhish
Hello Racketeers, I am trying to create a GUI program, my problem is that the source code for the GUI portion is growing out of control and I don't know how to split it up. Here is some background info: the GUI is basically just a specialised frontend to a database, the users clicks some

Re: [racket-users] Windows Foreign Libraries

2018-03-23 Thread Greg Trzeciak
Another option to check for dependencies (if you have Visual Studio installed - VS community edition is free but BULKY) is to run dumpbin from console, or better yet VS code since dumpbin is in VS/bin folder. It is less overwhelming but will check only for one level deep dependencies, ie you

[racket-users] Re: error with pdf-read / libpoppler on Windows

2018-03-23 Thread Greg Trzeciak
BTW, you can use forward slashes on windows for the path "C:/Users/Joel...", I've found it more digestible than "\\" On Friday, March 23, 2018 at 3:05:07 PM UTC+1, Joel Dueck wrote: > > > ; (B) tried absolute path: >(define-ffi-definer define-poppler (ffi-lib >

[racket-users] Re: error with pdf-read / libpoppler on Windows

2018-03-23 Thread Greg Trzeciak
So it's clear it's not the path issue, see neighbouring thread on another possibility - some dependency of libpoppler is missing on Windows On Friday, March 23, 2018 at 3:05:07 PM UTC+1, Joel Dueck wrote: > > On Thursday, March 22, 2018 at 6:14:59 PM UTC-5, Greg Trzeciak wrote: >> >> Last few

[racket-users] Re: error with pdf-read / libpoppler on Windows

2018-03-23 Thread Joel Dueck
On Thursday, March 22, 2018 at 6:14:59 PM UTC-5, Greg Trzeciak wrote: > > Last few times I had this error it was one of the following: > 1. Incorrect version (32 vs 64bit) > 2. Problem with Path. > > For 2. have you tried setting it up with absolute path to eliminate Path > as a problem? > The

Re: [racket-users] error with pdf-read / libpoppler on Windows

2018-03-23 Thread Joel Dueck
This point is well taken. For my package's core functionality I mainly need to be able to get a page count and the size of the first page. I would rather not have to try and write my own functions to do that; even though it looks (from the docs you provided) like the parsing wouldn't be too

Re: [racket-users] Windows Foreign Libraries

2018-03-23 Thread Dmitry Pavlov
On 03/23/2018 03:58 PM, silverfire...@gmail.com wrote: Really silly question but I was using the rsvg package with racket/gui on Linux and everything was working fine.   I moved the code over to windows to try it out (after installing the rsvg package there) and it's complaining that

[racket-users] Windows Foreign Libraries

2018-03-23 Thread silverfire675
Really silly question but I was using the rsvg package with racket/gui on Linux and everything was working fine. I moved the code over to windows to try it out (after installing the rsvg package there) and it's complaining that librsvg-2.2.dll is missing. I've now tried two separate .dll