anubhavujjawal / chapel-ls-playground Goto Github PK
View Code? Open in Web Editor NEWPlayground Repo for the original task of creating a Chapel Language Server
Playground Repo for the original task of creating a Chapel Language Server
Currently only a limited number of statements/expressions are shown in auto-completion, but I see this as a massive opportunity to support more common Chapel idioms.
coforall loc in Locales do on loc {
}
coforall loc in Locales do on loc {
coforall tid in 1..here.maxTaskPar {
}
}
forall a in A {
}
The iterable used can be based on what is in scope.
Any suggested idioms? I think this is a rather exciting start. @bradcray What do you think are the most useful Chapel idioms?
I believe that you can possibly implement type inference by taking advantage of compilerWarning
to obtain the type. For example, imagine you have something like this...
var x : int;
var y = x;
var z = (x + y) : real(32);
How would you get this type information? Like this.
var x : int;
compilerWarning("__TYPE__INFERENCE__ x:", x.type : string);
var y = x;
compilerWarning("__TYPE__INFERENCE__ y:", y.type : string);
var z = (x + y) : real(32);
compilerWarning("__TYPE__INFERENCE__ z:", z.type : string);
I suggest that the LSP could possibly instrument the original program by adding this to all variable declarations to query their type, which can then be parsed.
@lydia-duncan Any opinions on this approach? Should be a nice and decent short-term solution.
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.