当前位置:网站首页>Lua notes
Lua notes
2022-06-22 05:02:00 【Justinmars】
Lua Is a lightweight and compact scripting language , Using standard C Language written and open in source , It's designed to be embedded in the application , This provides the application with flexible extension and customization capabilities .Lua It's the Catholic University of Rio de Janeiro, Brazil (Pontifical Catholic University of Rio de Janeiro) A research group in 1993 Year development .
Lua characteristic
● Lightweight : It uses standard C Language written and open in source , After compiling, it's only over 100 K, It can be easily embedded in other programs .
● Scalable : Lua Provides a very easy to use extension interface and mechanism : By the host language ( Usually C or C++) Provide these functions ,Lua They can be used , It's like a built-in feature .
● Other characteristics :
○ Support process oriented (procedure-oriented) Programming and functional programming (functional programming);
○ Automatic memory management ; Only one common type of table is provided (table), It can be used to implement arrays , Hashtable , aggregate , object ;
○ Language built-in pattern matching ; Closure (closure); Function can also be seen as a value ; Provides multithreading ( Collaborative process , Threads not supported by the operating system ) Support ;
○ Through closures and table It can easily support some of the key mechanisms needed for object-oriented programming , For example, data abstraction , Virtual functions , Inheritance and overloading, etc .
Lua Environmental installation
Linux Installation on system
Linux & Mac Installation on Lua Very simple installation , Just download the source package and decompress and compile it at the terminal , This article uses 5.3.0 Version to install :
curl -R -O http://www.lua.org/ftp/lua-5.3.0.tar.gz tar zxf lua-5.3.0.tar.gz
边栏推荐
- 【sdx12】使用QCMAP_CLI启动WiFi操作说明
- Database - basic knowledge
- flink部署模式(一)- standalone和application
- Leetcode -- the kth largest node of the binary search tree (traversal by means of middle order)
- 数据的备份与恢复
- Mongo Fuzzy query, with Special Characters need to escape, to Query
- mysql笔记
- DeformConv
- Web design and production final assignment report - minority music website
- mysql day01课堂笔记
猜你喜欢

守护进程的流程

使用matplotlib实现GUI交互效果

加快推进工业互联网,图扑“智”绘发展新蓝图
![[camp] at the beginning, improve [leopard] power - vivo activity plug-in management platform](/img/75/6a129de59c21b783622ba31f77f647.jpg)
[camp] at the beginning, improve [leopard] power - vivo activity plug-in management platform

网页设计与制作期末大作业报告——大学生线上花店

Will swift compile to native code- Does Swift compile to native code?

Cloud native enthusiast weekly: Chaos mesh upgraded to CNCF incubation project

Slurm tutorial

ORA-15063: ASM discovered an insufficient number of disks for diskgroup 恢複---惜分飛

Zhongmin online: sharing online channel resources with "points" as the link
随机推荐
MySQL day02 class notes
Requests cookie update value
In 2022, the super intern plans to make a breakthrough in the offer of it famous enterprises, and the nine high salary skills help the dream of famous enterprises
网页设计与制作期末大作业报告——大学生线上花店
Hash type of redis
The Impossible Triangle of NLP?
Reading notes on how MySQL works [updating]
[scientific research notes] about using the downsampling multiple of openslide cut
【SDX62】IPA log抓取操作说明
In depth understanding of JS delete
What problems will be encountered during the implementation of MES management system
Postman document parameterization
7. Gateway global filter
This is a picture
Disturbed when programmers are programming? Daily anecdotes
厉害了!淮北两企业获准使用地理标志产品专用标志
The yarn deployment mode depends on the pre upload settings
JUC - thread interrupt and thread waiting and wakeup (locksupport)
NLP 的 不可能三角?
Understanding of service container, service provider and facade of laravel