Skip to content

Functional Programming With (or Without) Java Streams: A Case Study

Photo of Mahesh Acharya
Hosted By
Mahesh A. and 3 others
Functional Programming With (or Without) Java Streams: A Case Study

Details

As a Language, Java has evolved to incorporate gradually more functional programming (FP) features. For instance, the old "switch" statement, inherited from C, is slowly turning into a full-fledged pattern-matching expression, as could be found in a truly FP language. Most notably, streams (combined with lambda expressions) are sometimes hailed as having brought FP to Java. It is true as far as simple illustrations go: using streams, you can now square all the numbers in a list with "map(x -> x * x)". But real applications need more than squaring numbers. What happens then? In this talk, I will describe several attempts at implementing a classic FP strategy using Java code. In particular, I will show how well (or not) streams fit the needs of the program, and what alternatives can be used. The talk will be Java-centric with plenty of code (available on GitHub).

Speaker:

Prof. Michel Charpentier is an associate professor with the Computer Science department at the University of New Hampshire. His interests over the years have ranged from distributed systems, formal verification and mobile sensor networks. He has been with UNH since 1999 and currently teaches courses in programming languages, concurrency, formal verification and model-checking. His new book is Functional and Concurrent Programming: Core Concepts and Features (Addison-Wesley 2023).

Note:

Please RSVP for this event by the day before it happens so we can give the attendee list to the venue host/sponsor. If your name isn't on the list, you won't be allowed in. Also, make sure the name on your Meetup profile is similar to the name on your ID, including both your first and last name, which you'll need to show when you check in.

Photo of Boston Java Users ACM Chapter (formerly NEJUG) group
Boston Java Users ACM Chapter (formerly NEJUG)
See more events
Respond by
Wednesday, June 11, 2025
4:00 PM
Oracle
8 Van de Graaff Drive · Burlington, MA
Google map of the user's next upcoming event's location
FREE