Skip to content

Commit 1e96e8d

Browse files
Merge pull request #603 from ashawley/scastie-grammar
Grammar fixes to Scastie blog post
2 parents 9d29cf8 + c0e4d07 commit 1e96e8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

blog/_posts/2017-02-20-introducing-scastie.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ Scastie can run any Scala program with any library in your browser. You don't ne
1515

1616
[![scastie](/resources/img/blog/scastie/scastie.png)](/resources/img/blog/scastie/scastie.png)
1717

18-
We run your code in an isolated Java Virtual Machine on our servers. We allow you to specify the Scala version, add libraries and much more. By default, we instrument your code to provide a REPL-like environment. You can also format your code with [scalafmt](https://olafurpg.github.io/scalafmt/). We integrated a [scaladex](https://index.scala-lang.org/) interface to allow you to search the Scala ecosystem and include any published Scala library in your project. You don't need to remember the latest version of a specific library anymore!
18+
We run your code in an isolated Java Virtual Machine on our servers. We allow you to specify the Scala version, add libraries and much more. By default, we instrument your code to provide a REPL-like environment. You can also format your code with [scalafmt](https://olafurpg.github.io/scalafmt/). We integrated a [scaladex](https://index.scala-lang.org/) interface to allow you to search the Scala ecosystem and include any published Scala library in your project. You don't need to remember what the latest version number of a specific library is anymore!
1919

2020
Let's see it in action.
2121

2222
<iframe width="610" height="315" src="https://www.youtube.com/embed/ugFgdncsxEQ" frameborder="0" allowfullscreen></iframe>
2323

24-
In this exampe, we use scrimage, which is a simple image library. We download an image, apply a sepia filter and serve both images back to the browser.
24+
In this example, we use scrimage, which is a simple image library. We download an image, apply a sepia filter and serve both images back to the browser.
2525

2626
## How does Scastie work?
2727

2828
When a user evaluates their code, the browser sends all its input to our server. Based on the configuration, it will forward the evaluation to an sbt instance. The output will be streamed back to the user. A specific protocol will allow the client to interpret different events such as compiler errors, runtime exceptions, instrumentation, console output, etc.
2929

3030
Using sbt behind the scenes makes it possible for us to support a large range of platforms (Scalac, Dotty, Scala.js, Scala Native, and Typelevel Scala). In our beta, we've included support for any version of Scalac as well as all published versions of Dotty. Support for other platforms, such as Scala.js or Scala Native is forthcoming. Basing Scastie on sbt allows us to support newer Scala versions and resolve library dependencies.
3131

32-
We also enable a worksheet mode, which feels much like a worksheet in an IDE. This lets a user write code as top-level expressions, without having to put code inside of a class or object with a main method. Worksheet mode gives you two ways to interleave your results; on the one hand, when an expression is evaluated, you can see the value and type of the evaluated expression to the right of the code that you wrote. On the other hand, worksheet mode also makes it possible to do a kind of literate programming; that is, you may interleave code and HTML blocks much like in notebook environments like iPython notebooks.
32+
We also enable a worksheet mode, which feels much like a worksheet in an IDE. This lets a user write code as top-level expressions, without having to put code inside of a class or object with a main method. Worksheet mode gives you two ways to interleave your results; on the one hand, when an expression is evaluated, you can see the value and type of the evaluated expression to the right of the code that you wrote. On the other hand, worksheet mode also makes it possible to do a kind of literate programming; that is, you may interleave code and HTML blocks much like in notebook environments such as iPython notebooks.
3333

3434
## What's next?
3535

0 commit comments

Comments
 (0)