Show and tell: Generator patterns and new use cases

While ES6 generator patterns are designed to empower javascript language with iteration capabilities on heterogenous data structures in custom mannaer, the event-driven asynchronous programming model of Node.js transforms this feature into an interesting semantics in the execution flow control with un-precedented potential in managing concurrency.

The session talks about how the generator pattern helps in iterating over deeply nested structures in a repeatable manner which follows a yield-resume pattern. I show a couple of real-world use cases where this approach helps in addressing performance / scalability / concurrency issues in large scale node.js applications, with an associated demo.

 
2 favorite thumb_down thumb_up 2 comments visibility_off  Remove from Watchlist visibility  Add to Watchlist
 

Outline/structure of the Session

The session starts with introduction to asynchronous programming model of Javascript, and showcases some of the programming semantics which implement this model. Then we move on to introducing iterator patterns, in the context of collection types. This sets the context of heterogenous objects and generator pattern. I introduce the generator pattern with examples to illustrate the usage. Then we talk about how this pattern is harnessed in certain use cases where its power is manifested in an simple yet impacting manner. Towards the end, I showcase some of the real-world problems solved by this pattern with code readability and simplicity as the main strategy. 

Learning Outcome

The audience will learn how generator patterns effectively exhibit the power of suspending code execution at arbitrary intervals and which can be resumed at again arbitrary time instances, and how this power can be harnessed to address some of the well known issues / limitations in Node.js and thereby helping them to develop and deploy efficient code.

Target Audience

Developers and Architects [ Javascript / Node.js ]

schedule Submitted 4 months ago

Comments Subscribe to Comments

comment Comment on this Proposal
  • Pradeep Balachandran
    By Pradeep Balachandran  ~  3 months ago
    reply Reply

    Hi Gireesh, thanks for the proposal. This is a relevant topic for the JavaScript developer.

    Can you do the demos with Eclipse as the IDE to make it easier for the participants? You could use the new and improved JSDT that is part of the Eclipse JEE package or other node.js addons from the market place.

    • Gireesh Punathil
      By Gireesh Punathil  ~  3 months ago
      reply Reply

      Thanks Pradeep, sure, I can do that.


  • Naresha K
    Naresha K
    Agile Coach
    AgileFAQs Tech
    schedule 5 months ago
    Sold Out!
    20 mins
    Demonstration
    Intermediate
    The Eclipse Foundation project Vert.x is a toolkit for developing polyglot reactive applications on the JVM. One can develop applications on Vert.x using not only JVM languages like Groovy, Ceylon but also languages like JavaScript and Ruby. Vert.x leverages event-driven and non-blocking techniques with the intention to help developers write high performant applications that are resource efficient.
     
    In this presentation, I will demonstrate the Vert.x way of architecting and developing applications. I will develop a few Verticles talking to each other through the event bus and expose the functionality through HTTP. I will use Groovy for most of my code examples along with JavaScript and Java to demonstrate the polyglot options.
  • Liked Deepu Xavier
    keyboard_arrow_down

    Deepu Xavier - Natural Language Processing & Java

    20 mins
    Demonstration
    Beginner

    This session will cover the basics of Natural Language Processing. We will see the basics of Named Entity Recognition, Sentiment Analysis and other basic features of NLP.

  • Liked Deepali Kishnani
    keyboard_arrow_down

    Deepali Kishnani - Natural Language Based Query Engine for Eclipse Modeling Framework

    20 mins
    Demonstration
    Beginner

    Searching in big databases is the need of the hour. With ever growing applications and customer base, quicker search over the data helps you survive. Modeling Frameworks sit at the core of modern software. The increasing complexity of business requirements are reflected in the increasing complexity of the modeling framework. What if you could query the complex models within seconds? This is just one use case of VIATRA Query.

    VIATRA Query is an Eclipse project. Initially conceived by the Budapest University of Technology and Economics, VIATRA is an Event-driven and Reactive Model Transformation Platform.  We have used VIATRA Query to create a small search engine for Ecore models of EMF using Natural Language Based Rule Engine and would like to share our experience with it.

    VIATRA Query enables the user to query the EMF models without having to manually traverse them. Complex queries can be converted into patterns. Parameters to models can be passed at runtime, something which is crucial to any query engine. The idea of creating a search engine using VIATRA Query opens up new and innovative ideas of working with Eclipse Modeling Framework. To know more about the algorithm behind this technology or how we made it work, please join us at the Eclipse 2017 Summit!

  • Liked Manoj NP
    keyboard_arrow_down

    Manoj NP - JDT Embraces Java 9 - An insider's perspective

    20 mins
    Talk
    Intermediate

    Eclipse Java Development Tooling or JDT has its own Java compiler at its core, aptly called the JDT Core consisting of the Java compiler and various tools including java model, search infrastructure, content assist, Abstract Syntax Tree Tools etc.  Java 9 is the latest entry in the Java world bringing along-with it a "module" of changes - so to speak.  Any change in the language standards affects JDT directly. While some of the earlier language specification changes affected only the compiler, Java 9, in contrast, has a direct impact on user who uses Eclipse IDE for creating and managing Java Projects. Java 9  introduces the concept of "Modules" which affects JDT from the compiler level to the project dependency layer affecting a normal user. Support for this feature will be dealt with, in detail, in this talk.

    This talk would start with a brief overview of the Java 9 features especially the "module" feature that have direct impact on Eclipse users,  describe the JDT support for features, touch upon some of the design aspects, and would conclude with a demo of Eclipse JDT for Java 9.

  • Liked Vaibhav Choudhary
    keyboard_arrow_down

    Vaibhav Choudhary - Towards a better parallelism

    45 mins
    Lightning Talk
    Intermediate

    World is moving fast towards parallelism. It will soon be seen that parallelism is the default nomenclature of the new software design. As a core member of Java Platforms Team, I want to bring the fact that how programming languages are leveraging the power the parallelism in this world of many core processors.

    Though parallelism is the new demand, it is extremely hard generate performance on parallelism. We need to learn "the best practices" for parallelism.

  • Liked Rajesh Sola
    keyboard_arrow_down

    Rajesh Sola - Gateway design with Eclipse Kura - Taking to new heights

    Rajesh Sola
    Rajesh Sola
    Core Faculty
    CDAC,Pune
    schedule 4 months ago
    Sold Out!
    90 mins
    Tutorial
    Intermediate

    This talk cum tutorial aims at introducing Eclipse Kura, OSGi based framework for IOT gateway design.It starts with kura architecture and key elements like bundles, services, web admin interface etc. and a tour of available APIs,services for hardware interfacing, wireless connectivity,cloud connectivity and industrial & automotive protocols.The next part proceeds with case study of building custom services,for eg:- adding client support for HTTP REST, InfluxDb in kura.Later few bridging scenarios will be covered on interfacing local networks with IOT Platforms like ThingSpeak, OpenSensors.io etc using these services and also storing data points in a time series at edge/gateway side using InfluxDb as an example.

  • Liked Ramya Authappan
    keyboard_arrow_down

    Ramya Authappan - CDC Tests - Integration Tests cant be made simpler than this!

    Ramya Authappan
    Ramya Authappan
    Senior SDET
    Freshdesk
    schedule 4 months ago
    Sold Out!
    45 mins
    Talk
    Intermediate

    CDCs are “Asynchronous Integration Tests”.CDC stands for Consumer Driven Contract. We can now forget about bringing up all the microservices to test the integration between different microservices.This makes integration tests as simple as unit tests. This is a must-have test for all microservices.

  • Liked Vaibhav Choudhary
    keyboard_arrow_down

    Vaibhav Choudhary - Java 9 - The game changer for Cloud

    45 mins
    Talk
    Advanced

    Java has evolved and continues to remain as one of the most reliable platforms for Application Development. With the advent of the Cloud it is paramount for Cloud scale applications to run on a smaller footprint. The upcoming Java SE9 release, with a host of features, helps just that. Java is evolving as a modular and cloud focused platform. One of the highlights of Java SE 9 is Project Jigsaw. It will enable our customers to have a leaner runtime with enhanced security and better performance. In this talk, the audience will understand how Java 9 better enables developer productivity, reduces server overhead, improves application density and predictability and why it is the best platform for SAAS and PAAS in the cloud.

    Scope of the final presentation:-

       1    Project Jigsaw Overview and its implication on Oracle cloud.

       2    Other key Java Features to look forward to - AppCDS (Low Latency Application Development with great startup time) , G1 Garbage Collector (Predictable Pauses by Application), Excellent Monitoring tools.

       3    Modular JDK Demo - Java + Eclipse + Docker 

       4    Conclusion - Java is the future of Oracle cloud.

  • Liked Gunnar Wagenknecht
    keyboard_arrow_down

    Gunnar Wagenknecht - Eclipse Bundle Recipes

    Gunnar Wagenknecht
    Gunnar Wagenknecht
    Software Specialist
    Salesforce
    schedule 5 months ago
    Sold Out!
    20 mins
    Talk
    Beginner

    The Eclipse Platform is based on OSGi and OSGi is a model to modularize Java applications at runtime. Unfortunately, not all Java libraries provide the necessary metadata required for OSGi. Thus, if developers want to consume a library, they have to generate the OSGi metadata themselves. This problem is solved by the Eclipse Bundle Recipes project. It provides a library of templates (the “recipes”) and tools that can be used to create OSGi bundles. You have a library that you'd like to use in your OSGi project? Then stop by in this session and see if the Eclipse Bundle Recipes (EBR) project already has a recipe for your. You will learn how easy it is to consume libraries from Maven repositories and turn them into OSGi bundles. We will also demonstrate how the recipes and build system can be deployed in to create bundles at large scale and consumed in your builds. Last but not least, we will also show you how to contribute recipes to the EBR project.