From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C420E2F16E for ; Tue, 21 May 2019 12:57:15 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xq7m77lWhTwc for ; Tue, 21 May 2019 12:57:15 -0400 (EDT) Received: from smtp10.mail.ru (smtp10.mail.ru [94.100.181.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 78CF72F142 for ; Tue, 21 May 2019 12:57:15 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH 00/10] swim Lua API From: Vladislav Shpilevoy References: Message-ID: <163eaff3-f9ae-dcdb-f86a-63fd81865733@tarantool.org> Date: Tue, 21 May 2019 19:57:12 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: kostja@tarantool.org Pushed to the master. On 15/05/2019 22:36, Vladislav Shpilevoy wrote: > This huge patchset introduces SWIM Lua module - wrapper around C SWIM. It > duplicates C API one in one, with additional internal checks related to Lua > dynamic typing. > > First 3 patches are preparatory, they fix some bugs in the C module appeared > during Lua API development. > > Next 4 patches are the core - 4 independent parts of Lua API. They are simple > and somewhere not efficient. > > Next 3 patches are optimizations, then eliminate some performance problems of > the core patches. > > Branch: http://github.com/tarantool/tarantool/tree/gerold103/swim-lua > Issue: https://github.com/tarantool/tarantool/issues/3234 > > Vladislav Shpilevoy (10): > swim: fix an assertion on attempt to chage timeouts > swim: make swim_new_round() void > swim: validate URI in swim_probe_member() > swim: introduce Lua interface > swim: Lua bindings to manipulate member table > swim: Lua bindings to access individual members > swim: pairs() function to iterate over member table > swim: allow to use cdata struct tt_uuid in Lua API > swim: cache decoded payload in the Lua module > swim: cache members in Lua member table > > extra/exports | 26 + > src/CMakeLists.txt | 1 + > src/lib/swim/swim.c | 46 +- > src/lib/swim/swim.h | 12 + > src/lib/swim/swim_ev.h | 2 + > src/lua/init.c | 2 + > src/lua/swim.lua | 777 ++++++++++++++++++++++++++++++ > test/swim/box.lua | 24 + > test/swim/suite.ini | 5 + > test/swim/swim.result | 1011 +++++++++++++++++++++++++++++++++++++++ > test/swim/swim.test.lua | 340 +++++++++++++ > test/unit/swim.c | 3 +- > test/unit/swim.result | 7 +- > 13 files changed, 2234 insertions(+), 22 deletions(-) > create mode 100644 src/lua/swim.lua > create mode 100644 test/swim/box.lua > create mode 100644 test/swim/suite.ini > create mode 100644 test/swim/swim.result > create mode 100644 test/swim/swim.test.lua >