Skip to content

Instantly share code, notes, and snippets.

@brson
brson / gist:9dec4195a88066fa42e6
Last active April 19, 2024 00:34
A Rust Syntax Guide

A Guide to Rust Syntax

A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.

This was written in 2014. It is not a good reference for Rust today, though the content is still correct.

cheats.rs looks like a good alternative.

Assert macro

@brson
brson / Dockerfile
Created May 12, 2016 19:41
Dockerfile for rustup demo
FROM ubuntu:16.04
RUN apt update
RUN apt install build-essential curl -y
RUN apt install file -y
RUN apt install asciinema -y
RUN apt install unzip -y
RUN apt install emacs24-nox -y
RUN apt install vim -y
RUN apt install nano -y

Fuzzing Soroban smart contracts RFC

Recently I have been working on making it possible to fuzz Soroban contracts. Having some progress and experience now, I am writing up what I have learned and prototyped in hopes of getting feedback.

The work is currently done in the arbitrary branches of three forks:

Changes that needed to be made to support fuzzing

  • arbitrary features
  • Making soroban contracts rlibs
  • Additions of IntoVal impls

My concerns

  • I have tried to come up with the simplest set of traits that will make it work,

2020-02-24

Some notes about the question "who is actually using Rust?".

  • Firefox

  • Dropbox's storage backend is in Rust, probably other components as well

  • Reddit uses Rust on every request for markdown parsing

Become a next-generation systems hacker with Rust

[Rust] is a novel systems programming language, designed for writing and maintaining large-scale, ultra-reliable software in the domains where typically only C and C++ are appropriate. It is the only production programming language in the world that is memory safe - meaning Rust software does not segfault - but does not have a garbage collector or rely on reference counting, and that makes it suitable for writing all kinds of software. It is also arguably the fastest programming language in the world. And with a focus on developer

The Rust compiler 0.1 is unleashed
Today Mozilla and the Rust community are releasing version 0.1 of the Rust compiler
and associated tools.
Rust is a strongly-typed systems programming language in the C family with a focus
on memory safety and concurrency. This is the initial release of the compiler after
a multi-year development cycle focusing on self-hosting, implementation of the major
features, and solidifying the syntax.

Hi, everyone! Super happy to reach out to you! As a Rustacean, I’ll be grateful for your advice. Due to the war in Ukraine, I’m working on becoming a junior Rust software engineer ASAP. As an anti-corruption activist, I have to relocate from Russia. Because of the war, I’ve lost my family & my livelihood.

But I’m not here to tell a sob story, I’m here to ask the practical questions. I could start my new career as a JavaScript front end guy, but JS doesn't suit my personality, while Rust does. With Rust, I’ll love my work, but with JS — less so.

Unless it’s impossible to go from 0 to a Rust junior job in 1-2 years or faster, I would do everything to choose Rust over JS.

Questions:

  1. Which Blockchain ecosystem should I choose? NEAR? Solana? Polkadot (Ink)? Cosmos? Holochain? Priority #1 is — in which ecosystem I’ll meet the kindest&smartest colleagues? Priority #2 is — which ecosystem has the best learning resources for beginners? (Though, if there’s no great learning resources, but there’s a feasible path
@brson
brson / gist:ad9cdfdec9a58a1f7fa2
Last active May 2, 2021 16:22
Rust IRC channels
#rust - Rust 24-hour partyline
#rust-internals - Compiler hackers
#rustc - Focused discussion on rustc internals
#rust-libs - Focused discussion on rust std libs
#rust-bots - Status updates
#cargo - Anything about Cargo
#servo - Anything about Servo
#rust-gamedev
#rust-offtopic
#rust-osdev