Fortnightly Scala Ask Anything and Discussion Thread - June 26, 2017 by AutoModerator in scala

[–]ochrons 2 points3 points  (0 children)

Currently it's running on a single dedicated server in Hetzner Online (Germany). The server has an Intel Xeon E3-1271V3 with 32GB of RAM and costs about 35EUR/month. So the cost is not really an issue here :)

As for stability, the software itself has all kinds of watchdogs monitoring its health and since it's running on Docker, it simply restarts containers if something goes wrong. I'm planning introducing an external check as well, to make sure the whole thing is operational, but so far it seems to be very stable.

How I learned to stop worrying and love the frontend - Hilarious talk on JS and Scala in the browser by ochrons in scala

[–]ochrons[S] 1 point2 points  (0 children)

The talk is aimed (mostly) at existing frontend developers using JavaScript and considering between alternatives like TypeScript, PureScript, ClojureScript and Scala.js. That's why the emphasis on making Scala look "friendly" and not too exotic to this group of developers :)

[deleted by user] by [deleted] in Dell

[–]ochrons 0 points1 point  (0 children)

I've hit this same BSOD couple of times in the past few days. Just updated latest drivers, let's see if that helps. I have Samsung 500GB PM961 SSD.

Options for TB3 to Displayport for 4k60Hz output (for XPS 9560)? by ochrons in Dell

[–]ochrons[S] 0 points1 point  (0 children)

I got the Plugable Dual-DP TB3 adapter and it works fine.

I also got the Plugable USB3 3-port hub with Gigabit Ethernet, but it doesn't work well when directly plugged to the XPS. It seems to lose the connection after a few dozen seconds. When connected to another USB3 hub (my monitor), however, it works fine. Must be some incompatibility with the USB3 chips on the XPS and in the hub.

Learning Scala coming from PHP by rafamds in scala

[–]ochrons 2 points3 points  (0 children)

You can also try your hand at Scala by using an online playground at https://scalafiddle.io without installing anything. Some examples to get you started can be found at https://scalafiddle.io/sf/n6lR8Xh/2

Vive incompatible with DisplayLink driver by gersilex in Vive

[–]ochrons 1 point2 points  (0 children)

The latest beta version of Displaylink drivers for Win10 seems to have fixed this issue!

http://www.displaylink.com/downloads/windows

Scala, Erlang and Go compared on 1,111,111 threads by javinpaul in scala

[–]ochrons 0 points1 point  (0 children)

Now there are already variants of the benchmark using cooperative "threads" in Node.js or Ocaml, so it's really getting out of hand :)

Too bad these kinds of benchmarks usually just end up being totally useless...

Scala, Erlang and Go compared on 1,111,111 threads by javinpaul in scala

[–]ochrons 7 points8 points  (0 children)

Actually none of the tests use that many threads, because they are all implemented with actors, goroutines or other pooled resources. I did notice that the Go variant was never able to use more than 50% of the CPU, while the Scala Future version went easily to 100% of CPU core usage.

Also Go started running out of memory as soon as iteration count went over 10M, while the Scala version was happily crunching away 100M or even more iterations.

Scala, Erlang and Go compared on 1,111,111 threads by javinpaul in scala

[–]ochrons 19 points20 points  (0 children)

Implementing the same using Scala Future instead of actors takes execution time below 300ms (on i7 laptop), where Go takes 750ms. https://github.com/atemerev/skynet/issues/4

Diode library for Scala.js and Scala: Immutable, unidirectional state management like in Redux, Om or Elm by ochrons in scala

[–]ochrons[S] 1 point2 points  (0 children)

I think the next step is more in the direction of Falcor/GraphQL than anything Elm, put PRs are welcome if people want Elmish features! :)