Présentation
Mpp-Project
History of Some Programing Languages
PHP
PHP
-
Created in 1994
- A series of CGI Perl scripts
- Rewrited in C To be more performant
- Criticized by many people
- Used by 200 million web sites including facebook ...
Scala
- Started in 2001 at EPFL .
- By Odersky who had previously worked on Gj .
- Released in 2003 , released publicly on the Java plateform
//java
int mathFunction(int num) {
int numSquare = num*num;
return (int) (Math.cbrt(numSquare) +Math.log(numSquare));
}
//Scala
def mathFunction(num: Int): Int = {
var numSquare: Int = num*num
return (math.cbrt(numSquare) + math.log(numSquare)).asInstanceOf[Int]
}
Scheme
-
One of the two main dialects of Lisp
- Developed at the Mit AI Lab
- Written as a tiny Lisp interpreter using Maclisp
(define-syntax let
(syntax-rules ()
((let ((var expr) ...) body ...)
((lambda (var ...) body ...) expr ...))))
How Mpp was done
Steps
- Introducing to the libc dev
- Structure of functions
- Explaining some functions
- Showing some Mpp functions
- mpp.h
Libc dev
- Implementation of C Standard library
- Written by Roland McGrath
Stdio.h
- A part of the libc
- The mpp.h is a miniature of stdio.h
- The Printf function
int printf(const char* format, ...);
-
The scanf function
int scanf(const char * format, ...);
- The fprintf function
int fprintf(FILE *stream, const char *format, ...)
- The fscanf function
int fprintf(FILE *stream, const char *format, ...)
mpp-project
By naper
mpp-project
- 886