RustPH Survey

Help us create the profile of Rust (Programming Language) users and fans in the country by accomplishing this survey. In turn, get a chance to win one of the three Rust shirts that we will be raffling off at the end of this month.

Providing us your name and email address is OPTIONAL. But if you want to join the t-shirt raffle, we will need that info to get in touch with you 😉

Maraming salamat po!

Rust 101 Session for November 2016

This month, we are bringing back our Rust 101 sessions. Get to learn this new programming language at the Mozilla Community Space Manila this coming Tuesday, 15 Nov 2016 6:30PM.

This FREE event is brought to you by the Mozilla Philippines Community. You may RSVP using the form below. Please feel free to bring your laptop; we will take care of internet connectivity via WiFi and coffee 🙂

Cargo

I unintentionally left out Cargo on our last piece.

This post will be short since everything Cargo related is found in this link:
The Most Comprehensive Cargo Guide

“Cargo is a tool that allows Rust projects to declare their various dependencies and ensure that you’ll always get a repeatable build.”

Cargo is like… Maven, Leiningen, Makefile, etc. for those who are familiar with these technologies.

You also need to be familiar with TOML (Tom’s Obvious, Minimal Language).

Up next what makes Rust: Ownership and Borrowing.

Open Invitation to Attend the RustPH Mentors SEP 2016 Meeting

In July this year, the RustPH Mentors Group was formed with the aim of drawing out plans on how to propagate the new programming language locally. The group has regularly been meeting twice a month.

For our second meeting this month, we are inviting all interested in shaping the future of Rust in the Philippines to attend. We are particularly looking for people to form part the roster of Rust speakers in the Philippines. We are also lining-up a series of Rust-related events in the coming weeks and months.

The meeting will be held at the Mozilla Community Space Manila in Makati City on Thursday, 22 Sep 2016 at 6:30PM. Maraming salamat po!

THIS IS NOT A SEMINAR.

Hello World in Rust

Welcome Back!

How did my suggested exercise fare with you? Were you able to install rust on a different directory?

Last time we were able to install Rust on our machines. For this session we will tackle:

  • The ubiquitous Hello World program
  • Want to run rust programs without compiling anything? Please do tell me!

I would like to introduce you to the Rust Playground

Click here to open a new Rust Playground tab

This is where you can do simple rust programs and let the playground compile it for you inside the Rust playground you can:

  • Run a rust code
  • See the program compiled into ASM, LLVM IR, and MIR.
  • Under Mode, you have Debug and the Release versions of Rust (I usually choose Debug)
  • Under Channel, choices are: Stable, Beta, and Nightly. (I say Nightly if you want to be adventurous).

It’s called Rust Playground for a reason. Play with it. 😀

Now as promised, the ubiquitous Hello World. I am going to show you two(2) ways to run this program.

Solution #1: Rust Playground

Copy-paste the code below to the Rust Playground and click Run

fn main() {
println!("Hello World");
}

Solution #2: Create a rust file in your computer, and then compile it.

  1. Create a file named main.rs.
  2. Edit main.rs and copy-paste the code above.
  3. Go to command prompt.
  4. Type “rustc main.rs” and press Enter.
  5. A file main.exe will be created on the same folder as main.rs.
  6. Execute main.exe.

You will be greeted with a “Hello World”.

Congratulations! You have written a Hello World program in rust.

On my next articles, I will discuss:

  • Ownership
  • Borrowing

RustPH Mentors Meeting 04 AUG 2016

As mentioned in the previous blog post related to the creation of RustPH Mentors Group, a meeting was held tonight at the Mozilla Community Space Manila (MozSpaceMNL) participated by the following:

  1. Robert “Bob” Reyes (Mozilla Rep) – Team Lead
  2. Michael Angelo Calimlim
  3. Kemuel Joseph Domanog (Mozilla Rep)
  4. Kevin Norman Kapchan
  5. Ricardo Sta. Rita
  6. Frederick Villaluna (Mozilla Rep)

Among the items discussed during this meeting were:

  • To identify products or projects (mobile and web apps) that uses (integrates) Rust.
  • Check on tools, particularly IDE around Rust that may be used for future local training sessions.
  • Renaming of the group from Rust Users Group Philippines to simply Rust Philippines (aligned with global Rust user groups)
  • Results of survey conducted among previous Rust events attendees.
  • RustPH Train the Trainers or Mentor the Mentors Program
  • Rust Hack & Learn Session 3 (happening after Sep 10th)

The full text of the minutes of meeting is online here. Next meeting will happen on the week of 15-19 Aug 2016.

Rust Installation

This post currently teaches how to install Rust in Windows.

 

Welcome! Welcome to the Rust Installation Guide.

Installing Rust is as simple as downloading, running the installer, and clicking Next.

Let us now start our journey by setting up our machines to compile Rust programs.

1. Go to the Rust Official Site, and click Install to download your OS’ installer. Alternatively, you can download a specific installer here. The Rust installer is approximately 120Mb in total size.

2. Execute the file that you downloaded in the previous step. Let us keep everything on default by clicking Next every time the installer prompts your choice.

3. There you have it. Rust is now residing in your machine. It is waiting for you to prove it wrong in it’s following promises: blazingly fast, prevents segfaults, and guarantees thread safety.

Where is Rust residing in my machine?

Rust is located at:

C:\Program Files (x86)\Rust stable GNU <Version Number>
Environment Variables (path will have an additional item): 

C:\Program Files (x86)\Rust stable GNU <Version Number>\bin

<Version Number> is based on the version of Rust that you will install, e.g. the current version of Rust is 1.10. The default installation will be

C:\Program Files (x86)\Rust stable GNU 1.10

I have a challenge for you: customize your installation of Rust.

In the following weeks, I will be writing about:

  • The ubiquitous Hello World
  • Want to run rust programs without compiling anything? Please do tell me!
  • Ownership
  • Borrowing

Creation of the RustPH Mentors Group

Following a series of Rust-related events (from Introduction to Rust to two sessions of Rust Hack & Learn), a call for RustPH Mentors was done and an initial meeting was held at the Mozilla Community Space Manila (MozSpaceMNL) last Wednesday, 13 Jul 2016.

Among the things discussed in this meeting were:

  • Team goals of RustPH
  • Frequency of RustPH Mentors meetings
  • Communication channels to use
  • Planning for the Rust Hack & Learn Session #3
  • Identify the support RustPH needs from Mozilla HQ / Rust HQ
  • Launch of the RustPH newsletter
  • Creation of a blog website for RustPH

The full text of the minutes of meeting is online here. As of this posting, the following are the members of the RustPH Mentors Group:

All members of the RustPH Mentors Group have Computer Science and Information Technology (IT) backgrounds. Most are practicing software engineers/programmers using different programming languages. One thing that is common to all RustPH Mentors: we love learning Rust, and in the process of learning, we aim to help others who are interested in the programming language.

The next meeting of the group is scheduled on Thursday, 04 Aug 2016 7PM at MozSpaceMNL. If you’re interested in sharing your time and talent for this endeavor, please feel free to join our next meeting.

Mabuhay! Welcome to RustPH!

Mabuhay, Pinoy Rustaceans! We are so happy to announce the launch of a dedicated blog for the promotion of learning how to code in Rust. This blog website is powered by a team of volunteers who are believers, adapters and learners of the Rust programming language.

If this is the first time that you will be reading about Rust (programming language):

Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.

To know more about Rust, you may head directly to their website.