Lua Batteries - ๋ฃจ์•„ ๋ฒ ํ„ฐ๋ฆฌ ํ™•์žฅ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

lua - batteries lua ํ™•์žฅ ๋ฒ ํ„ฐ๋ฆฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์— ๋Œ€ํ•ด ์ •๋ฆฌํ•ด ๋ณธ๋‹ค. Lua Fun 2100stars https://github.com/luafun/luafun High-performance functional programming library designed for Luajit 3๋‹ฌ์ „ Basic Functions Generators Slicing Indexing Filtering Reducing Transformations Compositions Operators Moses 634stars https://github.com/Yonaba/Moses Utility library for functional programming in Lua fun๊ณผ ์œ ์‚ฌํ•˜๋‚˜ ๋” ๋งŽ์€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์žˆ๋Š” ๋“ฏ, moses.lua ํŒŒ์ผ ํ•˜๋‚˜. 6๋…„์ „ Table, Array, Utility, Object, Chaining, Import lua-stdlib 289stars https://github.com/lua-stdlib/lua-stdlib document - https://lua-stdlib.github.io/lua-stdlib/ 8๋…„์ „ modules(std) - debug, functional, io, math, operator, package, strict, string, table Classes - tree, container, object, list, optparse, set, strbuf Microlight 169stars https://github.com/stevedonovan/Microlight ๋ง ๊ทธ๋Œ€๋กœ ๊ฒฝ๋Ÿ‰ penlight, ๋‹ฌ๋ž‘ ml.lua ํŒŒ์ผ ํ•˜๋‚˜ 13๋…„์ „ Strings - tstring, table.concat, table.split, expand, escape Files and Paths - access, exist, readfile, splitpath, splitext Inserting and Extendig - update, extend, insertvalues, import Extracting and Mapping - sub, indexby, imap, indexof, ifind, ifilter, imapfilter, collect, removerange Sets and Maps - indexof, invert, issubset, makemap Higher-order Functions - compose, bind1, bind2 Classes Array Class Experiments Penlight 371stars https://github.com/lunarmodules/Penlight Python์—์„œ ์ œ๊ณตํ•˜๋Š” ์—ฌ๋Ÿฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ ์œ ์‚ฌํ•œ ํƒ€์ž…์œผ๋กœ ์ œ๊ณตํ•œ๋‹ค. 3 month ๊ณ„์† ์—…๋ฐ์ดํŠธ ๋ฐ ๊ฐœ์„  Paths, Files and Directories - path, isdir, isfile, exists, dirname, basename - dir, getfiles, getallfiles - file: copy, move, read, write Application Support - app, lapp, config, strict, utils, compat, types Extra String Operations - utils, stringx, stringio, lexer, text, template, sip Extra Table Operations - tablex, pretty, List, Map, Set, OrderMap, data, array2d, permute Iterators, OOP and Functional - seq, class, func, utils, compression Batteries for Lua https://github.com/1bardesign/batteries love์— ํŠนํ™”๋œ ํ™•์žฅ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ด๋‹ค. ํ•˜์ง€๋งŒ ๋ฒ”์šฉ์œผ๋กœ ์‚ฌ์šฉํ•ด๋„ ๋ฌธ์ œ ์—†๋‹ค. ๋”๊ตฌ๋‚˜ Penlight๋ณด๋‹ค ๊ฒฝ๋Ÿ‰์ด๊ณ  ๋น ๋ฅด๋‹ค. Lua Core Extensions - mathx, tablex, stringx General Utility - class, functional, sequence, set, sort, state_machine, timer, pubsub, pretty Geometry - intersect, vec2, vec3 Special Interest - async, colour(color), manual_gc, measure, make_pooled

2025-07-18 ยท 283 words

LuaFun - LuaJit Functional

Intro LuaFun ์ •์˜ - LuaJit Hight Performance Functional Programming Library luajit์˜ ๋‚ด์žฅํ•จ์ˆ˜๋ฅผ ํ™•์žฅํ•˜์—ฌ ๋‹ค์–‘ํ•œ ํ”„๋กœ๊ทธ๋ž˜๋ฐ์„ ๋•๋Š”๋‹ค. ํ•˜๋‚˜์”ฉ ๊ณต๋ถ€ํ•ด์„œ ํ™œ์šฉํ•˜๋ฉด ๋งค์šฐ ๊ฐ•๋ ฅํ•œ ํˆด์ด ๋  ๊ฒƒ์ด๋‹ค. Usage ๊ธฐ๋ณธ ์‚ฌ์šฉ๋ฒ• $ git clone https://github.com/luafun/luafun.git $ cd luafun $ luajit -i > -- Functional style > require "fun" () > -- calculate sum(x for x^2 in 1..n) > n = 100 > print(reduce(operator.add, 0, map(function(x) return x^2 end, range(n)))) 328350 > -- Object-oriented style > local fun = require "fun" > -- calculate sum(x for x^2 in 1..n) > print(fun.range(n):map(function(x) return x^2 end):reduce(operator.add, 0)) 328350 Using the Library Links github https://github.com/luafun/luafun Document https://luafun.github.io/

2022-10-12 ยท 99 words