TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ravi is a dialect of Lua, with JIT and AOT compilers

90 pointsby InitEnablerabout 1 year ago

5 comments

uticusabout 1 year ago
Love it. Use case is difficult to grasp at first, but seems to be somewhere less powerful than LuaJIT, but with typing; and more powerful than Typed Lua, but with the same typing?<p>&gt; Lua is perfect as a small embeddable dynamic language so why a derivative? Ravi extends Lua with static typing for improved performance when JIT compilation is enabled.<p>&gt; There are other attempts to add static typing to Lua - e.g. Typed Lua but these efforts are mostly about adding static type checks in the language while leaving the VM unmodified.<p>&gt; Of course there is the fantastic LuaJIT implementation. Ravi has a different goal compared to LuaJIT. Ravi prioritizes ease of maintenance and support, language safety, and compatibility with Lua 5.3, over maximum performance.
vitiralabout 1 year ago
Love it but don&#x27;t quite get it.<p>Lua only has 5 &quot;data&quot; types: nil, bool, number, string, and table. There is also &quot;userdata&quot; (defined in C)<p>Would this improve performance for functions that take in the non-table types? Or does it provide some mechanism for structured data besides tables?<p>I have a hard time believing there are many performance gains to be had for the few functions that take in only native types. I suppose compiling those could have major performance improvements in a few tight-loop use-cases?
评论 #39754453 未加载
synergy20about 1 year ago
it&#x27;s based off MIR, does it have something to do with <a href="https:&#x2F;&#x2F;mlir.llvm.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mlir.llvm.org&#x2F;</a> ?<p>for typed lua, there is a newer typescript-alike effort <a href="https:&#x2F;&#x2F;github.com&#x2F;teal-language&#x2F;tl">https:&#x2F;&#x2F;github.com&#x2F;teal-language&#x2F;tl</a> than the mentioned one at <a href="https:&#x2F;&#x2F;github.com&#x2F;andremm&#x2F;typedlua">https:&#x2F;&#x2F;github.com&#x2F;andremm&#x2F;typedlua</a>
评论 #39750014 未加载
ArkimPhiriabout 1 year ago
Ravi is interesting to work with. It&#x27;s simplicity is was draws me the most.
logtempoabout 1 year ago
noob question from a hardware guy : what is a small embeddable dynamic language? What would be a user-case for example?
评论 #39751622 未加载
评论 #39752155 未加载
评论 #39752450 未加载
评论 #39753682 未加载
评论 #39754771 未加载