Skip to content

Commit

Permalink
Merge branch 'scala:main' into zh-cn/overviews/scala3-book/scala-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
benluo authored Nov 18, 2023
2 parents 168bfc1 + 5f6168e commit 1f99707
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ruby:3.0.5

RUN gem install bundler:2.4.7
RUN gem install bundler:2.4.21

WORKDIR /srv/jekyll

Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ GEM

PLATFORMS
arm64-darwin-22
arm64-darwin-23
x64-mingw-ucrt
x86_64-linux

Expand All @@ -277,4 +278,4 @@ DEPENDENCIES
webrick

BUNDLED WITH
2.4.7
2.4.21
23 changes: 23 additions & 0 deletions _books/3-scala-for-the-impatient.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "Scala for the Impatient"
link: https://horstmann.com/scala/
image: /resources/img/books/scala_for_the_impatient.jpg
status: Updated for Scala 3
authors: ["Cay Horstmann"]
publisher: Addison-Wesley Professional
publisherLink: https://www.oreilly.com/publisher/addison-wesley-professional/
---

What you get:

* Up to date coverage of Scala 3
* A rapid introduction to Scala for programmers who are competent in another language such as Java, C#, Python, JavaScript, or C++
* Blog-length chunks of information that you can digest quickly
* An organization that you'll find useful as a quick reference

What you don't get:

* An introduction into programming or object-oriented design
* Religion about the superiority of one paradigm or another
* Cute or academic examples
* Mind-numbing details about syntax minutiae
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
---
title: "Functional Programming in Scala"
link: https://www.manning.com/books/functional-programming-in-scala
image: /resources/img/books/FPiS_93x116.png
status: Covers Scala 2; Scala 3 version in early-access
authors: ["Paul Chiusano", "Rúnar Bjarnason"]
link: https://www.manning.com/books/functional-programming-in-scala-second-edition
image: /resources/img/books/FPiS_93x116.jpg
status: Updated for Scala 3
authors: ["Michael Pilquist", "Paul Chiusano", "Rúnar Bjarnason"]
publisher: Manning
publisherLink: https://www.manning.com/
---

"Functional programming (FP) is a style of software development emphasizing functions that don't depend on program state... Functional Programming in Scala is a serious tutorial for programmers looking to learn FP and apply it to the everyday business of coding. The book guides readers from basic techniques to advanced topics in a logical, concise, and clear progression. In it, you'll find concrete examples and exercises that open up the world of functional programming."

Foreword by Martin Odersky.

The [Scala 3 version](https://www.manning.com/books/functional-programming-in-scala-second-edition), co-authored by Michael Pilquist, is in early-access as of February 2022.
Forewords by Daniel Spiewak and Martin Odersky.
2 changes: 1 addition & 1 deletion _overviews/compiler-options/optimizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The Scala compiler has included an inliner since version 2.0. Closure eliminatio

The optimizer was re-written for Scala 2.12 to become more reliable and powerful – and to side-step the spelling issue by calling the new flag `-opt`. This post describes how to use the optimizer in Scala 2.12 and 2.13: what it does, how it works, and what are its limitations.

The options were simplified for 2.13.9, as described here. The [earlier version](https://www.lightbend.com/blog/scala-inliner-optimizer) of this article uses the traditional forms, which are still supported.
The options were simplified for 2.13.9. This page uses the simplified forms.

## Motivation

Expand Down
7 changes: 0 additions & 7 deletions _sips/sips/proper-specification-for-match-types.md

This file was deleted.

2 changes: 1 addition & 1 deletion _tour/variances.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ catSerializer.serialize(Cat("Felix"))
abstract class Serializer[-A]:
def serialize(a: A): String

val animalSerializer: Serializer[Animal] = Serializer[Animal]():
val animalSerializer: Serializer[Animal] = new Serializer[Animal]():
def serialize(animal: Animal): String = s"""{ "name": "${animal.name}" }"""

val catSerializer: Serializer[Cat] = animalSerializer
Expand Down
4 changes: 2 additions & 2 deletions books.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ redirect_from:
- /documentation/books.html
---

More and more books being published about Scala every year. Here, you can find
just a small selection of the many available titles.
More books about Scala are published every year. This is
only a selection of the available titles.

<br>

Expand Down
Binary file added resources/img/books/FPiS_93x116.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/img/books/FPiS_93x116.png
Binary file not shown.
Binary file added resources/img/books/scala_for_the_impatient.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/img/books/scala_for_the_impatient.png
Binary file not shown.

0 comments on commit 1f99707

Please sign in to comment.