[racket-users] Using web cells in #lang web-server/insta

2017-12-26 Thread Christian
- Am I correct to assume that when using web cells with #lang web-server/insta, I should (require web-server/lang/web-cells) rather than (require web-server/servlet/web-cells)? - (The former implementation seems to have a problem: https://github.com/racket/racket/issues/1918)

Re: [racket-users] Using web cells in #lang web-server/insta

2017-12-26 Thread Jay McCarthy
No, `web-server/lang/web-cells` is for `#lang web-server` `#lang web-server/insta` is just like `racket` but it includes a call to `serve/servlet` On Tue, Dec 26, 2017 at 5:27 AM, Christian <7enderh...@gmail.com> wrote: > Am I correct to assume that when using web cells with #lang > web-server/in

Re: [racket-users] Using S-Expressions as Persistence

2017-12-26 Thread Philip McGrath
Rather than a module to be run, you can also persist data using `write` and `read` (perhaps in combination with `serialize` and `deserialize`). -Philip On Tue, Dec 26, 2017 at 7:14 AM, Zelphir Kaltstahl < zelphirkaltst...@gmail.com> wrote: > Hm that's a point. > It is only data for a blog, thoug

Re: [racket-users] Using web cells in #lang web-server/insta

2017-12-26 Thread Christian
Hi Jay, Thanks again for a timely and illustrative answer! Cheers, Christian On 26 December 2017 at 14:09, Jay McCarthy wrote: > No, `web-server/lang/web-cells` is for `#lang web-server` > > `#lang web-server/insta` is just like `racket` but it includes a call > to `serve/servlet` > > On Tue, D

[racket-users] Ownership semantics of string types in the FFI

2017-12-26 Thread Alexis King
I have some library that provides a function that produces a string: char* make_string(void); …and the library expects that I will eventually free the returned memory using a custom deallocator: void free_string(char*); …can and should I use the _string C type with ffi/unsafe to call this

[racket-users] [ANN] Porting PAIP's Prolog interpreter from Common Lisp to Racket - Part 2

2017-12-26 Thread Luis Marcelo Rosso
Hi all, I am porting the Prolog interpreter shown in Peter Norvig's classic text on AI, "Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp 1st Edition", https://www.amazon.com/Paradigms-Artificial-Intelligence-Programming-Studies/dp/1558601910/, also known as PAIP, in i

[racket-users] Re: [ANN] Porting PAIP's Prolog interpreter from Common Lisp to Racket - Part 2

2017-12-26 Thread Zelphir Kaltstahl
This looks very interesting! I am not that far yet, so I don't really have any enhancement suggestions, but it is great to see some work being done in this area. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group a