Giter Site home page Giter Site logo

chiika's Introduction

chiika

Exploration for LLVM + tokio

chiika-1

  • A language that compiles to LLVM IR
  • All functions returns a value (No void. Use 0 for void)

chiika_runtime

  • Runtime written in Rust
  • Built as staticlib and linked with the chiika-1 program

chiika-2

  • A language that compiles to chiika-1
  • Has notion of asyncness
    • Async externs are declared with extern_async.

Prerequisites

  • Rust (tested with 1.74.1)
  • LLVM 16

You also may want to install Ruby (see Rakefile)

How to run

see Rakefile

Restriction

  • 64-bit OS only (assumes pointer size is 64bits)

License

MIT

chiika's People

Contributors

yhara avatar

Watchers

 avatar  avatar

chiika's Issues

Enumerator

Can we implement something like Ruby's Enumerator? (It uses Fiber to convert internal iterator into external iterator)

Introduce `return`

If chiika-1 has explicit return, it would be clearer what is returned.

chiika-2: support arg access after async call

Example:

fun foo(int a) -> int {
  print(100);
  print(sleep_sec(1));
  print(a);
  300
}

This compiles to wrong chiika-1 code now; a should be pushed to $env so that it can later be acquired in foo_1.

Support spawning

Some construct that calls tokio::spawn. Something like golang's go

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.