Catharine West Bo Aye Saljin LaRocca references

Slides:



Advertisements
Similar presentations
Local Variables and Scope Benjamin Fein. Variable Scope A variable’s scope consists of all code blocks in which it is visible. A variable is considered.
Advertisements

Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
Lua By: Michael Coffman Peter Sussman. History Lua means ‘moon’ in Portuguese First appeared in 1993 Created by Roberto Ierusalimschy, Luiz Henrique de.
Ruby The Gem of new programming languages. An interpreted scripting language.
Python Brandon Jeffcoat Dashaun West “Why settle for snake oil when you can have the whole snake?” -- From Usenet posting by Mark Jackson, June 1998.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
Lua Matthew Spain | Kerry Zhao. Agenda Overview of Lua Language Details Application Areas Demo Conclusion.
CSE 380 – Computer Game Programming Scripting and Lua Lua.
References: 1. “Programming in LUA, 2 nd ed.”, Roberto Lerusalmschy Chapters “Lua Reference Manual” (included in Lua installation or online)
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
AIT 616 Fall 2002 PHP. AIT 616 Fall 2002 PHP  Special scripting language used to dynamically generate web documents  Open source – Free!!!  Performs.
1 Perl Perl basics Perl Elements Arrays and Hashes Control statements Operators OOP in Perl.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Lua: The Programming Language. Some Things that Need to be Said Because of increasing demand for customizable applications, the trend nowadays is to split.
Sharda University P. K. Mishra (Asst.Prof) Department of Computer Science & Technology Subject Name: Programming Using C Sub Code: CSE-106 Programming.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
A First Simple Program /* This is a simple Java program. Call this file "Example.java".*/ class Example { // Your program begins with a call to main().
JavaScript Syntax and Semantics. Slide 2 Lecture Overview Core JavaScript Syntax (I will not review every nuance of the language)
Games Development 2 Lua Scripting CO3301 Week 6. Contents Introducing Lua –Comparison with Python Lua Language Overview Interfacing Lua with C++
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
JavaScript Syntax, how to use it in a HTML document
Perl Tutorial. Why PERL ??? Practical extraction and report language Similar to shell script but lot easier and more powerful Easy availablity All details.
IT ELECTIVE 2.  Web server Can refer to either the hardware (the computer) or the software (the computer application) that helps to deliver content that.
TCL TK. Tcl/Tk C functions can become Tcl commands that are invoked interactively Tk = scriptable, portable user interface –Windows, X (Unix), MacOS,
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
Scripting Languages Info derived largely from Programming Language Pragmatics, by Michael Scott.
Ada, Scheme, R Emory Wingard. Ada History Department of Defense in search of high level language around Requirements drafted for the language.
Reading Exercise 0 Discussion. Imperative vs Declarative A.Prolog, SQL, Perl B.ML, Lisp, SQL C.C, Java,Smalltalk D.C#, Haskell, Spreadsheets E.C++, Eiffel,
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
Perl Ed Finegan. Overview of Pearl Perl is a high-level programming language written by Larry Wall. It derives from the C programming language and to.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Lua for TerraME: A Short Introduction Pedro Ribeiro de Andrade Münster, 2013.
Prepared by Mustafa CAMURLI.  Lua was created in 1993 by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, members of the Computer.
Lua for TerraME: A Short Introduction Pedro Ribeiro de Andrade São José dos Campos, 2011.
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
Cody Scoggins, Dion de Jong, Victor Reynolds References:  902/is-lua-interesting-from-a- programming-language-design-
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
PHP using MySQL Database for Web Development (part II)
Introduction to Perl: Practical extraction and report language
The language focusses on ease of use
CHAPTER 4 DECISIONS & LOOPS
Department of Computer Engineering
Introduction to Dynamic Web Programming
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Scripting Languages Info derived largely from Programming Language Pragmatics, by Michael Scott.
Ruby: An Introduction Created by Yukihiro Matsumoto in 1993 (named after his birthstone) Pure OO language (even the number 1 is an instance of a class)
DBW - PHP DBW2017.
PHP (PHP: Hypertext Preprocessor)
CS230 Tutorial Week 3.
Data types and variables
JavaScript Syntax and Semantics
Lua for TerraME: A Short Introduction
Introduction to C Programming Language
Server-Side Application and Data Management IT IS 3105 (Spring 2010)
Introduction to JavaScript
UNO Static Analysis With a Simple Twist.
Statements, Comments & Simple Arithmetic
A second look at JavaScript
Introduction to Python
Fundamentals of Programming
T. Jumana Abu Shmais – AOU - Riyadh
Chap 1 Chap 2 Chap 3 Chap 5 Surprise Me
Intro to Programming Concepts
Introduction to JavaScript
Tutorial 10: Programming with javascript
PHP an introduction.
Reasons To Study Programming Languages
The Lua Chunk Vault, an enhancement to epics base
INTRODUCTION to PERL PART 1.
Presentation transcript:

Catharine West Bo Aye Saljin LaRocca references Lua Catharine West Bo Aye Saljin LaRocca references http://wiki.roblox.com/index.php?title=Comparison_between_Lua_and_other_languages

Overview in context of language family / problem domains Imperative and Functional Language Embeddable scripting language Based on Associative Arrays and extensible semantics Runs by interpreting bytecode for register-based VM Used in games and applications as plugins some examples: World of Warcraft, Adobe Lightroom, and Apache HTTP Server Overview in context of language family / problem domains

History of Lua Lua was created in order to solve a particular problem Needed an easy-to-configure language. At the time the other comparable language was TCL. Before Lua was SOL (Simple Object Language). ‘Sol’ means sun in Portuguese, and ‘Lua’ means moon – as Lua is ‘smaller’ than SOL. Set language in its historical and problem domain context. How did it evolve?

How Lua has evolved Evolve – cont. After first being implemented in 1993, Lua had many features that were desired but not included in the language. One of these, lexical scoping, was finally introduced in Lua 5.0 in 2003 via a new algorithm. Lua was also ported into Perl via the inline::Lua, a PERL extension for embedding Lua scripts into PERL code. Lua is still used by many game developers today as a convenient scripting language (RPG maker and WoW hello). Evolve – cont.

Language concepts – new, interesting Lua Concepts simple efficient portable free Language concepts – new, interesting

Language concepts (cont.) Lua Concepts --comment --[[comment]] local var1 or local var2 = nil (default value for all uninitialized variable) local var3 = “Abc” (String) local var4 = {} – declaring an array And,end,in,repeat,do,else,elseif,if (Reserved names) Language concepts (cont.)

Language concepts (cont.) Lua Concepts local string a = “Hello world” local number num= 10 local function = type() “..” use for concatenation local b = “Hello”..”World” Language concepts (cont.)

Examples of usage : short program with concepts highlighted He Examples of usage : short program with concepts highlighted

Comparison with other languages (C,C++) Differences •Null is know as nil •else if is combined into one keyword elseif •Uses different arrays that are known as tables. •Strings in lua are not tables •Does not use braces for opening and closing blocks of code. It uses the end statement. •Is not a function based language, though functions are a big part of it. •Function calling requires parenthesis.”()”