Live data from Hacker News

Scala.js – Does anyone use it production or plan to use it production ?

news.ycombinator.com

1–10 of 25 posts

Scala.js – Does anyone use it production or plan to use it production ?

#1
Scala is an large investment in time for most programmers, but once you get the hang of it you become very productive. So when facing the task of writing for the frontend, I would like to utilize my investment by using scala.js

Have anyone here had any experience in using Scala.js for any production system or planing to use it in production ?

Re: Scala.js – Does anyone use it production or plan to use it production ?

#2
I have used it for several projects.

I have written a Chrome extension[1] using it which has a thousand or so users.

I use it to make in house visualizations / web based user interfaces for commodities trading. In this use case being able to have statically checked rpcs (via autowire + some modifications) and share domain objects / business logic between client and server really helps keep things DRY & statically checked.

Currently, as a hobby project, I am using it to work on a video game built on top of phaser.js.

As a long time Scala programmer I would strongly recommend it. It's amazing being able to re-use all your domain objects between server and client, and get great performance on both sides.

1: https://github.com/benjaminjackman/looty

Re: Scala.js – Does anyone use it production or plan to use it production ?

#4
My product is completely built on it. Took some ramp-up and rearchitecture time (in particular, SJS is better for a single-page-application than lots of little webpages), but it has enormously increased my productivity since then.

By now, I'm at the point where adding a whole new API and making use of it in the client can be done in minutes -- having Scala end-to-end is a huge win. And having static type checking for the client code means that there are far fewer bugs, so coding the client itself is much quicker and less frustrating. Really, it's the first time in 20+ years that I've enjoyed web programming.

That's just a tiny startup (https://www.querki.net/help/#What-is-Querki -- note that everything you see there is Scala.js), but I don't think it would have been possible without SJS...

Re: Scala.js – Does anyone use it production or plan to use it production ?

#5

I have used it for several projects. I have written a Chrome extension[1] using it which has a thousand or so users. I use it to make in house visualizations / web based user interfaces for commodities trading. In this use case being able to have statically checked rpcs (via autowire + some modifications) and share domain objects / business logic between client and server really helps keep things DRY & statically che…

Do you use any packages as Angular or Polymer together with Scala.js ?

Re: Scala.js – Does anyone use it production or plan to use it production ?

#6
post #5

I have used it for several projects. I have written a Chrome extension[1] using it which has a thousand or so users. I use it to make in house visualizations / web based user interfaces for commodities trading. In this use case being able to have statically checked rpcs (via autowire + some modifications) and share domain objects / business logic between client and server really helps keep things DRY & statically che…

Do you use any packages as Angular or Polymer together with Scala.js ?

I haven't, I have used Facebook's React with it, which works fine.

Re: Scala.js – Does anyone use it production or plan to use it production ?

#7
I'm in the process of introducing Scala.js to the front-end of seventh sense. My navigation and several display components are in production already, with more coming all the time. Once you understand the interop rules and get a unified toolchain in place, it "just works", and as others have said, having access to scala typing and the same, typed, codebase on both front-end and back-end is awesome.

I'm currently using Angular, React and Moment.js on the scala side, so I can confirm JS library interop is possible.

Re: Scala.js – Does anyone use it production or plan to use it production ?

#8
post #4

My product is completely built on it. Took some ramp-up and rearchitecture time (in particular, SJS is better for a single-page-application than lots of little webpages), but it has enormously increased my productivity since then. By now, I'm at the point where adding a whole new API and making use of it in the client can be done in minutes -- having Scala end-to-end is a huge win. And having static type checking for…

Is there anywhere you have felt that you have to work around anything compared to writing it in javascript ? ie. it pans out great when the project is small but when it grows more and more caveats turns up and the gain maid in the start is quickly lost

Re: Scala.js – Does anyone use it production or plan to use it production ?

#9
post #7

I'm in the process of introducing Scala.js to the front-end of seventh sense. My navigation and several display components are in production already, with more coming all the time. Once you understand the interop rules and get a unified toolchain in place, it "just works", and as others have said, having access to scala typing and the same, typed, codebase on both front-end and back-end is awesome. I'm currently usin…

How would you describe the level of effort needed to deal with the interop ? "Is possible" can range from "Its possible" to "Very nice" :)
Post reply on HN