Re: [racket-users] cons-specific optimizations?

2018-11-27 Thread Vishesh Yadav
I recall reading some 6.x code for RacketScript, and in 6.x world pair was simply a pair of pointers in C structure[1] and `cons` was again a primitive function that created those C objects[2]. No special representation in byte-code [all values are opaque to bytecode (except ints and floats I

Re: [racket-users] Speeding up graphics / moving away from 2htdp/image

2017-04-26 Thread Vishesh Yadav
t. Let us know how porting goes. --Vishesh > Dan > > On 26 Apr. 2017 15:30, "Vishesh Yadav" <vishes...@gmail.com> wrote: > > Are you repeatedly generating image for an animation inside an event loop? > > Depending on the kind of program `freeze` from 2htdp/ima

Re: [racket-users] Speeding up graphics / moving away from 2htdp/image

2017-04-25 Thread Vishesh Yadav
Are you repeatedly generating image for an animation inside an event loop? Depending on the kind of program `freeze` from 2htdp/image may help if you haven't tried already. For example this[1] program renders faster with freeze both in RacketScript and 2htdp/image. [1]

Re: [racket-users] Client side web applications in Racket

2017-01-22 Thread Vishesh Yadav
Hi Stephen, - is there a JavaScript MVC framework that is suitable to use with racketscript? (should I be using react or angular ?) I can not speak for Angular, but I think React should be suitable. You'll have to use ES5 API instead of classes and JSX, and therefore may want to build a

Re: [racket-users] HTTP Server and CPU usage

2016-02-20 Thread Vishesh Yadav
It runs on single system thread, so no. Racket threads don't utilize multi-cores. However, you can put several processes behind a reverse proxy to utilize all your CPU cores. You do have to be careful though if you are using continuations for managing state. On 02/20/2016 05:15 PM, Piyush

Re: [racket-users] Racket in a web page (via Whalesong)

2015-09-07 Thread Vishesh Yadav
Hi Anton, There has been some work to make Whalesong self-hosted. I'm not sure if it works as I didn't try it. There are some language incompatibilities but your Racket code will just work otherwise, notably Big Bang programs. Whalesong doesn't give you a REPL, but it will show you

[racket-users] Web framework in racket

2015-05-21 Thread Vishesh Yadav
Hi! I'm working on racket web server to implement a basic web app. I found myself doing lots of low level stuff like cookie handling, session management etc almost from scratch. I was thinking to abstract all these stuff into some small library maybe, but before that I wanted to ask if there