Rustコトハジメ

プログラミング言語Rustと競プロに関する情報をお届けします。

Introduce Wandbox - A good service to learn the spec -

When learning Rust you often want to write some small program to experiment. In this case, I use a service called Wandbox made by a Japanese.

[Wandbox]三へ( へ՞ਊ ՞)へ ハッハッ

There is another alternative called Ideone which is more famous globally but

Ideone.com - Online Compiler and IDE >> C/C++, Java, PHP, Python, Perl and 40+ other compilers and interpreters

I just recommend Wandbox.

Multiple compiler versions supported

Rust is a language still in development and sometimes change the language spec: some code suddenly becomes compilable for ergonomic reason and some code becomes deprecated. You want to change the compiler version in this case. Wandbox is not ready with 1.33.0-dev and other older 3 versions.

f:id:akiradeveloper529:20190307141204j:plain

On the other hand, Ideone only supports 1.14.0, pretty older version.

f:id:akiradeveloper529:20190307141219j:plain

Ideone supports old compiler

As said above, Ideone supports 1.14.0 and it is pretty old one. It is like 2 years ago when it was released.

Stressful to modify the code in Ideone

When you run a code in Ideone, you are moved to other page to see the result. If you want to modify the code and run again you need to press edit button but it is actually stressful.

f:id:akiradeveloper529:20190307141237j:plain

In Wandbox on the other hand, you are able to modify the code and rerun in the same page. Also, a shortcut key bind CTRL+ENTER is available which is pretty useful.

Wandbox supports auto-indenting in editor

Ideone's editor doesn't auto-indent and you feel hard when writing your own code from nothing. In Wandbox on the other hand, auto-indenting is implemented and you can write a code of 100 lines without hardness, which is enough for experiment.