Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,326 members, 7,811,965 topics. Date: Monday, 29 April 2024 at 02:36 AM

Rust Lagos! - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Rust Lagos! (1422 Views)

Why I Am Stepping Into Rust / Urgent Need Of Someone Who Understands RUST Programming Language / Learn Rust - Build Fast, Safe And Concurrent Programs Without Tears (2) (3) (4)

(1) (Reply)

Rust Lagos! by SeunLanLege(m): 9:55pm On Sep 19, 2017
Hey everyone! I'm pleased to announce the rust lagos meet up. [Meet Up link](https://www.meetup.com/rust-lagos/)

we're holding our first meet up on the 30th of september. It would be an introduction to the rust programming language, why should you be interested in it? it's performance, it's safety, and zero cost abstractions. We've noticed that a large number of nigerian devs *mostly* build for the web, so we'll be focusing majorly on the application of rust to building super high availability web servers.

 
use std::io::prelude::*;
use std::net::TcpListener;
use std::net::TcpStream;

fn main() {
let listener = TcpListener::bind("127.0.0.1:8080"wink.unwrap();

for stream in listener.incoming() {
let stream = stream.unwrap();

handleRequest(stream);
}
}

fn handleRequest(mut stream: TcpStream) {
let mut buffer = [0; 512];

stream.read(&mut buffer).unwrap();

println!("Request: {}", String::from_utf8_lossy(&buffer[..]));

stream.write("Hello World!".as_bytes())
}


At the end of the meet up, the above code (a single threaded synchronous web server) will make sense to you. and you would've grasped rust's basic concepts and a good reason to love the language.

if you have any questions, feel free to ask.

There are frameworks for building web servers in rust, infact i'm in the process of writing mine [github link](https://github.com/seunlanlege/arcreactor), the above example just uses the tcplistener from the standard library.

venue is 3, Birrel Avenue, off Herbert Macaulay Way, Sabo, Yaba(hotels.ng office)
Re: Rust Lagos! by fabulous017: 4:15pm On Jan 08, 2019
Hi Seun, I just started learning rust some few months back, admittedly, my progress has been pretty slow. I have experience with few programming languages, Rust is very different so I'm taking it rather slowly.

Please what happened to Rust Lagos?

(1) (Reply)

Any Programmers Wanting To Make Some Money? / Best For Web Programming / .

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.