Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
//> using scala 3.3 | |
import scala.util.{Failure, NotGiven, Success, Try, boundary} | |
import boundary.{Label, break} | |
import scala.annotation.targetName | |
/** | |
* Proof of concept implementation of a syntax similar to Kotlin and | |
* typescript. Within the context provided by [[getEither]], you can call | |
* `?` on any optional/failable type (currently supports [[Option]], |
Thank you for your work on Bleep! Developing a first-class Scala build experience that goes beyond Sbt is a daunting task, but one I believe is very much necessary for the health of industrial Scala.
Some preliminary thoughts:
Thank you for having a look and sharing your thoughts around this, greatly appreciated!
- I love that you went build-as-data. Tooling matters, and the build tool is the center of the entire tooling pipeline. Other tools need the ability to both read and write build data, and this can only be done economically with build-as-data.
Bleep is an experiment of thow far we can take build-as-data. So far I see no limits 🚀
I just read this trick for text compression, in order to save tokens in subbsequent interactions during a long conversation, or in a subsequent long text to summarize.
It's useful to give a mapping between common words (or phrases) in a given long text that one intends to pass later. Then pass that long text to gpt-4 but encoded with such mapping. The idea is that the encoded version contains less tokens than the original text. There are several algorithms to identify frequent words or phrases inside a given text, such as NER, TF-IDF, part-of-speech (POS) tagging, etc.
// ---------------------------------------------------------------- | |
// ▗▄▄▄▖ █ | |
// ▐▛▀▀▘ ▐▌ ▀ | |
// ▐▌ ▝█ █▘▐███ ▟█▙ ▐▙██▖▗▟██▖ ██ ▟█▙ ▐▙██▖▗▟██▖ | |
// ▐███ ▐█▌ ▐▌ ▐▙▄▟▌▐▛ ▐▌▐▙▄▖▘ █ ▐▛ ▜▌▐▛ ▐▌▐▙▄▖▘ | |
// ▐▌ ▗█▖ ▐▌ ▐▛▀▀▘▐▌ ▐▌ ▀▀█▖ █ ▐▌ ▐▌▐▌ ▐▌ ▀▀█▖ | |
// ▐▙▄▄▖ ▟▀▙ ▐▙▄ ▝█▄▄▌▐▌ ▐▌▐▄▄▟▌▗▄█▄▖▝█▄█▘▐▌ ▐▌▐▄▄▟▌ | |
// ▝▀▀▀▘▝▀ ▀▘ ▀▀ ▝▀▀ ▝▘ ▝▘ ▀▀▀ ▝▀▀▀▘ ▝▀▘ ▝▘ ▝▘ ▀▀▀ | |
// ---------------------------------------------------------------- |
package jp.rdlabo.capacitor.plugin.screenshotevent; | |
import com.getcapacitor.JSObject; | |
import com.getcapacitor.NativePlugin; | |
import com.getcapacitor.Plugin; | |
import com.getcapacitor.PluginCall; | |
import com.getcapacitor.PluginMethod; | |
import com.getcapacitor.util.HostMask; | |
import android.os.FileObserver; |
import scala.concurrent.{Await, ExecutionContext, Future, Promise} | |
import cats.implicits._ | |
import scala.concurrent.duration.Duration | |
import scala.util.{Failure, Success} | |
final case class FutureConcurrentEffect()(implicit ec: ExecutionContext) extends FutureEffect with ConcurrentEffect[Future] { | |
def start[A](fa: Future[A]): Future[Fiber[Future, A]] = Future.successful { | |
FutureFiber(fa) | |
} |