grain-lang / grain-lang.org Goto Github PK
View Code? Open in Web Editor NEWThe Grain language website.
The Grain language website.
As a very beginner, I would find a "hello world" example useful.
Being able to see the results in the interactive console would also help me with a fast confirmation that my setup is OK.
ref: grain-lang/grain#365
The stdlib now returns Option instead of failing for some methods. I'll get those updated.
Github pages now supports HTTPS and uses a CDN, so no need for the current reverse proxy.
Right now, you can't use the nav links on mobile (on the home page) because they're hidden. As a first pass, we could just do the same thing that we do on the docs.
Introduced in grain-lang/grain#318
Should largely be copying over the table from grain-lang/grain#294, but prettier.
This would be a page on what kind of type system we have, features, etc. It should live in the language constructs section (though we should consider renaming that section).
Related: #82
The changes are those made in grain-lang/grain#298.
Need it
There's a very brief mention of destructuring of tuples in the Basics section of the guide, but we don't really discuss them anywhere else. We should add more thorough destructuring information, both in the guide and on the Bindings page.
I just noticed we don't have this documented.
Pr here: grain-lang/grain#158
Functions added are from grain-lang/grain#144
I'd like to write a blog introducing the let mut
feature that was PRed today. I didn't get a chance to write it tonight, but I hope to put something together soon.
It would be great to be able to include the blog posts in the static site generator engine.
Idea came from this Twitter thread: https://twitter.com/hakimel/status/1262337065670316033?s=20
You can download it directly from GitHub.
For Linux and MacOS, there's an added "(...) or using curl
."
Since 2018, curl
is available on Windows by default (see: https://devblogs.microsoft.com/commandline/tar-and-curl-come-to-windows/). So the docs could be updated.
..., if you want to support older systems, there's the Invoke-WebRequest
PowerShell cmdlet that can be used to download a file (e.g. Invoke-WebRequest -Uri <URL> -OutFile <FILE> -UseBasicParsing
or iwr <URL> -o <FILE> -useb
for short).
You’ll either want to put it into your path or keep it inside your project and invoke with
./grain-win-x64.exe
.
./
only works in PowerShell. In cmd, you'd want .\
:
C:\> ./grain-win-x64.exe -v
'.' is not recognized as an internal or external command,
operable program or batch file.
C:\> .\grain-win-x64.exe -v
Grain cli 0.3.1
Grain compiler 0.3.1
.\
works in PowerShell, too, so I'd suggest using .\grain-win-x64.exe
instead.
..., if you want to save 4 characters, you can omit .exe
: Since .exe
is defined as a path extension in the PATHEXT
environment variable, .\grain-win-x64
is equivalent to .\grain-win-x64.exe
in both cmd and PowerShell.
Also, if the file is in the same directory, .\
is not necessary in cmd, so grain-win-x64 -v
is equivalent to .\grain-win-x64 -v
. (This does not apply to PowerShell, however.)
When shown Grain, many people ask questions like "What's the difference between Grain and OCaml?" or "Why didn't you just compile OCaml to WASM?", etc etc.
I think we could have a page for why Grain exists and how it differs from OCaml/Reason/Rust/Insert-functional-language-here.
Feels weird that it isn't there.
Maybe we can use something like this to determine if we're running in development (and append the necessary .html
.
This is the page that needs updating: https://grain-lang.org/docs/constructs/strings
Once grain-lang/grain#466 lands
It looks like the ::before
hack is broken because of the border-top
on the h2's.
There is a reference to the math lib which doesn't yet exist under https://github.com/grain-lang/grain-lang.org/blob/master/src/guide/basics.md#number-operations
I added this, so I should probably add the docs.
Because the docs and the blog are separate Hexo sites, there are separate commands to run the combined server. I think this can be solved using yarn workspaces.
See #87 as well.
These docs should be re-enabled on the site when they are more mature.
Currently, it seems that the docs can be built only on Linux & MacOS but not on Windows.
npm install
npm run start-docs
The docs should build & the stdout should show that the static files are being served on port 3000.
The docs are built but the express server doesn't serve them on 3000.
OS Platform & Version: Windows 10, Version 10.0.18363, Build 18363
Ref: grain-lang/grain#378
It'd be pretty sick if there were a dark mode option for the docs.
ref: grain-lang/grain#344
After grain-lang/grain#485 lands
Currently, not much of the language itself is documented on the website. I just found Bindings today and noticed that it has a pretty plain way of representing the language constructs for let
bindings.
I wonder if there's a better and more clear way for us to document the actual language.
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.