当前位置:网站首页>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 Desktopwill 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#ponylayer 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!
边栏推荐
- CORS跨域资源共享漏洞的原理与挖掘方法
- FPGA工程师面试试题集锦1~10
- 8.STM32F407之HAL库——PWM笔记
- 并发工具类——CountDownLatch、CyclicBarrier、Semaphore、Exchanger的介绍与使用
- 【裴蜀定理】CF1055C Lucky Days
- FPGA engineer interview questions collection 1~10
- conda创建虚拟环境方法和pqi使用国内镜像源安装第三方库的方法教程
- Pulsar中游标的工作原理
- Shell编程三剑客之awk
- Mysql CDC (2.1.1) inital snapshot database set up five concurrent degree, se
猜你喜欢

An article to master the entire JVM, JVM ultra-detailed analysis!!!

实战小技巧19:List转Map List的几种姿势

8.STM32F407之HAL库——PWM笔记

AVL tree insertion--rotation notes

How to simulate the background API call scene, very detailed!

基于Qiskit——《量子计算编程实战》读书笔记(五)

ThreadPoolExecutor线程池原理

Error when installing oracle rac 11g and executing root.sh

k-近邻实现手写数字识别

Practical skills 19: Several postures of List to Map List
随机推荐
基于Servlet的验证码登陆demo
Arduino框架下合宙ESP32C3 +1.8“tft 网络时钟
Nexus_仓库类型
Rpc interface stress test
OneFlow源码解析:算子指令在虚拟机中的执行
flinksql怎么写redis的value只有最后一个字段?
8.STM32F407之HAL库——PWM笔记
Nexus_Warehouse Type
Big guys, mysql cdc (2.2.1 and previous versions) sometimes has this situation since savepoint, is there anything wrong?
Flutter开发:报错The following assertion was thrown resolving an image codec:Unable to…的解决方法
大佬们,mysql cdc(2.2.1跟之前的版本)从savepoint起有时出现这种情况,有没有什
【LeetCode】41. The first missing positive number
Interface debugging also can play this?
常用工具系列 - 常用正则表达式
summer preschool assignments
栈与队列 | 用栈实现队列 | 用队列实现栈 | 基础理论与代码原理
大佬们,运行cdc后oracle归档日志20分钟增长3G是正常现象吗
mysql常用命令有什么
Order table delete, insert and search operations
一文带你搞懂OAuth2.0