Re: [racket-users] Racket internal error when trying to create an executable

2016-04-01 Thread Matthew Flatt
I've pushed a repair for this problem.


For v6.4, I don't have a workaround except to patch

 "collects/syntax/private/modcollapse-noctc.rkt"

by changing line 330 from

 (normalize-submod `(submod ,(normalize-recur (cadr s)) ,@relto-submod ,@(cddr 
s)))])]

to

 (normalize-submod `(submod ,(normalize-recur (cadr s)) ,@(cddr s)))])]



At Thu, 31 Mar 2016 16:08:56 -0700 (PDT), Alex Harsanyi wrote:
> Hi,
> 
> I'm getting an error when trying to create an executable for a program that 
> uses the math/statistics module.  The simplest example that reproduces the 
> issue is:
> 
>   #lang racket
>   (require math/statistics)
> 
>   (let* ([s  empty-statistics]
>  [s  (update-statistics s 1)]
>  [s  (update-statistics s 2)]
>  [s  (update-statistics s 3)]
>  [s  (update-statistics s 4 2)])
> (values (statistics-mean s)
> (statistics-stddev s #:bias #t)))
> 
> The above program runs fine in DrRacket, but when I try to create an 
> stand-alone executable (from the "Racket/Create executable..." DrRacket menu 
> option), I get a "Racket internal error" message:
> 
> require: unknown module
> module name: # Files\Racket\share\pkgs\math-lib\math\private\distributions\dist-struct.rkt" 
> #%contract-defs #%contract-defs)>
> 
> The file referenced in the error message exists and can be read.
> 
> I'm using Racket 6.4 64Bit on Windows 7.
> 
> Any advice on how to get this to work?
> 
> Thanks,
> Alex.
> 
> -- 
> 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.
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Re: Racket internal error when trying to create an executable

2016-04-01 Thread George Neuner

Hi Alex,

On 4/1/2016 2:17 AM, Alex Harsanyi wrote:

Hi George,

The option to create an executable from DrRacket worked fine for me in Racket 
6.4 and several prior versions.

However, this particular problem also happens when I use 
`create-embedded-executable' (which ultimately raco exe uses), which is how I 
build my application.  I noticed it when I added the dependency on 
math/statistics.

The example I provided is the smallest case that reproduces the problem.

Best Regards,
Alex.



I tried your example in 6.1.1 ...  it works building an executable both 
from the menu in DrRacket and via raco.   There may be a new issue in 
the later version.


But the fact that this works in 6.1.1 doesn't mean much either.  I have 
a several large(ish) applications that hang DrRacket  (on Windows 
anyway)  if I try to build executables from the menu.  Using raco always 
works unless there's a dependency problem.


George

--
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Announcing (sixth RacketCon) and Call for Speakers

2016-04-01 Thread Vincent St-Amour

Racketeers,

(sixth RacketCon) will be held on September 18th in St. Louis.
We are pleased to once more be co-located with Strange Loop[1].

RacketCon[2] is a yearly event where members of the Racket community get
together, featuring talks and demos about the things you do with Racket.

If you've built something cool with Racket, we want to hear about it!
We're looking for speakers to give 15 minute talks about their
Racket-based applications, libraries, activities, etc. If that sounds
like fun, please send me a talk proposal!

Talk proposals should include a tentative title, a brief description of
the topic and a short bio. Please note, though, that because of time
constraints, we may not be able to accept all proposals.

Registration is not open yet, but we'll let you know when it is.

Hope to see you there!

Vincent, for the Racket team


[1] https://thestrangeloop.com/
[2] Content from previous years at: http://con.racket-lang.org/

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] racket not W^X?

2016-04-01 Thread Asumu Takikawa
On 2016-04-01 11:32:51 -0400, Philippe Meunier wrote:
> In that discussion there is a link to a list of programs that Linux's PaX
> believes do not meet the W^X requirement:
> https://github.com/thestinger/paxd/blob/master/paxd.conf For your
> information, racket is on that list (I guess because the JIT uses memory
> pages which are both writable and executable).

There is also a bug report about this on Github with some more information:

  https://github.com/racket/racket/issues/1296

Cheers,
Asumu

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: racket not W^X?

2016-04-01 Thread Juan Francisco Cantero Hurtado

On 01/04/16 17:32, Philippe Meunier wrote:

Hello,

I was reading a discussion about "an upcoming Common Criteria
requirement that no memory may be executable and writable at the same
time": https://readlist.com/lists/openbsd.org/misc/33/168358.html
(Common Criteria = the Common Criteria for Information Technology
Security Evaluation standard).  In that discussion there is a link to
a list of programs that Linux's PaX believes do not meet the W^X
requirement: https://github.com/thestinger/paxd/blob/master/paxd.conf
For your information, racket is on that list (I guess because the JIT
uses memory pages which are both writable and executable).


IIRC, even the interpreter with JIT disabled is also affected.

--
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] racket not W^X?

2016-04-01 Thread Philippe Meunier
Hello,

I was reading a discussion about "an upcoming Common Criteria
requirement that no memory may be executable and writable at the same
time": https://readlist.com/lists/openbsd.org/misc/33/168358.html
(Common Criteria = the Common Criteria for Information Technology
Security Evaluation standard).  In that discussion there is a link to
a list of programs that Linux's PaX believes do not meet the W^X
requirement: https://github.com/thestinger/paxd/blob/master/paxd.conf
For your information, racket is on that list (I guess because the JIT
uses memory pages which are both writable and executable).

Cheers,

Philippe


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] [TFP 2016] Final call for papers

2016-04-01 Thread p.achten
-
C A L L   F O R   P A P E R S
-

 TFP 2016 ===
 
  17th Symposium on Trends in Functional Programming
   June 8-10, 2016
 University of Maryland, College Park
 Near Washington, DC
 http://tfp2016.org/


The symposium on Trends in Functional Programming (TFP) is an
international forum for researchers with interests in all aspects of
functional programming, taking a broad view of current and future
trends in the area. It aspires to be a lively environment for
presenting the latest research results, and other contributions (see
below). Authors of draft papers will be invited to submit revised
papers based on the feedback receive at the symposium.  A
post-symposium refereeing process will then select a subset of these
articles for formal publication.

TFP 2016 will be the main event of a pair of functional programming
events. TFP 2016 will be accompanied by the International Workshop on
Trends in Functional Programming in Education (TFPIE), which will take
place on June 7nd.


== INVITED SPEAKERS ==

TFP 2016 is pleased to announce keynote talks by the following two
invited speakers:

* Ronald Garcia, University of British Columbia
* Steve Zdancewic, University of Pennsylvania


== HISTORY ==

The TFP symposium is the heir of the successful series of Scottish
Functional Programming Workshops. Previous TFP symposia were held in
   * Edinburgh (Scotland) in 2003;
   * Munich (Germany) in 2004;
   * Tallinn (Estonia) in 2005;
   * Nottingham (UK) in 2006;
   * New York (USA) in 2007;
   * Nijmegen (The Netherlands) in 2008;
   * Komarno (Slovakia) in 2009;
   * Oklahoma (USA) in 2010;
   * Madrid (Spain) in 2011;
   * St. Andrews (UK) in 2012;
   * Provo (Utah, USA) in 2013;
   * Soesterberg (The Netherlands) in 2014;
   * and Inria Sophia-Antipolis (France) in 2015.
For further general information about TFP please see the TFP homepage.
(http://www.tifp.org/).


== SCOPE ==

The symposium recognizes that new trends may arise through various
routes.  As part of the Symposium's focus on trends we therefore
identify the following five article categories. High-quality articles
are solicited in any of these categories:

Research Articles: leading-edge, previously unpublished research work
Position Articles: on what new trends should or should not be
Project Articles: descriptions of recently started new projects
Evaluation Articles: what lessons can be drawn from a finished project
Overview Articles: summarizing work with respect to a trendy subject

Articles must be original and not simultaneously submitted for
publication to any other forum. They may consider any aspect of
functional programming: theoretical, implementation-oriented, or
experience-oriented.  Applications of functional programming
techniques to other languages are also within the scope of the
symposium.

Topics suitable for the symposium include, but are not limited to:

 Functional programming and multicore/manycore computing
 Functional programming in the cloud
 High performance functional computing
 Extra-functional (behavioural) properties of functional programs
 Dependently typed functional programming
 Validation and verification of functional programs
 Debugging and profiling for functional languages
 Functional programming in different application areas:
   security, mobility, telecommunications applications, embedded
   systems, global computing, grids, etc.
 Interoperability with imperative programming languages
 Novel memory management techniques
 Program analysis and transformation techniques
 Empirical performance studies
 Abstract/virtual machines and compilers for functional languages
 (Embedded) domain specific languages
 New implementation strategies
 Any new emerging trend in the functional programming area

If you are in doubt on whether your article is within the scope of
TFP, please contact the TFP 2016 program chair, David Van Horn.


== BEST PAPER AWARDS ==

To reward excellent contributions, TFP awards a prize for the best paper
accepted for the formal proceedings.

TFP traditionally pays special attention to research students,
acknowledging that students are almost by definition part of new
subject trends. A student paper is one for which the authors state
that the paper is mainly the work of students, the students are listed
as first authors, and a student would present the paper. A prize for
the best student paper is awarded each year.

In both cases, it is the PC of TFP that awards the prize. In case the
best paper happens to be a student paper, that paper will then receive
both prizes.


== SPONSORS ==

TFP is financially supported by CyberPoint, Galois, Trail of Bits, and
the 

Re: [racket-users] using a different "scribble.tex"

2016-04-01 Thread Tim Jervis
Many thanks for updating the thread and for the patch. To make it work for me, 
I had to make a small additional change. I need to replace “scribble.tex”, so 
I've tweaked my latex-render.rkt source at line 118 to wrap scribble-tex within 
a call to your maybe-replace function. With that done, it works just fine.

I don’t see a way for scribble-load-replace.tex to help me avoid loading 
scribble.tex or avoid loading the definitions within it, but I am no expert and 
might have misunderstood it. As I see it, scribble-load-replace is a way to 
redefine which graphicx, hyperref, etc. packages are loaded. The stabular 
macros are more deeply embedded in scribble.tex.

Tim

> On 31 Mar 2016, at 16:51, Spencer Florence  wrote:
> 
> Oops, guess I forgot to update this thread.
> 
> This commit 
> (https://github.com/racket/scribble/commit/2881ef290ddfef6b645eaabc997c9bd6fddaa641
>  
> )
>  tries to address this problem.
> 
> Roughly, you can use `latex-defaults+replacements` to replace 
> `scribble-load-replace.tex` and override the macros that generate the latex 
> includes.
> 
> --spf
> 
> 
> On Thu, Mar 31, 2016 at 2:45 AM Tim Jervis  > wrote:
> Commenting out scribble.tex with an open comment in prefix.tex and closing 
> comment in scribble.tex works, to a point. It hides scribble.tex, but it also 
> hides any dynamic inclusions such as figure.tex.
> 
> I have been trying to use the longtable package in preference to the 
> stabular-based  package that Scribble uses for long tables. Unfortunately 
> scribble.tex creates some incompatible definitions, which I have been trying 
> to work around. My current best option appears to be hacking scribble.tex in 
> the Racket source to remove those definitions. It would be nice to avoid 
> hacking the source.
> 
>> On 6 Jan 2016, at 20:53, Matthew Flatt > > wrote:
>> 
>> There's not currently a simple way to replace "scribble.tex".
>> 
>> Probably you can hack anything by providing an alternate prefix file
>> (i.e., replacement for "scribble-prefix.tex"). For example, I bet it
>> would be possible to make the prefix file end with an unfinished
>> comment, have the comment swallow "scribble.tex" completely, and have a
>> style file (i.e., replacement for "scribble-style.tex") end the comment
>> and drop in your replacement for "scribble.tex".
>> 
>> At Wed, 06 Jan 2016 20:44:40 +, Spencer Florence wrote:
>>> Hey all,
>>> 
>>> I'm currently trying to use a custom tex style file with scribble.
>>> Unfortunately this style file conflicts with the line
>>> "\usepackage[usenames,dvipsnames]{color}" in the "scribble.tex" file
>>> include by the scribble to tex compiler.
>>> 
>>> Is there any way to tell scribble to use a different "scribble.tex"?
>>> 
>>> --spencer
>>> 
>>> -- 
>>> 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 
>>> .
>>> 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 
>> .
>> For more options, visit https://groups.google.com/d/optout 
>> .
> 
> 
> Tim Jervis
> 
> http://timjervis.com/ 


Tim Jervis

http://timjervis.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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: Racket internal error when trying to create an executable

2016-04-01 Thread Alex Harsanyi
Hi George,

The option to create an executable from DrRacket worked fine for me in Racket 
6.4 and several prior versions.

However, this particular problem also happens when I use 
`create-embedded-executable' (which ultimately raco exe uses), which is how I 
build my application.  I noticed it when I added the dependency on 
math/statistics.

The example I provided is the smallest case that reproduces the problem.

Best Regards,
Alex.

-- 
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.
For more options, visit https://groups.google.com/d/optout.