Not yet! It looks light right now it can parse almost all the way through to the end of the Fennel compiler, but it fails on the one use of long brackets in the file:
That should be pretty easy to fix. After that, I’m guessing it’ll fail because it relies on some of the missing stdlib things I mentioned in the post. I’ll try to spend some time in the next couple of weeks getting this to work though, since it would be pretty neat to be able to run Fennel from Racket.
Aha, you found the one place in all of Fennel that uses Lua’s bracket-string syntax, for loading built-in macros. You could cut that part out and load a macroless variant of Fennel. =)
Come by the #fennel channel on Libera if you need any more help! This does sound very interesting. Among niche Lua implementations the most common cause of incompatibilities are bugs from require/package and incompatibilities in string.find and other pattern functions. (I think one of the JVM ones just doesn’t even try and treats patterns exactly the same as Java patterns which obviously breaks a ton of things.)
On the Racket discord the author mentioned something along the lines of ‘passed to antifennel and the result back through fennel.’ but you will have to ask the author on the Racket discord https://discord.gg/6Zq8sH5 or discourse https://racket.discourse.group/
Ahahahaha yes, does Fennel run on it?
Not yet! It looks light right now it can parse almost all the way through to the end of the Fennel compiler, but it fails on the one use of long brackets in the file:
That should be pretty easy to fix. After that, I’m guessing it’ll fail because it relies on some of the missing stdlib things I mentioned in the post. I’ll try to spend some time in the next couple of weeks getting this to work though, since it would be pretty neat to be able to run Fennel from Racket.
Aha, you found the one place in all of Fennel that uses Lua’s bracket-string syntax, for loading built-in macros. You could cut that part out and load a macroless variant of Fennel. =)
Come by the #fennel channel on Libera if you need any more help! This does sound very interesting. Among niche Lua implementations the most common cause of incompatibilities are bugs from
require
/package
and incompatibilities instring.find
and other pattern functions. (I think one of the JVM ones just doesn’t even try and treats patterns exactly the same as Java patterns which obviously breaks a ton of things.)On the Racket discord the author mentioned something along the lines of ‘passed to antifennel and the result back through fennel.’ but you will have to ask the author on the Racket discord https://discord.gg/6Zq8sH5 or discourse https://racket.discourse.group/
The repo for
#lang lua
is at https://github.com/Bogdanp/racket-luaMore of this please. Let’s not keep stuffing everything via the C FFI
I’m not the author. The best place is https://racket.discourse.group/