[racket-users] Readtable extensions and syntax coloring in DrRacket

2017-05-01 Thread brendan
I wrote a little Racket meta-language that adds a dispatch macro to the readtable for typing string literals without escape characters. You start with two or more #'s followed by any non-# character, then the actual string content, then end with the same non-# character and the same number of

Re: [racket-users] Readtable extensions and syntax coloring in DrRacket

2017-05-01 Thread Andrew Gwozdziewycz
Hi Brendan, I'm wondering if you tried the here string syntax for your use case, which other than the fact that it requires a couple of newlines seems similar in vein to what you were going for (e.g. it doesn't escape anything)? ```racket > #< wrote: > I wrote a little Racket meta-language that

Re: [racket-users] Racket v6.9

2017-05-01 Thread Vincent St-Amour
There was an issue with the signatures on the Windows installers for 6.9. We've uploaded new, properly signed Windows installers to download.racket-lang.org Thanks to Magda Wojciecchowska for the report! Vincent On Thu, 27 Apr 2017 15:47:55 -0500, Vincent St-Amour wrote: > > Racket version

[racket-users] Re: #lang languages and cyclic dependencies

2017-05-01 Thread Alex Harsanyi
Hi Philip, I don't have an answer to your problem, but I'm curious as to what do you store in "local.rkt" and "production.rkt" to justify such a complicated solution. In the projects that I worked on (Racket or otherwise), local vs production differ in the values for different parameters,

Re: [racket-users] Self evaluating Racket Interpreter

2017-05-01 Thread Scott Moore
Hijacking this thread a little, but a pet peeve: ‘(1 2 3) is not short for (list 1 2 3), it just happens to evaluate to that… (let ([x 0]) (list x x)) -> (list 0 0) (let ([x 0]) ‘(x x)) -> (list ‘x ‘x) Perhaps the reader should implement #l(, which inserts an explicit `list` at the beginning

Re: [racket-users] Self evaluating Racket Interpreter

2017-05-01 Thread Ben Greenman
'(1 2 3) is short for (list 1 2 3) which is short for (cons 1 (cons 2 (cons 3 null)) which is different from (mcons 1 (mcons 2 (mcons 3 null))) I hope this helps On Mon, May 1, 2017 at 1:03 PM, wrote: > I posted this question on stackoverflow but have not found an

Re: [racket-users] Self evaluating Racket Interpreter

2017-05-01 Thread Jens Axel Søgaard
I recommend you change your representation to structures. See new answer: http://stackoverflow.com/a/43723966/23567 /Jens Axel 2017-05-01 19:03 GMT+02:00 : > I posted this question on stackoverflow but have not found an answer yet. >

Re: [racket-users] Self evaluating Racket Interpreter

2017-05-01 Thread Scott Moore
Matthias helpfully pointed me at this  http://www.ccs.neu.edu/home/matthias/HtDP2e/part_two.html#%28part._i2-3%29, which made me reflect a bit more and I agree now it is fair to say that `(1 2 3) is short for (list 1 2 3). Perhaps a reflexive reaction from letting myself get confused about

Re: [racket-users] OpenSSL vs. NaCl/libsodium

2017-05-01 Thread Tony Garnock-Jones
On 4/30/17 11:51 PM, James wrote: > I think we want standard TLS. I know enough about cryptography to > know that I really don't want to roll my own. So I guess OpenSSL is > what we'll use but then, maybe, something else for local file > cryptography and signing. We might even use OpenPGP as a

[racket-users] Self evaluating Racket Interpreter

2017-05-01 Thread circularballs
I posted this question on stackoverflow but have not found an answer yet. https://stackoverflow.com/questions/43476080/self-evaluting-racket-interpreter I've been trying to write a Racket interpreter that can interpret itself. interpreter.rkt contains the code for the interpreter. It is pretty

Re: [racket-users] Re: #lang languages and cyclic dependencies

2017-05-01 Thread Philip McGrath
I have often done it that way, too. In this case I decided to use a #lang for a few reasons: - The values for some of the parameters are not readable. - In some cases I want to do a little bit of work to calculate the value. For instance, "production.rkt" reads in the values of some API

[racket-users] Final call for papers: Trends in Functional Programming, 19-21 june 2017, University of Kent, Canterbury

2017-05-01 Thread p.achten
- F I N A L C A L L F O R P A P E R S - TFP 2017 === 18th Symposium on Trends in Functional Programming

[racket-users] How do I debug scope-manipulating code

2017-05-01 Thread 'William J. Bowman' via Racket Users
Does anyone have advice on how to debug scope-manipulating meta-programs? I'm not talking about the little 5 line example macros shown in the docs, but thousands of lines of meta-programming that intentionally manipulates binding, but sometimes apparently does it wrong. Part of the problem is

[racket-users] Re: Any good way to shadow a required module?

2017-05-01 Thread Matthew Butterick
On Monday, May 1, 2017 at 9:55:10 PM UTC-7, Jinzhou Zhang wrote: > Thus my question is: is there any good way to shadow a required module? `subtract-in` http://docs.racket-lang.org/reference/require.html?q=subtract-in#%28form._%28%28lib._racket%2Frequire..rkt%29._subtract-in%29%29 -- You

Re: [racket-users] Self evaluating Racket Interpreter

2017-05-01 Thread circularballs
On Tuesday, May 2, 2017 at 2:03:23 AM UTC+8, Jens Axel Søgaard wrote: > I recommend you change your representation to structures. > > > See new answer: > > > http://stackoverflow.com/a/43723966/23567 > > > > /Jens Axel > > > > > > > 2017-05-01 19:03 GMT+02:00 : >

[racket-users] Re: Self evaluating Racket Interpreter

2017-05-01 Thread circularballs
I am somewhat reluctant to use structures as I want to keep the interpreter as minimal as possible. Also, I'm not familiar enough with the semantics of frames to implement it in interpreter.rkt. With regards to mcons being different from cons, Oscar Lopez has suggested that in stackoverflow.

[racket-users] Any good way to shadow a required module?

2017-05-01 Thread Jinzhou Zhang
I'm creating my own language axe: http://docs.racket-lang.org/axe/index.html which aimed at providing a "good default" for myself. Now I am trying to include Alexis's data/collection as defaults. Thus I need to: ``` (require racket) (require data/collection) (provide (all-from-out racket))

Re: [racket-users] Readtable extensions and syntax coloring in DrRacket

2017-05-01 Thread William G Hatch
I would also like to know about this. For what it's worth, I also have an extension for literal strings (the udelim package, and I've been behind using «guillemets» as nestable literal string quotes), and I haven't figured out how to extensibly change the coloring either. One of my more

[racket-users] Re: Any good way to shadow a required module?

2017-05-01 Thread Jinzhou Zhang
On Tuesday, May 2, 2017 at 1:04:13 PM UTC+8, Matthew Butterick wrote: > On Monday, May 1, 2017 at 9:55:10 PM UTC-7, Jinzhou Zhang wrote: > > Thus my question is: is there any good way to shadow a required module? > > `subtract-in` > >