sjrd on 0.6.x
Remove dead code: specific coll… Adapt the signature of `js.Arra… Merge pull request #3554 from s… (compare)
sjrd on master
Fix analyzer cycle detection to… Add toString methods to analyze… Do not provide linked ClassInfo… and 1 more (compare)
sjrd on master
Remove Logger.success It is un… Make level helpers final Clean-up ScalaConsoleLogger cod… and 1 more (compare)
Related to SJS bundler - is there any appetite for native Scala JS bundler? I've realised that people don't shy away from writing bundlers in different languages (e.g. https://github.com/evanw/esbuild)
So may be SJS can benefit from one as well? To avoid shelling out and paying webpack's performance penalty
Just written in Scala, designed to be used with Scala.js and ScalablyTyped, for example.
At the moment scalajs-bundler shells out to local webpack CLI, which, apart from being webpack and kinda slow, causes some issues for me on WSL 2.
So without fully grasping how much of a horror show this undertaking will be, I was thinking that may be it's possible to write one from scratch in Scala
<script type=module>support in browsers?
Ok; that's pretty exciting, I quickly hacked a "real-time" audio output node for WebAudio - https://www.sciss.de/temp/soundprocesses.js/ - it kinda works, at least on a fast computer despite using ScriptProcessorNode, and the framework is not at all optimised for real-time through-put (throwing around sound buffers with Akka-Stream). https://www.sciss.de/temp/soundprocesses.js/
It's just filtered white noise with sine-modulated cut-off frequency for the lowpass
val n = WhiteNoise() val SR = 48000 val modFreq = Seq[GE](0.1, 0.123).map(_ / SR) val freq = SinOsc(modFreq).linExp(-1, 1, 200, 2000) val f = LPF(n, freq / SR) val sig = f * 100 Frames(sig.out(0)).poll(Metro(SR), "metro") WebAudioOut(sig)
well, fscape is pretty straight forward imperative array manipulation as you'd expect for DSP, but within Akka Stream graphic stage logic, so that's a bit funny in terms of push/pull and back-pressure. but i never made any attempt to find bottle necks, just intuitive choices for buffering.
by the way, is there a performance advantage of
Array[Double]? or are the latter basically represented by JS native arrays?
using sbt-crossproject, I'm running into a problem in that
sbt +publishSigned publishes jvm and js artefacts, but then ultimately fails, I think for the Scala version that is shared between JVM and JS (JVM 2.13), saying
Repository for publishing is not specified.. Any idea?
lazy val root = crossProject(JSPlatform, JVMPlatform).in(file(".")) .settings(commonSettings) // scalaVersion := "2.13.3" .settings(publishSettings) // publishTo := ... .settings( name := "scala-stm", ) .jvmSettings( crossScalaVersions := Seq("0.27.0-RC1", "2.13.3", "2.12.12", "2.11.12"), ) .jsSettings( crossScalaVersions := scalaVersion.value :: Nil, )
publishSettings clearly defines
sbt ++2.13.3 rootJVM/publishSigned, but it's weird that it doesn't work within
You can check in the release notes: https://www.scala-js.org/news/2020/10/16/announcing-scalajs-1.3.0/
And I think you're safe:
* It is backward binary compatible with all earlier versions in the 1.x series: libraries compiled with 1.0.x through 1.2.x can be used with 1.3.0 without change.
Hi, I tried to update up to
1.3.0 but I had troubles so want to downgrade to
1.2.0 but now I can't do it.
because of this error:
[error] org.scalajs.ir.IRVersionNotSupportedException: Failed to deserialize a file compiled with Scala.js 1.3 (supported up to: 1.2): /home/elyphas/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-js/scalajs-library_2.13/1.3.0/scalajs-library_2.13-1.3.0.jar:/scala/Tuple12$.sjsir [error] You may need to upgrade the Scala.js sbt plugin to version 1.3 or later. [error] at org.scalajs.sbtplugin.ScalaJSPluginInternal$.enhanceIRVersionNotSupportedException(ScalaJSPluginInternal.scala:83) [error] at org.scalajs.sbtplugin.ScalaJSPluginInternal$.$anonfun$scalaJSStageSettings$15(ScalaJSPluginInternal.scala:220) [error] at sbt.util.FileFunction$.$anonfun$cached$1(FileFunction.scala:80) [error] at sbt.util.FileFunction$.$anonfun$cached$4(FileFunction.scala:153) [error] at sbt.util.Difference.apply(Tracked.scala:414
any idea? please.
by the way I had
[warn] scalajs-library_2.13-1.3.0.jar no longer exists at /home/elyphas/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-js/scalajs-library_2.13/1.3.0/scalajs-library_2.13-1.3.0.jar [warn] scalajs-library_2.13-1.2.0.jar no longer exists at /home/elyphas/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-js/scalajs-library_2.13/1.2.0/scalajs-library_2.13-1.2.0.jar