Support de cours Lua Programming Language
Résumé
Support de cours Lua Programming Language, tutoriel & guide de travaux pratiques LUA en pdf.
Lecture recommandée Cours alignement conventionnel Cours alignement conventionnel en PDF, plus de 30 000 cours électromécanique gratuit, exercices gratuit, rapports pfe, l... Electromécanique LireLua is … embedded in a fair share of applications
• Wireshark
• Nmap
• Snort
• Cisco SM
• Barracuda Web Server
• Chipmunk AV controller
• Oliveh printers
and many many others
Why Lua ?
• Embeddability
• Portability
• Simplicity
• Small Size
• Quite Efficient
• Free Open-‐Source Sooware
Embeddability
• Provided as a C library
– stand-‐alone interpreter is a client
• Simple API
– simple types
– low-‐level opera9ons
– stack model
• Embedded in C/C++, Java, Fortran, C#, Perl, Ruby, Ada, etc.
– language designed with embedding in mind – bi-‐direc9onal
• host calls Lua and Lua calls host
• most other scrip9ng languages focus only on calling external code
Portability
• Runs on most machines we ever heard of
– Unix, Mac, Windows, Windows CE, Symbian, Palm, Xbox, PS2, PS3, PSP, etc.
– embedded hardware
• WriCen in ANSI C / ANSI C++
– avoids #ifdefs
– avoids dark corners of the standard
– development for a single and very well documented plarorm:
ANSI C
• Lua has “two parts”: core and library
– core moving towards a free-‐standing implementa9on
• no direct dependencies on the OS
Simplicity
• Just one data structure: tables
– associa9ve arrays
– t.x for t["x"] (sugar syntax)
– all efforts to simplicity and performance
• Complete manual with 100 pages
– core, libraries (standard, auxiliary) and API
• Paradigm: mechanisms instead of policies • Non-‐in9mida9ng syntax
– For non-‐programmers users like engineering, geologists, mathema9cians, etc
- Format
- Taille
- 6,6 Mo
- Pages
- 59
- Domaine
- Cours LUA
- Publié le
- 22 mai 2020
Ressources liées
An Overview of Lua’s Design and Implementation
The Journey from Lake JavaScript to The Strait of Lua
Commentaires (0)
Connectez-vous pour laisser un commentaire.
Soyez le premier à commenter
Partagez votre avis sur ce document — questions, retours ou votre propre expérience.