# Using Zig to Build Native Lua Scripts

**URL:** <https://forum.devtalk.com/t/using-zig-to-build-native-lua-scripts/39791>\
**Category:** Embedded In The News\
**Tags:** lua, zig\
**Created:** [9 February 2022 02:39 UTC](https://forum.devtalk.com/t/using-zig-to-build-native-lua-scripts/39791 "2022-02-09T02:39:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CommunityNews](https://forum.devtalk.com/user_avatar/forum.devtalk.com/communitynews/32/1113_2.png) [@CommunityNews](https://forum.devtalk.com/u/CommunityNews)\
**Post date:** [9 February 2022 02:39 UTC](https://forum.devtalk.com/t/using-zig-to-build-native-lua-scripts/39791/1 "2022-02-09T02:39:50Z")

</div>

> Using Zig to Build Native Lua Scripts.  
> Using Zig to Cross compile a Lua script for multiple arches

Read in full here:

> **[Using Zig to Build Native Lua Scripts](https://cone.codes/posts/using-zig-to-build-native-lua-scripts/)**
>
> Using Zig to Cross compile a Lua script for multiple arches

_This thread was posted by one of our members via one of our news source trackers._

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.devtalk.com/user_avatar/forum.devtalk.com/overminddl1/32/52_2.png) [@OvermindDL1](https://forum.devtalk.com/u/OvermindDL1)\
**Post date:** [9 February 2022 16:51 UTC](https://forum.devtalk.com/t/using-zig-to-build-native-lua-scripts/39791/3 "2022-02-09T16:51:29Z")

</div>

…I was hoping for something to build “native” lua scripts, but there was not. I’m guessing the word “native” meant something different here than the traditional “system native” machine code but I’m unsure what it meant… All this was was just instancing a lua interpreter and running it, there was no building something native other than normal interpreter stuff?

---

<div class="post-metadata">

**Author:** ![ShowMeBillyJo](https://forum.devtalk.com/user_avatar/forum.devtalk.com/showmebillyjo/32/5227_2.png) [@ShowMeBillyJo](https://forum.devtalk.com/u/ShowMeBillyJo)\
**Post date:** [16 February 2022 15:22 UTC](https://forum.devtalk.com/t/using-zig-to-build-native-lua-scripts/39791/4 "2022-02-16T15:22:58Z")

</div>

I agree. I expected this to compile/link a lua script to native, executable bytecode. Alternatively, provide a locally installable runtime + file association that would let someone execute the scripts directly from a shell on the fly, like double-clicking JS and VBS files on Windows.
