Re: [racket-users] How do I represent a convenient two-step allocation using ffi/unsafe?

2019-10-22 Thread Matthew Flatt
The short answer is: `(_ptr io _VkInstance)` does not mean that a pointer to a `_VkInstance` happens on the Racket side. It means that a `_VkInstance` (not a pointer to a `_VkInstance`) happens on the Racket side, and a pointer to a `_VkInstance` happens on the C side. Taking it from the top: At

Re: [racket-users] How do I represent a convenient two-step allocation using ffi/unsafe?

2019-10-22 Thread Sage Gerard
Hi Matthew, Wow! Thank you for the detailed response, and the saintly patience behind it. In following your email, this is the working result after using '_pointer' in the function signature: (define instance-ptr (malloc _VkInstance)) (vkCreateInstance instcreateinfo #f instance-ptr)

Re: Overbooked November. Re: [racket-users] Racket News - Issue 18

2019-10-22 Thread Stephen De Gabrielle
I’ve updated the game jam description to add: - Full games, game components or tools are all acceptable entries. e.g. tile editor, game map editor, procedural content generator, etc. On Tue, 22 Oct 2019 at 01:59, Stephen De Gabrielle wrote: > > > On Mon, 21 Oct 2019 at 23:18, Hendrik

[racket-users] broken download link

2019-10-22 Thread calvin tolman
fyi: this url is broken: https://download.racket-lang.org/ it returns a UofU 404 sort of page for this url: https://www.cs.utah.edu/plt/download-racket-lang-org/ -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this

[racket-users] What's "#"?

2019-10-22 Thread Sage Gerard
Here's a Vulkan app that prints the properties of the first physical device on the system: https://github.com/zyrolasting/racket-vulkan/blob/master/examples/mandelbrot.rkt#L39 If you comment out the call to `vkGetPhysicalDeviceProperties`, the main module works. I create a Vulkan instance,

Re: [racket-users] broken download link

2019-10-22 Thread 'John Clements' via Racket Users
hmm, I don’t see that. Perhaps it’s already been fixed? If this persists for you, maybe you can show the output of curl -v -o “/tmp/index.html” “https://download.racket-lang.org/“ ? > On Oct 22, 2019, at 2:28 PM, calvin tolman wrote: > > fyi: > > this url is broken:

Re: [racket-users] broken download link

2019-10-22 Thread Matthew Flatt
Sorry, this was my mistake (edited the wrong configuration and broke download.racket-lang.org for several minutes), but it should be ok now. At 22 Oct 2019 17:36:05 -0400, "'John Clements' via Racket Users" wrote: > hmm, I don’t see that. Perhaps it’s already been fixed? If this persists for >

Re: [racket-users] How to efficiently simulate a video display

2019-10-22 Thread Jay McCarthy
I would use a really simple OpenGL draw call that just draws a rectangle and update the texture contents with the screen bits. -- Jay McCarthy Associate Professor @ CS @ UMass Lowell http://jeapostrophe.github.io Vincit qui se vincit. On Tue, Oct 22, 2019 at 6:54 PM wanderley.guimar...@gmail.com

[racket-users] How to efficiently simulate a video display

2019-10-22 Thread wanderley.guimar...@gmail.com
Hi folks, I decided to write a computer simulator (16-bit machine as the one built in nand2tetris course) in Racket. The computer maps the screen to a memory space where bits represent the pixel colors (black and white). Right now, I am generating the screen image by converting the bits to a

Re: [racket-users] How to efficiently simulate a video display

2019-10-22 Thread wanderley.guimar...@gmail.com
Thanks for the quick response. Can you elaborate a bit more? I've never worked with OpenGL before, so I don't know exactly how to start with that. I found that I can use the mapped screen directly to generate a monochrome bitbmap. (make-monochrome-bitmap 512 256 (apply bytes (map

[racket-users] procedural text generation for game jam.

2019-10-22 Thread Hendrik Boom
On Tue, Oct 22, 2019 at 01:59:25AM +0100, Stephen De Gabrielle wrote: > On Mon, 21 Oct 2019 at 23:18, Hendrik Boom wrote: > > > On Mon, Oct 21, 2019 at 11:13:34PM +0100, Stephen De Gabrielle wrote: > > > A NaNoGenMo submission counts as a game jam entry. > > > > Even if it's not a game? > > >