<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/src/nvim/testdir/test_lambda.vim, branch stable</title>
<subtitle>Neovim fork with Rahm's personal hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/'/>
<entry>
<title>vim-patch:8.2.0499: calling a lambda is slower than evaluating a string</title>
<updated>2020-10-01T01:00:17+00:00</updated>
<author>
<name>Jan Edmund Lazo</name>
<email>jan.lazo@mail.utoronto.ca</email>
</author>
<published>2020-09-26T23:56:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=578b0b0b52ad036370a6678d1b66e5c61d5bd4e2'/>
<id>578b0b0b52ad036370a6678d1b66e5c61d5bd4e2</id>
<content type='text'>
Problem:    Calling a lambda is slower than evaluating a string.
Solution:   Make calling a lambda faster. (Ken Takata, closes vim/vim#5727)
https://github.com/vim/vim/commit/f10806b25090879fdc1a86cc0da2f4f34fd21921

Port "uf_flags" constants from patch 8.2.1054 to sync with Vim.
Port user_func_error() from patch 8.2.0149.
Port Test_lambda_scope() changes from patch 8.1.0736 so that it passes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Calling a lambda is slower than evaluating a string.
Solution:   Make calling a lambda faster. (Ken Takata, closes vim/vim#5727)
https://github.com/vim/vim/commit/f10806b25090879fdc1a86cc0da2f4f34fd21921

Port "uf_flags" constants from patch 8.2.1054 to sync with Vim.
Port user_func_error() from patch 8.2.0149.
Port Test_lambda_scope() changes from patch 8.1.0736 so that it passes.
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.1738: testing lambda with timer is slow (#10590)</title>
<updated>2019-07-24T17:47:41+00:00</updated>
<author>
<name>Daniel Hahler</name>
<email>git@thequod.de</email>
</author>
<published>2019-07-24T17:47:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=3566267e753996c441c220c8a109bb4f4b25225c'/>
<id>3566267e753996c441c220c8a109bb4f4b25225c</id>
<content type='text'>
Problem:    Testing lambda with timer is slow.
Solution:   Do not test timer accuracy, only that it works. (Daniel Hahler,
            closes vim/vim#4723)
https://github.com/vim/vim/commit/9bc4dde45d45df732953491d0f2c3fd3b10a627e</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Testing lambda with timer is slow.
Solution:   Do not test timer accuracy, only that it works. (Daniel Hahler,
            closes vim/vim#4723)
https://github.com/vim/vim/commit/9bc4dde45d45df732953491d0f2c3fd3b10a627e</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.0019: error when defining a Lambda with index of a function result</title>
<updated>2019-03-16T02:13:32+00:00</updated>
<author>
<name>Jan Edmund Lazo</name>
<email>jan.lazo@mail.utoronto.ca</email>
</author>
<published>2019-03-15T03:52:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=2ea6d3ab974aad74cdcbe12a15a7a65956cc6e33'/>
<id>2ea6d3ab974aad74cdcbe12a15a7a65956cc6e33</id>
<content type='text'>
Problem:    Error when defining a Lambda with index of a function result.
Solution:   When not evaluating an expression and skipping a function call,
            set the return value to VAR_UNKNOWN.
https://github.com/vim/vim/commit/b4518563c73460150344a57879bf5b22cb8b1c77
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Error when defining a Lambda with index of a function result.
Solution:   When not evaluating an expression and skipping a function call,
            set the return value to VAR_UNKNOWN.
https://github.com/vim/vim/commit/b4518563c73460150344a57879bf5b22cb8b1c77
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: load-adjust timer tests (oldtest)</title>
<updated>2019-01-17T14:59:23+00:00</updated>
<author>
<name>Marco Hinz</name>
<email>mh.codebro@gmail.com</email>
</author>
<published>2019-01-16T20:20:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=0afd452ef19ed08db8e74d72c0316bc40ac9c9bd'/>
<id>0afd452ef19ed08db8e74d72c0316bc40ac9c9bd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test: adjust time-sensitive tests</title>
<updated>2018-11-30T04:25:20+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2018-11-30T04:25:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=b0ebf61d37ccae3c480834d2ac1b5559e7e3d20d'/>
<id>b0ebf61d37ccae3c480834d2ac1b5559e7e3d20d</id>
<content type='text'>
    From test_alot.vim:
    Found errors in Test_lambda_with_timer():
    First run:
    function RunTheTest[35]..Test_lambda_with_timer line 19: Expected True but got 0
    Second run:
    function RunTheTest[35]..Test_lambda_with_timer line 19: Expected True but got 0

previously: #9220

- Timer tests are less reliable on Travis CI macOS 10.12/10.13.
  ref #6829
  ref e39dade80b02
  ref de13113dc16e
  ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452
  &gt; We don't guarantee that a X ms timer is triggered during Y ms sleep
  &gt; for any X&lt;Y, though I would expect the load to be really bad for this
  &gt; to happen with X=10ms, Y=40ms.
- Call test_garbagecollect_now(), as Vim does.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    From test_alot.vim:
    Found errors in Test_lambda_with_timer():
    First run:
    function RunTheTest[35]..Test_lambda_with_timer line 19: Expected True but got 0
    Second run:
    function RunTheTest[35]..Test_lambda_with_timer line 19: Expected True but got 0

previously: #9220

- Timer tests are less reliable on Travis CI macOS 10.12/10.13.
  ref #6829
  ref e39dade80b02
  ref de13113dc16e
  ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452
  &gt; We don't guarantee that a X ms timer is triggered during Y ms sleep
  &gt; for any X&lt;Y, though I would expect the load to be really bad for this
  &gt; to happen with X=10ms, Y=40ms.
- Call test_garbagecollect_now(), as Vim does.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: adjust time-sensitive tests (#9220)</title>
<updated>2018-11-10T10:12:04+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2018-11-10T10:12:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f8639dc99cb085432b14da086af316176152bc1f'/>
<id>f8639dc99cb085432b14da086af316176152bc1f</id>
<content type='text'>
- window_split_tab_spec.lua: Put cursor at bottom of :terminal buffer so
  that it follows output.
- inccommand_spec.lua: Increase timeout to allow 2nd retry.
- Timer tests are less reliable on Travis CI macOS 10.12/10.13.
  ref #6829
  ref e39dade80b02
  ref de13113dc16e
  ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452
  &gt; We don't guarantee that a X ms timer is triggered during Y ms sleep
  &gt; for any X&lt;Y, though I would expect the load to be really bad for this
  &gt; to happen with X=10ms, Y=40ms.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- window_split_tab_spec.lua: Put cursor at bottom of :terminal buffer so
  that it follows output.
- inccommand_spec.lua: Increase timeout to allow 2nd retry.
- Timer tests are less reliable on Travis CI macOS 10.12/10.13.
  ref #6829
  ref e39dade80b02
  ref de13113dc16e
  ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452
  &gt; We don't guarantee that a X ms timer is triggered during Y ms sleep
  &gt; for any X&lt;Y, though I would expect the load to be really bad for this
  &gt; to happen with X=10ms, Y=40ms.</pre>
</div>
</content>
</entry>
<entry>
<title>Allow lambdas to be used with jobs, timers and dictwatchers.</title>
<updated>2017-02-15T00:38:19+00:00</updated>
<author>
<name>Michael Ennen</name>
<email>mike.ennen@gmail.com</email>
</author>
<published>2016-12-20T03:09:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=ef8701610baa18ecf2568990eab4ecf02ca8f6c1'/>
<id>ef8701610baa18ecf2568990eab4ecf02ca8f6c1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:7.4.2137</title>
<updated>2017-02-15T00:38:18+00:00</updated>
<author>
<name>Michael Ennen</name>
<email>mike.ennen@gmail.com</email>
</author>
<published>2016-12-16T21:51:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=53fad45115d3ee438dfb537d99ccf3b021ebc6b7'/>
<id>53fad45115d3ee438dfb537d99ccf3b021ebc6b7</id>
<content type='text'>
Problem:    Using function() with a name will find another function when it is
            redefined.
Solution:   Add funcref().  Refer to lambda using a partial.  Fix several
            reference counting issues.

https://github.com/vim/vim/commit/437bafe4c8a83ed71ee006eda7f54b65a90f0d4c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Using function() with a name will find another function when it is
            redefined.
Solution:   Add funcref().  Refer to lambda using a partial.  Fix several
            reference counting issues.

https://github.com/vim/vim/commit/437bafe4c8a83ed71ee006eda7f54b65a90f0d4c
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:7.4.2136</title>
<updated>2017-02-15T00:38:18+00:00</updated>
<author>
<name>Michael Ennen</name>
<email>mike.ennen@gmail.com</email>
</author>
<published>2016-12-18T05:33:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=1f715ac1c1a1eee43360be911636020ed855e12c'/>
<id>1f715ac1c1a1eee43360be911636020ed855e12c</id>
<content type='text'>
Problem:    Closure function fails.
Solution:   Don't reset uf_scoped when it points to another funccal.

https://github.com/vim/vim/commit/580164481924ed8611eb79f0247a0eb1ca0b3b9a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Closure function fails.
Solution:   Don't reset uf_scoped when it points to another funccal.

https://github.com/vim/vim/commit/580164481924ed8611eb79f0247a0eb1ca0b3b9a
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:7.4.2120</title>
<updated>2017-02-15T00:38:17+00:00</updated>
<author>
<name>Michael Ennen</name>
<email>mike.ennen@gmail.com</email>
</author>
<published>2016-12-17T23:01:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f59321e319ecfc6977f666fb04a52ac50bead09d'/>
<id>f59321e319ecfc6977f666fb04a52ac50bead09d</id>
<content type='text'>
Problem:    User defined functions can't be a closure.
Solution:   Add the "closure" argument. Allow using :unlet on a bound
            variable. (Yasuhiro Matsumoto, Ken Takata)

https://github.com/vim/vim/commit/10ce39a0d52272a3dfff2feb8c631529f29e6740
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    User defined functions can't be a closure.
Solution:   Add the "closure" argument. Allow using :unlet on a bound
            variable. (Yasuhiro Matsumoto, Ken Takata)

https://github.com/vim/vim/commit/10ce39a0d52272a3dfff2feb8c631529f29e6740
</pre>
</div>
</content>
</entry>
</feed>
