IAmHardliner Posted August 31, 2020 Share Posted August 31, 2020 I made a simple template to use fennel, a lisp to lua transpiler, for dual universe programming. Basic compilation seems to work, but there are still some things missing. (like parameter exports) The template can be found here: https://github.com/du-codeforce/du-fennel-template hdparm and SpacePotato-1 2 Link to comment Share on other sites More sharing options...
MRog40 Posted August 31, 2020 Share Posted August 31, 2020 Have any examples/demos? I've never used lisp but hear about it from lisp people all the time Link to comment Share on other sites More sharing options...
joaocordeiro Posted August 31, 2020 Share Posted August 31, 2020 8 minutes ago, IAmHardliner said: I made a simple template to use fennel, a lisp to lua transpiler, for dual universe programming. Basic compilation seems to work, but there are still some things missing. (like parameter exports) The template can be found here: https://github.com/du-codeforce/du-fennel-template Are you crazy? Do you think im gunna install your code as sudo? Learn how to use the home directory dude... PATH=$PATH:/path/to/some/dir Link to comment Share on other sites More sharing options...
IAmHardliner Posted September 1, 2020 Author Share Posted September 1, 2020 9 hours ago, joaocordeiro said: Are you crazy? Do you think im gunna install your code as sudo? Learn how to use the home directory dude... PATH=$PATH:/path/to/some/dir Sorry for the confusion. This is not a tool that you install. This is template which you can use to write code for dual universe in a lisp. Every sudo use is for installing one of the dependencies. Two of which are luarocks dependencies and one is to move the lua-amlg file. You're completly free to use the template however you want. If you don't want to install anything as sudo, this is fine. Install it localy and add it to your path or change the build script to fit your needs. If you want to make some improvements you are free to open a pull request. For the time being I changed the header from Installation to Install Dependencies and added a disclaimer for people to note that the intallation with sudo is not mandatory. Link to comment Share on other sites More sharing options...
IAmHardliner Posted September 1, 2020 Author Share Posted September 1, 2020 @MRog40 There is an example at https://github.com/du-codeforce/du-fennel-template/blob/master/src/main.fnl The originial lua code from which this was translated is here: https://github.com/du-codeforce/du-fennel-template/tree/master/tools#usage-example I cleaned up the example a bit, so it is closer to the original lua code. If you want to learn more, there is some documentation on https://fennel-lang.org/. Also, you can dm me if you have any questions. I also just started to learn lisp (thats one of the reasons I created this template, to learn lisp in DU), but I'm happy to share all the knowledge I have. Link to comment Share on other sites More sharing options...
hdparm Posted September 1, 2020 Share Posted September 1, 2020 Interesting. Someone should make a template for https://github.com/TypeScriptToLua/TypeScriptToLua too Link to comment Share on other sites More sharing options...
IAmHardliner Posted September 1, 2020 Author Share Posted September 1, 2020 @hdparm I already started to create the type definitions. When I'm done I will start to create the TypeScriptToLua template Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now