Re: [racket-users] snake game

2019-01-24 Thread orenpa11
Hi where can I find the test-engine ? I would like to copy the code and "play" with it. So I can understand it better . just copying the code is not helpful because I need to understand it. Thanks, Or On Thursday, January 24, 2019 at 11:54:34 PM UTC+2, Matthias Felleisen wrote: > > > Yes

Re: [racket-users] get-pure-port/headers very slow

2019-01-24 Thread Greg Hendershott
Trying now, it finishes within 1 second for me. I tried on macOS with all of 6.10, 7.1, and a recent-ish build of HEAD, 7.2.0.2. On Thu, Jan 24, 2019 at 5:18 PM Sam Tobin-Hochstadt wrote: > > I investigated this (on linux) by killing the process after 1 and > after 10 seconds, and both were in

Re: [racket-users] Scribble examples for languages other than Racket

2019-01-24 Thread Alex Knauth
Would the `scribble-code-examples` package work for you? https://docs.racket-lang.org/scribble-code-examples/index.html An example use of it might be: @code-examples[#:lang "plisqin" #:context #'here]|{ {where x.Foo > 3} }| Alex

Re: [racket-users] Github collection for making a language

2019-01-24 Thread George Neuner
On 1/24/2019 3:39 PM, Stephen De Gabrielle wrote:  (does windows include `make` ?) No.  Windows provides no development tools aside from scripting [cmd or powershell]. Couple alternatives [there may be more]:  Cygwin provides a Unix/Linux like environment [bash, utilities] for Windows

Re: [racket-users] get-pure-port/headers very slow

2019-01-24 Thread Neil Van Dyke
P. Baillet wrote on 1/24/19 5:07 PM: The same request with |curl| takes around 3ms server side and less than 1s term time. What’s the right way to investigate this issue? One way to start is to run Wireshark (or tcpdump, or similar), and watch the network traffic, for both cases (curl and

Re: [racket-users] Re: Execution ends before log message is displayed

2019-01-24 Thread Matthew Flatt
At Thu, 24 Jan 2019 14:16:55 -0800 (PST), Brian Adkins wrote: > I'm not familiar with the implementation of Racket's logging, but it seems > reasonable that once (log-message) returns the log message would be > immediately available for sync'ing i.e. it's not arriving asynchronously. That's

Re: [racket-users] get-pure-port/headers very slow

2019-01-24 Thread Sam Tobin-Hochstadt
I investigated this (on linux) by killing the process after 1 and after 10 seconds, and both were in the `ssl-connect` function in `openssl/mzssl`. So my guess is it's something there. Sam On Thu, Jan 24, 2019 at 5:07 PM P. Baillet wrote: > > Hello Racketeers, > > With Racket 7.1 on macOS, the

Re: [racket-users] Re: Execution ends before log message is displayed

2019-01-24 Thread Brian Adkins
On Thursday, January 24, 2019 at 12:44:51 AM UTC-5, gneuner2 wrote: > > > > On 1/23/2019 12:02 PM, Brian Adkins wrote: > > It looks like you're still using an arbitrary wait time to assume the > > logging event queue is empty. I like it much better than my sleep > > idea, but it seems like

[racket-users] get-pure-port/headers very slow

2019-01-24 Thread P. Baillet
Hello Racketeers, With Racket 7.1 on macOS, the following snippet takes some time to run: ``` #lang racket (require net/url) (require net/url-string) (get-pure-port/headers (string->url "https://video.blender.org;)) ``` ```shell time racket plop.rkt # "Access-Control-Allow-Origin:

Re: [racket-users] snake game

2019-01-24 Thread Matthias Felleisen
Yes there is. Use (require test-engine/racket-tests) at the top and (test) at the bottom. But it sounds like you’re copying and pasting homework solutions. Hmph. > On Jan 24, 2019, at 3:44 PM, orenpa11 wrote: > > Hi Matthias , > Unfortunately I need to write the project in pretty big

Re: [racket-users] hackernews

2019-01-24 Thread 'Paulo Matos' via Racket Users
On 31/12/2018 19:09, Stephen De Gabrielle wrote: > > On a related tack, I've started writing a '7 reasons why your next > project should be in built on Racket' let me know if you would be > interested in providing feedback.  (My inspiration was a similar post > for Python) > How's this

Re: [racket-users] snake game

2019-01-24 Thread orenpa11
Hi Matthias , Unfortunately I need to write the project in pretty big language. The game is not written in pretty big language as far as I know. I thought that can copy andycode that was written in any language in racket to pretty big. Is there a way to transfer code that was written in

Re: [racket-users] Github collection for making a language

2019-01-24 Thread Stephen De Gabrielle
Thanks, I've put both nand-lang and racket-peg for the moment. Does it install on Windows? I don't want to exclude windows users. (does windows include `make` ?) https://github.com/spdegabrielle/explore/tree/make-your-own-PL/collections/make-programming-languages Stephen On Thu, Jan 24,

Re: [racket-users] Collections and data structures wishlist?

2019-01-24 Thread Matthias Felleisen
(define tuple/c list/c) The key to list/c and listof is that the code inside of functions contracted with either of them can use map and filter and everything else to process the arguments. > On Jan 24, 2019, at 8:33 AM, Gustavo Massaccesi wrote: > > I also like the idea of a contract

Re: [racket-users] snake game

2019-01-24 Thread Matthias Felleisen
Where did you find the snake game? Where did it say it’s written in Pretty Big? We have not used Pretty Big in over a decade in education, neither does anyone in the Racket edu community proper. This community supports people readily wth answers, but we need to know what you know. —

Re: [racket-users] Github collection for making a language

2019-01-24 Thread rain1
On 2019-01-24 17:03, Stephen De Gabrielle wrote: Hi, GitHub has a feature called ‘Collections’ https://github.com/collections that are community generated content. e.g. https://github.com/collections/choosing-projects I thought I’d make one for ‘How to make your own PL’ I’ve come up with an

Re: [racket-users] snake game

2019-01-24 Thread George Neuner
On 1/24/2019 12:56 PM, orenpa11 wrote: I need to create a project in pertty big . why this code is not been supported ? "Pretty Big" is supported.   - go to the Language menu   - select "Choose Language"   - go down to "Other Languages" If you don't see a list under "Other Languages", click

Re: [racket-users] snake game

2019-01-24 Thread orenpa11
Hi I need to create a project in pertty big . why this code is not been supported ? Thanks, Or On Thursday, January 24, 2019 at 3:29:11 PM UTC+2, Kieron Hardy wrote: > > The language you should be using is "Beginning Student with List > Abbreviations". > > On Jan 24, 2019, at 4:33 AM, orenpa11

Re: [racket-users] Collections and data structures wishlist?

2019-01-24 Thread David Storrs
> When it comes to collections and data structures, what would you all like to > see in Racket2? New APIs? Changes to existing APIs? Whole new paradigms? > Something else? I wrote the struct-plus-plus module (https://docs.racket-lang.org/struct-plus-plus/index.html) because I wanted some

Re: [racket-users] net/url: Can not download a file over HTTPS

2019-01-24 Thread Dmitry Pavlov
An additional reason to do it with Racket's HTTP libraries is so that one bot someday going crazy doesn't make a devops/sysadmin see that it's Racket, and think unhappy thoughts about Racket. :) Agreed. Best regards, Dmitry -- You received this message because you are subscribed to the

Re: [racket-users] Github collection for making a language

2019-01-24 Thread Ben Greenman
> I think beautiful racket, and fear-of-macros are essential, but I feel I > lack resources for > > - Creating other styles of syntax: e.g. c/java, python, ruby, > smalltalk, forth, etc. > > - A video with a good quality image > > - IDE(DrRacket) support for new language

[racket-users] https://github.com/topics/racket

2019-01-24 Thread Stephen De Gabrielle
Comments/corrections? S. -- -- 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

[racket-users] Github collection for making a language

2019-01-24 Thread Stephen De Gabrielle
Hi, GitHub has a feature called ‘Collections’ https://github.com/collections that are community generated content. e.g. https://github.com/collections/choosing-projects I thought I’d make one for ‘How to make your own PL’ I’ve come up with an initial list of resources that would be

Re: [racket-users] net/url: Can not download a file over HTTPS

2019-01-24 Thread Neil Van Dyke
BTW, it is often (not always) good practice for a Web crawler/scraper to set a `User-Agent` header specific to the particular program. This convention dates from when the Web was much more cooperative, but a lot of people still do it. An additional reason to do it with Racket's HTTP

Re: [racket-users] net/url: Can not download a file over HTTPS

2019-01-24 Thread Dmitry Pavlov
Neil, Thank you so much, I did not know that I can play with the header so easily in get-pure-port. It turned out that the server expects "Accept:" field in the request (but does not care much about its value). So the following code works #lang racket (require net/url) (let* ((url

Re: [racket-users] net/url: Can not download a file over HTTPS

2019-01-24 Thread Neil Van Dyke
I looked at this really quickly, it wasn't my first 2 guesses, but here's a workaround for which I can't immediately say why it works (and something else odd might also be going on with that site)... The cause seems to be that the site is extremely sensitive to the HTTP request headers (*not*

[racket-users] net/url: Can not download a file over HTTPS

2019-01-24 Thread Dmitry Pavlov
Hello, My workflow broke because of some mess going on with SSL certificates or something. I do not understand what is going on and how to fix it. Could please anybody give an idea? Here is a link: https://datacenter.iers.org/data/latestVersion/9_FINALS.ALL_IAU2000_V2013_019.txt It opens in

Re: [racket-users] Collections and data structures wishlist?

2019-01-24 Thread Gustavo Massaccesi
I also like the idea of a contract like "tuple/c", perhaps with a more rackety name. Gustavo On Wed, Jan 23, 2019 at 12:02 PM Greg Hendershott wrote: > >> - A separation between using lists as homogeneous collections and using > lists as fixed-size tuples. So there'd be a separate `tuple?`

Re: [racket-users] snake game

2019-01-24 Thread Kieron Hardy
The language you should be using is "Beginning Student with List Abbreviations". > On Jan 24, 2019, at 4:33 AM, orenpa11 wrote: > > Hi, > when I removed the line > #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname snake-full) > (read-case-sensitive #t) (teachpacks ()) (htdp-settings

[racket-users] Racketfest 2nd Call for Participation

2019-01-24 Thread jesse
Racketfest Saturday, March 23, 2019 Berlin, Germany Racketfest is a new conference dedicated to Racket and its philosophy of language-oriented programming. It's a chance to come meet others in our spunky community, to get a glimpse of what the language is all about, and to up your Racket game,

[racket-users] diversity tickets available for racketfest

2019-01-24 Thread jesse
I'm happy to announce that Racketfest (https://racketfest.com) has a handful of diversity tickets available: https://diversitytickets.org/en/events/359 To apply, please write to the Racketfest organizer (me, je...@lisp.sh) by February 28, 2019 AOE with a paragraph or two describing yourself,

Re: [racket-users] snake game

2019-01-24 Thread orenpa11
Hi, when I removed the line #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname snake-full) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ( And changed the language to pretty big. I recived this error: Welcome to DrRacket,