SVNews r329166

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-02-12 15:31:53 - r329166 by imp (Warner Losh)

Complete list of files affected by revision r329166:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/UPDATING  
  History   Contents   Diff   MODIFY   /head/share/mk/  
  History   Contents   Diff   MODIFY   /head/stand/Makefile  
  History   Contents   Diff   MODIFY   /head/stand/Makefile.amd64  
  History   Contents     ADD   /head/stand/common/interp_lua.c  
  History   Contents   Diff   MODIFY   /head/stand/  
   Contents     ADD   /head/stand/liblua  
  History   Contents     ADD   /head/stand/liblua/Makefile  
  History   Contents     ADD   /head/stand/liblua/float.h  
  History   Contents     ADD   /head/stand/liblua/locale.h  
  History   Contents     ADD   /head/stand/liblua/lstd.c  
  History   Contents     ADD   /head/stand/liblua/lstd.h  
  History   Contents     ADD   /head/stand/liblua/luaconf.h  
  History   Contents     ADD   /head/stand/liblua/lutils.c  
  History   Contents     ADD   /head/stand/liblua/lutils.h  
  History   Contents     ADD   /head/stand/liblua/math.h  
   Contents     ADD   /head/stand/liblua32  
  History   Contents     ADD   /head/stand/liblua32/Makefile  
  History   Contents   Diff   MODIFY   /head/stand/  
  History   Contents     ADD   /head/stand/  
  History   Contents   Diff   MODIFY   /head/sys/sys/param.h  
  History   Contents     ADD   /head/tools/build/options/WITH_LOADER_LUA  

Commit message:

Add Lua as a scripting langauge to /boot/loader

liblua glues the lua run time into the boot loader. It implements all
the runtime routines that lua expects. In addition, it has a few
standard 'C' headers that nueter various aspects of the LUA build that
are too specific to lua to be in libsa. Many refinements from the
original code to improve implementation and the number of included lua
libraries. Use int64_t for lua_Number. Have "/boot/lua" be the default
module path. Numerous cleanups from the original GSoC project,
including hacking libsa to allow lua to be built with only one change
outside luaconf.h.

Add the final bit of lua glue to bring in liblua and plug into the
multiple interpreter framework, previously committed.

Add LOADER_LUA option, currently off by default.

Presently, this is an experimental option. One must opt-in to using
this by defining WITH_LOADER_LUA and WITHOUT_FORTH. It's been
lightly tested, so keep a backup copy of your old loader handy.
The menu code, coming in the next commit, hasn't been exhaustively
tested. A LUA boot loader is 60k larger than a FORTH one, which is
80k larger than a no-interpreter one. Subtle changes in size
may tip things past some subtle limit (the binary is ~430k now
when built with LUA). A future version may offer coexistance.

Bump FreeBSD version to 1200058 to mark the milestone.

Pedro Souza's 2014 Summer of Code project. Rui Paulo, Pedro Arthur,
Zakary Nafziger and Wojciech A. Koszek also contributed. Warner Losh
reworked it extensively into its current form.

Obtained from:
Sponsored by: Google Summer of Code
Relnotes: Yes
MFC After: 1 month
Differential Review:


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 6 ms, 22 files printed. Current time is 2018-05-23 05:09:50. All times are in UTC/GMT.