Jump to content

[Lua] A template to use lisp to program for dual universe


IAmHardliner

Recommended Posts

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

Link to comment
Share on other sites

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

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

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...