Replies: 1 comment 4 replies
-
We would love to eventually support the entire Lua standard library. The main catch has been:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been playing around with converting my binary protocol packer/unpacker, from plain Lua 5.4 to Pallene (using string.char() as the method for packing into a table that I later table.concat -- outside of Pallene). With Palene, my protocol packing is now over 2x faster!
But now that I am working on unpacking, I find that I am missing string.byte()! That is, I want to be able to do (contrived example here):
I really like that Pallene doesn't have everything thrown in, but to me, string.char() begs for a string.byte() companion.
I've made local mods to the Pallene source that seems to do the job, but certainly not fully thought out or tested well enough to request a pull.
I know that I can pull over the Lua string.byte() with a function prototype, but Pallene's native string.sub(), string.char() does most of what I want... I just need string.byte()...
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions