Computers surround us. While some devices are useful on their own, many are unable to function unless networked to other, remote systems. Accordingly, network communication is an obvious use case where [Rust][9]'s value proposition can be demonstrated (XXX this isn't making the case that Rust is good at networking - what is the value proposition re: networking + Rust. It may be better to emphasize that Rust has particular strengths for networking applications, or not try to make this point at all). While my [previous post][14] in this series focused on file-IO (XXX: 'file I/O'), this post will explore the standard library's API for communication over TCP/IP, providing code for a primitive server that responds to requests from a web browser, as a nod to utility and expedience (XXX I don't understand the 'utility and expedience' point). As a further complement to IO (XXX: 'I/O'), Rust's serialization API will be introduced. These two things together help prog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn reserve_empty(nn: uint) -> str unsafe { | |
// start with a null-terminated 0-length string | |
let ss = ""; | |
// make a vector | |
let vv: [u8] = unsafe::reinterpret_cast(ss); | |
unsafe::leak(ss); | |
// expand it to size + \0 | |
vec::reserve(vv, nn+1u); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; etags-select.el --- Select from multiple tags | |
;;; From http://www.emacswiki.org/emacs/download/etags-select.el | |
;; Copyright (C) 2007 Scott Frazer | |
;; Author: Scott Frazer <[email protected]> | |
;; Maintainer: Scott Frazer <[email protected]> | |
;; Created: 07 Jun 2007 | |
;; Version: 1.13 | |
;; Keywords: etags tags tag select |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target | |
doc |
Announcement:
With Rust's first birthday party upon us on May 15th, 2016, this is an opportunityt to reflect on where we've been, and where we're going. To celebrate, we are pleased to announce the official 2016 State of the Rust Language Survey! Whether you use Rust today or not, we want to know your opinions. Your responses will help the project understand its strengths and weaknesses, and to establish development priorities for the future.
Completing this survey should take about 10 to 15 minutes. We will be accepting submissions until June 8th, 2016.
Please help us spread the word by sharing the above link on your social network feeds, at meetups, and around your office and other communities.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target |