Category:Lua: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 24: Line 24:
Output from [[Find_unimplemented_tasks]] :
Output from [[Find_unimplemented_tasks]] :


Lua has 338 unimplemented programming tasks:
Lua has 355 unimplemented programming tasks:
15 puzzle solver
15 puzzle solver
2048
2048
Line 30: Line 30:
9 billion names of God the integer
9 billion names of God the integer
AKS test for primes
AKS test for primes
Abbreviations, automatic
Abbreviations, easy
Abbreviations, simple
Active Directory/Connect
Active Directory/Connect
Active Directory/Search for a user
Active Directory/Search for a user
Line 45: Line 48:
Atomic updates
Atomic updates
Average loop length
Average loop length
Babbage problem
Balanced ternary
Balanced ternary
Bernoulli numbers
Bernoulli numbers
Line 62: Line 64:
Break OO privacy
Break OO privacy
Bulls and cows/Player
Bulls and cows/Player
CRC-32
Call a function in a shared library
Call a function in a shared library
Canny edge detector
Canny edge detector
Line 71: Line 72:
Check Machin-like formulas
Check Machin-like formulas
Checkpoint synchronization
Checkpoint synchronization
Chinese remainder theorem
Chinese zodiac
Chinese zodiac
Cholesky decomposition
Cholesky decomposition
Church Numerals
Circles of given radius through two points
Circles of given radius through two points
Closest-pair problem
Closest-pair problem
Line 98: Line 99:
Create a file on magnetic tape
Create a file on magnetic tape
Create an object at a given address
Create an object at a given address
Currency
Cut a rectangle
Cut a rectangle
Death Star
Death Star
Line 117: Line 119:
Draw a rotating cube
Draw a rotating cube
Dutch national flag problem
Dutch national flag problem
EKG sequence convergence
Eertree
Eertree
Egyptian division
Egyptian division
Line 124: Line 127:
Enforced immutability
Enforced immutability
Equilibrium index
Equilibrium index
Euler's identity
Events
Events
Executable library
Executable library
Line 134: Line 138:
Find palindromic numbers in both binary and ternary bases
Find palindromic numbers in both binary and ternary bases
Floyd-Warshall algorithm
Floyd-Warshall algorithm
Four is magic
Four is the number of letters in the ...
Four is the number of letters in the ...
Fractran
Fractran
Line 142: Line 147:
Galton box animation
Galton box animation
Gaussian elimination
Gaussian elimination
Generate random chess position
Go Fish
Go Fish
Greyscale bars/Display
Greyscale bars/Display
Line 161: Line 167:
Image convolution
Image convolution
Image noise
Image noise
Index finite lists of positive integers
Inheritance/Single
Inheritance/Single
Integer overflow
Integer overflow
Line 166: Line 173:
Inverted syntax
Inverted syntax
Jaro distance
Jaro distance
Jewels and Stones
Joystick position
Joystick position
Julia set
Julia set
Line 178: Line 186:
Knapsack problem/Continuous
Knapsack problem/Continuous
Knuth's algorithm S
Knuth's algorithm S
Knuth's power tree
Kolakoski sequence
Kolakoski sequence
LU decomposition
LU decomposition
Largest number divisible by its digits
Last letter-first letter
Last letter-first letter
Law of cosines - triples
Long multiplication
Long multiplication
Long primes
Loops/Increment loop index within loop body
Loops/Increment loop index within loop body
Loops/Wrong ranges
Lucas-Lehmer test
Lucas-Lehmer test
Lucky and even lucky numbers
Lucky and even lucky numbers
Line 197: Line 210:
Metronome
Metronome
Miller–Rabin primality test
Miller–Rabin primality test
Mind boggling card trick
Minesweeper game
Minesweeper game
Modular exponentiation
Modular exponentiation
Line 207: Line 221:
Nautical bell
Nautical bell
Negative base numbers
Negative base numbers
Nested templated data
Non-continuous subsequences
Non-continuous subsequences
Nonoblock
Nonoblock
Line 214: Line 229:
Object serialization
Object serialization
Odd word problem
Odd word problem
Old lady swallowed a fly
OpenWebNet Password
OpenWebNet Password
Paraffins
Paraffins
Line 259: Line 273:
Rate counter
Rate counter
Ray-casting algorithm
Ray-casting algorithm
Recaman's sequence
Record sound
Record sound
Reflection/Get source
Reflection/Get source
Line 284: Line 299:
Set of real numbers
Set of real numbers
Set puzzle
Set puzzle
Shortest common supersequence
Sierpinski carpet
Sierpinski carpet
Sierpinski pentagon
Sierpinski pentagon
Line 304: Line 320:
Sparkline in unicode
Sparkline in unicode
Speech synthesis
Speech synthesis
Spelling of ordinal numbers
Spinning rod animation/Text
Spinning rod animation/Text
Square but not cube
Start from a main routine
Start from a main routine
State name puzzle
State name puzzle
Line 312: Line 330:
Sum to 100
Sum to 100
Superellipse
Superellipse
Superpermutation minimisation
Taxicab numbers
Taxicab numbers
Terminal control/Coloured text
Terminal control/Coloured text
Line 334: Line 353:
Twelve statements
Twelve statements
URL parser
URL parser
UTF-8 encode and decode
Ulam spiral (for primes)
Ulam spiral (for primes)
Unicode strings
Unicode strings
Line 356: Line 374:
Word search
Word search
World Cup group stage
World Cup group stage
Write language name in 3D ASCII
Write to Windows event log
Write to Windows event log
Xiaolin Wu's line algorithm
Xiaolin Wu's line algorithm

Revision as of 09:32, 5 October 2018

Language
Lua
This programming language may be used to instruct a computer to perform a task.
Official website
Execution method: Interpreted
Garbage collected: Yes
Type safety: Safe
Type strength: Strong
Type expression: Implicit
Type checking: Dynamic
See Also:
Listed below are all of the tasks on Rosetta Code which have been solved using Lua.
Try this language on Codepad.

The Lua (pronounced LOO-ah) programming language is a lightweight, reflective, imperative and procedural language, designed as a scripting language with extensible semantics as a primary goal. The name is derived from the Portuguese word for moon.

Lua is commonly described as a "multi-paradigm" language, providing a small set of general features that can be extended to fit different problem types, rather than providing a more complex and rigid specification to match a single paradigm. Lua, for instance, does not contain explicit support for inheritance, but allows it to be implemented relatively easily with metatables. Similarly, Lua allows programmers to implement namespaces, classes, and other related features using its single table implementation; first class functions allow the employment of many powerful techniques from functional programming; and full lexical scoping allows fine-grained information hiding to enforce the principle of least privilege.

In general, Lua strives to provide flexible meta-features that can be extended as needed, rather than supply a feature-set specific to one programming paradigm. As a result, the base language is light—in fact, the full reference interpreter is only about 150KB compiled—and easily adaptable to a broad range of applications.

Citations

Unimplemented programming tasks

Output from Find_unimplemented_tasks :

Lua has 355 unimplemented programming tasks:

 15 puzzle solver
 2048
 4-rings or 4-squares puzzle
 9 billion names of God the integer
 AKS test for primes
 Abbreviations, automatic
 Abbreviations, easy
 Abbreviations, simple
 Active Directory/Connect
 Active Directory/Search for a user
 Active object
 Address of a variable
 Aliquot sequence classifications
 Anagrams/Deranged anagrams
 Animation
 Append a record to the end of a text file
 Apply a digital filter (direct form II transposed)
 Arbitrary-precision integers (included)
 Archimedean spiral
 Arena storage pool
 Arithmetic-geometric mean/Calculate Pi
 Atomic updates
 Average loop length
 Balanced ternary
 Bernoulli numbers
 Best shuffle
 Bitcoin/address validation
 Bitcoin/public point to address
 Bitmap/Bresenham's line algorithm
 Bitmap/Bézier curves/Cubic
 Bitmap/Bézier curves/Quadratic
 Bitmap/Flood fill
 Bitmap/Midpoint circle algorithm
 Bitmap/PPM conversion through a pipe
 Bitmap/Read an image through a pipe
 Bitwise IO
 Brace expansion
 Break OO privacy
 Bulls and cows/Player
 Call a function in a shared library
 Canny edge detector
 Carmichael 3 strong pseudoprimes
 Casting out nines
 Catmull–Clark subdivision surface
 Chat server
 Check Machin-like formulas
 Checkpoint synchronization
 Chinese zodiac
 Cholesky decomposition
 Church Numerals
 Circles of given radius through two points
 Closest-pair problem
 Color of a screen pixel
 Color quantization
 Colour bars/Display
 Colour pinstripe/Display
 Colour pinstripe/Printer
 Combinations and permutations
 Commatizing numbers
 Compare sorting algorithms' performance
 Compile-time calculation
 Compiler/AST interpreter
 Compiler/code generator
 Compiler/lexical analyzer
 Compiler/syntax analyzer
 Compiler/virtual machine interpreter
 Conjugate transpose
 Constrained genericity
 Constrained random points on a circle
 Continued fraction
 Continued fraction/Arithmetic/Construct from rational number
 Convert decimal number to rational
 Create a file on magnetic tape
 Create an object at a given address
 Currency
 Cut a rectangle
 Death Star
 Deconvolution/2D+
 Define a primitive data type
 Delegates
 Determine if only one instance is running
 Digital root/Multiplicative digital root
 Dining philosophers
 Discordian date
 Distributed programming
 Documentation
 Doubly-linked list/Definition
 Doubly-linked list/Element definition
 Doubly-linked list/Element insertion
 Doubly-linked list/Traversal
 Draw a cuboid
 Draw a pixel
 Draw a rotating cube
 Dutch national flag problem
 EKG sequence convergence
 Eertree
 Egyptian division
 Egyptian fractions
 Element-wise operations
 Elementary cellular automaton
 Enforced immutability
 Equilibrium index
 Euler's identity
 Events
 Executable library
 Extend your language
 Extensible prime generator
 FTP
 Factors of a Mersenne number
 Find common directory path
 Find largest left truncatable prime in a given base
 Find palindromic numbers in both binary and ternary bases
 Floyd-Warshall algorithm
 Four is magic
 Four is the number of letters in the ...
 Fractran
 Function frequency
 GUI component interaction
 GUI enabling/disabling of controls
 GUI/Maximum window dimensions
 Galton box animation
 Gaussian elimination
 Generate random chess position
 Go Fish
 Greyscale bars/Display
 HTTPS/Client-authenticated
 Handle a signal
 Hash join
 Hello world/Line printer
 Hello world/Web server
 Hickerson series of almost integers
 History variables
 Hofstadter Figure-Figure sequences
 Hofstadter Q sequence
 Hofstadter-Conway $10,000 sequence
 Honeycombs
 Horizontal sundial calculations
 Host introspection
 Hough transform
 Hunt The Wumpus
 Image convolution
 Image noise
 Index finite lists of positive integers
 Inheritance/Single
 Integer overflow
 Inverted index
 Inverted syntax
 Jaro distance
 Jewels and Stones
 Joystick position
 Julia set
 K-d tree
 K-means++ clustering
 Keyboard input/Flush the keyboard buffer
 Keyboard input/Keypress check
 Keyboard input/Obtain a Y or N response
 Keyboard macros
 Knapsack problem/0-1
 Knapsack problem/Bounded
 Knapsack problem/Continuous
 Knuth's algorithm S
 Knuth's power tree
 Kolakoski sequence
 LU decomposition
 Largest number divisible by its digits
 Last letter-first letter
 Law of cosines - triples
 Long multiplication
 Long primes
 Loops/Increment loop index within loop body
 Loops/Wrong ranges
 Lucas-Lehmer test
 Lucky and even lucky numbers
 Lychrel numbers
 MD5/Implementation
 Machine code
 Mad Libs
 Main step of GOST 28147-89
 Maze solving
 Median filter
 Memory allocation
 Memory layout of a data structure
 Metered concurrency
 Metronome
 Miller–Rabin primality test
 Mind boggling card trick
 Minesweeper game
 Modular exponentiation
 Modular inverse
 Mouse position
 Multiple regression
 Multiplicative order
 Narcissist
 Natural sorting
 Nautical bell
 Negative base numbers
 Nested templated data
 Non-continuous subsequences
 Nonoblock
 Nonogram solver
 Numeric error propagation
 OLE Automation
 Object serialization
 Odd word problem
 OpenWebNet Password
 Paraffins
 Parallel Brute Force
 Parallel calculations
 Parametric polymorphism
 Parametrized SQL statement
 Parse an IP Address
 Parsing/RPN to infix conversion
 Parsing/Shunting-yard algorithm
 Partition an integer X into N primes
 Pascal's triangle/Puzzle
 Pathological floating point problems
 Pattern matching
 Pentagram
 Percentage difference between images
 Percolation/Bond percolation
 Percolation/Mean cluster density
 Percolation/Mean run density
 Percolation/Site percolation
 Permutation test
 Permutations/Rank of a permutation
 Pig the dice game/Player
 Pinstripe/Printer
 Play recorded sounds
 Plot coordinate pairs
 Polymorphic copy
 Polynomial long division
 Polynomial regression
 Pragmatic directives
 Primes - allocate descendants to their ancestors
 Primorial numbers
 Problem of Apollonius
 Pythagoras tree
 Pythagorean quadruples
 Pythagorean triples
 QR decomposition
 RCRPG
 RPG Attributes Generator
 RSA code
 Ramer-Douglas-Peucker line simplification
 Random number generator (device)
 Ranking methods
 Rate counter
 Ray-casting algorithm
 Recaman's sequence
 Record sound
 Reflection/Get source
 Reflection/List methods
 Reflection/List properties
 Rendezvous
 Rep-string
 Resistor mesh
 Retrieve and search chat history
 Rosetta Code/Count examples
 Rosetta Code/Find bare lang tags
 Rosetta Code/Rank languages by popularity
 Runge-Kutta method
 S-Expressions
 SEDOLs
 SOAP
 SQL-based authentication
 Safe addition
 Sailors, coconuts and a monkey problem
 Same Fringe
 Scope modifiers
 Scope/Function names and labels
 Sequence of primorial primes
 Set consolidation
 Set of real numbers
 Set puzzle
 Shortest common supersequence
 Sierpinski carpet
 Sierpinski pentagon
 Sierpinski triangle
 Simple database
 Simulate input/Keyboard
 Simulate input/Mouse
 Singleton
 Singly-linked list/Element definition
 Singly-linked list/Element insertion
 Singly-linked list/Traversal
 Sokoban
 Solve a Hidato puzzle
 Solve a Hopido puzzle
 Solve a Numbrix puzzle
 Solve the no connection puzzle
 Sorting algorithms/Heapsort
 Sorting algorithms/Radix sort
 Sorting algorithms/Strand sort
 Sparkline in unicode
 Speech synthesis
 Spelling of ordinal numbers
 Spinning rod animation/Text
 Square but not cube
 Start from a main routine
 State name puzzle
 Stream Merge
 Subtractive generator
 Sum and Product Puzzle
 Sum to 100
 Superellipse
 Superpermutation minimisation
 Taxicab numbers
 Terminal control/Coloured text
 Terminal control/Cursor movement
 Terminal control/Cursor positioning
 Terminal control/Dimensions
 Terminal control/Hiding the cursor
 Terminal control/Inverse video
 Terminal control/Positional read
 Terminal control/Preserve screen
 Terminal control/Unicode output
 Ternary logic
 The ISAAC Cipher
 The Name Game
 Thiele's interpolation formula
 Tic-tac-toe
 Topic variable
 Topological sort
 Total circles area
 Tree traversal
 Truth table
 Twelve statements
 URL parser
 Ulam spiral (for primes)
 Unicode strings
 Update a configuration file
 Use another language to call a function
 User input/Graphical
 Vampire number
 Variable size/Get
 Variable size/Set
 Variable-length quantity
 Verify distribution uniformity/Chi-squared test
 Verify distribution uniformity/Naive
 Video display modes
 Vigenère cipher/Cryptanalysis
 Visualize a tree
 Vogel's approximation method
 Walk a directory/Recursively
 Water collected between towers
 Window creation/X11
 Window management
 Word search
 World Cup group stage
 Write to Windows event log
 Xiaolin Wu's line algorithm
 Yahoo! search interface
 Yin and yang
 Zebra puzzle
 Zeckendorf arithmetic

See also Reports:Tasks_not_implemented_in_Lua

Subcategories

This category has the following 7 subcategories, out of 7 total.

I

L

Pages in category "Lua"

The following 200 pages are in this category, out of 940 total.

(previous page) (next page)

C

(previous page) (next page)