Giter Site home page Giter Site logo

programming-flix's Introduction

programming-flix's People

Contributors

alstrup avatar chacham avatar dependabot[bot] avatar esbenbjerre avatar eugenemedvediev avatar felixwiemuth avatar herbstein avatar ioleo avatar jryans avatar magnus-madsen avatar mlutze avatar ninaandrup avatar paulbutcher avatar rysh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

programming-flix's Issues

Document Lazy

(but maybe not before we decide if lazy should be pure/impure)

Add a section on basics

  • let-bindings
  • how to run the program
  • if-then-else
  • how to exit the program
  • statement expressions are separated by semicolons

Insecure WebSocket endpoint

The page at https://flix.github.io/programming-flix/ can't be loaded:

Mixed Content: The page at 'https://flix.github.io/programming-flix/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://flix.aau.dk:8080/'. This request has been blocked; this endpoint must be available over WSS.

Failed to execute the Introduction code.

Second paragraph of the introduction page
I tried to run the code that introduces polymorphic records in the playground, but failed.
スクリーンショット 2021-12-15 10 18 17
It would be sad if an error occurred in the Introduction code, so I want to worked properly.

And if someone can give me some pointers on how to fix it, I'd like to try it.

Fixpoint lattice description doesn't match code

The lattice example code from the fixpoints doc ends with:

lat A(x: String, s: Sign)
lat B(x: String, s: Sign)
lat R(x: String, s: Sign)

A("a"; Pos).
B("a"; Top).
A("b"; Neg).

R("c"; s) :- A("a"; s).
R("c"; s) :- A("b"; s).
R("d"; s) :- A(x; s), B(x; s).

which it describes as

Finally, the program defines three predicate symbols A, B, and C with lattice interpretations. The program then defines three facts and three rules. The two first rules require that in the fact R("c", s) the s element must be at least the least upper bound of s1 and s2 for any facts A("a", s1) and A("b", s2). Thus we compute the fact R("c", Top). The last rule, on the other hand requires that in the fact R("d", s) s must be the greatest lower bound of s1 and s2 for any facts A(x, s1) and B(x, s2). Thus we compute the fact R("d", Pos).

...which leaves me somewhat confused. It could be my own misunderstanding, but I think the explanation does not match the code sample:

  • There doesn't seem to be any symbol C
  • The code sample does not use s1 and s2 like the explanation, but perhaps I am just not following the concept... 😅

Update documentation

  • Introduction
  • Functions
  • Data Types
  • Lists
  • Records
  • References
  • Arrays
  • Namespaces
  • Concurrency
  • Effects
    - #62
  • Fixpoints
    - #67
  • Interoperability
    - #63
    - #64
  • Build & Packages
  • Tips and Tricks
    - #65
    - #66

Document type classes

Tracking ticket to list the features and details that should be covered.

InstanceErrors:

  • OverlappingInstances
  • MismatchedSignatures
  • MissingImplementation
  • ExtraneousDefinition
  • DuplicateTypeVariableOccurrence
  • ComplexInstanceType
  • OrphanInstance
  • MissingSuperClassInstance
  • LawlessSuperClass
  • UnlawfulSignature
  • IllegalOverride
  • UnmarkedOverride

ResolutionErrors:

  • SealedClass

WeederErrors:

  • IllegalPrivateDeclaration
  • IllegalTypeConstraintParameter

NameErrors:

  • IllegalSignature

Non-existing `Unsafe.println(x)`

The example in this paragraph

def sum(x: Int32, y: Int32): Int32 = 
    let _ = Unsafe.println(x);
    let _ = Unsafe.println(y);
    x + y

does not work. It looks like there is an unsafePrint in Solver.flix.

Include singleton enum on Tips and Tricks page

Description from Magnus:

Just to say something like if you have an enum with a single case:

enum USD {
  case USD(Int32)
}

you can simplify it to enum USD(Int32) instead.

Something like that.

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.