- Background
- What is Rust?
- Why Rust?
- Examples
- Comparison to other languages
- Comparisons to languages with manual memory management
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
mkdir -p ~/.logs | |
export PROMPT_COMMAND=' | |
CODE=$? | |
if [ "$(id -u)" -ne 0 ]; then | |
COMMAND_NUMBER=$(history 1 | awk '\''{ print $1 }'\'') | |
COMMAND=$(history 1 | awk '\''{ s = ""; for (i = 2; i <= NF; i++) s = s $i " "; print s }'\'') | |
COMMAND=${COMMAND%%*( )} | |
printf "$(date "+%H:%M:%S")\t$(pwd)\t${COMMAND_NUMBER}\t${COMMAND}\t${CODE}\n" >> \ | |
~/.logs/bash-history-$(date "+%Y-%m-%d").log | |
fi' |
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
node -p process.versions.v8 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome To Rust</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<style type="text/css"> | |
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz); | |
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic); | |
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic); |
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
diff --git a/jdk/internal/reflect/ReflectionFactory.java b/jdk/internal/reflect/ReflectionFactory.java | |
--- a/jdk/internal/reflect/ReflectionFactory.java | |
+++ b/jdk/internal/reflect/ReflectionFactory.java | |
@@ -225,7 +225,8 @@ | |
Class<?> declaringClass = c.getDeclaringClass(); | |
if (Modifier.isAbstract(declaringClass.getModifiers())) { | |
- return new InstantiationExceptionConstructorAccessorImpl(null); | |
+ return new InstantiationExceptionConstructorAccessorImpl | |
+ ("Can not instantiate abstract class"); |