Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I would like to use Couchbase in a Play Framework + Scala project. I have seen Scala based Play Modules like, https://github.com/leon/play-salat, to hook up Play and MongoDB. Just wondering if anyone has done anything similar for Couchbase or if anyone has used Couchbase with Play before?
A recent article by Michael Nitschinger might be of some use to you. He implemented the couchbase solution using java, but implementation in scala should be pretty straight forward. You can find the article here.
I have used Play framework + Scala + Couchbase and it works like a charm!
I can certainly recommend you to use it.
There are modules that you can use to make it real easy to use:
http://reactivecouchbase.org/
It includes a very good tutorial and samples.
If it is not listed on the modules page, it probably doesn't exist (or isn't used on large-scale).
You can always check/use/transform/tweak the Java version(s) of existing framework and create a module for the community! ;)
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am looking for Pubnub alternatives in Codename One for real time communication. Are there available cn1libs for Pusher for example? If there is not one, is it possible to write a cn1lib using the existing Android and iOS libraries for Pusher?
I really like pubnub and it has a pretty generous free tier but these sort of discussions are discouraged on stackoverflow so I'll answer the question of "Is it possible to write a cn1lib using the existing Android/iOS libraries of an SDK?"
Yes. We even have a tutorial on doing this in the developer guide here. Steve also made some videos covering the subject here.
We have not explicitly tried our Ably realtime client libraries with Codename One, however they are built with portable Java and should therefore work. We are a very appealing alternative to PubNub and Pusher.
Matt, co-founder of Ably: simply better realtime
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Currently, I am using finagle Scala web framework as microservice for our project, They are very easy to use and also convenient to be deployable. At the same time, my colleague are trying to use Play framework for micro service, but I think it is too huge. It is not micro anymore.
May I know what is your opinion about this and is there any other good microservice framework in scala should be taken into consideration ?
Many thanks in advance
We switched from Finagle to Spray. It's minimal framework to write RESTful micro services, much smaller than Play. It's literally takes less than 10 lines of spray-based code to run new service.
If you don't plan to build web UI with play I don't see why to use this heavy framework for building just REST services.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
What language is Scala written in?
Where does one get the source code of Scala? i'm looking for the Scala source itself, not a project written in Scala.
Note: I've seen https://stackoverflow.com/questions/2135966/where-do-i-find-an-open-source-project-written-in-scala among some other discussions here.
Scala is [now] written in Scala. This process (of creating a language/compiler that can be used to build itself) is known as "bootstrapping".
The scalac source code can be found on GitHub scala/scala:
[GitHub scala] is the repository for the Scala Programming Language.
For the "compiler guts", start looking in nsc - New Scala Compiler.
Also see the Scala Developer Documentation "portal" which briefly hints how newer Scala/scalac versions are layered on top of previous builds.
Scala is written in Scala itself, and I think user2864740 has already explained a little bit about 'bootstrap'.
For the source code exploring, Github is definitely a good place, but I happened to know a good place Codatlas to view Scala Source Code, which provides some very essential IDE features, like jump to definition and cross reference. To me it has better code browsing experience than GitHub on the web.
For example, Array class is a good place to start.
I used it a lot recently to view Scala source code. Hope this helps.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Are there are any examples, tutorials or docs for serialization / pickling / marshalling objects in Scala? I know of existence of scala.util.Marshal and scala.reflect.internal.pickling, but what is a difference between them? how can I use it? Is that some experimetal feature or can I use it in production ... ?
You should use either java serialization (I recommend using the Externalizable approach for complex cases). You can find lots of tutorials by googling "java serialization tutorial".
If you want to stay in Scala, you should have a look to SBinary which uses composable type classes. The project seems old and unmaintained but works like a charm with Scala 2.9.2. There's a tutorial link in the README and I'm currently writing another one.
Not sure about the requirements you have, but it's worth looking at Google's Protocol Buffers and Apache Thrift. Both provide efficient mechanism for serialization.
There is a Protocol Buffers scala compiler ScalaBuff
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I notice there is an sbaz tool that seems to have similar functionality to the ruby gem tool but I don't see any community site like gemcutter.org / rubygems.org. Is there something like this around.
There are 1084 repositories on github with scala in them. I'm surprised I can't find some centralized package management utility. Perhaps I'm just googling the wrong keywords.
The closest equivalent is probably http://scala-tools.org which maintains a Maven (ivy, sbt, etc) repository of most of the best-known packages.
Scala Tools appears to no longer be functional as of this writing. It says:
We are no longer providing any support for scala-tools.org.
Instead, it is suggested to use https://oss.sonatype.org/
As Kris said, http://scala-tools.org is the closest thing so far. We're working on improving the site, and will be enabling "static project sites" shortly. There's also http://implicit.ly/ which aims to be the standard new source for published releases.