Mercurial Hosting > luan
comparison website/src/diff.html.luan @ 1814:0ead5c6b07b0
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 11 Jun 2024 11:32:36 -0600 |
parents | fa0e73119b7c |
children | 50e570b598b2 |
comparison
equal
deleted
inserted
replaced
1813:fa0e73119b7c | 1814:0ead5c6b07b0 |
---|---|
37 | 37 |
38 <p>The Luan <em>binary</em> type is the Java <em>byte[ ]</em> type which is an array of bytes.</p> | 38 <p>The Luan <em>binary</em> type is the Java <em>byte[ ]</em> type which is an array of bytes.</p> |
39 | 39 |
40 <p>The Luan <em>table</em> type is just like its Lua equivalent, but implemented in Java.</p> | 40 <p>The Luan <em>table</em> type is just like its Lua equivalent, but implemented in Java.</p> |
41 | 41 |
42 <p>Luan does not have the Lua <em>thread</em> type which aren't actually threads but in fact are coroutines. Luan has real threads. This is particularly valuable for web serving where each request is handled by a thread. But thread synchronization is too complicated for application programmers. So Luan makes objects (tables) immutable when they become accessible by multiple threads. This eliminates the need for thread synchronization. If there is a need to share mutable state across threads, there are special thread-local functions for this.</p> | 42 <p>Luan does not have the Lua <em>thread</em> type which aren't actually threads but in fact are coroutines. Luan has real threads. This is particularly valuable for web serving where each request is handled by a thread. But thread synchronization is too complicated for application programmers. So Luan makes mutable objects immutable when they become accessible by multiple threads. This eliminates the need for thread synchronization. If there is a need to share mutable state across threads, there are special functions for this.</p> |
43 <% | 43 <% |
44 end | 44 end |
45 } | 45 } |
46 env = { | 46 env = { |
47 title = "Environments" | 47 title = "Environments" |