[racket-users] Criação dinâmica de perguntas

2018-10-01 Thread dev . videira
Boa noite, Necessito criar radio-boxs dinâmico, estou usando um for e um contador para realizar a criação de cada um dos radio-box. desta maneira: (define que (string-append "questao_solve" (number->string count))) (print que) (set! que (new radio-box%

Re: [racket-users] Racket-on-Chez snapshots

2018-10-01 Thread Gustavo Massaccesi
I think that is is possible to add an unofficial CS target to travis-racket (https://github.com/greghendershott/travis-racket) using something similar to https://github.com/racket/racket/pull/2266 . For now it will be slow because it will have to install a normal Racket, ChezScheme and recompile

Re: [racket-users] Using DrRacket for MIT Scheme

2018-10-01 Thread Neil Van Dyke
Yasser Hussain wrote on 10/1/18 5:31 AM: Unfortunately, I don't remember which DrRacket version, and which exact `#lang` line I was using. But I specifically remember that "load" worked with some earlier version of racket. Hi, Yasser.  The reason I asked those questions offline was that,

[racket-users] Re: editor-snip clickback not working in DrRacket interaction window

2018-10-01 Thread Philippe M
Some follow-up to my previous message (which, I guess, everyone was waiting for given the seemingly large interest :) I tried using quickscript to get access to the interaction window and add the snip from there and it works. I feel that this might confirm my hypothesis regarding not being in

Re: [racket-users] Racket-on-Chez snapshots

2018-10-01 Thread Shu-Hung You
Here! http://www.cs.utah.edu/~mflatt/racket-on-chez-jan-2018/ Also a few days algo there were some more updates at RacketCon and Scheme Workshop. On Mon, Oct 1, 2018 at 1:08 PM Brett Gilio wrote: > > > Philip McGrath writes: > > In light of > > the promising outlook for Chez replacing the current

Re: [racket-users] Racket-on-Chez snapshots

2018-10-01 Thread Tom Gillespie
If by lately you mean any time in 2018 there is Matthew's report from back in January. https://blog.racket-lang.org/2018/01/racket-on-chez-status.html http://www.cs.utah.edu/~mflatt/racket-on-chez-jan-2018/ If you are feeling adventurous you can also build it from source

Re: [racket-users] Re: Surprising slow-down of near tail-call: Potential missed optimization?

2018-10-01 Thread Matthew Flatt
I'll answer anyway, because the `begin0` difference is subtle. At the level of `let`, the Racket optimzier goes out of its way to not convert your second program to the first. Continuation marks make a change from non-tail call to tail call observable, and in this case, the compiler won't be able

[racket-users] Re: Surprising slow-down of near tail-call: Potential missed optimization?

2018-10-01 Thread Phil Nguyen
Actually nvm. Whoever wrote such macro could have just used `begin0` instead. On Monday, October 1, 2018 at 2:34:23 PM UTC-4, Phil Nguyen wrote: > > (Racket 7.0) This program runs in no time: > > (define (sum n acc) > (if (> n 0) > (sum (- n 1) (+ acc n)) > acc)) > >

[racket-users] Surprising slow-down of near tail-call: Potential missed optimization?

2018-10-01 Thread Phil Nguyen
(Racket 7.0) This program runs in no time: (define (sum n acc) (if (> n 0) (sum (- n 1) (+ acc n)) acc)) (collect-garbage) (collect-garbage) (collect-garbage) (time (sum 1000 0)) ; cpu time: 47 real time: 57 gc time: 0 ; 500500 This slightly modified program runs

Re: [racket-users] Racket-on-Chez snapshots

2018-10-01 Thread Brett Gilio
Philip McGrath writes: In light of the promising outlook for Chez replacing the current Racket VM in the -Philip Hey, could you provide a resource with more information on Chez possibly replacing the Racket VM? I haven't been keeping up to date on this. -- Brett M. Gilio Free

Re: [racket-users] Racket-on-Chez snapshots

2018-10-01 Thread Matthew Flatt
That's a good idea. It won't happen this week, but maybe it can happen in November or so. At Mon, 1 Oct 2018 10:21:46 -0500, Philip McGrath wrote: > Would it be feasible and useful to start building Racket-on-Chez snapshots > along with the other variants at https://pre.racket-lang.org? In light

[racket-users] Racket-on-Chez snapshots

2018-10-01 Thread Philip McGrath
Would it be feasible and useful to start building Racket-on-Chez snapshots along with the other variants at https://pre.racket-lang.org? In light of the promising outlook for Chez replacing the current Racket VM in the relatively near future, I would be interested in starting to include it in my

Re: [racket-users] Using DrRacket for MIT Scheme

2018-10-01 Thread Yasser Hussain
Unfortunately, I don't remember which DrRacket version, and which exact `#lang` line I was using. But I specifically remember that "load" worked with some earlier version of racket. Problem with using `require` is that I'll have to use "#lang racket" with it, which will prevent me from using

Re: [racket-users] Playing the Game with PLT Redex · Second Edition

2018-10-01 Thread 'Paulo Matos' via Racket Users
Leandro, obrigado por esta excelente contribuição. Thank you for this excellent contribution. It's really good. I am reading it a bit at a time and I really enjoy it, not only how you write it but the subject as well. Racket needs more of this. Paulo Matos On 30/09/2018 18:34, 'Leandro

Re: [racket-users] Places code not using all the CPU

2018-10-01 Thread 'Paulo Matos' via Racket Users
I attach yet another example where this behaviour is much more noticiable. This is on a 64 core dedicated machine in amazon aws. -- 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,

[racket-users] Places code not using all the CPU

2018-10-01 Thread 'Paulo Matos' via Racket Users
Hi, I am not sure this is an issue with places or what it could be but my devops-fu is poor and I am not even sure how to debug something like this so maybe someone with more knowledge than me on this might chime in to hint on a possible debug method. I was running some benchmarks and noticed