-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·178 lines (165 loc) · 7.84 KB
/
index.html
File metadata and controls
executable file
·178 lines (165 loc) · 7.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/css/style.css">
<title>Lamina</title>
<meta name="description" content="Lamina 一个数学用途的面向过程的解释性编程语言,拥有高精度的数字计算以及符号运算">
<meta name="keywords" content="Lamina,Lamina语言,Lamina语言解释器,Lamina语言解释器源码,Lamina语言解释器Github">
<link rel="stylesheet" href="https://mirrors.sustech.edu.cn/cdnjs//ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
<header>
<div class="left">Lamina</div>
<div class="right">
<a href="/">主页</a>
<a href="/download/index.html">下载</a>
<a href="/donate/">捐助</a>
<a href="https://wiki.lm-lang.org/" target="_blank">Wiki</a>
<a href="https://forum.lm-lang.org/" target="_blank">论坛</a>
</div>
</header>
<main>
<div class="container">
<div class="content">
<div class="left">
<h2>WELCOME TO</h2>
<h1>Lamina</h1>
<div class="buttons">
<a href="/download/index.html" class="downbtn">下载</a>
<a href="https://github.com/Lamina-dev/Lamina" class="githubtn" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-github" viewBox="0 0 16 16">
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8" />
</svg>
</a>
</div>
</div>
<pre class="right"><code><span>script.lm</span><pre>// 精确数学计算
print("Hello, Lamina!");
var fraction = 16 / 9; // 精确分数,不是浮点数
print("16/9 =", fraction); // 输出: 16/9
var root = sqrt(2); // 精确无理数
print("√2 =", root); // 输出: √2
print("√2 × √2 =", root * root);// 输出: 2(精确结果)
// 向量运算
var v1 = [1, 2, 3];
var v2 = [4, 5, 6];
print("v1 + v2 =", v1 + v2);
print("v1 · v2 =", dot(v1, v2));</pre></code>
</div>
</div>
</div>
<div class="features">
<div class="content">
<div class="card">
<div class="header">
<h3>数学友好</h3>
</div>
<span class="content">支持任意精度有理数(分数)和无理数(√、π、e)的精确表示和运算</span>
</div>
<div class="card">
<div class="header">
<h3>性能友好</h3>
</div>
<span class="content">使用LMVM实现高效运行<!--、JIT优化、内联汇编优化--></span>
</div>
<div class="card">
<div class="header">
<h3>扩展友好</h3>
</div>
<span class="content">无缝与C/C++衔接<!--,有完善的软件包社区--></span>
</div>
</div>
</div>
<div class="sponsors">
<h3>合作伙伴</h3>
<div class="content">
<a href="https://chuqiyun.com/aff/HNHKAJUX" target="_blank" title="初七云">
<img src="https://chuqiyun.com/static/images/logo2.png" alt="初七云">
</a>
</div>
<div class="signpath">
<img src="https://signpath.org/assets/favicon-50x50.png" alt="SignPath">
<span>
<a href="https://about.signpath.io/" target="_blank">SignPath.io</a>
为 Lamina 项目提供免费代码签名服务,证书由
<a href="https://signpath.org/" target="_blank">SignPath 基金会</a>
颁发。
</span>
</div>
</div>
</main>
<footer>
<div class="footer-content">
<div class="footer-main">
<div class="footer-links">
<div class="footer-column">
<h4><i class="fas fa-comments"></i> 社区交流</h4>
<ul>
<li>
<a href="https://qm.qq.com/cgi-bin/qm/qr?k=sSj7q14HP3UT2OlNqzmSVyp7EsPcthgZ&jump_from=webapi&authKey=uwVxTygvRRdev2UggBbMplJhWNWyebOw6SECSOGt4aldKqD9KMivdjqkOfT/L15I"
title="点击复制QQ群号">
<i class="fab fa-qq"></i> QQ群: 917929893
</a>
</li>
<li>
<a href="https://discord.gg/YBBazvzC" target="_blank">
<i class="fab fa-discord"></i> Discord 群组
</a>
</li>
<li>
<a href="/donate">
❤️ 捐助
</a>
</li>
</ul>
</div>
<div class="footer-column">
<h4><i class="fab fa-github"></i> 代码仓库</h4>
<ul>
<li>
<a href="https://github.com/Lamina-dev/Lamina" target="_blank">
<i class="fas fa-code"></i> Lamina 语言源码
</a>
</li>
<li>
<a href="https://github.com/Lamina-dev/LamLab" target="_blank">
<i class="fas fa-laptop-code"></i> LamLab IDE
</a>
</li>
</ul>
</div>
<div class="footer-column">
<h4><i class="fas fa-book"></i> 学习资源</h4>
<ul>
<li>
<a href="https://wiki.lm-lang.org/" target="_blank">
<i class="fas fa-book-open"></i> 官方文档
</a>
</li>
<li>
<a href="https://forum.lm-lang.org/" target="_blank">
<i class="fas fa-comment-dots"></i> 社区论坛
</a>
</li>
</ul>
</div>
</div>
<div class="footer-info">
<h4>Lamina</h4>
<p>高精度数学计算编程语言</p>
</div>
</div>
<div class="copyright">
© 2025
<script>document.write((new Date()).getFullYear() != 2025 ? "-" + (new Date()).getFullYear() : "")</script>
Copyright 2025 Lamina-dev. All Rights Reserved.<br>
This domain is the official site for the Lamina language.
</div>
</div>
</footer>
</body>
</html>