7. Compilation and Execution
LZX programs are compiled by the OpenLaszlo Compiler, downloaded as byte code, and executed on the client. In writing your program you can make trade-offs between compilation performance, download and startup up time, and runtime performance.
As in other scripting languages such as Perl and Python, LZX programs execute in approximately linear order. That is to say, if you were to write
<view name="outside">
<view name="inside"/>
</view>
Then inside
would be built before outside
. However in many cases you may wish to control the order in which objects are built, or initialized. LZX gives you fine grained control over initialization and instantiation of views.
The <splash>
tag allows you use the canvas to display information while the program is being initialized.
8. On Runtimes and Deployment Modes and the "Core" API
|
Note
The following section also appears in the Preface; we repeat it here on the assumption that the Preface is an often-skipped part of any manual.
|
OpenLaszlo applications can be compiled to run in any of several runtimes, and in either of two deployment modes. Some capabilities are available in only a subset of these use cases. OpenLaszlo's "core" APIs run on all target runtimes, and they get the most attention in this Guide. The "Core API" is kind of loose concept, since there's no formal definition, but what it means is that unless you see indication to the contrary, you can assume that the topic under discussion applies to all runtimes. Similarly the default deployment mode is assumed to be SOLO.
Nevertheless, as a developer you have to decide whether to:
-
optimize for swf (employ swf-only APIs, (and maybe even touch Flash APIs))
-
optimize for dhtml (employ dhtml-only APIs)
-
code to lowest common denominator ("core" APIs only)
-
conditionalize (include both. An example would be including comma separated list of embedded and system fonts; when compiled to SWF you get embedded font, to DHTML you get system font).
The focus of the OpenLaszlo Application Developer's Guide is (c), the lowest common denominator; runtime-specific APIs and engineering approaches are presented as adjuncts. Graphic devices ("glyphs") in the margin call attention to non core/non SOLO information.
Depending on which approach you're taking, you'll make different engineering decisions and different approaches to reading the this Guide. For example, if you're determined to deploy SOLO, you can just skip all the chapters marked with the "Server Required" device, etc.
Finally, this Guide does not address any browser-specific considerations. If a thing does not run on all supported browsers for a given runtime, it's by definition not supported and thus should not be cluttering up our lovely Guide. Nonstandard, browser-specific things are described in the release notes or the OpenLaszlo Wiki.
分享到:
相关推荐
Compilation in Query Execution 在数据库查询执行中,两种优化策略逐渐引起了人们的关注:向量化(Vectorization)和编译(Compilation)。这两种策略都旨在提高数据库查询的执行效率,但它们的实现机理和应用...
7 Compilation and execution 8 Simple WebAssembly example 9 Building projects with emmake 10 Emscripten makefile example WebAssembly Development 11 Loading WebAssembly into JavaScript 12 Loading ...
在介绍和讨论《形式语言与编译第三版》这本书的内容之前,我们首先要了解它在编译原理和编译器开发领域所占据的地位。编译原理是计算机科学中的一个核心课程,它关注如何将高级编程语言转换为机器可以执行的代码。...
Continuous compilation and testing with triggered execution Packages and publishes jars Generates documentation with scaladoc Supports mixed Scala/Java projects Supports testing with ScalaCheck, specs...
A compilation of Matlab scripts and function to compute Iterative Closest Point algorithm on two set of points. Reference P.J. Besl, N.D. McKay, A Method for Registration of 3D Shapes, 1992.zip
### RealView Compilation Tools知识点概述 #### 一、RealView Compilation Tools简介 RealView Compilation Tools是ARM公司推出的一套用于ARM架构开发的专业工具集。该工具集主要包括编译器和库等核心组件,广泛...
进入`File` -> `Settings`(或`Ctrl+Alt+S`),然后选择`Build, Execution, Deployment` -> `Compiler` -> `Java Compiler`,在此处可以确认编译器版本和编译参数等设置,确保它们符合项目需求。 4. **增加JVM堆...
PHP 代码执行过程可以分为四个步骤:Scanning、Parsing、Compilation 和 Execution。 1. Scanning(Lexing):将 PHP 代码转换为语言片段(Tokens)。 PHP 4.2 及更高版本提供了一个函数 `token_get_all`,该函数...
high-performance computing through dynamic compilation, parallel computing, and graphics card programming. The second part tackles data science, statistics, machine learning, signal and image ...
标题中的“Programming GPUs with CPP14 and JIT Compilation”指的是使用C++14语言特性结合Just-In-Time(JIT)编译来实现GPU编程的技术。在GPU编程领域,通常需要掌握针对CPU的编程模型(如C++)以及针对GPU的编程...
- FIX: Unity 5.0 compilation and functionality compatibility fixes - 已经可以用在5.0上面啦 - FIX: Work-around for a Unity bug in 4.5.5p3 and p4 (OnValidate not affected by script execution order). - ...
Setting breakpoints and tracing execution for active debugging Creating libraries by adding and building new targets Integrating Git or Subversion version control Creating iOS projects with MVC design...
- **A Quick Tip on the Execution and Memory Analysis of an Assembly in Visual Studio 2015**: Using tools like the Visual Studio Profiler to analyze the memory usage and performance of .NET ...
This book presents a compilation of selected papers from the first International Conference on Big Data Analysis and Deep Learning Applications (ICBDL 2018), and focuses on novel techniques in the ...
《新概念模拟电路》系列书籍是由著名放大器领域的专家所著,旨在深入浅出地讲解模拟电路的基础理论和实际应用。资源出自全球知名的半导体公司ADI(Analog Devices Inc.),这意味着书中涵盖的内容不仅有深厚的理论...
### 批处理编译、重新编译与计划缓存问题详解 #### 概述 本文主要探讨了在SQL Server 2005中批处理的缓存与重用机制,并提出了最大化利用已缓存计划的最佳实践。此外,还讨论了批处理被重新编译的各种情形,并给出...
Separate Compilation and Namespaces; Streams and File I/O; Recursion; Inheritance; Polymorphism and Virtual Functions; Templates; Linked Data Structures; Exception Handling; Standard Template Library...
Compilation - Compiling and Running C Programs, Installing Codeblocks IDE on Raspberry Pi / Linux, Variables and Data Types in C, Operators, Input and output - printf and scanf, Strings, Arrays, ...