1. 16
  1.  

  2. 6

    Excited to see an implementation of a Lisp-like language in Rust! Makes me want to spend more time working on Ruse, my own embedded Scheme for Rust (think like Lua for C). Fair warning: I have barely started Ruse. Most of my time right now is reading about different Scheme implementations. Contributions are, of course, welcome.

    1. [Comment from banned user removed]

      1. 6

        What about it doesn’t look like Lisp? Just taking the example from examples/calling.rs:

        (define (factorial n)
          (cond
            ((< n 0) (panic "factorial got negative integer"))
            ((<= n 1) 1)
            (else (* n (factorial (- n 1))))))
        

        Superficially, this looks like Lisp to me. Maybe there are other things in the language that are decidedly un-Lisp-like, but this isn’t.

        1. [Comment from banned user removed]

          1. [Comment removed by author]

            1. [Comment from banned user removed]

              1. 10

                Yui, you are getting downvoted (my guess) for:

                • Not taking the time to read the documentation in the link posted
                • Not adding comments of substantive value

                What is the usecase for this? The page is really light on any information.

                As written in the primary documentation for the project:

                Ketos is “mainly intended for extending and scripting for Rust programs.”

                1. [Comment from banned user removed]

                  1. 5

                    If you think something is irrelevant to the site, the best response is to mark it as off-topic.

            2. 2

              Do you mean src/ketos/module.rs? Because that’s a Rust file that’s part of the language’s interpreter.

              1. 3

                I think he means examples/module.rs

                1. 6

                  That makes more sense. In that case, the actual Ketos code in that file is:

                  (use custom (hello))
                  (hello "world")
                  

                  The rest is just Rust code to setup and run the interpreter.

                2. [Comment from banned user removed]

                  1. 4

                    I am not sure what module means in this case, but anyway it looks like the confusion has been sorted out as far as what the Ketos code is.