I do find fad-chasing in programming languages annoying but I will admit that Java's Stream API is actually pretty good for what it is

It's certainly a lot better than the nightmare that is C++ lambdas

Follow

@wallhackio you call it fad-chasing but unix I/O has literally always been stream-based

@wallhackio it has literally always been pawsible fur a file to spew an infinite amount of data and the core I/O APIs have always been able to handle this

@aescling the stream API is a very functional Java thing implemented with monads that is normally used to write code that looks like

int sum = widgets.stream()
.filter(w -> w.getColor() == RED)
.mapToInt(w -> w.getWeight())
.sum();

But it is still called a Stream because it is lazily-evaluated and generic enough to represent parallel operations. So while there are comparisons to UNIX streams the Java Stream API is an orange to the UNIX stream apple.

@wallhackio the java stream api uses streams. the unix file api uses streams. these are the same kind of data structure. that is my point. the APIs and the furmer being a generic data container (whereas unix streams are all of char) are what are diffurent

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.