Nick Samoylov's Blog, page 6
February 10, 2020
Java streams 16. Filter, skip, or sort
An intermediate operation returns a Stream object that emits the same or modified value(s) of the same or different type than the stream source. In this installment, we will discuss operations that do not change either element value or type. They just do not allow some elements to propagate downstream.
The post Java streams 16. Filter, skip, or sort appeared first on Nick Samoylov.
February 2, 2020
Send me your consciousness – your connectome
Eventually, brains will be measured in minute details and digitized. The connections in your brains (connectome) will become reproducible. It well may be that the complexity of the connectome facilitates the emergence of consciousness.
The post Send me your consciousness – your connectome appeared first on Nick Samoylov.
Java streams 15. Stream factory methods.
The Stream interface factory methods are the methods that create a Stream object. Their implementation includes call to a class constructor and that is the advantage of factory methods: they can do much more than just a constructor.
The post Java streams 15. Stream factory methods. appeared first on Nick Samoylov.
October 2, 2019
Java streams 14. Stream factory methods and operations
Some of the Stream interface methods create a Stream object (we call them factory methods), while others process the elements emitted by the created Stream object (we call them operations).
The post Java streams 14. Stream factory methods and operations appeared first on Nick Samoylov.
September 1, 2019
Limits of AI
If talking to AI via an intermediary, we are not able to distinguish between a human and a robot, does it mean that such a robot is conscious?
The post Limits of AI appeared first on Nick Samoylov.
Java streams 13. Create using BitSet.stream(), JarFile.stream(), or Pattern.splitAsStream()
Create a stream using IntStream BitSet.stream(), Stream JarFile.stream(), or Stream Pattern.splitAsStream(java.lang.CharSequence).
The post Java streams 13. Create using BitSet.stream(), JarFile.stream(), or Pattern.splitAsStream() appeared first on Nick Samoylov.
Create stream using BitSet.stream(), JarFile.stream(), or Pattern.splitAsStream()
Create a stream using IntStream BitSet.stream(), Stream JarFile.stream(), or Stream Pattern.splitAsStream(java.lang.CharSequence).
The post Create stream using BitSet.stream(), JarFile.stream(), or Pattern.splitAsStream() appeared first on Nick Samoylov.
August 18, 2019
Living vs nonliving
The living can create a mental model of the world, plan, predict, act based on the prediction, and correct the model based on the result of the action or based just on the observations.
The post Living vs nonliving appeared first on Nick Samoylov.
Java streams 12. Create numeric stream using class Random
The Random class provide methods ints(), longs(), doubles(), and their overloads thus allowing creating a numeric stream IntStream, LongStream, or DoubleStream correspondingly.
The post Java streams 12. Create numeric stream using class Random appeared first on Nick Samoylov.
August 14, 2019
Mind and body united
Imagine humans in savanna a million years ago. Everything is subject to survival, whether they hunt or listen to stories sitting by the fire. What are these story about? About hunting, of course.
The post Mind and body united appeared first on Nick Samoylov.