Go gopher-lua

Open-source Go projects categorized as gopher-lua

Go gopher-lua Projects

  • gopher-lua

    GopherLua: VM and compiler for Lua in Go

  • Project mention: Go performance from version 1.0 to 1.22 | news.ycombinator.com | 2024-04-14

    Would be neat to see graph of recent versions with linear scale

    I checked, they use switch on opcodes in vm.go. So would expect a recent improvement, but probably only <5%, & I didn't look close enough to see if awk is one of those languages where instruction dispatch matters less (like how APL tends to avoid issues since array ops avoid having dispatch in tight loops, or how Python avoids instruction dispatch overhead when using numpy)

    For VMs Go had a problem for large switch statements: it would always use binary search instead of a jump table. This caused gopher-lua & go-lua to both take the route of having an array of functions which they call on to dispatch instead

    A couple years ago this was fixed: https://go-review.googlesource.com/c/go/+/357330

    I measured a small perf improvement switching gopher-lua to switch: https://github.com/yuin/gopher-lua/pull/479

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go gopher-lua related posts

Index

Project Stars
1 gopher-lua 6,005

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com