ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
Is Skynet on his way?
## Abstract # Skynet is a technology reached by the Terminator franchise. In this saga, Skynet is an artificial intelligence which thought that the Human race is malicious, and has to be exterminated (pretty optimisticâŠ). This artificial intelligence has been developed by engineers to help Humans for some difficult situations but, obviously (we are in a science-fiction movie), the artificial intelligence has developed itself and became aware of itself. People who are afraid of artificial intelligence always bring up this example, whenever there is an artificial intelligence success. But, is Skynet staying at the state of fiction, or this technology can be realize today? ## Programmed to do something # Artificial intelligence is a way to made his own computer to do something without explicitly programming it. John McCarthy has introduced the term in 1955. He defined the artificial intelligence as âthe science and engineering of making intelligent machinesâ. The artificial intelligence science is vast. It can be splitted into subdomains like mathematical optimizations, multi-agent systems or machine learning. The current AIâs subdomain which reach is machine learning. Arthur Samuel defined in 1959 that machine learning is a âField of study that gives computers the ability to learn without being explicitly programmedâ. Explicitly A computer is a deterministic tool. This one will executes instructions youâre giving to it, and it will return to you a message or something else like a graphic in your screen. Machine learning gives the opportunity to give data to a computer, or allows this one to make some things in a based-environment, to maximize his chance to successfully make a regression on data or classify data (for example). To do that, the computer will iterate on data, try to learn characteristics from data, and minimize the number of errors he made by classifying his data. And this is an algorithm! Stephen Hawking, the famous theoretical physicist and cosmologist, says âThe development of full artificial intelligence could spell the end of the human raceâ. In the same article, Thomas G. Dietterich says that the real threat is âautonomousâ. But the most interesting part of his speach is this following sentence: âAI systems will not become spontaneously autonomous, they will need to be designed that wayâ. âThey will need to be designed that wayâ Ass I said, an artificial intelligence cannoât be aware to make some evil things if the algorithm has not been designed for that. A computer listen and execute some instructions, and has to be programmed to do this thing. ## Donât be evil # We are afraid and proud about artificial intelligence success, but are we far to build a Skynetâs clone? We donât have to forget that an artificial intelligence is developed to perform one task, like playing go. So, is a programmer, in this world, is currently trying to code a piece of program that will take control of everything? Maybe! But, to be optimistic, I think there is more chance that the Human race will kills itself that an artificial intelligence will takes control of everythingâŠ
ARTHUR SAMUELSTEPHEN HAWKING
SOFTWARE ENGINEERING AND PROGRAMMING
Contributing in maintaining free and open source projects
We, computer developers, have to develop our knowledge ourselves every day. This practice allows developers to keep ourselves informed about new technologies, new solutions and security issues. For the majority of developers, this âupdateâ is not a pain. We have choosen to work with computers due to our passion with these awesome machines, and this âupdateâ thing is just the best thing to do to maintaining this passion. You can, every day, consult some great tech news like HackerNews, TechCrunch, The Verge, Wired or Korben (for French guys) - and thatâs already a good step. But these news not allows you to practice and to test these technologies. To do that, you have to program some things, to practice to a new programming language, or to maintain your system! This thing can be exausted and really painfull, because, maybe, you donât have the time to create and maintain an entire powerfull software, or the knowledge to program this one alone! So, let me introduce you the advantages in contributing to free and open source projects, for you knowledge! ## To learn new things # This is the principle objective of this post: to update you in computer science! As an inquisitive person, Iâm still looking for to learn new things: an usefull technique or programming language, to continue to explore a computer science sub-domain (machine learning, software optimizations), to improve myself in coding, etc⊠Free and open source projects are great places to learn new things, because developers try some innovative things to build the best project as they can. Most free and open source are just some developed ideas from a single person or a small community of developers, banded together to create a new awesome computer thing. By learning new things, you can contribute for example by fixing some bugs, improving or refactoring the code, or building some new awesome features! Donât forget that youâre free to read the code if you cannoât or donât want to contribute, that is often a big step in improving your knowledge! ## To develop new technologies # Developers are developing new usefull technologies to improve the life of developers or common-users, and a small new feature can be the âplusâ of the software that can change the story. I try to use new technologies each day, out of curiosity or pleasure. If the software embedded some awesome features, I star the repository from the version control repository (Github,Gitlab,BitBucketâŠ) and I have some knowledge about used technologies for this project. B2GOS, Firefox, Chromium, VLC, GNOME, Go, Rust,⊠all these free-to-clone amazing technologies, using by thousand/million/billion of persons each day and you can contribute to! ## To improve yourself # Do you want to learn a new programming language? Check a simple project on Github to learn some efficient skills using this one! You have just found a great project and want to contribute in his development? Clone the repository, check the issues list and give yourself the objective to solve an issue per day/week/month,⊠A free and open source project is the perfect thing to improve yourself! ## Do not reinvent the wheel # Just imagine: you want to list all git local repositories in your systems and to pull remote branches for them, automatically at 08:00AM each day. You found a great project on Github that list your git local repositories, make some things with but, unfortunately, cannoât pull remote branches⊠Are you trying to make the software from scatch for this single feature and lost your time to do a simple thing, or are you clone the project, try your best to understand the software architecture and add this single feature to this awesome project? (Actually, this is not a questionâŠ) ## To meet great people # My experience in contributing on free and open source projects permits me to meet some great people in some amazing communities (Mozilla, RedoxOS,âŠ), to discuss with them, share some knowledge and meet them IRL at meeting, conferences, etc⊠These people are my companions, my project colleagues, and now my friends. ## And now⊠# With this post, I donât talk only to developers! You donât code but you are interesting in contributing to free and open source projects?! AWESOME! Just put your core skills in practice: translation, project management, talk about the project, etc⊠Thereâs plenty of opportunity for everyone, and I am sure that you can find something interesting.
SOFTWARE ENGINEERING AND PROGRAMMING
Display text easily in arOS, using a Rust macro
In my previous post, I talk about my joy to program my first operating system from scratch (arOS), using assembly and rust code. Steve Klabnik, initiator of the intermezzOS project, hasnât explain his own solution to display some text on screen, easily and using Rust. The current code to display some text on the screen is the get the address of the VGA buffer (
0xb8000), and to add manually our characters, one by one⊠So, actually, to display a simple âHello worldâ in color green on backscreen black, the code is 0x026c026c02650248026f. Ugly? Yes! A solution proposed by Steve is to implement a macro which take as parameter a string and will save each character in the VGAâs buffer. Letâs try! This is the file lib.rs which contains my ugly code: rust #![feature(lang_items)] #![no_std] #[lang = "eh_personality"] extern fn eh_personality() { } #[lang = "panic_fmt"] extern fn rust_begin_panic() -> ! { loop {} } #[no_mangle] pub extern fn kernel_main() -> ! { unsafe { let vga = 0xb8000 as *mut u64; *vga = 0x026c026c02650248; let vga2 = 0xb8008 as *mut u64; *vga2 = 0x026f; } loop {} } First, letâs try to save the memory address of the VGAâs buffer. We want this address global. So, we will use static. Instead of const, static can be mutable - the advantage of this solution is to have only one instance of this memory address, and a fixed location in memory. rust static mut VGA: u64 = 0xb8000; Also, I want to store the color of the text and the background to display on screen. rust static COLOR: u64 = 0x02; 0x02 corresponds to have a black background color (0) and a green text (2). Now, we have to define our Rust macro. This one take as parameter a &str pointer - so, an expression - and have to display on screen this one. The skeleton of the macro (letâs called it k_println) is following. rust macro_rules! k_println { ($e:expr) => { }; } Now, we have to fill this macro. We work on memory addresses, so we have to use unsafe. rust macro_rules! k_println { ($e:expr) => { unsafe { } }; } We know that $e is a string, and we want to display each character of this string. So, we have to iterate on those characters to put each one in the buffer of the VGA. As my configuration is little endian, I must begin to enter the character (as an unsigned 64 bits value), and after that the color of the character to display. Also, to know where to display the character on screen, I have to save the offset! rust macro_rules! k_println { ($e:expr) => { unsafe { let mut offset : u64 = 0; for c in $e.chars() { *((VGA + offset) as *mut u64) = c as u64; offset += 1; *((VGA + offset) as *mut u64) = COLOR; offset += 1; } } }; } Great! Now, our definition is k_println. So, we have to pass a new line (the hexadecimal value for this is 0x0A) and let the following line to be displayed under this one (you have to update the VGA buffer pointer to the current pointer + 160 characters). We just have to complete the code with the two following expressions, after the loop: rust *((VGA + offset) as *mut u64) = 0x0A; VGA = VGA + 160; And⊠TADA! We just wrote a simple Rust macro to display easily a string in your new awesome operating system! :-D Final code: rust #![feature(lang_items)] #![no_std] static mut VGA: u64 = 0xb8000; static COLOR: u64 = 0x02; macro_rules! k_println { ($e:expr) => { unsafe { let mut offset : u64 = 0; for c in $e.chars() { *((VGA + offset) as *mut u64) = c as u64; offset += 1; *((VGA + offset) as *mut u64) = COLOR; offset += 1; } *((VGA + offset) as *mut u64) = 0x0A; VGA = VGA + 160; } }; } #[lang = "eh_personality"] extern fn eh_personality() { } #[lang = "panic_fmt"] extern fn rust_begin_panic() -> ! { loop {} } #[no_mangle] pub extern fn kernel_main() -> ! { k_println!("Hello, World!"); loop {} } STEVE KLABNIK
ACADEMIC RESEARCH
Is research innovation still belongs to Universities ?
I started my PhD two months ago, on automated ways to classify documents, and I begin to be depressed⊠Since I started University in Computer Science, I wanted to do a PhD in biocomputing, combinatorial optimization, or machine learning. In CS class, Machine learning was the area I enjoyed the most - so it was natural to look for a PhD in ML. For me, research activities conduct to new innovative techniques, or tools, which have to be tested on real world examples. As a good PhD student, I started my start-of-the-art and I began to experiment two or three ideas. So, I read about 50 or 60 research articles about new ways to classify documents, and text understanding. The research articles I read in the area of machine learning came, in large majority, from web giants: Google, Facebook, Amazon, Baidu, CriteoâŠ, but also from companies or startups which are related to those giants, like DeepMind. These research articles propose new approaches to classify text documents, and new ways to understand, and translate, documents. Those approaches have been tested on a massive dataset, and clearly outperform existing methods. Also, at NIPS (one of the greatest conference about machine learning and computational neuroscience), companies owned about 50% of accepted papers. Now, I am wondering if innovative things in this research area still belong to Universities. Maybe you are wondering why those companies are first, in this area. This is my answer: 1. They have massive datasets of real world examples, 2. They have techâ (for example, the last chip from Google for DL, which is just amazing), 3. They own, or the work with, the best research scientists in AI (Y. LeCun, A. Ng, H. LarochelleâŠ), 4. They have the best engineers who are working hard on this subject, 5. They can test their idea directly on well designed products, faster than light. I realized, during my previous internships, that there is a hard competition between research institutions and companies. Some research institutions, like inria, share the idea that a research idea can be part of a great product - so, they propose to scientists to share ideas with startups, or to create their own startup. Itâs the same thing in University of Luxembourg - for example, the DataThings startup has been funded thanks to the research ideas of a great team of scientists who are working on real time data series. So, research institutions are moving from pure research to applied research, and itâs great ! But, is this change not too late ? And is AI research area already belongs to giants ? I know that companies, especially today with DL, would not have done these wonderful tools/products without research scientists. But I am sad those research scientists are now owned by private companies, to conduct internal research. I am really scared that my work and research ideas are became soon outdated, because of a technology that exists since a few years, but has not been released yet due to private IPs or something like that. Also, how can you be peaceful if you know that companies can explore, implement a solution and draft a paper about it faster than you ? Actually, I am depressed⊠but I am not giving up.
GOOGLECRITEO
DIGITAL COMMUNITIES AND ONLINE PLATFORMS
Rustfest, an amazing experience
RustFest is an European event to attempt general talks about Rust, and to meet people from the Rust community. Rustfest 2017 badge RustFest is a two-days event. The first day is a series of talks from the Rust team (in Mozilla) and, predominantly, the Rust community about: the past and the future of the programming language, POCs, how to deal with macros, awesome new projects like 3D games, a gently introduction for developing 2D games (and how easy is it), why a company choosed to move their tech stack to Rust, etc. Each talk was a lesson: how to deal with a ârust-maticâ problem, how to manage your project, how to deal with this feature, or how to present a complex subject to a various auditory. Each people I discussed with was a huge wealth of wisdom, experience and knowledge. I discussed, drink beers, and eat (expensive) burgers, with incredible guys from France, Switzerlang, Great Britain, Germany, Sweden, Poland, Russia, United States of America, and many other countries! To me, this first day of RustFest was more than a talks day, it was an epiphany. Rust brings us more than just incredible technology, it brings us a family. Thanks to this event, I remembered why I love Rust, and why this programming language is, actually, my favorite one. After making Zou awesome, I plan to begin to contribute to a big âRust productâ: Servo, thanks to Simon Sapin. Also, ZĂŒrich is such a beautiful place to host this kind of event. Thanks a lot to the awesome speakers: Felix Klock, Ălisabeth Henry, Geoffroy Couprie (your love for macros is insane man! :-)), Alex Burka, Mohammed Makhlouf, Thomas Wickham, Igor Matuszewski, Niklas Adolfsson, Andrea Lattuada, Jorge Aparicio (aka âthe-awesome-japaricâ), Pierre Krieger, Andre âthe poetâ Bogus, Lisa, Fedor Logachev, and Anselm Eickhoff, thanks for the RustFest crew (I donât have your names, but I love you guys <3), the sponsors and all the people and institutions who helped in creating, promoting, and maintaining the event. Donât change, youâre awesome đ In Rust, We Trust đ€ Rustfest participants Credits for this picture: the RustFest team Original tweet here
UNITED STATES OF AMERICAFRANCEALEX BURKAMOHAMMED MAKHLOUF