Git Product home page Git Product logo

meta-lua-nginx-module's People

Contributors

agentzh avatar archangelsdy avatar dndx avatar halfcrazy avatar hawkxiang avatar spacewander avatar thibaultcha avatar xiaocang avatar zhuizhuhaomeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meta-lua-nginx-module's Issues

stream lua module should require at least nginx 1.13.6

Let's do this in meta lua module for the stream version:

diff --git a/src/ngx_stream_lua_common.h b/src/ngx_stream_lua_common.h
index f727943..8bb7503 100644
--- a/src/ngx_stream_lua_common.h
+++ b/src/ngx_stream_lua_common.h
@@ -43,8 +43,8 @@
 #endif


-#if !defined(nginx_version) || (nginx_version < 1006000)
-#error at least nginx 1.6.0 is required but found an older version
+#if !defined(nginx_version) || (nginx_version < 1013006)
+#error at least nginx 1.13.6 is required but found an older version
 #endif

stream lua version should be 0.0.4

See

diff --git a/src/api/ngx_stream_lua_api.h b/src/api/ngx_stream_lua_api.h
index c2a7764..9c1d08f 100644
--- a/src/api/ngx_stream_lua_api.h
+++ b/src/api/ngx_stream_lua_api.h
@@ -21,7 +21,7 @@
 /* Public API for other Nginx modules */


-#define ngx_stream_lua_version  10012
+#define ngx_stream_lua_version  4


 typedef struct {

Status of Meta Module

What is the status of the meta module in respect to the http module.

A diff between the generated output of the meta module for the http subsystem and the http modules committed files shows many differences. After a few fixes to the meta module (e.g splitice@b4a3d6c) output it does compile, it does not however pass tests.

Perhaps the README should be extended with some documentation as to the current status?

Rename subsystem to subsys

The word "subsystem" is too long and too heavy and appears so many times in all the templates and directory and file names. Let's abbreviate it to "subsys". Also, there is all-upper-case form like the SUBSYSTEM tt2 variable.

Share identical compilation units directly between http and stream modules

Some compilations units like shdict.c, string.c, lex.c, regex.c, and etc, could share the object code directly between http and stream modules in the final nginx executable. We could simply make the http and stream lua module depend on this meta lua module not only at codegen time, but also at compile and link time :)

Add Travis integration

For now, we should have at least basic sanity checks that makes sure the templates are syntactically correct. We can also execute ngx-relang against the generated files once we are confident they all satisfies NGINX's coding styles.

[TODO] list of pending ports from ngx_http_lua

I compiled a list of commits from ngx_http_lua that are not yet ported to this module (excluding the currently opened PRs):

ngx_http_lua master branch (last updated: 2019/08/27 - ngx_http_lua HEAD: 9b22495)

ngx_http_lua v0.10.15

ngx_stream_lua test cases to port

ngx_stream_lua features to port

  • enable ngx.pipe API in stream
  • enable ngx.process API in stream
  • enable tcpsock:receiveany() API in stream
  • port ngx.get_phase() to FFI in stream

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.