Giter VIP home page Giter VIP logo

cascas's Introduction

Hi there ๐Ÿ‘‹

I'm a senior software engineer. I like math, skiing, and tanks.

What I use on a daily basis

Trino Apache Solr dotnet Typescript Python Docker Apache Kafka Microsoft SQL Server

Homelab

Proxmox Active Directory Portainer Nginx Proxy Manager Jellyfin

cascas's People

Contributors

stephen-zhao avatar yizhouuuuu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

cascas's Issues

Implement the Built-In List operator

Description:

The following entries should be added to the built-in context:

  1. List : OperatorType(T: Type)(Type)
  2. List(Number) : TypedObject(Type, List(Number))

Item (2) should be added as a temporary measure until #3 can be completed. Then it must be removed (future story).

Allow ApplyExpr as a type label so that the user may use type generics

Currently the following are allowed as type labels:

  1. Identifier, as in Identifier("x") : Identifier("Number") where Identifier("Number") : Identifier("Type")
  2. OperatorType, as in Identifier("f") : OperatorType(Identifier("x"), Identifier("Number"))(Identifier("Number"))

Allowing ApplyExpr gives us the ability to use operators as type identifiers.
This will facilitate what most languages call Type Generics.

e.g.
if
List : OperatorType(T: Type)(Type)
then we can define a list of numbers like this
myListOfNumbers : List(Number)

Allow BuiltIns to define their own onApplyToRepr method

Right now all function applications look the same. It'd be nice if BuiltIns can define their own toRepr function that is used when the BuiltIn is applied.

It might be worth considering making a set of standardized "looks" for a toRepr.

e.g. A set of toReprs { appearanceBinaryInfixOperator, appearanceStandard, appearanceUnaryPostfixOperator, appearanceUnaryPrefixOperator } and have the developer who creates the Builtin choose among these options as to how their function should look on default when being displayed in a function application.

This probably shouldn't just be an enumeration like above though. It should be smarter (deal with number of operands maybe). The developer should also be able to override with a custom "look".

Implement Implicit Type Parameter processing

Implicit type parameters are needed for operators that cannot infer the types of their parameters, so need general types. The following functionality is needed for this:

  1. Object::inferThatType (on a formal parameter) upon returning None will make the decision to prepend the current formal parameter with a type parameter
  2. Unique type parameter name generation
  3. In an ApplyExpr a type parameter has to be automatically/implicitly passed in before the actual parameter

Implement inferThatType for all existing LIROs

i.e. def Object::inferThatType (that: Object, ctx: Context): Option[TypeIdentifier]

This method will try to figure out the type of that within the object this given the context ctx.

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.