lua study notes

brief introduction Lua is a lightweight and compact script language, which is written in standard C language and open in the form of source code. Its design purpose is to be embedded in the application, so as to provide flexible expansion and customization functions for the application. Lua was developed in 1993 by a research team at the Pont ...

Posted by KrisCons on Mon, 07 Mar 2022 20:09:04 +0100

[Lua from bronze to the king] Chapter 5: Lua operator

Catalogue of series articles preface 🌲 1, Lua operator An operator is a special symbol that tells the interpreter to perform a specific mathematical or logical operation. Lua provides the following operator types:Arithmetic operatorRelational operatorLogical operatorOther Operators 🌲 1. Arithmetic operator 1. Grammar The ...

Posted by Aliz on Mon, 07 Mar 2022 09:22:20 +0100

Lua coroutine

Reprinted from: Lua coroutine | rookie tutorial Lua coroutine what is coroutine? Lua coroutine is similar to thread: it has independent stack, independent local variables, independent instruction pointers, and shares global variables and most other things with other coroutines. Collaboration is a very powerful function, but it is also very comp ...

Posted by gasoga on Wed, 02 Mar 2022 10:24:58 +0100

Detailed explanation of mutual call between C language and Lua

Write a C to call Lua's Demo to compile and run add.c content //How many files do you need to include #include <stdio.h> #include "lua.h" #include "lualib.h" #include "lauxlib.h" lua_State* L; int luaadd(int x, int y) { int sum; /*Function name*/ lua_getglobal(L,"add"); /*Parameter stack*/ lua_pushnumber(L, x); /*Parameter ...

Posted by lcoscare on Sat, 26 Feb 2022 04:01:53 +0100

Garbage collection in tolua + +

I want to know how the functions exported by tolua + + implement garbage collection and how to use meta methods__ On the gc Association. doubt gc of lua Looking at the code, the keyword used is ". collector", while lua's gc is through modifying the meta method__ gc implemented Garbage userdata with a field __gc in their metatab ...

Posted by newbreed65 on Thu, 17 Feb 2022 22:16:09 +0100

An article on understanding Lua's object orientation

Copyright notice: This article is the original article of the blogger and follows CC 4.0 BY-SA Copyright agreement, please attach the original source link and this statement for reprint. Link to this article: https://blog.csdn.net/takashi77/article/details/116655240 Lua is a process oriented and functional programming language, because Lu ...

Posted by sxiix on Fri, 11 Feb 2022 15:20:12 +0100

I understand the principle of geohash and practice the practical design ideas. The interviewer won't laugh at me!

preface Hello, guys, I'm amu! A programmer who likes to share technical points through actual project practice! Have you ever encountered the scene of being ridiculed by the interviewer; Before, there was a junior who just graduated from primary school (Internet cafe in University, temporary cramming after graduation) who was interviewed in a ...

Posted by michaelpalmer7 on Wed, 09 Feb 2022 00:45:00 +0100

One of lua's introductory notes

preface lua is a powerful, efficient, lightweight and embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming and data description. I study lua mainly because of its perfect coordination mechanism. 1. Installation lua environment The installation process ...

Posted by dominicd on Tue, 08 Feb 2022 21:44:37 +0100

lua learning record | CSDN creation punch in

1. Configuring lua development environment with vscode Download the required compiler: Download from official website http://www.lua.org/home.html Click this to enter the download (you can see that he said this way if you use win), but I can't open it. I don't know why After reading the articles of other bloggers, you can choose to ...

Posted by postalservice14 on Thu, 03 Feb 2022 08:54:00 +0100

Super full and super detailed Rime input method configuration guide

1. Why RIME There are many input methods on the market. Whether Sogou or QQ input methods are basically the same, but RIME is a special existence among many input methods. The reason why it is special is that most input method tools are shaped when they leave the factory. There are only some custom options, which are also defined when they le ...

Posted by Darkness31 on Tue, 01 Feb 2022 21:11:08 +0100