comparison website/src/why.html.luan @ 1929:31f006c64782

translation
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 01 May 2025 18:31:05 -0600
parents 4fafcd1849d6
children
comparison
equal deleted inserted replaced
1928:e16f38f4fdfc 1929:31f006c64782
1 local Luan = require "luan:Luan.luan" 1 local Luan = require "luan:Luan.luan"
2 local error = Luan.error 2 local error = Luan.error
3 local Io = require "luan:Io.luan" 3 local Io = require "luan:Io.luan"
4 local Http = require "luan:http/Http.luan" 4 local Site_translator = require "luan:gpt/Site_translator.luan"
5 local get_lang = Site_translator.get_lang or error()
6 local text_writer = Site_translator.text_writer or error()
5 local Shared = require "site:/lib/Shared.luan" 7 local Shared = require "site:/lib/Shared.luan"
6 local head = Shared.head or error() 8 local head = Shared.head or error()
7 local header = Shared.header or error() 9 local header = Shared.header or error()
8 10
9 11
10 return function() 12 return function()
11 Io.stdout = Http.response.text_writer() 13 Io.stdout = text_writer()
12 %> 14 %>
13 <!doctype html> 15 <!doctype html>
14 <html> 16 <html lang="<%=get_lang()%>">
15 <head> 17 <head>
16 <% head() %> 18 <% head() %>
17 <title>Why Luan?</title> 19 <title>Why Luan?</title>
18 </head> 20 </head>
19 <body> 21 <body>
20 <% header() %> 22 <% header() %>
21 <div content> 23 <div content>
22 24
23 <h1>Why Luan?</h1> 25 <h1>Why Luan?</h1>
24 26
25 <p>Luan is designed for simplicity and readability. What makes its extreme simplicity possible is that it is a pure scripting language as Ousterhout envisioned in his paper <a href="scripting.pdf">Scripting: Higher Level Programming for the 21st Century</a> (1998). Luan is tightly coupled with Java, with Luan for scripting (writing applications) and Java for writing libraries. Compare this to a language like Python. While Python is a nice language, it is optimal neither for scripting nor for writing libraries. Python sits in the middle as a compromise. Ousterhout's vision is to use the optimal tool for each task. Luan is an uncompromising scripting language while Java is ideal for writing libraries.</p> 27 <p>Luan is designed for simplicity and readability. What makes its extreme simplicity possible is that it is a pure scripting language as Ousterhout envisioned in his paper <a href="scripting.html">Scripting: Higher Level Programming for the 21st Century</a> (1998). Luan is tightly coupled with Java, with Luan for scripting (writing applications) and Java for writing libraries. Compare this to a language like Python. While Python is a nice language, it is optimal neither for scripting nor for writing libraries. Python sits in the middle as a compromise. Ousterhout's vision is to use the optimal tool for each task. Luan is an uncompromising scripting language while Java is ideal for writing libraries.</p>
26 28
27 <p>Luan rejects the complexity of modern software. It is mature software that I have been using for years for web programming. Whether Luan will appeal to you depends on who you are. So I will address different groups of people.</p> 29 <p>Luan rejects the complexity of modern software. It is mature software that I have been using for years for web programming. Whether Luan will appeal to you depends on who you are. So I will address different groups of people.</p>
28 30
29 <h2>For Modern Culture People</h2> 31 <h2>For Modern Culture People</h2>
30 32