Re: [racket-users] Let's organize a Scheme European Event at FOSDEM 2019

2018-08-27 Thread Jesse Alama
On 27 Aug 2018, at 11:41, Jérôme Martin wrote: Talking about web development could be nice too, but I'm not feeling confident enough in my exploration of writing Racket for the web to be able to survive the flow of questions about load-balancing and server rendering buzz. (I'm an experienced

Re: [racket-users] Let's organize a Scheme European Event at FOSDEM 2019

2018-08-27 Thread Jesse Alama
Hi Jerome, On 27 Aug 2018, at 11:41, Jérôme Martin wrote: I live not so far from Bruxelles so I'd be glad to be a part of it! Awesome! I think there are a fair number of European Racketeers out there, enough to justify at least a (small-ish) meeting. My understanding is that the whole

Re: [racket-users] Legal/Business Case Management DSLs

2018-08-27 Thread William J. Bowman
FYI, some related work i didn't see mentioned in the thread: a language for writing legal contracts, as natural language documents which can be attached to computation logic: https://docs.accordproject.org/ -- Sent from my phoneamajig > On Aug 25, 2018, at 02:45, Richard Parsons wrote: > >

Re: [racket-users] FFI Trouble (file streams, variadic functions)

2018-08-27 Thread Neil Van Dyke
Philip McGrath wrote on 08/27/2018 11:12 AM: What I'm currently exploring, though, is writing a helper program in Racket using the FFI. It will probably read a list of paths from standard in and write a hash table to standard out mapping each path to its validation result. I still plan to run

Re: [racket-users] FFI Trouble (file streams, variadic functions)

2018-08-27 Thread Philip McGrath
That is extremely good advice that I absolutely intend to follow. Here's a bit about what I'm doing: At Digital Ricoeur (https://digitalricoeur.org/), we have a corpus of hundreds of XML documents and growing, some of them book-length. These must be validated against a custom DTD that is derived

Re: [racket-users] FFI Trouble (file streams, variadic functions)

2018-08-27 Thread Neil Van Dyke
Rather than use FFI, would it work for your purposes to have the libxml2 code in a separate process from Racket?  That would avoid the likely C memory bugs corrupting your Racket process. https://www.cvedetails.com/vulnerability-list/vendor_id-1962/product_id-3311/Xmlsoft-Libxml2.html I've

Re: [racket-users] Re: Let's organize a Scheme European Event at FOSDEM 2019

2018-08-27 Thread Jérôme Martin
> > I'd love to talk about how easy it is to write DSLs in Racket, and about > > how you can replace your data with DSLs. > > Isn't there a tutorial (in text, not video) somewhere about this? > It shouldn't require going to a meeting. I know right. It's more about promoting Racket through a

Re: [racket-users] FFI Trouble (file streams, variadic functions)

2018-08-27 Thread Ryan Culpepper
I didn't know before I tried it either. It occurred to me as a candidate because I've seen many warnings about conflating ordinary pointers and function pointers (although usually the warning is that they are not guaranteed to have the same size). I only discovered that note in the docs

Re: [racket-users] FFI Trouble (file streams, variadic functions)

2018-08-27 Thread Philip McGrath
Thanks for the very quick reply—using `_fpointer` seems to work for me, too. I don't think I'd noticed it in the docs before, though, even if I had, I don't think it would have been obvious to me that it was the solution to this problem. -Philip On Mon, Aug 27, 2018 at 8:03 AM Ryan Culpepper

Re: [racket-users] FFI Trouble (file streams, variadic functions)

2018-08-27 Thread Ryan Culpepper
On 08/27/2018 02:13 PM, Philip McGrath wrote: I am hoping for some help debugging a problem I'm having writing FFI bindings for libxml2. I am trying to use the function `xmlValidateDtd`, which (predictably) validates an XML document against a DTD. To support error reporting, the first

Re: [racket-users] Re: Let's organize a Scheme European Event at FOSDEM 2019

2018-08-27 Thread Hendrik Boom
On Mon, Aug 27, 2018 at 02:41:52AM -0700, Jérôme Martin wrote: > I live not so far from Bruxelles so I'd be glad to be a part of it! > > I'd love to talk about how easy it is to write DSLs in Racket, and about > how you can replace your data with DSLs. Isn't there a tutorial (in text, not

[racket-users] FFI Trouble (file streams, variadic functions)

2018-08-27 Thread Philip McGrath
I am hoping for some help debugging a problem I'm having writing FFI bindings for libxml2. I am trying to use the function `xmlValidateDtd`, which (predictably) validates an XML document against a DTD. To support error reporting, the first argument to the function is a pointer to an

[racket-users] Re: Let's organize a Scheme European Event at FOSDEM 2019

2018-08-27 Thread Jérôme Martin
I live not so far from Bruxelles so I'd be glad to be a part of it! I'd love to talk about how easy it is to write DSLs in Racket, and about how you can replace your data with DSLs. Something like "Who needs JSON when you can DSL?". One of the examples would be Scribble, but I'm also thinking

Re: [racket-users] Let's organize a Scheme European Event at FOSDEM 2019

2018-08-27 Thread 'Paulo Matos' via Racket Users
Hi Amirouche, A scheme european event would be a great idea. Jesse is trying to get something together for 2019 - although Racket specific afaik. Still, I have to give my 2 cents on FOSDEM. I think it's pretty bad. I have been super-frustrated for two consecutive years and gave up on it. The