← Back to Lua Course | Chapter 1: Introduction | Lesson 1 of 7

Lua क्या है

Lua एक small, fast scripting language है जो games जैसे दूसरे programs के अंदर embed करना आसान है।

In this page:

  1. Lua क्या है

Lua क्या है

Lua एक lightweight, dynamically typed scripting language है जो 1993 में Brazil के PUC-Rio में बनी। यह C में लिखी host applications के अंदर embed होने के लिए design की गई है, और game engines, tools और configuration में widely इस्तेमाल होती है। Interpreter tiny है और एक Lua program bytecode में compile होकर एक virtual machine से चलता है।

Note: Lua में सिर्फ कुछ core ideas हैं, tables, functions और metatables, और बाकी सब इन्हीं से बना है।

उदाहरण: What is Lua

lua
print("Hello from " .. _VERSION)
print("Lua is dynamically typed:", type(10), type("ten"), type(true))

-- Output:
-- Hello from Lua 5.3
-- Lua is dynamically typed:	number	string	boolean
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
आम गलतियां
  1. यह सोचना कि Lua एक acronym है
  2. Python जितनी बड़ी standard library की उम्मीद करना
  3. यह मान लेना कि Lua सिर्फ games के अंदर काम करता है
चैप्टर सारांश
  • Lua एक lightweight scripting language है
  • यह embed होने के लिए design किया गया है
  • Programs एक bytecode virtual machine पर चलते हैं
  • Tables इसकी main data structure हैं
🔒

Chapter Quiz — Complete all 7 topics to unlock

0/7 topics done

Complete these topics first:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.