Re: [racket-users] Generate function defintions at compile time

2017-08-28 Thread Matthias Felleisen
> On Aug 28, 2017, at 4:24 AM, Konrad Hinsen wrote: > > I found the implementation of the Video language on pkg.racket-lang.org, but > neither Typed Video nor Docu Video seem to be there. Are they available > elsewhere? I am particularly interested in Docu Video

Re: [racket-users] Generate function defintions at compile time

2017-08-28 Thread Konrad Hinsen
Matthias, If you would like to see a concrete example, fully worked out, see the ICFP paper on constructing a domain-specific language for scripting the production of videos (say RacketCon presentations): https://www2.ccs.neu.edu/racket/pubs/#icfp17-dnff At the surface, this could be done

Re: [racket-users] Generate function defintions at compile time

2017-08-24 Thread Matthias Felleisen
> On Aug 24, 2017, at 9:38 PM, Alex Harsanyi wrote: > > Its all just objects, functions and function applications supported by some > library code. I could write a "#lang workout" with some macros to hide the > actual mechanism to make it look more "magic", but I

Re: [racket-users] Generate function defintions at compile time

2017-08-24 Thread Alex Harsanyi
On Thursday, August 24, 2017 at 9:42:51 PM UTC+8, Matthias Felleisen wrote: > > Yes, Racket is a good language. But let me point you to the blog of a > reflective developer, and I consider reflective developers the best of their > kind: > > >

Re: [racket-users] Generate function defintions at compile time

2017-08-24 Thread Matthias Felleisen
> On Aug 23, 2017, at 9:49 PM, Alex Harsanyi wrote: > > As someone who managed to write a 3 like Racket application without using > macros, I think they are overrated for application development. Macros are a > powerful and necessary feature for designing or

Re: [racket-users] Generate function defintions at compile time

2017-08-23 Thread Philip McGrath
On Wed, Aug 23, 2017 at 8:49 PM, Alex Harsanyi wrote: > > I think Racket is a really good language and can be directly used to write > useful applications. Yet new users are encouraged to start using the most > difficult to understand feature of Racket for their simplest

Re: [racket-users] Generate function defintions at compile time

2017-08-23 Thread Neil Van Dyke
As someone who managed to write a 3 like Racket application without using macros, I think they are overrated for application development. Macros are a powerful and necessary feature for designing or extending a language, but most people are better served by just using existing, well

Re: [racket-users] Generate function defintions at compile time

2017-08-23 Thread Alex Harsanyi
On Thursday, August 24, 2017 at 8:59:26 AM UTC+8, Neil Van Dyke wrote: > h...@oorg wrote on 08/23/2017 06:56 PM: > > > Wouldn't making a DSL be overkill? > > No. In Racket, a DSL (aka minilanguage, syntax extensions, or macros) > can be a very small implementation effort that does exactly

Re: [racket-users] Generate function defintions at compile time

2017-08-23 Thread Neil Van Dyke
hiph...@openmailbox.org wrote on 08/23/2017 06:56 PM: Wouldn't making a DSL be overkill? No. In Racket, a DSL (aka minilanguage, syntax extensions, or macros) can be a very small implementation effort that does exactly what one wants, in a very maintainable way. Also, I don't have a

Re: [racket-users] Generate function defintions at compile time

2017-08-23 Thread hiphish
Thank you all for your answers, I think I got it right this time, but I would still appreciate feedback: https://gitlab.com/HiPhish/neovim.rkt/blob/master/nvim/api.rkt I think what was confusing me was that I was thinking of Racket macros like Common Lisp macros. Instead of trying to build a list

Re: [racket-users] Generate function defintions at compile time

2017-08-22 Thread Ryan Culpepper
On 08/22/2017 05:29 PM, hiph...@openmailbox.org wrote: Hello, I am writing a Racket library which will make it possible to control the Neovim text editor using Racket. People will be able to use Racket to control Neovim, as well as write plugins for Neovim in Racket.

Re: [racket-users] Generate function defintions at compile time

2017-08-22 Thread Philip McGrath
I guess my first question would be where does the hash table in nvim/api/specification.rkt come from, where else is it used, and is it necessary for the format to be what it currently is. For example, the first thing that jumped out at me is that you're using strings for all the hash keys rather

Re: [racket-users] Generate function defintions at compile time

2017-08-22 Thread Neil Van Dyke
hiph...@openmailbox.org wrote on 08/22/2017 05:29 PM: So far it looks good, but I am stuck on macros. There is a hash table which serves as a specification for which functions to generate, it is stored in the file 'nvim/api/specification.rkt'. This table has the key" functions" which contains

[racket-users] Generate function defintions at compile time

2017-08-22 Thread hiphish
Hello, I am writing a Racket library which will make it possible to control the Neovim text editor using Racket. People will be able to use Racket to control Neovim, as well as write plugins for Neovim in Racket. https://gitlab.com/HiPhish/neovim.rkt So far it looks good, but I am stuck on