On Fri, May 24, 2013 at 12:23 AM, Paulo Pinto <paulo....@gmail.com> wrote:
That belongs to "could be easily done in any strong typed modern
language".Let's ask the opposite question:Can you please give an example that couldn't be "easily" done in a strong typed modernlanguage? (how easy could be regarded as "easily"?)
On 23 Mai, 17:37, minux <minux...@gmail.com> wrote:
> On Thu, May 23, 2013 at 10:50 PM, Paulo Pinto <paulo.jpi...@gmail.com>wrote:
>
> > Well to be honest, all the projects that are known where Go is being
> > used at Google, could be easily
> > done in any strong typed modern language free from C and C++ pre-
> > historic toolchains.
>
> > Until a big Google project is shown being done in Go, people will
> > doubt how much it is really being used
>
> code.google.com/p/vitess ?--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
As for Spark, as with LINQ, that kind of terse functional method-calling in Go is, AFAIK, impossible. But, again, look at Storm's API for doing realtime computation: https://github.com/nathanmarz/storm/blob/master/storm-core/src/jvm/storm/trident/tuple/TridentTuple.java. You see the exact same kind of thing. If Storm can do it with a low-level API thats basically untyped, I don't see why Go couldn't.
JavaRDD<String> words = lines.flatMap(new FlatMapFunction<String, String>() {public Iterable<String> call(String s) {return Arrays.asList(s.split(" "));}});JavaPairRDD<String, Integer> ones = words.map(new PairFunction<String, String, Integer>() {public Tuple2<String, Integer> call(String s) {return new Tuple2<String, Integer>(s, 1);}});JavaPairRDD<String, Integer> counts = ones.reduceByKey(new Function2<Integer, Integer, Integer>() {public Integer call(Integer i1, Integer i2) {return i1 + i2;}});
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
It also uses the same Tuple class for this purpose, and as far as I could tell, could be implemented exactly the same in Go, without any need for serialization and deserialization (until the shuffle phase, of course).
I have no experience with Spark, so I don't know enough about it to comment. But from my casual perusal of their website, I believe that Storm solves a harder problem than Spark.
Also, out of curiosity, how does Spark manage to have generics of value types? As far as I know, the limitation is not a Java limitation, but a JVM one, so unless Spark has a custom compiler and runtime, I don't see how they could be doing generics without boxing, and allocation.
https://github.com/dgryski/dmrgo
https://github.com/jehiah/gomrjob
Damian
I will give two that cannot be "easily" done with Go. I'd love to be proven wrong here:1. MapReduce.