You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Fennel is a programming language that brings together the simplicity, speed, and reach of Lua with the flexibility of a lisp syntax and macro system. Full Lua compatibility: Easily call any Lua function or library from Fennel and vice-versa. Zero overhead: Compiled code should be just as efficient as hand-written Lua. Compile-time macros: Ship compiled code with no runtime dependency on Fennel. Em
local lapis = require "lapis" local app = lapis.Application() app:match("/", function(self) return "Hello world!" end) return app lapis = require "lapis" class extends lapis.Application "/": => "Hello world!" How does it work? With OpenResty, Lua is run directly inside of the Nginx worker using LuaJIT, giving you the smallest barrier between the webserver and your code. Have a look at Web Framewor
openresty(ngx_openresty) ã¨ãã¦é å¸ããã¦ã tarãã¼ã«ã使ã㨠æã£åãæ©ã Nginx 㧠Lua +α ããç°å¢ãä½ãã¾ããè¶ ä¾¿å©ã ä¸ä¾: OSXã®å ´å äºåã« homebrew ãå ¥ãã¦ããã¦ã brew install prce wget http://agentzh.org/misc/nginx/ngx_openresty-1.0.11.28.tar.gz tar xvfz ngx_openresty-1.0.11.28.tar.gz cd ngx_openresty-1.0.11.28 ./configure --with-luajit \ --prefix=~/ngx_openresty-1.0.11.28 \ --with-cc-opt="-I/usr/local/Cellar/pcre/8.21/include" \ --with-ld-op
ãããã¯ãã§Webãµã¼ãä¸ã®ç¾å¨æå»åºãããè¦ä»¶ãããã¾ããã ãããããã®å¦çãªãã¢ããªã±ã¼ã·ã§ã³ä»ããã¨ãnginxã ãã§ããããã§ããã ç¾å¨æå»ãããã¼ã«ã¤ãããªãnginxæ¨æºæ©è½ã§åºæ¥ãããªãã§ããã 深淵ãªãçç±ããã³ã³ãã³ãã¨ãã¦æ¬²ããã¨ã®ãã¨ã ä»å¾ãNginx+Lua試ãã¦ã¿ãããªã¼ã¨ããè¦ä»¶ãããã¾ãããã ãã£ãããªã®ã§ãã®æ©è½ãLuaã¹ã¯ãªããã§æ¸ãã¦ã¿ããã¨ã«ãã¾ããã Nginxã§Luaãåããç°å¢ ã¾ãç°å¢æ´ããã®ãè¥å¹²å¤§å¤ã§ããã*1 以ä¸ã®ãããªæé ã§ã¤ã³ã¹ãã¼ã«ããããã§ãã LuaJITã¤ã³ã¹ãã¼ã« ngx_devel_kitã¤ã³ã¹ãã¼ã« lua-nginx-moduleã¤ã³ã¹ãã¼ã« ã©ã¤ãã©ãªã®ãã¹ãªã©æ°ãã¤ããªãã¨ãããããããã¾ãããã nginxã¬ã·ã opscodeã®nginxã¯ãã¯ããã¯ã«ã¯luaãã¤ã³ã¹ãã¼ã«ããã¬ã·ããããã¾ããã ã
ããã«ã¡ã¯ã@tkuchiki ã§ãã ãã®ã¨ã³ããªã¼ã¯ tech.kayac.com Advent Calendar 2013ã9 æ¥ç®ã®ã¨ã³ããªã¼ã§ãã æ¬ã¨ã³ããªã¼ã§ã¯ãå¼ç¤¾ã§ä¸»ã«å©ç¨ãã¦ãã Web ãµã¼ã (Nginx) ã® bundle OpenResty ã«ã¤ãã¦ç°¡åã«ç´¹ä»ãããã¨æãã¾ãã OpenResty OpenResty (ngx_openresty) ã¯ãlua-nginx-module ãå§ãã¨ããå¤æ°ã® 3rd party module ãå å ãã Nginx ã§ãã ä½è ã¯ãlua-nginx-module ã®ã¡ã³ãããåãã agentzh ããã§ãã lua-nginx-module Nginx ã Lua / LuaJIT ã§å¦çããããã®ã¢ã¸ã¥ã¼ã«ã§ãã API ã¯ å ¨ã¦ Non-Blocking I/O ã§æ¸ããã¦ãã¾ãã 使ç¨ããã¢ã¸ã¥ã¼ã« 以ä¸
人éã¨ã¦ã§ãã®æªæ¥ï¼æ§ï¼ ãã¦ã§ãã®æ´å²ã¯äººé¡ã®æ´å²ã®ç¹°ãè¿ããã¨ãã観ç¹ããè²ã åå¼·ãã¦ãã¾ãã2014å¹´ã¾ã§ã®äººéã¨ã¦ã§ãã®æªæ¥ã®æ§ããã°ã§ãã è«æãçºè¡¨ãå°ãè½ã¡çããã®ã§ãç 究ã®å®è£ ãåéãã¦ãã¾ãã ããã§ãµã¨æã£ãã®ã§ãããããããã°ngx_mrubyã¨lua-nginx-moduleã®ããã©ã¼ãã³ã¹æ¯è¼ãã¦ããªããªãã¨æãã¾ãããã§ããä»æ¤è¨¼ç°å¢ãè²ã ãã£ã¦æã£ã¦ããªãã®ã§å¾®å¦ã ãªãã¨æãã¤ã¤ãããã£ã±ãæ°ã«ãªãã¨è©¦ããã«ã¯ããããªããã¡ãªã®ã§ãç°¡åãªhello worldã®ãã³ããã¼ã¯æ¯è¼ããã¦ã¿ã¾ããã ngx_mrubyã¨lua-nginx-moduleã®å°å ¥ æ¤è¨¼ç°å¢ããªãã®ã§ä¸ããå°å ¥ãã¾ãããæå¤ã¨ç°¡åã§ããã [program lang=âbashâ escaped=âtrueâ] wget http://nginx.org/download/nginx-1.
GIN JSON-API framework Gin is an JSON-API framework, currently in its early stage. It has been designed to allow for fast development, TDD and ease of maintenance. Gin is helpful when you need an extra-boost in performance and scalability, as it runs embedded in a packaged version of nginx called OpenResty and it's entirely written in Lua. For those not familiar with Lua, don't let that scare you
ããRedisã§ã§ããããæã§ããããã æè¿Redisã§ã¬ã³ã¡ã³ãæ©è½ãã¤ãã£ã¦ã¿ãã®ã§ãç´¹ä»ã§ãã ããã§âã¬ã³ã¡ã³ãæ©è½âã¨ããã®ã¯ã Amazonã§ããâãã®ååãè¦ãã客æ§ã¯ãããè¦ã¦ãã¾ãâããããã°ã®é¢é£è¨äºãåºãæ©è½ã®ãã¨ã user:1ãproduct:Aãã¿ãã¨ãã«ãproduct:Aã«ä¼¼ã¦ããproduct:Bãã¬ã³ã¡ã³ããããã product:Aã¨product:Bãã©ããããä¼¼ã¦ããã:é¡ä¼¼åº¦ ãç®åºããå¾ã¯ã Rediså¾æã®Sorted Setã使ã£ã¦é¡ä¼¼åº¦ã®ã©ã³ãã³ã°ãã¤ããã° ä¼¼ã¦ããproductãåºããã¨ãã§ãã¾ãã é¡ä¼¼åº¦ã®ç®åºã«ã¯ããããæ¹æ³ãããããã§ããã Redisã®ãã¼ã¿æ§é ã¨ç¸æ§ã®ãã Jaccard [wikipedia]ã¨ããæ¹æ³ã使ãã¾ããã ãã®ä¾ã«é©ç¨ããã°ã product:Aãè¦ãã¦ã¼ã¶ã¼ç¾¤(Redisã®Set)ã¨ãpro
sys = require "sys" fff = (x) -> x + 2 ggg = (x) -> a={} a.p = x a.p t = 0 for i in [0..100000000] t += ggg(i) sys.puts "ttt:#{t}"
Familiar API Luvit implements the same APIs as Node.js, but in Lua! This helps teams migrate without having to learn a new way of programming. Async Choice Choose your async model; we donât mind; we encourage experimentation. If you donât like callbacks and event emitters, use coroutines and write blocking style code without actually blocking your event loop! Modular Core The various projects in t
MoonScript is a dynamic scripting language that compiles into Lua. It gives you the power of one of the fastest scripting languages combined with a rich set of features. class Thing name: "unknown" class Person extends Thing say_name: => print "Hello, I am #{@name}!" with Person! .name = "MoonScript" \say_name! MoonScript can either be compiled into Lua and run at a later time, or it can be dynami
ronpaul2012.com is now closed.But you can know more about Ron Paul here: https://www.naomikizhner.com/about-ron-paul/
Luaã¯ãCè¨èªã®ãã¹ãããã°ã©ã ã«çµã¿è¾¼ã¾ãããã¨ãç®çã«è¨è¨ããã¦ãããé«éãªåä½ã¨ãé«ã移æ¤æ§ãçµã¿è¾¼ã¿ã®å®¹æããç¹å¾´ã§ããããã£ãããã¤ãã³ã¼ãã«ã³ã³ãã¤ã«ãããLua VMã§å®è¡ããããLuaJIT㯠The Computer Language Benchmarks Game ã«ããã¨ãåçåä»ãã®ã¹ã¯ãªããè¨èªã§ã¯æéã®è¨èªã»å¦çç³»ã§ãã[14]ã TIOBE Programming Community Indexï¼è±èªçï¼ã§ã¯2007å¹´ã«äººæ°ãæ¥ä¸æãã2011å¹´6æã«ã¯10çªç®ã«äººæ°ãªããã°ã©ãã³ã°è¨èªã«ãªã£ããããã®å¾ã¯äººæ°ãä¸ãã£ã¦ãã[15]ã2009å¹´2æã®èª¿æ»ã§ãã²ã¼ã éçºè ãã¤ãã³ãã¹ã¯ãªããçã®å é¨å¦çã«å©ç¨ããè¨èªã¨ãã¦ãæãå©ç¨ä¾ãå¤ãã¨å ±åããããªã©ãè¿å¹´[ãã¤?]ã¯ã²ã¼ã ç£æ¥ã§ã®å©ç¨ãåºãã£ã¦ãã[16]ã2013å¹´3æ以æ¥ãã¦ã£ãã¡ãã£ã¢è²¡å£ã®ãµã¤ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}