https://github.com/xyproto/quaternions
Example of operator overloading in Go, by embedding Lua
https://github.com/xyproto/quaternions
go interop lua operator-overloading quaternions
Last synced: 15 days ago
JSON representation
Example of operator overloading in Go, by embedding Lua
- Host: GitHub
- URL: https://github.com/xyproto/quaternions
- Owner: xyproto
- License: mit
- Created: 2015-11-11T10:37:27.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2022-11-03T05:49:11.000Z (over 3 years ago)
- Last Synced: 2025-03-27T23:43:58.348Z (about 1 year ago)
- Topics: go, interop, lua, operator-overloading, quaternions
- Language: Go
- Homepage:
- Size: 96.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quaternions
One way to bring operator overloading to Go (within Lua), by embedding Lua.
## Background
Go does not support operator overloading. This is especially painful when dealing with quaternions.
This project is an example for how to embed Lua and call Go code from Lua, in order to get to use operator overloading in Lua.
The downside of embedding any scripting language is a loss of performance, but the upside is that it's possible to use Go code and also use quaternions together with operator overloading.
## General info
* License: MIT
* Author: Alexander F. Rødseth <xyproto@archlinux.org>