TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

React Lua

175 点作者 bundie11 个月前

13 条评论

_xivi11 个月前
Some background for anyone interested: The project is a fork of `roblox&#x2F;react-lua` to basically open it up for community engagement and it uses Luau<p>Roblox&#x27;s Luau: <a href="https:&#x2F;&#x2F;luau-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;luau-lang.org&#x2F;</a><p>&gt; Luau is a fast, small, safe, gradually typed embeddable scripting language derived from Lua.<p>&gt; Around 2006, Roblox started using Lua 5.1 as a scripting language for games. Over the years the runtime had to be tweaked to provide a safe, secure sandboxed environment; we gradually started accumulating small library changes and tweaks.
评论 #40773539 未加载
评论 #40776971 未加载
评论 #40779200 未加载
oDot11 个月前
I wrote Vleam[0], which is the equivalent to this, but for Vue and Gleam.<p>The more options like this, the better. Especially for existing ecosystems.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;vleam&#x2F;vleam">https:&#x2F;&#x2F;github.com&#x2F;vleam&#x2F;vleam</a>
评论 #40776944 未加载
xrd11 个月前
As others here have mentioned, why React?<p>More specifically, I know that Roblox uses lua(u) but I assumed this was all for scripting. React is a tool for building UI.<p>How do you use React inside Roblox? You can build UI? I&#x27;m trying to wrap my head around my clearly mistaken assumption that what was possible in Roblox was writing lua-ish scripts that handle events in Roblox and then alter the game flow. That&#x27;s very different from a full UI element that manages state and presentation, which is why React was so exciting (ten years ago).
评论 #40776703 未加载
评论 #40777791 未加载
评论 #40777677 未加载
评论 #40776467 未加载
firtoz11 个月前
You could write react in Lua for a while, for example for Roblox. And, it&#x27;s very cool. There&#x27;s also another project that compiles typescript to Lua: <a href="https:&#x2F;&#x2F;roblox-ts.com" rel="nofollow">https:&#x2F;&#x2F;roblox-ts.com</a><p>And that one supports writing pretty much actual React tsx but with Roblox primitives.<p>One of my clients asked me to make a Roblox plugin, it was my first time, and I was very pleasantly surprised with this workflow. There are also tools to enable really high iteration speed. It felt nicer than Unity at some moments. I didn&#x27;t really need to write or know any Lua at all!
pull_my_finger11 个月前
I&#x27;m reading the docs and it&#x27;s very unclear if this project is for Lua or Luau (the Roblox derivative).
评论 #40772890 未加载
classified11 个月前
Ancient quiche eater wisdom has it that you can write Fortran in any language. In that vein, React in Lua is not too much of a surprise.
评论 #40776113 未加载
评论 #40778383 未加载
bilekas11 个月前
Looking at it&#x27;s parity list its missing quite a lot, that&#x27;s not the issue as this seems to be a for fun project (or masochism) but at what point is it considered react? It&#x27;s unclear to me.
DonHopkins11 个月前
I bet they exploited child labor to develop it.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=n6PYj93SGxc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=n6PYj93SGxc</a>
hk-hater42011 个月前
This is unholy and cursed
h1fra11 个月前
Another library&#x2F;documentation that commits the sin of not showing any examples
probablyfiction11 个月前
I don&#x27;t even like writing React in Javascript
snshn11 个月前
React has terrible performance
评论 #40777008 未加载
评论 #40777139 未加载
reactworld11 个月前
React is eating the world
评论 #40776547 未加载