ark-lang / docs Goto Github PK
View Code? Open in Web Editor NEWDocumentation for the Ark language
Home Page: https://book.ark-lang.org
Documentation for the Ark language
Home Page: https://book.ark-lang.org
More on this + static methods and call by value/ptr...
At the moment, type inference prefers doubles always rather than floats (for a decent reason). However, perhaps a better system would be to offer an explicit literal for floats so that a user can still force a float with type inference. In many C-family languages, this is accomplished by adding a f
to the end of the would-otherwise-be-double literal:
1.2
โ double
1.2f
โ float
At the moment, you have opted for {i,u}{8,16,32,64,128}
. I would recommend you replace the i
with s
(for signed
). If we are to be explicit, we might as well be as explicit as possible.
Perhaps one of the coolest features of LLVM, in my humble opinion, is that integer arithmetic is well-defined for integers of any bitwidth. And, that arbitrarily-sized fixed-width integers are openly exposed. So, for example, in LLVM IR, you could write the following:
%var = alloca i9
store i9 511, i9* %var
It would work! %var
is a nine-bit integer! Admittedly, these fancypants integers are generally converted to system-native types during the compilation process, but it does allow for more specific compile-time type-checking. Since these are exposed in LLVM IR itself, inclusion of them into the language would not necessarily be so difficult (on the condition that it only works in the LLVM backend).
To ensure that all PRs to this repo are automagically built and pushed to the live website, I would suggest utilising Travis CI's custom deployment options. Then, having the documentation be built would be merely a matter of pushing any source edits to this repo.
Loads of outdated stuff in here, a bit of it I have updated. If you do update anything in the documentation, please update the links in the table of contents, as well as add the id
tag to the section title. The typical format for id's is the title name, remove all the punctuation, convert to lower case, change spaces to hyphens and you're good to go.
There's a lot of outdated stuff in here, and some stuff may be inaccurate or need updating.
@ark-lang/owners
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.