Skip to content

Instantly share code, notes, and snippets.

@marcinzh
marcinzh / CatchFail_no_shadow.scala
Created May 30, 2025 11:51
CatchFail.hs translated to Scala 3 and Turbolift (revision without use of `Control.shadow`)
//> using scala "3.3.5"
//> using dep "io.github.marcinzh::turbolift-core:0.112.0"
//> using dep "io.github.marcinzh::turbolift-bindless:0.112.0"
/************* HOW TO RUN ********************
1. Ensure you have Java 11 or newer
2. Install scala-cli
3. Execute `scala-cli <link-to-this-gist>`
**********************************************/
@marcinzh
marcinzh / CatchFail.scala
Created May 28, 2025 13:38
CatchFail.hs translated to Scala 3 and Turbolift
//> using scala "3.3.5"
//> using dep "io.github.marcinzh::turbolift-core:0.112.0"
//> using dep "io.github.marcinzh::turbolift-bindless:0.112.0"
/*********************************************************************************************
How to run:
1. Ensure you have Java 11 or newer
2. Install scala-cli
3. Execute `scala-cli <link-to-this-gist>`
Link to the original:
//> using scala "3.3.1"
//> using dep "io.github.marcinzh::enterprise-core:0.2.0"
package examples
import turbolift.Extensions._
import enterprise.Response
import enterprise.server.{Server, Config}
@main def ex01 =
Server.serve:
@marcinzh
marcinzh / README.md
Created August 16, 2022 22:10
Microbenchmark results for Effect Zoo (go_prompt)

Microbenchmark results for Effect Zoo

Version with go_prompt

image image image image

@marcinzh
marcinzh / README.md
Created August 13, 2022 21:29
Microbenchmark results for Effect Zoo (ZIO 2)

Microbenchmark results for Effect Zoo

Version with ZIO 2, tracing enabled.

image image image image

@marcinzh
marcinzh / README.md
Created August 13, 2022 21:00
Microbenchmark results for Effect Zoo