|
-
Sep 18th, 2020, 04:13 AM
#3
Thread Starter
Lively Member
Re: [VBA] Lambda Syntax - No script control or cheats! Happy for ports to VB6
 Originally Posted by wqweto
Wow, where did this come from :-)) Probably from the wonderful world of VBA 7 where cross-pollination with modern languages and new ideas is still strong!
Over the past year I've been simultaneously working on a "VBA-Like" to "VBA" transpiler with the intention of making something akin to BabelJS but for VBA. Was also hoping that might be able to compile to VB6 too and thus simultaneously "elevate" the version of VB6. Anyhow that experience and some help from a friend, allowed me to write a first version (which evaluated the tree at runtime...). It really all developed from there, with 2nd and 3rd versions implementing more operations. In an attempt to try to improve performance TarVK took it and added the compiler and evaluator here
 Originally Posted by wqweto
Btw, in the ancient VB6 world we do have x86 machine code generated lambdas (kind of) but unfortunately there is no x64 implementation currently.
Wow! Wish I had known that before I made this library lol... I had initially hoped to do more in machine code, but at the time didn't have the knowledge or compiler tooling to make that work...
 Originally Posted by wqweto
I might try to implement C emitting backend (OTCC subset) for your lambda syntax based on your current frontend
This would be cool, an alternative approach would be to re-implement the evaluator in compiled C for both x86 and x64. At least I believe this should provide the fastest runtime. Although it may be less fun for you! :P Anyhow any help you can provide would be much appreciated of course
Last edited by sancarn; Sep 18th, 2020 at 04:22 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|