Comments (4)
The current moonbitlang/core
and the compiler are released together and will be automatically linked during compilation. This means you do not need to install them from mooncakes.io. The moonbitlang/core
on mooncakes.io currently serves only as documentation. We will fix the confusing installation information.
In the future, once the compiler reaches a stable state, it may allow for the addition of different versions of moonbitlang/core
.
from core.
Can you clarify how to make it work? I tried to "just use" it but the compiler complains it can't find it. Latest version.
from core.
Below is my full installation log:
$ rm -rf ~/.moon
$ /bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/mac_m1_moon_setup.sh)"
Downloading https://cli.moonbitlang.com/macos_m1/moon to /Users/li/.moon/bin/moon
Downloading https://cli.moonbitlang.com/macos_m1/moonc to /Users/li/.moon/bin/moonc
Downloading https://cli.moonbitlang.com/macos_m1/moonfmt to /Users/li/.moon/bin/moonfmt
Downloading https://cli.moonbitlang.com/macos_m1/moonrun to /Users/li/.moon/bin/moonrun
Downloading https://cli.moonbitlang.com/macos_m1/moondoc to /Users/li/.moon/bin/moondoc
/Users/li/.moon/bin/moon downloaded
/Users/li/.moon/bin/moonc downloaded
/Users/li/.moon/bin/moonfmt downloaded
/Users/li/.moon/bin/moonrun downloaded
/Users/li/.moon/bin/moondoc downloaded
Update successfully!
Downloading moonbit core...
Install successfully
$ moon version --all
moon 0.1.0 (90245da 2024-03-22) ~/.moon/bin/moon
moonc 3592922 2024-03-22 ~/.moon/bin/moonc
$ moon new hello
Created hello
$ cd hello
$ echo """fn main {
println(@list.reverse(@list.from_array([1, 2, 3])))
}""" > main/main.mbt
$ moon run main
List::[3, 2, 1]
What's your output?
from core.
@jayphelps note you don't need add core, you can use it directly
from core.
Related Issues (20)
- Incorrect scope of comments after formatting HOT 1
- [Proposal] Overload square bracket for both array and vector initialization HOT 3
- Proposal: regular expression package
- provide a fast Vec::of_array for most general cases using blit
- [Feature request] deliberately raise compiler errors & warnings HOT 1
- [lang design] [discuss] is introducing `never` type a good idea?
- Fix map for DeVec as Vec
- VecView does not implement Debug
- 我的建议:1、参考vlang.io简化语言;2、扩展名改为.moon或.bit。请考虑。
- API design guidelines: only keep essential data conventions
- [Proposal] Naming for iter HOT 2
- Int64::hash cause the time complexity for hash map insertion to degrade HOT 5
- Js_string, Arrays HOT 2
- [Proposal] remove heavily suffix-depended methods for iterating `Array`
- Incorrect scope of comments after formatting in enum and struct
- use hex literals in xxhash and ryu
- json parser
- [moon build system] bug: improper default value in `license` field in `moon.mod.json`
- priority queue using enum labels to improve perf
- [lang design] [proposal] support expressions in string interpolation by `.with` postfix operator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.