Giter VIP home page Giter VIP logo

workshop-loom's Introduction

workshop-loom

In this repository the assignments for the SynTouch Loom workshop (by Qun Wang and Jeroen Ninck Blok) can be found. Loom is the name of the OpenJDK project for bringing virtual threads into the JVM. More information can be found here: https://openjdk.org/projects/loom/

Project Loom is implemented using these JEP's:

Virtual threads bring two more new features to the JVM:

  • Structured concurrency
  • Scoped values

Prerequisites

This project can either be run locally or using a devcontainer.

Local

  • Download & install JDK 20
  • Download & install IntelliJ
  • Configure JDK 20 in IntelliJ

Devcontainer

Assignments

There are three assignments which show the capabilities (and API's) of virtual threads, structured concurrency and scoped values.

  1. loom-http-client: Simple HTTP client used with virtual threads
  2. loom-spring-boot: Implement virtual threads and structured concurrency in a Spring Boot 3.0 application
  3. thread-pinning: Thread pinning using synchronized code
  4. scoped-values: Implement scoped values (next the ThreadLocal) in a regular Java app
  5. loom-quarkus: Use the Quarkus virtual thread API

Tips & trics

  • To start a Spring Boot application using Maven: mvn spring-boot:run
  • To start a Java application using Maven: mvn exec:java
  • To start a Quarkus application using Maven: mvn quarkus:dev

workshop-loom's People

Contributors

ninckblokje avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.