当前位置:网站首页>Pony语言学习(一):环境配置(续)
Pony语言学习(一):环境配置(续)
2022-08-10 05:29:00 【溴锑锑跃迁】
写在前面的:
很久没有更新了,今天把以前的博客更新修订了一下,感觉良好。今儿个在新系统布置Pony开发环境时,鼓捣了半天Docker for Windows,实在是心累。无意间敲开了通往新大陆的门,就算是给Pony的Windows Users/Funs一个彩蛋吧。诸君请赏?!
(只适用于64位,惨淡!)
0.基础开发环境:
博主现在使用的是Windows 10 x64,配置了Visual Studio 2019(传送门)和Visual Code(传送门2号)
先看看官方对此是怎么说的吧:
- Windows users will need to install:
- Visual Studio 2019, 2017 or 2015 or the Visual C++ Build Tools 2019, 2017 or 2015, and
- If using Visual Studio 2015, install the Windows 10 SDK (available here).
- If using Visual Studio 2017 or 2019, install the "Desktop Development with C++" workload.
- If using Visual C++ Build Tools 2017 or 2019, install the "Visual C++ build tools" workload, and the "Visual Studio C++ core features" individual component.
- If using Visual Studio 2017 or 2019, or Visual C++ Build Tools 2017 or 2019, make sure the latest
Windows 10 SDK (10.x.x.x) for Desktop
will be installed.
关于基础库的重要性我就不说了,之所以用Visual Code是因为市场(market)里有Pony相关的包,比较方便,当然,你也可以考虑以下途径:
- Sublime Text: Pony Language
- Atom: language-pony
- Visual Studio: VS-pony
- Visual Studio Code: vscode-pony
- Vim:
- vim-pony
- pony.vim
- currycomb: Syntastic support
- SpaceVim, available as layer for Vim and Neovim. Just follow installation instructions then load
lang#pony
layer inside configuration file ($HOME/.SpaceVim.d/init.toml)- Emacs:
- BBEdit: bbedit-pony
- Micro: micro-pony-plugin
- Nano: pony.nanorc file
- Kate: update syntax definition file: Settings -> Configure Kate -> Open/Save -> Modes & Filetypes -> Download Highlighting Files
1.重头戏——TA来了!
这次我们的安装是基于Bintray的,Windows版本的官方网站在此:https://dl.bintray.com/pony-language/ponyc-win/
博主测试了两个当时最新的版本,一个是release的ponyc-release-0.9.0-1990.5a0bd57-win64.zip,适用于Visual Studio 2015
一个是(目测)开发版本ponyc-0.29.0-win64.zip,适用于Visual Studio 2019。
下载速度是出奇的快,确实出乎我的意料,文件也不大。下载下来直接解压到开发目录,压缩包内部文件目录大概是:
你的压缩包名
\packages
..\~~~
\ponyc
..\bin
把bin这条路径插入环境变量(通用PATH)
2.测试:
新建文件夹demo,新建文件main.pony
写入代码:
actor Main
new create(env: Env) =>
env.out.print("Hello, world!")
命令行下打开该目录(cmd和powershell皆可):直接输入ponyc,得到:
(图中是powershell环境)
如果是powershell的话,要输入.\demo.exe, cmd下直接输入demo.exe
输出:
欧了?!
写在后面的:
其实Linux,Mac用户都可以试试这个方法,地址:https://dl.bintray.com/pony-language/。
还是感谢您对Pony的关注?!欢迎加入Pony语言QQ群:261824044!
边栏推荐
- 在vscode中屏蔽Alt热键
- Read the excerpt notes made by dozens of lightweight target detection papers for literacy
- What are the common commands of mysql
- scikit-learn机器学习 读书笔记(二)
- FPGA工程师面试试题集锦21~30
- Qiskit官方文档选译之量子傅里叶变换(Quantum Fourier Transform, QFT)
- Buu Web
- 线性模型中的高级特征选择技术——基于R
- `id` bigint(20) unsigned NOT NULL COMMENT '数据库主键',
- The sword refers to Offer 033. Variation array
猜你喜欢
随机推荐
Guys, is it normal that the oracle archive log grows by 3G in 20 minutes after running cdc?
暑期学前作业
Touch chip used in smart touch remote control
线性代数(四)
EasyGBS connects to mysql database and prompts "can't connect to mysql server", how to solve it?
OpenGauss source code, is it maintained with VSCode in the window system?
ThreadPoolExecutor线程池原理
Joomla漏洞复现
Mysql CDC (2.1.1) inital snapshot database set up five concurrent degree, se
FPGA工程师面试试题集锦41~50
scikit-learn机器学习 读书笔记(二)
论文精读 —— 2021 CVPR《Progressive Temporal Feature Alignment Network for Video Inpainting》
mysql常用命令有什么
Linear Algebra (4)
Pulsar中游标的工作原理
大咖说·对话生态|当Confluent遇见云:实时流动的数据更有价值
mysql cdc (2.1.1)inital snapshot数据库的时候设置了5个并发度,se
Stacks and Queues | Valid parentheses, delete all adjacent elements in a string, reverse Polish expression evaluation, maximum sliding window, top K high frequency elements | leecode brush questions
我用这一招让团队的开发效率提升了 100%!
summer preschool assignments