Code Monkey home page Code Monkey logo

tuna-lang's People

Contributors

dependabot[bot] avatar jadrouil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tuna-lang's Issues

Traits

Implement a trait system similar to Rust's.

Build a CLI

Currently, there is no easy way to compile code, so we should build a CLI.

Release

Document install process and trial run

Literal types

Allow specifying a interpreter type instance as a schema instance

Optimistic Concurrency Support

Currently tuna does not support atomic operations like:

  • Create a value with this key if it doesn't already exist.
  • Set a key to this value conditional on the existing data

Discrimination

Allow users to discriminate between types.

type SomeUnion = Foo or Bar

func f(i: SomeUnion) {
   if i is Foo {

   } else {
      // i is a Bar 
   }
}

Map types

Map types are maps of string to optional things.

type = Map

Local testing framework

Test can run in memory.

Should look like this:

test ValidateSomeBehavior() {
   ... do things
   assertions...
}

Out of scope:
parameterization
run against database.

Ifs, Elses, etc

Just write tests and fix whatever doesn't work as expected

Implicit traits

Once as type inference is done, add implicit traits. It should require zero meta data other than schema to determine which function to call.

Run

Runs locally and ephemerally against mongo.

Integrate with some tracing library

Automatically trace all function calls and database requests. Use a CNCF tracer.

This info can be used to identify performance bottlenecks, suggest automatic improvements, etc.

Demo App

Make a toy demo app with some documentation

Module system

It would be nice to be able to share tuna code with other tuna developers through a build tool.

Locks

Users may specify lock contexts

delete on any level

Should be a function call.

Don't allow deleting of globals or anything without a level.

Pass by reference

All arguments should be pass by reference.
Returning a value derived from a reference yields a reference.

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.