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.
分享到:
相关推荐
Vectorization vs. Compilation in Query Execution.pdf
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 ...
2019年新书,介绍了形式语言和编译器的相关知识,可以作为编译原理学习以及编译器开发人员参考。
君正T31 平台移植wifi 模块rtl8188 的问题及解决方法.docx 里面设置到的文档
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...
1.2 Compilation and Execution . . . . . . . . . . . . . . . . . . . . . . . 11 1.3 Simple Values and Expressions . . . . . . . . . . . . . . . . . . . . . 12 1.3.1 Writing Numbers . . . . . . . . . . ...
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
Modern network processors (NPs) typically resemble a highly-multithreaded multiprocessor-ona-chip, ...storage and communication, and to suggest future techniques for automated compilation for NPs.
high-performance computing through dynamic compilation, parallel computing, and graphics card programming. The second part tackles data science, statistics, machine learning, signal and image ...
A survey of published scientific literature was undertaken to identify and catalog observed earthquake precursors.The earthquake precursors selected for analysis included electric and magnetic fields,...
This paper explains how batches are cached and reused in SQL Server 2005, and suggests best practices on maximizing reuse of cached plans. It also explains scenarios in which batches are recompiled, ...
idea中解决Error:java: Compilation failed: internal java compiler error的问题
RealView Compilation Tools,主要介绍ARM开发工具 RealView中编译和库的使用。
- 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...
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 ...
Revised and updated, it reflects the current state of compilation. Every chapter has been completely revised to reflect developments in software engineering, programming languages, and computer ...
你好,放大器的作者的新书,资源来源是ADI,全五本打包下载。
Separate Compilation and Namespaces; Streams and File I/O; Recursion; Inheritance; Polymorphism and Virtual Functions; Templates; Linked Data Structures; Exception Handling; Standard Template Library...
fatal error: zmq.hpp: No such file or directory compilation terminated. 找不到zmq.hpp的原因是, zmq.hpp只存在master中。 如果你使用release版本,那么是没有zmq.hpp这个文件的。去master中找到zmq.hpp。 将...