Rust tip: (Unix) drop the current user privileges

Brief

Rust is a modern programing language which is claimed to be blazingly fast and memory-efficient. It syntactically similar to C++, but is designed to provide better memory safety while maintaining high performance and productivity:

  • Zero cost abstraction: allow a perfect balance between performance and productivity
  • Memory efficient with no runtime or garbage collector
  • Memory safe: Rust does not permit null pointers, dangling pointers, or data races in safe code.
  • Memory management using an ownership model guarantee memory-safety and thread-safety .
  • Great documentation, easy to use compiler and integrated packages/libraries management
  • Easy to interface with other language.
  • A bit of learning curve for the variable ownership and variable lifetime features.

ARM-Cortex M0 programming with lpc1114FN28 - an overview

This is a migrated version of my Wordpress post, written on : 27 February 2015

What is it?

The lpc1114FN28 is a low cost, low power 32 bit MCU designed in a 28dip package, it is breadboard friendly and very easy to set up for those who are new to ARM programming (like me). Some features :

  • An ARM cortex M0 processor, can run at the frequency up to 50 Hhz.
  • Built-in Nested Vectored Interrupt Controller (NVIC)
  • 32 kb on chip flash programming memory and 4kb of RAM
  • In-System Programming (ISP) and In-Application Programming (IAP)
  • UART, I2C, SPI, 10 bits ADC
  • Up to 22pins GPIO
  • And more..

It is designed mainly for micro-controller stuffs (applications), and can be easily programmed with a few more components. In fact, i'm just ancomputer scientist guy who is new to the MCU (ARM) world and that simplicity is a good point for me. I've bought some of them from Ebayand started to learn how to program it.

Powered by antd server, (c) 2017 - 2024 Dany LE.This site does not use cookie, but some third-party contents (e.g. Youtube, Twitter) may do.