Re: Announce: ECMAScript interface for Vim

2019-04-01 Thread Bailey Stoner
Vimscript isn't even consistent in this, as many functions are UpperCamelCase (EG, commands). I'm concerned that people are going to start pulling in NPM libraries much more often. if Vim's ES6 implementation attempts to stay consistent with Vimscript, then JS libraries and VimScript are going

Re: Announce: ECMAScript interface for Vim

2019-04-01 Thread Bob Pepin
> On 1 Apr 2019, at 11.04, David Demelier wrote: > > Given that ECMAScript use camelCase I'd suggest to rename the low level API. > E.g. read_blob -> readBlob. In this case read_blob is a low-level API that directly mirrors the corresponding C function in Vim. In general, I think the benefits

Re: Announce: ECMAScript interface for Vim

2019-04-01 Thread David Demelier
Le 02/03/2019 à 16:42, Bob Pepin a écrit : Hi, This is to announce the release of an ECMAScript scripting interface for Vim. Why? Because it seemed like the right thing to do. The longer backstory is that I recently returned to using Vim as a programming editor, when I was left without a

Re: Announce: ECMAScript interface for Vim

2019-03-30 Thread Tony Mechelynck
On Sat, Mar 30, 2019 at 10:55 PM Andrey Butirsky wrote: > > On 3/30/19 9:54 PM, Bob Pepin wrote: > > On 28 Mar 2019, at 15.01, Andrey wrote: > > Thumbs up for any common language support! > I would love if those languages could be used as much effectively as > Vimscript itself for Vim

Re: Announce: ECMAScript interface for Vim

2019-03-30 Thread Andrey Butirsky
On 3/30/19 9:54 PM, Bob Pepin wrote: On 28 Mar 2019, at 15.01, Andrey wrote: Thumbs up for any common language support! I would love if those languages could be used as much effectively as Vimscript itself for Vim programming. I tried to make all Vim builtins also ES builtins so that simple

Re: Announce: ECMAScript interface for Vim

2019-03-30 Thread John Elliott
Nice work Bob. :) If you are ever in the NYC area we'd love to have you share about integrating Duktape at our little vim meetup. As a developer using javascript and vim every day, the idea of being able to experiment with JS in vim is quite exciting. John -- -- You received this message

Re: Announce: ECMAScript interface for Vim

2019-03-30 Thread Bob Pepin
> On 28 Mar 2019, at 15.01, Andrey wrote: > > On Monday, 4 March 2019 15:09:36 UTC+3, Bob Pepin wrote: >> Hi, >> This is to announce the release of an ECMAScript scripting interface for >> Vim. >> >> Why? Because it seemed like the right thing to do. >> > > Thumbs up for any common

Re: Announce: ECMAScript interface for Vim

2019-03-28 Thread Andrey
On Monday, 4 March 2019 15:09:36 UTC+3, Bob Pepin wrote: > Hi, > This is to announce the release of an ECMAScript scripting interface for Vim. > > Why? Because it seemed like the right thing to do. > Thumbs up for any common language support! I would love if those languages could be used as

Re: Announce: ECMAScript interface for Vim

2019-03-06 Thread Bailey Stoner
Oh, duktape is a node alternative... My apologies for the confusion. Mar 6, 2019, 12:14 PM by monokr...@monokro.me: > This should all be negligible, since people will most likely (or at least > should) compile the typescript into their plugins. It wouldn't make sense to > run the typescript

Re: Announce: ECMAScript interface for Vim

2019-03-06 Thread Bob Pepin
> On 6 Mar 2019, at 13.36, Andy Massimino wrote: > What is the performance of duktape like? > Parsing typescript.js (~ 7 MB, 121 K lines) into an AST with Esprima takes 14 s on Duktape, versus 0.5 s on Node.js. Impressive performance by Node.js / V8 indeed. Note however that this still

Re: Announce: ECMAScript interface for Vim

2019-03-05 Thread Bailey Stoner
Correction, us=js- sorry! Mar 5, 2019, 7:47 PM by monokr...@monokro.me: > Is this going to be built in a way that lets us adapt it to other VMs? The > reliability of software in the JavaScript ecosystem has me a bit worried > here, but I guess we could compile plugins written in other

Re: Announce: ECMAScript interface for Vim

2019-03-05 Thread Bailey Stoner
Is this going to be built in a way that lets us adapt it to other VMs? The reliability of software in the JavaScript ecosystem has me a bit worried here, but I guess we could compile plugins written in other languages like Go to asmjs or similar. As for typescript, it just compiles to us so

Re: Announce: ECMAScript interface for Vim

2019-03-05 Thread Bob Pepin
On 5 Mar 2019, at 12.53, Bram Moolenaar wrote: > > I wonder, is this also possible for Typescript? It's like a better > version of Javascript, and its popularity is growing. Looks nice, especially since it seems to include all the latest versions of ES. It should be possible in principle,

Re: Announce: ECMAScript interface for Vim

2019-03-05 Thread Bob Pepin
> On 5 Mar 2019, at 20.15, Bob Pepin wrote: > > On 5 Mar 2019, at 12.53, Bram Moolenaar wrote: >> >> I wonder, is this also possible for Typescript? It's like a better >> version of Javascript, and its popularity is growing. > > How well this works in practice remains to be seen, I will try

Re: Announce: ECMAScript interface for Vim

2019-03-05 Thread Salman Halim
On Tue, Mar 5, 2019, 06:53 Bram Moolenaar wrote: > > Bob Pepin wrote: > > > This is to announce the release of an ECMAScript scripting interface for > Vim. > > > > Why? Because it seemed like the right thing to do. > > [...] > > Interesting. Javascript is a popular language these days, thus I

Re: Announce: ECMAScript interface for Vim

2019-03-05 Thread Bram Moolenaar
Bob Pepin wrote: > This is to announce the release of an ECMAScript scripting interface for Vim. > > Why? Because it seemed like the right thing to do. [...] Interesting. Javascript is a popular language these days, thus I assume several users will be interested in this. I wonder, is this

Announce: ECMAScript interface for Vim

2019-03-04 Thread Bob Pepin
Hi, This is to announce the release of an ECMAScript scripting interface for Vim. Why? Because it seemed like the right thing to do. The longer backstory is that I recently returned to using Vim as a programming editor, when I was left without a computer and it was by far the best editor on