The SNES compiler write ups reminded me I need to get back into creating a made-for-binary regex system. Once I get done with some other projects I'm knee deep in, I'll sit down to really get a feel for RakuAST and then it'll be all go from there (and of course, as always, I welcome comments/feedback on the proposal gist <https://gist.github.com/alabamenhu/2fec7a8f51a24091dc1b104a2ae2f04d>
One of the main things that I've found with doing binary stuff is it's important to get very comfortable working with the various classes related to working with binary data: Blob, Buf, and likely native integers/arrays. The latter can be a bit tricky to work with as some things work a bit differently. Once you get the hang of it though, it's not too bad. Also, definitely feel free to reach out on IRC -- while it might take some time to get an answer (especially if most are sleeping), stick around and we are generally pretty good about answering questiosn and problem solving / helping with the language. Matéu > On Dec 29, 2021, at 5:41 PM, Ralph Mellor <ralphdjmel...@gmail.com> wrote: > > On Wed, Dec 29, 2021 at 1:32 AM Jon Smart <j...@smartown.nl> wrote: >> >> I plan to port a binary protocol client to perl6/raku. >> I have zero experience on this. Where should I get started? > > How well do you know programming, and Raku, and is the > protocol a standard one you can link to with several existing > implementations? > > If the main motivation is just getting stuff done, consider using > an existing implementation of the protocol. This will of course > mean you'll have a dependency on that implementation, plus > whatever PL it's written in, plus the Inline for that PL, but that > can mean a working solution in a few minutes, maybe a few > hours. > > A complementary or alternate strategy if you're willing to wait > until the time is right would be to wait for alatennaub to get far > enough with their binary regex effort: > > https://www.reddit.com/r/rakulang/comments/qqcnzr/binary_regex/ > > https://www.reddit.com/r/rakulang/comments/rm2tve/ > writing_a_snes_assembler_compilerdisassembler_day/hpjziq4/ > > Then you could (presumably) use that. > > (And/or you could collaborate with them to accelerate things.) > > -- > love, raiph