Giter Site home page Giter Site logo

floydlang / floyd Goto Github PK

View Code? Open in Web Editor NEW
149.0 12.0 13.0 195.18 MB

The Floyd programming language

License: MIT License

C++ 86.34% C 0.73% CMake 0.45% HTML 0.03% Shell 0.16% Nix 0.07% Makefile 0.10% Python 4.74% Scheme 0.09% JavaScript 7.00% Clojure 0.04% Scala 0.06% Dockerfile 0.02% Ruby 0.01% Starlark 0.18%
floyd language performance persistent-data-structures actors concurrency parallelism cpp software-systems composable

floyd's People

Contributors

ebiroll avatar marcusz avatar pavelvozenilek avatar

Stargazers

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

Watchers

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

floyd's Issues

TASK MANAGER - PARALLELISM

This is an internal feature in the runtime.

It runs Floyd processes and the parallel operations like map() and super() map using an OS thread team and green threads. M:N threads.

Scalar conversions

int to_int_truncate(double value)
int to_int_round(double value)
int to_int_floor(double value)
int ceil_to_int_ceil(double value)

double to_double(int)

Library support

Import external Floyd code
Special API feature?

Each container / component lists all its source files = no need for project file / make files.

Print in main prints twice

Not sure if this is a bug or not but, as a user, I think it is unexpected behaviour. Running the program

func int main ([string] args) impure {
  print(5)
  return 0
}

main([])

gives the result

❯ ../FloydLang/floyd/floyd run ./test.floyd
5
5

Binary packing of data

Built-in protocol buffers?

Used to pack binary data, for sending via wires, writing binary files etc.

Floyd struct cannot/should not be used for this the way C does. We want (1) better and explicit packing, (2) full freedom to encode structs in memory.

Preso feature

Function that converts a value into a JSON explaining / drawing it.

Smarter RC

IDEAS

  • Optimise away dup inc/decs inside functions
  • Use special handling for <3 RCs which are the most common ones.
  • Copy smaller values instead of using RC.
  • Use hierarchical RC - per OS-thread non-atomics RC and per OS-process atomic.

Tuples

Unnamed members (access using .0, .1)

Control over backend collection types, struct types, caches

  • Intermediate pass of compiler has more precis collection types, caching and struct layout variations.
  • Programmer can control the mapping from the default types to specific type.s

EXAMPLES

  • AOC - SOA
  • Split DSs into hot / cold
  • Alternative backends for dictionary
  • Alternative backends for vector (string is also a vector)
  • Alternative backends for struct:s
  • Collection write cache
  • Collection read cache
  • Batching function call
  • Caching function call
  • Small size optimisation (put small collections / values directly into owner instead of sep allocation). Reduces RC usage.
  • Compress vector using variable size elements.
  • Non POT elements and members. 33 bit struct etc.

Arrays in JSON literals are limited to 16 values

While
let json_value mnist = {"one": [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}
works fine,
let json_value mnist = {"one": [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]}
causes the error message
Max 16 arguments to function.

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.