scastie
Scala.js
scastie | Scala.js | |
---|---|---|
10 | 34 | |
432 | 4,591 | |
0.2% | 0.5% | |
7.7 | 9.1 | |
17 days ago | 7 days ago | |
Scala | Scala | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
scastie
- How to select union type branch in a for comprehension?
-
Free Monads from Scratch
From personal experience Scala also works. It's 100% possible to learn monads using https://scastie.scala-lang.org/ as a scratch pad.
- Scastie now blocks russian IPs
-
New to Scala
Instead I typically use https://scastie.scala-lang.org, or an ammonite script, or just create a new file that extends App in my test directory. The thing that worksheets do better is that you can import things from your project (like the little app in the test dir) but they also show runtime values (like repl or scastie). However I've just never gotten them to actually work.
- I've entered a state of helplessness while learning scala
-
Switching to a Scala position soon, where should I start?
I strongly recommend you play around with the local Scala REPL. I have Scala 2.13 on my main dev computer and Scala 3 on my other computer. The local REPL will let you know when things are deprecated and give you hints as to what you should use instead. Scastie https://scastie.scala-lang.org/ can also be a big help.
-
Scala or Go: Who Wore It Better?
Operationally, as you might expect from a language borne from academia, Scala tooling can be problematic and compilation can be slow--particularly if you are not yet using Scala 3, which only recently emerged and is very slowly percolating through the ecosystem (Remember the Python 2 to Python 3 transition?). But type inference, a vast standard library, and the time-tested reliability of the JVM make you very productive once you get the hang of them. Performance varies with the JVM you're running, but regardless you do have to contend with the size of compiled objects and the latency of garbage collection at runtime. When you want to experiment, you can skip the ceremony of writing a class or test and instead use a command-line REPL, an online REPL called Scastie you can share, or an outstanding third-party command-line REPL called Ammonite. Dependency management is achieved with SBT typically but also more general JVM build tools like Gradle and Maven.
-
I just rebuilt Tour of Scala from scratch - let me know what you think
I am using https://scastie.scala-lang.org/ which does compile server side in Scala. The UI is a bit hard to handle tho.
-
The future of Scaladoc
https://github.com/scalacenter/scastie#how-do-i-embed-scastie
Scala.js
-
The dangers of single line regular expressions
`$` does mean end of input in Java, unless you explicitly ask for multiline mode. In the latter case it means `(?=$|\n)` if also in Unix-lines mode, and the horrible `(?=$|(?I wrote a compiler from Java regex to JavaScript RegExp, in which you'll find that particular compilation scheme [1].
[1] https://github.com/scala-js/scala-js/blob/eb160f1ef113794999...
- Typescript FP Job?
-
Reconnecting with Scala. What's new?
Links: - https://dotty.epfl.ch/ - https://scala-native.org/en/stable/ - https://www.scala-js.org/ - https://typelevel.org/ - https://zio.dev/ - https://github.com/scala-native/scala-native/pull/3120 - https://github.com/lampepfl/dotty/pull/16517 - https://dotty.epfl.ch/docs/reference/experimental/index.html - https://scala-cli.virtuslab.org/ - https://scalameta.org/metals/ - https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html - https://www.scala-lang.org/blog/2023/04/18/faster-scalajs-development-with-frontend-tooling.html - https://www.scala-lang.org/blog/2022/08/17/long-term-compatibility-plans.html
-
Rust on Espressif chips โ 2023 Roadmap
> Scala choices were directly dictated by JVM
Initially, yes. But Scala has evolved beyond the JVM, with Scala.js [1] being rock-solid, and Scala Native [2] under development. Neither are truly hampered by the initial JVM roots of Scala.
> Scala gives you a better horse
Weird analogy ;)
[1] https://www.scala-js.org/
- 10 years of Scala.js
-
Looking for an alternative to Javascript
Have you had a look at Scala.js yet? Also see "Scala.js for JavaScript developers." and "Tour of Scala."
-
Contrary to popular belief, Scala is actually a quite small and simple language
What does that have to do with language size? It also compiles to js https://www.scala-js.org/ and native https://scala-native.org/en/stable/
-
Switch JS job for Scala internship?
Here's a hybrid option: Scala.js. Yes, it is about building web applications but in Scala. You can retain the HTML/CSS/JS knowledge you have but build web applications from a typesafe and powerful language: Scala
-
Dropping Scala 2.11 support in Scala.js and Scala Native
The compiler crash in question affects another feature that we would like to merge for the benefit of all users, namely https://github.com/scala-js/scala-js/pull/4735. Keeping 2.11 means that testing and shipping that feature is much more difficult, even for 2.12+ users only. It's not just "to fix a compiler crash".
-
Windows decide whether your computer has limited or full Internet access
TS is more in the "mixed feelings" department, imho.
I would take Scala.js anytime instead. (If I would need to do front-end ever again).
https://www.scala-js.org/
What are some alternatives?
tour-of-scala - Tour of Scala - Scala classes
scalajs-react - Facebook's React on Scala.JS
Hugo - The worldโs fastest framework for building websites.
js-scala - js.scala: JavaScript as an embedded DSL in Scala
Play WS - Standalone Play WS, an async HTTP client with fluent API
React4s - Production ready React wrapper for Scala.js - composable lifecycle - no memoization, no macros, no implicits.
metabrowse - Static site generator for code search with IDE features for Scala
sri
Akka - Build highly concurrent, distributed, and resilient message-driven applications on the JVM
awesome-wasm-langs - ๐ A curated list of languages that compile directly to or have their VMs in WebAssembly
terraform-aws-lambda - Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations ๐บ๐ฆ
Laminar - Simple, expressive, and safe UI library for Scala.js