Skip to content

A Fluence application that allows uploading and executing Ketos scripts

License

Notifications You must be signed in to change notification settings

bakaoh/ketos-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluence Ketos

A Fluence application that allows uploading and executing Ketos scripts

Live App

Screenshot

What is Fluence?

Fluence is an efficient trustless computation platform that allows to achieve few seconds request processing latency and cost efficiency similar to traditional cloud computing. To run computations, Fluence uses a WebAssembly virtual machine, which allows to deploy into the decentralized environment applications written in multiple programming languages.

What is Ketos?

Ketos is a Lisp dialect functional programming language. The primary goal of Ketos is to serve as a scripting and extension language for programs written in the Rust programming language.

Example

Add

  • Input
(+ 1 1)
  • Output
2

Factorial

  • Input
(define (factorial n)
          (cond
            ((< n 0) (panic "factorial got negative integer"))
            ((<= n 1) 1)
            (else (* n (factorial (- n 1))))))
(factorial 6)
(factorial 7)
  • Output
factorial
720
5040

Fibonacci

  • Input
(define (fibonacci n)
  (if (<= n 2)
      1
      (+ (fibonacci (- n 1)) (fibonacci (- n 2)))))
(fibonacci 10)
(fibonacci 11)
(fibonacci 12)
  • Output
fibonacci
55
89
144

Compile

~$ cargo +nightly build --target wasm32-unknown-unknown --release

About

A Fluence application that allows uploading and executing Ketos scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages