floydlang / floyd Goto Github PK
View Code? Open in Web Editor NEWThe Floyd programming language
License: MIT License
The Floyd programming language
License: MIT License
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.
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)
Import external Floyd code
Special API feature?
Each container / component lists all its source files = no need for project file / make files.
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
This vector can then be appended to a normal vector, or converted to a normal vector quickly.
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.
Function that converts a value into a JSON explaining / drawing it.
Update() nested vectors / arrays / dicts / strings
I accidentally used the wrong range construct in a for loop
for (i in 1..5) {
print(i)
}
and got the following error message
For loop has illegal range syntax. Line: 2 "let double cmath_pi = 3.14159265358979323846" file: corelib
IDEAS
Unnamed members (access using .0, .1)
print(get_time_of_day())
always prints out zero on my machine (2017 Macbook Pro 13" with High Sierra installed).
func struct { int error; string message } my_func(int f)
Future
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.