From Automata to Neuroscience
Source: http://thetechy.com/science/going-distance-intelligence
Recently I got approved in the SWB project. Canada waits for me!
Together with Prof Joaquim Pessoa Filho, we started to develop a project with a Quadcopter, i.e. four motors. The blog for the project is here [1]
The project was later presented in an undergraduate conference at Anhembi Morumbi, in November 2011 [2].
[1] quadkoptero2.wordpress.com
Preparing myself here for some interviews and reading about Java, I came to review some features that were added to Java 7 and Java 8. First, let start with J7:
Diamond operator
The diamond operator is a way to facilitate the declaration of variables, saving time and makes the code less confusing.
Map<String, List<Trade>> trades = new TreeMap<String, List<Trade>> ();
Map<String, List<Trade>> trades = new TreeMap<> ();
String in the switch statement:
switch(status) {
caseX: x();
caseY: y();
default:
do_something()
}
try optimization
No need to use the finally mandatorily as before we can do only:
try(){
} catch(Exception){
}
Exception handling at the same time
try(){
} catch(Exception1 | Exception2 | Exception3){
}
It’s so useful just use path, get the file and use it.
WatchService
I didn’t know about this feature, which is quite interesting btw. You can basically look at the file changes modification and be notified by it. Cool. But you actually need to create a service to watch the file.
WatchKey key = watchService.take();
invokedynamic Feature
Called Java secret weapon [2]. Interestingly to learn about this I watched [3], describing the use of invokevirtual – which you can see it on bytecode.
This is a feature that is explored much more in J8[4]
It enables the use of dynamic languages above the JVM. I will create a separated article about it later.
[1] https://www.oreilly.com/learning/java7-features
[2]https://www.infoq.com/articles/Invokedynamic-Javas-secret-weapon
[3] https://www.youtube.com/watch?v=262lTMIpYQE
[4] https://www.youtube.com/watch?v=0vfFHMGESVQ
I remember watching those videos in Spanish for my Calculus exams!
Still today I can’t find better Calculus materials on youtube.
It was really tough to get here, the scholarship program requested several documents which we did not have at the stop. Thanks to the people at the department of social services that understood our situation.