由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Linq不是syntactic sugar
相关主题
JAVA的确是要取代C++的[合集] 编程的习惯问题
C# 的一些新feature.C++ 无效语句?
有什么课是用PYTHON 语言讲算法的? (转载)What is wrong in this array declaration.
问下java大牛平时都做些啥工作metaprogramming
c++ size_t 一问Question about a C++ compilation error on Visual Studio 2005
三个C syntax 弱问题程序怎么不认识class, namespace等identifier呀?
a question abou dll, 3x!!From C++ to C
来几个C++测试题operator overloading (C++)
相关话题的讨论汇总
话题: linq话题: java话题: sugar话题: syntactic话题: c#
进入Programming版参与讨论
1 (共1页)
n*w
发帖数: 3393
1
c#的property是,
所有语言的array[i,j]写法是
+, -, *, / overloading 是
但linq不是,linq会用到expression tree,把代码存储成数据。再转化成其他东西,
比如sql。不是java能有的expressive power。
k*****a
发帖数: 1463
2
As some suggested, there is lot of syntactical sugars from either java or C#
.
However, the language features are something that makes them different
typing( reified generics, use-site covariance, late/dynamic binding).
functional programing (expression tree, closures, lambda).
for these to work as C#, java developer need to add own logical coding (and
associated tests) to achieve and (verify) it.

【在 n*w 的大作中提到】
: c#的property是,
: 所有语言的array[i,j]写法是
: +, -, *, / overloading 是
: 但linq不是,linq会用到expression tree,把代码存储成数据。再转化成其他东西,
: 比如sql。不是java能有的expressive power。

g*****g
发帖数: 34805
3
Whatever you want to believe. Language is much more than syntax sugar. If
you really want to compare features, C# is dwalfed by Scala, among tons of
other languages. So what? Does it make Scala a more popular language? Does
it make a Scala a more useful language?
I can only LOL when you can't bring an application that can't be implemented
by Java yet masterburbating on Linq all day long. Linq can't even implement
hadoop yet Linq is so groundbreaking. On the other hand, I've
showed you plenty of counter examples, from libraries to products. Who cares
if Linq is syntax sugar or not if it has not killer app to back it up? At
least Scala had a powerful Actor framework to show off its FP features.
n*w
发帖数: 3393
4
The purpose of post is to correct the wrong sugar statement.
Scala should be compared with f#, Haskell, etc.
I care less about killing apps. I enjoy the high productivity brought by
these features when coding. this is off topic.

implemented
implement
cares

【在 g*****g 的大作中提到】
: Whatever you want to believe. Language is much more than syntax sugar. If
: you really want to compare features, C# is dwalfed by Scala, among tons of
: other languages. So what? Does it make Scala a more popular language? Does
: it make a Scala a more useful language?
: I can only LOL when you can't bring an application that can't be implemented
: by Java yet masterburbating on Linq all day long. Linq can't even implement
: hadoop yet Linq is so groundbreaking. On the other hand, I've
: showed you plenty of counter examples, from libraries to products. Who cares
: if Linq is syntax sugar or not if it has not killer app to back it up? At
: least Scala had a powerful Actor framework to show off its FP features.

g*****g
发帖数: 34805
5
Linq is a syntax sugar. What Linq can do, collection operation etc. can be
done by Java, in a more verbose way. You are making the wrong statement.

【在 n*w 的大作中提到】
: The purpose of post is to correct the wrong sugar statement.
: Scala should be compared with f#, Haskell, etc.
: I care less about killing apps. I enjoy the high productivity brought by
: these features when coding. this is off topic.
:
: implemented
: implement
: cares

k*****a
发帖数: 1463
6
This guy typically don't know what he is talking about, neither does he
understand the context. His intention really begs to ask whether he is able
to follow the logic and understood the questions.
If he don't understand what he is talking about, why bother. When you talk
about A, syntactic sugar , he was thinking you are on topic B ... LOL
What qualifies as syntax sugar? From his statement, he admitted Linq is just
the opposite (introduce logic coding for a sugar).
"Linq is a syntax sugar. What Linq can do, collection operation etc. can be
done by Java, in a more verbose way. You are making the wrong statement."
Well, he went on to comparing product. Linq to write HADOOP? His claimed "
syntax sugar", LINQ, just been assigned to write an application? what a
bonehead! Let's see, Java's "internal class" is going to write
HADOOP.

【在 n*w 的大作中提到】
: The purpose of post is to correct the wrong sugar statement.
: Scala should be compared with f#, Haskell, etc.
: I care less about killing apps. I enjoy the high productivity brought by
: these features when coding. this is off topic.
:
: implemented
: implement
: cares

g*****g
发帖数: 34805
7
I show concrete examples and references, you go in loops making empty points
. Now it proves your ignorance that you don't even know what's syntax sugar.
This is an academic discussion why Linq is a syntax sugar. And back to
hadoop, if M$ chose it to call to Linq to HPC, wouldn't it sound like Linq
is so powerful it can be used to write a Hadoop framework effectively? The
end result, a complete failure.
http://etd.auburn.edu/etd/bitstream/handle/10415/2097/Ahmad%20M
[excerpt]
Syntactic sugar is simply an expression in code that the compiler has the
burden of decomposing and inferring meaning from to determine the intent
behind a statement, where such actions are known as “compiler tricks".
Despite the brevity gained from such expressions, the responsibility of
maintaining readability and performance lies with the developer who must
understand the tradeoffs and appropriateness of the techniques used. LINQ is
comparable to regular expressions in the sense that a brief pattern is
powerful enough to yield results for string parsing and validation
[excerpt]

able
just
be

【在 k*****a 的大作中提到】
: This guy typically don't know what he is talking about, neither does he
: understand the context. His intention really begs to ask whether he is able
: to follow the logic and understood the questions.
: If he don't understand what he is talking about, why bother. When you talk
: about A, syntactic sugar , he was thinking you are on topic B ... LOL
: What qualifies as syntax sugar? From his statement, he admitted Linq is just
: the opposite (introduce logic coding for a sugar).
: "Linq is a syntax sugar. What Linq can do, collection operation etc. can be
: done by Java, in a more verbose way. You are making the wrong statement."
: Well, he went on to comparing product. Linq to write HADOOP? His claimed "

k*****a
发帖数: 1463
8
LINQ is syntactic sugar only with regard to C# language, not to Java. Java
does not have strong typed dynamic or late binding, so to Java it is a
feature.

points
sugar.

【在 g*****g 的大作中提到】
: I show concrete examples and references, you go in loops making empty points
: . Now it proves your ignorance that you don't even know what's syntax sugar.
: This is an academic discussion why Linq is a syntax sugar. And back to
: hadoop, if M$ chose it to call to Linq to HPC, wouldn't it sound like Linq
: is so powerful it can be used to write a Hadoop framework effectively? The
: end result, a complete failure.
: http://etd.auburn.edu/etd/bitstream/handle/10415/2097/Ahmad%20M
: [excerpt]
: Syntactic sugar is simply an expression in code that the compiler has the
: burden of decomposing and inferring meaning from to determine the intent

g*****g
发帖数: 34805
9
So you are spinning again? Strong typed dynamics is useful, but it doesn't
add more functionalities to it. It's like saying strong-typed language have
more functionalities than dynamic-type languages, we all know that's not
true. Linq is like regex, as the academic paper points out.
Java can do reflection and native C++ can't, now that's an example of non-
syntax sugar. I've brought an entire paper to prove it and you keep on
spinning. What more evidence do you need?

【在 k*****a 的大作中提到】
: LINQ is syntactic sugar only with regard to C# language, not to Java. Java
: does not have strong typed dynamic or late binding, so to Java it is a
: feature.
:
: points
: sugar.

n*w
发帖数: 3393
10
Yes, the "from... where... select" is syntactic sugar of the method call way
to write it. They are all linq in c#. linq is a group of technologies

【在 k*****a 的大作中提到】
: LINQ is syntactic sugar only with regard to C# language, not to Java. Java
: does not have strong typed dynamic or late binding, so to Java it is a
: feature.
:
: points
: sugar.

相关主题
三个C syntax 弱问题[合集] 编程的习惯问题
a question abou dll, 3x!!C++ 无效语句?
来几个C++测试题What is wrong in this array declaration.
进入Programming版参与讨论
n*w
发帖数: 3393
11
academic paper. Lol. There are a lot of cs PhD whose direction is
programming language from top schools here. Maybe some of them can comment
on the master "thesis".

have

【在 g*****g 的大作中提到】
: So you are spinning again? Strong typed dynamics is useful, but it doesn't
: add more functionalities to it. It's like saying strong-typed language have
: more functionalities than dynamic-type languages, we all know that's not
: true. Linq is like regex, as the academic paper points out.
: Java can do reflection and native C++ can't, now that's an example of non-
: syntax sugar. I've brought an entire paper to prove it and you keep on
: spinning. What more evidence do you need?

g*****g
发帖数: 34805
12
LOL, I am not going into the religious war. You can believe the entire world
is wrong and that's your choice. I have enough to convince non .NET fanbois
on this board, that does the purpose for me.

【在 n*w 的大作中提到】
: academic paper. Lol. There are a lot of cs PhD whose direction is
: programming language from top schools here. Maybe some of them can comment
: on the master "thesis".
:
: have

n*w
发帖数: 3393
13
I don't see any .net fanboy in the my recent posts. but not sure of java (
program language) religious fanboy.

world
fanbois

【在 g*****g 的大作中提到】
: LOL, I am not going into the religious war. You can believe the entire world
: is wrong and that's your choice. I have enough to convince non .NET fanbois
: on this board, that does the purpose for me.

g*****g
发帖数: 34805
14
What matters is facts, numbers, examples, references, charts. Fanbois base
their belief on what they think. It's easy to find a good match.

【在 n*w 的大作中提到】
: I don't see any .net fanboy in the my recent posts. but not sure of java (
: program language) religious fanboy.
:
: world
: fanbois

n*w
发帖数: 3393
15
linq is monad. Do you believe monad is just syntactic sugar?

【在 g*****g 的大作中提到】
: What matters is facts, numbers, examples, references, charts. Fanbois base
: their belief on what they think. It's easy to find a good match.

g*****g
发帖数: 34805
16
I don't know nothing about monad and I can't comment on that. But C# hasn't
achieved anything Java can't achieve in terms of libraries/products. Good
enough to close the case for syntax sugar debate.

【在 n*w 的大作中提到】
: linq is monad. Do you believe monad is just syntactic sugar?
n*w
发帖数: 3393
17
Why something unrelated to syntactic sugar can close the case of syntactic
sugar?

t

【在 g*****g 的大作中提到】
: I don't know nothing about monad and I can't comment on that. But C# hasn't
: achieved anything Java can't achieve in terms of libraries/products. Good
: enough to close the case for syntax sugar debate.

l*********s
发帖数: 5409
18
neverlearn has successor ^__^
g*****g
发帖数: 34805
19
Because syntactic sugar is to make expressions more concise, not to add more
capabilities to the language. To suggest Linq is more than a syntactic
sugar, you need to show examples like I did with Reflection when comparing
Java and C++, i.e. something Java can do and C++ cannot. Reflection leads to
the likes of IoC and AOP frameworks which is absent from C++ and that's why
it's not a syntax sugar. So far you are going loops and not showing any
libraries c# can implement and Java cannot.

【在 n*w 的大作中提到】
: Why something unrelated to syntactic sugar can close the case of syntactic
: sugar?
:
: t

n*w
发帖数: 3393
20
Omg. you are saying all the Turing compete languages are syntactic sugar of
assembly

more
to
why

【在 g*****g 的大作中提到】
: Because syntactic sugar is to make expressions more concise, not to add more
: capabilities to the language. To suggest Linq is more than a syntactic
: sugar, you need to show examples like I did with Reflection when comparing
: Java and C++, i.e. something Java can do and C++ cannot. Reflection leads to
: the likes of IoC and AOP frameworks which is absent from C++ and that's why
: it's not a syntax sugar. So far you are going loops and not showing any
: libraries c# can implement and Java cannot.

相关主题
metaprogrammingFrom C++ to C
Question about a C++ compilation error on Visual Studio 2005operator overloading (C++)
程序怎么不认识class, namespace等identifier呀?C++ syntax question
进入Programming版参与讨论
k*****a
发帖数: 1463
21
All languages are just syntatic sugar.... as it just made 0/1s more concise.
Talking syntactic sugar without respect to what is idiotic.
You can write C++ to achieve reflection as well with help of your compiler.

more
to
why

【在 g*****g 的大作中提到】
: Because syntactic sugar is to make expressions more concise, not to add more
: capabilities to the language. To suggest Linq is more than a syntactic
: sugar, you need to show examples like I did with Reflection when comparing
: Java and C++, i.e. something Java can do and C++ cannot. Reflection leads to
: the likes of IoC and AOP frameworks which is absent from C++ and that's why
: it's not a syntax sugar. So far you are going loops and not showing any
: libraries c# can implement and Java cannot.

g*****g
发帖数: 34805
22
You are showing off your ignorance. Both Java and C++ are turing complete
languages. Yet I've been able to mark examples like reflection to
differentiate the functionalities.
You are a fanboy arguing for arguing purpose. You want references I show you
academic paper, you want examples I show you examples. What do you have for
arguing Linq is not a syntax sugar? Nothing more than your belief.

of

【在 n*w 的大作中提到】
: Omg. you are saying all the Turing compete languages are syntactic sugar of
: assembly
:
: more
: to
: why

n*w
发帖数: 3393
23
See floor 15.

you
for

【在 g*****g 的大作中提到】
: You are showing off your ignorance. Both Java and C++ are turing complete
: languages. Yet I've been able to mark examples like reflection to
: differentiate the functionalities.
: You are a fanboy arguing for arguing purpose. You want references I show you
: academic paper, you want examples I show you examples. What do you have for
: arguing Linq is not a syntax sugar? Nothing more than your belief.
:
: of

g*****g
发帖数: 34805
24
LOL. This is so called going in loops. With my limited understanding of FP,
Monad is a language construct, not a library. I am asking a library that
cannot be implemented by Java and you show me another language construct.

【在 n*w 的大作中提到】
: See floor 15.
:
: you
: for

l*********s
发帖数: 5409
25
anyway, no more C# vs. Java topics please. It is not longer entertaining and
utterly useless.
Most of us don't get to choose what languages/platform to use, and there is
much more to consider than saving some keystrokes when choosing a technology
.
Java has proved itself with well-known products, and the
market demand will remain sizable for the years to come. I don't like Java's
verbosity, but it is definitely a language I have to learn.
n*w
发帖数: 3393
26
Because you are going in loop and I don't want to answer something I've
answered. The topic is about if linq is syntactic sugar, not comparing
library of the two systems.

,

【在 g*****g 的大作中提到】
: LOL. This is so called going in loops. With my limited understanding of FP,
: Monad is a language construct, not a library. I am asking a library that
: cannot be implemented by Java and you show me another language construct.

g*****g
发帖数: 34805
27
LOL, if you don't want to go in loops, show me libraries/products/papers. I'
ve given enough references and you haven't done any. I agree this discussion
is going nowhere until you have something concrete.

【在 n*w 的大作中提到】
: Because you are going in loop and I don't want to answer something I've
: answered. The topic is about if linq is syntactic sugar, not comparing
: library of the two systems.
:
: ,

n*w
发帖数: 3393
28
I don't think monad is syntactic sugar.

I'
discussion

【在 g*****g 的大作中提到】
: LOL, if you don't want to go in loops, show me libraries/products/papers. I'
: ve given enough references and you haven't done any. I agree this discussion
: is going nowhere until you have something concrete.

N********n
发帖数: 8363
29
LINQ brings the right dose of functional language features to a
static type language IMO. It makes your code elegant and efficient
and yet not really a functional bliz. Scala has more but feels
like an overkill of functional features in comparison.

【在 n*w 的大作中提到】
: c#的property是,
: 所有语言的array[i,j]写法是
: +, -, *, / overloading 是
: 但linq不是,linq会用到expression tree,把代码存储成数据。再转化成其他东西,
: 比如sql。不是java能有的expressive power。

n*w
发帖数: 3393
30
下班浏览的一下goodbug给的那篇硕士thesis。先不说论文质量。通篇也没说linq是
syntactic sugar。
其中涉及linq和syntactic sugar有关系有两处。
1. A number of new features were added to C# 3.0 in order to provide LINQ.
Individually most of these features can be classified as syntactic sugar
that, while helpful in cutting down on the tediousness of repetitive code,
have viable – albeit more verbose – workarounds in the language。
这里讲到linq用了c# 3.0里syntactic sugar的语言features。最明显的应该是type
inference。很多情况linq返回的type非常复杂。type inference在这里是极方便。
2. The query expression syntax resembles a SQL query in reverse and is
syntactic sugar that is ultimately compiled to the dot notation syntax.
这里讲sql-like的linq syntax是dot notation写法linq的syntactic sugar。是的linq
有两种写法。
标题也是,The Impact of Syntactic Sugar **and** Language Integrated Query on
Performance。当时看到题目就奇怪,syntactic sugar编译后和非syntactic sugar一
样。有什么好比的。里面比了linq和非linq。
相关主题
int F::*x = &F::x是什么意思?C# 的一些新feature.
Python 缩进的syntax有什么课是用PYTHON 语言讲算法的? (转载)
JAVA的确是要取代C++的问下java大牛平时都做些啥工作
进入Programming版参与讨论
g*****g
发帖数: 34805
31
通篇就只一个技术,linq,标题是syntax sugar,原来是不相干的。
作者拿它比regex了都,还不syntax sugar呢。你爱信啥信啥吧。

【在 n*w 的大作中提到】
: 下班浏览的一下goodbug给的那篇硕士thesis。先不说论文质量。通篇也没说linq是
: syntactic sugar。
: 其中涉及linq和syntactic sugar有关系有两处。
: 1. A number of new features were added to C# 3.0 in order to provide LINQ.
: Individually most of these features can be classified as syntactic sugar
: that, while helpful in cutting down on the tediousness of repetitive code,
: have viable – albeit more verbose – workarounds in the language。
: 这里讲到linq用了c# 3.0里syntactic sugar的语言features。最明显的应该是type
: inference。很多情况linq返回的type非常复杂。type inference在这里是极方便。
: 2. The query expression syntax resembles a SQL query in reverse and is

G***l
发帖数: 355
32
他说java什么也就算了,但是他说linq的那些我看着觉得很好笑。真的,第一感觉不是
想跟他争论什么的,就是好笑,完全是一种看外行说着不着边际的论调的感觉。他根本
就不熟悉linq,估计根本就么有用过,有什么资格讨论细节的东西?
还有每次别人说java不够进步,别的语言有什么什么的东西很好用,java还没有。他就
说scala有什么什么,这有一毛钱关系么?只要scala有什么,java就一点不用进步了?
我说某女星是飞机场我不喜欢,你来一句奶牛的奶子都很大,这样反驳别人有意思吗?
只要是真正Java跟C#都大量用过的人,都知道C#里面linq带来的方便和开发效率。对于
C#这样的imperative,OO的语言来说,linq是一个完美的添加,既没有太简单以至于应
用不大,也没有很复杂导致学习难度,代码复杂度上升。你问任何一个在实践中用过
linq的人,都会说linq带来的好处是突出的。在linq之前,C#跟Java在语言特性上的区
别主要就是delegate跟真正的泛型。但是linq的加入让C#写代码有了行云流水的感觉。
现在所有短小的数据分析的程序,我能用Python做的绝对不会用C家族的那些语言了。
所有中大型程序,除非有特殊要求的比如某些效率上的必须用C++,某些publish出来别
的用linux server上的组要调用这个库,所以用java,只要是C#,Java都能做的,全部
都用C#。
你去google “c# linq java equivalent”,第一条就是stackoverflow上的。一般在
上面问这种问题最佳答案都是有个什么类似的你可以这样那样,这条问题的答案很简单
:There is nothing like LINQ for Java. 这也反映了整个developer community的看
法。

【在 n*w 的大作中提到】
: 下班浏览的一下goodbug给的那篇硕士thesis。先不说论文质量。通篇也没说linq是
: syntactic sugar。
: 其中涉及linq和syntactic sugar有关系有两处。
: 1. A number of new features were added to C# 3.0 in order to provide LINQ.
: Individually most of these features can be classified as syntactic sugar
: that, while helpful in cutting down on the tediousness of repetitive code,
: have viable – albeit more verbose – workarounds in the language。
: 这里讲到linq用了c# 3.0里syntactic sugar的语言features。最明显的应该是type
: inference。很多情况linq返回的type非常复杂。type inference在这里是极方便。
: 2. The query expression syntax resembles a SQL query in reverse and is

g*****g
发帖数: 34805
33
又是满屏空话。你要是说linq方便,我从头到尾没否认过,syntax sugar吗,就是干这
个的。
我说的核心是,糖水能干的事情有限,.net在类库方面落后太多,生产效率是由类库决
定,不是由糖水决定的。我举了一堆C#没有的类库/产品。你们一堆人车轱辘话,不知
道举了哪个牛逼类库/产品,linq实现了java干不了的?或者放松一点,那个牛逼类库C
#实现的java没有的?
去看看Apache foundation上,多少个类库是从java port到.net,实现差了多少个版本。
难道一个linq的糖水,这些差距都可以忽略不计了?

【在 G***l 的大作中提到】
: 他说java什么也就算了,但是他说linq的那些我看着觉得很好笑。真的,第一感觉不是
: 想跟他争论什么的,就是好笑,完全是一种看外行说着不着边际的论调的感觉。他根本
: 就不熟悉linq,估计根本就么有用过,有什么资格讨论细节的东西?
: 还有每次别人说java不够进步,别的语言有什么什么的东西很好用,java还没有。他就
: 说scala有什么什么,这有一毛钱关系么?只要scala有什么,java就一点不用进步了?
: 我说某女星是飞机场我不喜欢,你来一句奶牛的奶子都很大,这样反驳别人有意思吗?
: 只要是真正Java跟C#都大量用过的人,都知道C#里面linq带来的方便和开发效率。对于
: C#这样的imperative,OO的语言来说,linq是一个完美的添加,既没有太简单以至于应
: 用不大,也没有很复杂导致学习难度,代码复杂度上升。你问任何一个在实践中用过
: linq的人,都会说linq带来的好处是突出的。在linq之前,C#跟Java在语言特性上的区

G***l
发帖数: 355
34
首先,这个原帖说的linq有很强的expressive power,java没有,这个观点挺对的。没
有人说java类库或者产品不行,也没有人说业界java的使用率比C#低java不行了没人用
了。是你莫名其妙挑起争论的不是吗?我们这是说linq超好用,你没有真正用过参合过
来干嘛?你为什么那么攻击性?用一个语言用成这样,你不觉得你很pathetic吗?

库C
本。

【在 g*****g 的大作中提到】
: 又是满屏空话。你要是说linq方便,我从头到尾没否认过,syntax sugar吗,就是干这
: 个的。
: 我说的核心是,糖水能干的事情有限,.net在类库方面落后太多,生产效率是由类库决
: 定,不是由糖水决定的。我举了一堆C#没有的类库/产品。你们一堆人车轱辘话,不知
: 道举了哪个牛逼类库/产品,linq实现了java干不了的?或者放松一点,那个牛逼类库C
: #实现的java没有的?
: 去看看Apache foundation上,多少个类库是从java port到.net,实现差了多少个版本。
: 难道一个linq的糖水,这些差距都可以忽略不计了?

g*****g
发帖数: 34805
35
这个原帖说linq不是糖水,我甚至找了篇论文说linq是糖水。你连这个也要否认?
这个事情本来很明白。糖水可以简化代码,第三方类库也可以简化代码。项目越大,后
者作用越大。
我只是表明一下观点,偏偏你们几个打死都不承认。还不pathetic呢?
你觉得C#牛逼拿个牛逼产品出来,不比糖水这个级别高多了?感情linq就是最后一个遮
羞布,要维护到底吧。

【在 G***l 的大作中提到】
: 首先,这个原帖说的linq有很强的expressive power,java没有,这个观点挺对的。没
: 有人说java类库或者产品不行,也没有人说业界java的使用率比C#低java不行了没人用
: 了。是你莫名其妙挑起争论的不是吗?我们这是说linq超好用,你没有真正用过参合过
: 来干嘛?你为什么那么攻击性?用一个语言用成这样,你不觉得你很pathetic吗?
:
: 库C
: 本。

n*w
发帖数: 3393
36
是的,那个比喻是讨论很费劲的原因。马上应验。他认为只要是java语言没有的
syntactic sugar,就是无关紧要的。我都避免讨论syntactic sugar和productivity的
关系。这些没有对错,量化的东西可能更是被扯到哪里去了。我倒想看看他关于large
scale web application的一些帖子。

【在 G***l 的大作中提到】
: 他说java什么也就算了,但是他说linq的那些我看着觉得很好笑。真的,第一感觉不是
: 想跟他争论什么的,就是好笑,完全是一种看外行说着不着边际的论调的感觉。他根本
: 就不熟悉linq,估计根本就么有用过,有什么资格讨论细节的东西?
: 还有每次别人说java不够进步,别的语言有什么什么的东西很好用,java还没有。他就
: 说scala有什么什么,这有一毛钱关系么?只要scala有什么,java就一点不用进步了?
: 我说某女星是飞机场我不喜欢,你来一句奶牛的奶子都很大,这样反驳别人有意思吗?
: 只要是真正Java跟C#都大量用过的人,都知道C#里面linq带来的方便和开发效率。对于
: C#这样的imperative,OO的语言来说,linq是一个完美的添加,既没有太简单以至于应
: 用不大,也没有很复杂导致学习难度,代码复杂度上升。你问任何一个在实践中用过
: linq的人,都会说linq带来的好处是突出的。在linq之前,C#跟Java在语言特性上的区

r*g
发帖数: 3159
37
我觉得你很pathetic. 你可以在版上号召一下支持你的来回帖,看看观众意见。

★ 发自iPhone App: ChineseWeb 7.8

【在 g*****g 的大作中提到】
: 这个原帖说linq不是糖水,我甚至找了篇论文说linq是糖水。你连这个也要否认?
: 这个事情本来很明白。糖水可以简化代码,第三方类库也可以简化代码。项目越大,后
: 者作用越大。
: 我只是表明一下观点,偏偏你们几个打死都不承认。还不pathetic呢?
: 你觉得C#牛逼拿个牛逼产品出来,不比糖水这个级别高多了?感情linq就是最后一个遮
: 羞布,要维护到底吧。

G***l
发帖数: 355
38
他要是说些java的什么挺好的,但是我就不是不明白他为什么那么攻击性。我们想讨论
些C#里面的功能,碍着他什么事了?syntactic sugar说的只是compiler的一些转换。
但是linq里面那些functional的东西,没有语言底层特性的支持,你转换来转换去也搞
不出一样的东西。按他那么说,所有functional language里面那些特色都是syntactic
sugar,人家那么多研究fp的大牛还不郁闷了。

large

【在 n*w 的大作中提到】
: 是的,那个比喻是讨论很费劲的原因。马上应验。他认为只要是java语言没有的
: syntactic sugar,就是无关紧要的。我都避免讨论syntactic sugar和productivity的
: 关系。这些没有对错,量化的东西可能更是被扯到哪里去了。我倒想看看他关于large
: scale web application的一些帖子。

n*w
发帖数: 3393
39
看30楼。
我还用linq是monad说明其不是糖水。
去掉linq后expressive power受影响。这个也可以说明其非糖水。
按你的逻辑,所以Turing complete的高级语言都是汇编的糖水。

【在 g*****g 的大作中提到】
: 这个原帖说linq不是糖水,我甚至找了篇论文说linq是糖水。你连这个也要否认?
: 这个事情本来很明白。糖水可以简化代码,第三方类库也可以简化代码。项目越大,后
: 者作用越大。
: 我只是表明一下观点,偏偏你们几个打死都不承认。还不pathetic呢?
: 你觉得C#牛逼拿个牛逼产品出来,不比糖水这个级别高多了?感情linq就是最后一个遮
: 羞布,要维护到底吧。

G***l
发帖数: 355
40
嗯,我觉得OO那些玩意也是糖水。private有什么意义?要我是公司的头,就全用
public,所有想private的成员用private_前缀打头,code standard上面黑体大字标明
,凡是在class之外用private_变量的直接fire,你说这个是不是比compiler
enforcement牛逼很多,哈哈。

【在 n*w 的大作中提到】
: 看30楼。
: 我还用linq是monad说明其不是糖水。
: 去掉linq后expressive power受影响。这个也可以说明其非糖水。
: 按你的逻辑,所以Turing complete的高级语言都是汇编的糖水。

相关主题
问下java大牛平时都做些啥工作a question abou dll, 3x!!
c++ size_t 一问来几个C++测试题
三个C syntax 弱问题[合集] 编程的习惯问题
进入Programming版参与讨论
r****y
发帖数: 26819
41
问题是这么说会不会有C++、JAVA的人觉得被攻击了。可能比这更激烈的话都听得多了,
或者人家觉得不值得驳,在乎的人不多。。。

【在 G***l 的大作中提到】
: 嗯,我觉得OO那些玩意也是糖水。private有什么意义?要我是公司的头,就全用
: public,所有想private的成员用private_前缀打头,code standard上面黑体大字标明
: ,凡是在class之外用private_变量的直接fire,你说这个是不是比compiler
: enforcement牛逼很多,哈哈。

d**********x
发帖数: 4083
42
他说相声而已

了,
标明

【在 r****y 的大作中提到】
: 问题是这么说会不会有C++、JAVA的人觉得被攻击了。可能比这更激烈的话都听得多了,
: 或者人家觉得不值得驳,在乎的人不多。。。

G***l
发帖数: 355
43
哎,搞艺术真不好混。程序写的不好还可以像很多三哥那样滥竽充数,相声说的不好立
马被观众指出。

【在 d**********x 的大作中提到】
: 他说相声而已
:
: 了,
: 标明

r****y
发帖数: 26819
44
这边说它是糖
那边说它不是糖
这边说它就是糖
那边说你又没有尝
这边说吃了只会长胖还说不是糖
那边说吃OO这俩甜甜圈也一样

【在 G***l 的大作中提到】
: 哎,搞艺术真不好混。程序写的不好还可以像很多三哥那样滥竽充数,相声说的不好立
: 马被观众指出。

d********u
发帖数: 5383
45
好虫你又转进了。在讨论LINQ,你能扯到APACHE foundation。
我来帮你说个LINQ的问题:写得很爽,但PERF有时候并不是很好,只能不用。

库C
本。

【在 g*****g 的大作中提到】
: 又是满屏空话。你要是说linq方便,我从头到尾没否认过,syntax sugar吗,就是干这
: 个的。
: 我说的核心是,糖水能干的事情有限,.net在类库方面落后太多,生产效率是由类库决
: 定,不是由糖水决定的。我举了一堆C#没有的类库/产品。你们一堆人车轱辘话,不知
: 道举了哪个牛逼类库/产品,linq实现了java干不了的?或者放松一点,那个牛逼类库C
: #实现的java没有的?
: 去看看Apache foundation上,多少个类库是从java port到.net,实现差了多少个版本。
: 难道一个linq的糖水,这些差距都可以忽略不计了?

g*****g
发帖数: 34805
46
草原上有一群鸵鸟,成天感觉良好。有一天,他们看见一群大象。就说,大象算什么,
大象有我们脖子长吗?大象听到了觉得压力很大,就走开了。接着走来了一群长颈鹿,
鸵鸟说,长颈鹿算什么,脖子有我们长得好看吗?长颈鹿觉得压力很大,也走开了。
这时候一只好奇的小象走了过来,一不小心摔了一跤,把一只鸵鸟压死了。剩下的的鸵
鸟四散而逃。跑到一个沙坑把头埋了起来。一边瑟瑟发抖一边说,大象算什么,他有我
们那么长的脖子能埋进沙子吗。
d********u
发帖数: 5383
47
我靠,you fit perfectly.
建议你删了吧。

【在 g*****g 的大作中提到】
: 草原上有一群鸵鸟,成天感觉良好。有一天,他们看见一群大象。就说,大象算什么,
: 大象有我们脖子长吗?大象听到了觉得压力很大,就走开了。接着走来了一群长颈鹿,
: 鸵鸟说,长颈鹿算什么,脖子有我们长得好看吗?长颈鹿觉得压力很大,也走开了。
: 这时候一只好奇的小象走了过来,一不小心摔了一跤,把一只鸵鸟压死了。剩下的的鸵
: 鸟四散而逃。跑到一个沙坑把头埋了起来。一边瑟瑟发抖一边说,大象算什么,他有我
: 们那么长的脖子能埋进沙子吗。

r****y
发帖数: 26819
48
。。。本文用了全篇互文的修辞手法,total refactoring。。。

【在 g*****g 的大作中提到】
: 草原上有一群鸵鸟,成天感觉良好。有一天,他们看见一群大象。就说,大象算什么,
: 大象有我们脖子长吗?大象听到了觉得压力很大,就走开了。接着走来了一群长颈鹿,
: 鸵鸟说,长颈鹿算什么,脖子有我们长得好看吗?长颈鹿觉得压力很大,也走开了。
: 这时候一只好奇的小象走了过来,一不小心摔了一跤,把一只鸵鸟压死了。剩下的的鸵
: 鸟四散而逃。跑到一个沙坑把头埋了起来。一边瑟瑟发抖一边说,大象算什么,他有我
: 们那么长的脖子能埋进沙子吗。

k*****a
发帖数: 1463
49
给个铁圈栓根绳,就感觉戴上独一无二的项链;时不时的那东西嗓子发痒,吠上一嘴显
摆一下,可以原谅。

【在 d********u 的大作中提到】
: 我靠,you fit perfectly.
: 建议你删了吧。

g****r
发帖数: 1589
50
好虫看不上.Net已经是由来已久的了,你是新来的吧
在他看来,每次你说点啥.Net的东西就是在挑战他Java的地位,所以他就会搬出一堆
Java Library多,又open的论调来跟你吵,他这么说的也对,Java作为open source的
主力在一线公司里就是主流
不过如果你想说.Net在某些方面强于Java的话,你也别指望他能同意你,他心里同意嘴
上也不会同意的,所以就别浪费时间啦,这种讨论就是无解,最后基本就发展到无聊蛋
疼的斗嘴
不过这这种类型的吵架本论坛到处都是,比如车版日系vs德系;PDA版安粉vs果粉;摄
影版nikon vs canon;禁枪派vs拥枪派;一句话,北美的华人就是闲的蛋疼

syntactic

【在 G***l 的大作中提到】
: 他要是说些java的什么挺好的,但是我就不是不明白他为什么那么攻击性。我们想讨论
: 些C#里面的功能,碍着他什么事了?syntactic sugar说的只是compiler的一些转换。
: 但是linq里面那些functional的东西,没有语言底层特性的支持,你转换来转换去也搞
: 不出一样的东西。按他那么说,所有functional language里面那些特色都是syntactic
: sugar,人家那么多研究fp的大牛还不郁闷了。
:
: large

相关主题
C++ 无效语句?Question about a C++ compilation error on Visual Studio 2005
What is wrong in this array declaration.程序怎么不认识class, namespace等identifier呀?
metaprogrammingFrom C++ to C
进入Programming版参与讨论
a*****e
发帖数: 1700
51
各位吵得好热闹,我来插一句嘴,呵呵
所谓 syntactic sugar,是指和 semantics 无关的,纯语法层面的转化
而 LINQ 可以看做是两部分,一部分是它提供的特殊语法,可以直接 desugar,变成标
准的 C# 语句,所以这部分是 syntactic sugar.
另一部分,是 LINQ 提供的库函数,这些为它的 semantics 提供了具体的实现,所以
不能称为 syntactic sugar
笼统地说 LINQ 是,或者不是 syntactic sugar,都是不准确的。包括 goodbug 引的
那片 paper,也只是说 LINQ 提供了 syntactic sugar,而不是说 LINQ 除了
syntactic sugar 就没有其它内容了。
就比如 Haskell 里面的 Monad,语法部分的 do syntax,是 syntactic sugar,但是
这个 do syntax 被 desugar 为 bind 和 return 两种函数操作,但是具体实现 bind
和 return 的语义则需要程序员(或者库函数)提供 implementation, 这就不是
syntactic sugar 了。
不知道这样讲,大家是否更清楚一些 syntax 和 semantics 的区别。
n*w
发帖数: 3393
52
非goodbug一方的人在前面帖子里都同意sql-like的linq syntax是dot notation
syntax的syntactic sugar。这个帖子讨论的整个linq是不是syntactic sugar。
有人认为oop之外的东西都是syntactic sugar。

【在 a*****e 的大作中提到】
: 各位吵得好热闹,我来插一句嘴,呵呵
: 所谓 syntactic sugar,是指和 semantics 无关的,纯语法层面的转化
: 而 LINQ 可以看做是两部分,一部分是它提供的特殊语法,可以直接 desugar,变成标
: 准的 C# 语句,所以这部分是 syntactic sugar.
: 另一部分,是 LINQ 提供的库函数,这些为它的 semantics 提供了具体的实现,所以
: 不能称为 syntactic sugar
: 笼统地说 LINQ 是,或者不是 syntactic sugar,都是不准确的。包括 goodbug 引的
: 那片 paper,也只是说 LINQ 提供了 syntactic sugar,而不是说 LINQ 除了
: syntactic sugar 就没有其它内容了。
: 就比如 Haskell 里面的 Monad,语法部分的 do syntax,是 syntactic sugar,但是

g*****g
发帖数: 34805
53
对应的库函数诸如collection的操作,在java显然也有实现。所以对相对java而言就是
个糖水。也就是C#实在没货了,才成天把一点半吊子FP feature来当个宝。真跟Scala
比FP feature,又屁都不是。我都不明白这东西有啥好装逼的。

【在 a*****e 的大作中提到】
: 各位吵得好热闹,我来插一句嘴,呵呵
: 所谓 syntactic sugar,是指和 semantics 无关的,纯语法层面的转化
: 而 LINQ 可以看做是两部分,一部分是它提供的特殊语法,可以直接 desugar,变成标
: 准的 C# 语句,所以这部分是 syntactic sugar.
: 另一部分,是 LINQ 提供的库函数,这些为它的 semantics 提供了具体的实现,所以
: 不能称为 syntactic sugar
: 笼统地说 LINQ 是,或者不是 syntactic sugar,都是不准确的。包括 goodbug 引的
: 那片 paper,也只是说 LINQ 提供了 syntactic sugar,而不是说 LINQ 除了
: syntactic sugar 就没有其它内容了。
: 就比如 Haskell 里面的 Monad,语法部分的 do syntax,是 syntactic sugar,但是

n*w
发帖数: 3393
54
标记一下。
你是不是认为lambda expression和c#里的FPfeature都是syntactic sugar?

【在 g*****g 的大作中提到】
: 对应的库函数诸如collection的操作,在java显然也有实现。所以对相对java而言就是
: 个糖水。也就是C#实在没货了,才成天把一点半吊子FP feature来当个宝。真跟Scala
: 比FP feature,又屁都不是。我都不明白这东西有啥好装逼的。

g*****g
发帖数: 34805
55
C# developers said so.
Lambda expression is another powerful syntactic sugar making C# functional.
http://weblogs.asp.net/dixin/archive/2009/11/29/understanding-c
Arguing whether it's syntax sugar is really moot though, Java has beaten C#
to deaths in terms of jobs, killer apps, etc. That's what I care about. Only
junior developer likes you cherish such trivial feature like it's religion.
Get a life.

【在 n*w 的大作中提到】
: 标记一下。
: 你是不是认为lambda expression和c#里的FPfeature都是syntactic sugar?

n*w
发帖数: 3393
56
你很善于应用google。
这样问吧,你认不认为c#的Delegate是不是syntactic sugar?

.
#
Only
religion.

【在 g*****g 的大作中提到】
: C# developers said so.
: Lambda expression is another powerful syntactic sugar making C# functional.
: http://weblogs.asp.net/dixin/archive/2009/11/29/understanding-c
: Arguing whether it's syntax sugar is really moot though, Java has beaten C#
: to deaths in terms of jobs, killer apps, etc. That's what I care about. Only
: junior developer likes you cherish such trivial feature like it's religion.
: Get a life.

n*w
发帖数: 3393
57
再改一下问题,more general。
“First-class function”是不是syntactic sugar?

.
#
Only
religion.

【在 g*****g 的大作中提到】
: C# developers said so.
: Lambda expression is another powerful syntactic sugar making C# functional.
: http://weblogs.asp.net/dixin/archive/2009/11/29/understanding-c
: Arguing whether it's syntax sugar is really moot though, Java has beaten C#
: to deaths in terms of jobs, killer apps, etc. That's what I care about. Only
: junior developer likes you cherish such trivial feature like it's religion.
: Get a life.

g*****g
发帖数: 34805
58
你还真唐僧了。linq做出了什么牛逼架构和产品别人没有的?成天叽歪个没完了还。
First-class function的绝大多数功能是可以用Java的匿名内部类实现的。
所以linq就是糖水。

【在 n*w 的大作中提到】
: 再改一下问题,more general。
: “First-class function”是不是syntactic sugar?
:
: .
: #
: Only
: religion.

n*w
发帖数: 3393
59
这个“做出了什么牛逼架构和产品别人没有的”被重复无数遍。没有被这个和主题无关
的更让人觉得“叽歪”的。
Java的匿名内部类都不是closure。更不提别的functional功能了。(Java 8将引入照
抄c#de lambda)
在消除alanine所提出的歧义后,这个问题已经再次得到你的答案。我不会问你这个问
题。

【在 g*****g 的大作中提到】
: 你还真唐僧了。linq做出了什么牛逼架构和产品别人没有的?成天叽歪个没完了还。
: First-class function的绝大多数功能是可以用Java的匿名内部类实现的。
: 所以linq就是糖水。

g*****g
发帖数: 34805
60
你小也太搞笑了,java 8是要加入lambda expression不错。但java都20年了,20年才
加这个,不就说明这个东西必要性很低吗。难道这20年没lambda expression功能都写
不了,这不是说明这是糖水是什么?

【在 n*w 的大作中提到】
: 这个“做出了什么牛逼架构和产品别人没有的”被重复无数遍。没有被这个和主题无关
: 的更让人觉得“叽歪”的。
: Java的匿名内部类都不是closure。更不提别的functional功能了。(Java 8将引入照
: 抄c#de lambda)
: 在消除alanine所提出的歧义后,这个问题已经再次得到你的答案。我不会问你这个问
: 题。

相关主题
operator overloading (C++)Python 缩进的syntax
C++ syntax questionJAVA的确是要取代C++的
int F::*x = &F::x是什么意思?C# 的一些新feature.
进入Programming版参与讨论
G***l
发帖数: 355
61
哈哈哈,这个逻辑好搞笑。90年代的时候Sun的人会不会说,你小也太搞笑了,搞java
是不错。但c语言都有20多年了,也没有人搞java,不就说明这个东西必要性很低吗。
难道20年没有java的功能都写不了,这不是说明这是糖水是什么?

【在 g*****g 的大作中提到】
: 你小也太搞笑了,java 8是要加入lambda expression不错。但java都20年了,20年才
: 加这个,不就说明这个东西必要性很低吗。难道这20年没lambda expression功能都写
: 不了,这不是说明这是糖水是什么?

g*****g
发帖数: 34805
62
看来你小是真不懂的。因为C搞了20年,才想明白了Java应该怎么写。Java也从C上学了
很多。
First Function Class, 比C还老的Lisp/Scheme就有了,要觉得重要早该学了。
说得跟First function class是C#的原创一般,微软的五毛真太弱了,难怪一年不如一
年。

java

【在 G***l 的大作中提到】
: 哈哈哈,这个逻辑好搞笑。90年代的时候Sun的人会不会说,你小也太搞笑了,搞java
: 是不错。但c语言都有20多年了,也没有人搞java,不就说明这个东西必要性很低吗。
: 难道20年没有java的功能都写不了,这不是说明这是糖水是什么?

n*w
发帖数: 3393
63
I already answered his question question of that post and I won't respond
him. I'm amazed by the behave of some ids here. Either never learn from the
discussion or simply deny the fact.
Btw, I have no idea how he read "first class function is originated from c#"
from the thread.

java

【在 G***l 的大作中提到】
: 哈哈哈,这个逻辑好搞笑。90年代的时候Sun的人会不会说,你小也太搞笑了,搞java
: 是不错。但c语言都有20多年了,也没有人搞java,不就说明这个东西必要性很低吗。
: 难道20年没有java的功能都写不了,这不是说明这是糖水是什么?

s***o
发帖数: 2191
64
看到neverlearn又中枪了 :)

the
#"

【在 n*w 的大作中提到】
: I already answered his question question of that post and I won't respond
: him. I'm amazed by the behave of some ids here. Either never learn from the
: discussion or simply deny the fact.
: Btw, I have no idea how he read "first class function is originated from c#"
: from the thread.
:
: java

g*****g
发帖数: 34805
65
是你啥都没学到吧。我给了你无数的link,有学术的,有C# developer的blog,说linq
是syntax sugar。同时我举了大量实例,linq没有做出任何java没做出来的东西。这说
明它只是个糖水。敢问你争了这么多天,实例在那里?paper在那里?成天就你以为你
以为有蛋用。
你不服绕来绕去的,最后绕到first class function上。java 20年一直没这东西,但
是其功能可以用anonymous inner class实现。这你随便google一下都知道。lambda
expression的加入可以使得实现更简洁一些,但并不增加语言能实现的功能,你不懂不
是你的错,出来吓人就是你的不对了。

the
#"

【在 n*w 的大作中提到】
: I already answered his question question of that post and I won't respond
: him. I'm amazed by the behave of some ids here. Either never learn from the
: discussion or simply deny the fact.
: Btw, I have no idea how he read "first class function is originated from c#"
: from the thread.
:
: java

W*******e
发帖数: 1268
66
我个人经验感觉读程序最怕的就是anonymous class,anonymous function还有就是C里
面的函数指针了。D3里面用匿名函数做大量的操作,写的时候我觉得很容易很自然,看
别人写的,回头看自己写的都觉得很累。
函数编程感觉到商业应用还有很长的距离。这里很多讨论函数编程的是不是完全以学术
为目的?还是我太out了。

linq

【在 g*****g 的大作中提到】
: 是你啥都没学到吧。我给了你无数的link,有学术的,有C# developer的blog,说linq
: 是syntax sugar。同时我举了大量实例,linq没有做出任何java没做出来的东西。这说
: 明它只是个糖水。敢问你争了这么多天,实例在那里?paper在那里?成天就你以为你
: 以为有蛋用。
: 你不服绕来绕去的,最后绕到first class function上。java 20年一直没这东西,但
: 是其功能可以用anonymous inner class实现。这你随便google一下都知道。lambda
: expression的加入可以使得实现更简洁一些,但并不增加语言能实现的功能,你不懂不
: 是你的错,出来吓人就是你的不对了。
:
: the

n*w
发帖数: 3393
67
All these have been addressed by me or/and others. I won't repeat even you
still don't get it.

linq

【在 g*****g 的大作中提到】
: 是你啥都没学到吧。我给了你无数的link,有学术的,有C# developer的blog,说linq
: 是syntax sugar。同时我举了大量实例,linq没有做出任何java没做出来的东西。这说
: 明它只是个糖水。敢问你争了这么多天,实例在那里?paper在那里?成天就你以为你
: 以为有蛋用。
: 你不服绕来绕去的,最后绕到first class function上。java 20年一直没这东西,但
: 是其功能可以用anonymous inner class实现。这你随便google一下都知道。lambda
: expression的加入可以使得实现更简洁一些,但并不增加语言能实现的功能,你不懂不
: 是你的错,出来吓人就是你的不对了。
:
: the

g*****g
发帖数: 34805
68
LOL,我觉得我们是该到此为止了。你小从头到尾循环论证,我该批的都批了。

【在 n*w 的大作中提到】
: All these have been addressed by me or/and others. I won't repeat even you
: still don't get it.
:
: linq

G***l
发帖数: 355
69
我觉得循环论证的是你吧。。。nkw反而是把你该批的都批了,最后被你的无敌逻辑打
败了哈哈。

【在 g*****g 的大作中提到】
: LOL,我觉得我们是该到此为止了。你小从头到尾循环论证,我该批的都批了。
g*****g
发帖数: 34805
70
LOL,微软的五毛循环掩护了还。敢问nkw举了啥例子了都?我举的hadoop,twitter,
linkedin, netflix, ebay都在哪里呢?

【在 G***l 的大作中提到】
: 我觉得循环论证的是你吧。。。nkw反而是把你该批的都批了,最后被你的无敌逻辑打
: 败了哈哈。

相关主题
C# 的一些新feature.c++ size_t 一问
有什么课是用PYTHON 语言讲算法的? (转载)三个C syntax 弱问题
问下java大牛平时都做些啥工作a question abou dll, 3x!!
进入Programming版参与讨论
n*w
发帖数: 3393
71
hadoop,twitter, linkedin, netflix, ebay和这个帖子主题有什么关系?你的troll
倒是不少。
讨论的是A是不是B的sugar。
我们都同意A'是A的sugar(sql-like写法和dot notation写法的linq)。
你google到一篇不知道哪里学校的一篇硕士thesis。(觉得作undergraduate的thesis
都勉强)及其他一些链接。里面也有说A'是A的sugar。
这样说你也不明白的话,、、、

【在 g*****g 的大作中提到】
: LOL,微软的五毛循环掩护了还。敢问nkw举了啥例子了都?我举的hadoop,twitter,
: linkedin, netflix, ebay都在哪里呢?

g*****g
发帖数: 34805
72
我要说几遍你才明白。语言是用来写东西的,不是用来装逼的。
C#有的类库和产品,java都有,java有的,C#很多没有。不就说明linq这东西就是个糖
水。
糖水的意思,就是没有增加功能,可以简化语法。如果linq增加了功能,好歹也得写个
java写不出来的类库吧?你来回循环论证Linq有first class funtion有屁用。倒是用
first class function写个java实现不了的类库/产品不就得了?简单的举例你没有,
成天拿点语法绕来绕去的你不烦?本末倒置,还执迷不悟了。

troll
thesis

【在 n*w 的大作中提到】
: hadoop,twitter, linkedin, netflix, ebay和这个帖子主题有什么关系?你的troll
: 倒是不少。
: 讨论的是A是不是B的sugar。
: 我们都同意A'是A的sugar(sql-like写法和dot notation写法的linq)。
: 你google到一篇不知道哪里学校的一篇硕士thesis。(觉得作undergraduate的thesis
: 都勉强)及其他一些链接。里面也有说A'是A的sugar。
: 这样说你也不明白的话,、、、

n*w
发帖数: 3393
73
troll
和主题没有关系。你可以再开个贴讨论类库。syntactic sugar是你这样定义的吗?

【在 g*****g 的大作中提到】
: 我要说几遍你才明白。语言是用来写东西的,不是用来装逼的。
: C#有的类库和产品,java都有,java有的,C#很多没有。不就说明linq这东西就是个糖
: 水。
: 糖水的意思,就是没有增加功能,可以简化语法。如果linq增加了功能,好歹也得写个
: java写不出来的类库吧?你来回循环论证Linq有first class funtion有屁用。倒是用
: first class function写个java实现不了的类库/产品不就得了?简单的举例你没有,
: 成天拿点语法绕来绕去的你不烦?本末倒置,还执迷不悟了。
:
: troll
: thesis

g*****g
发帖数: 34805
74
自己看wiki呗。跟你这种无知的人争真是浪费时间。
Specifically, a construct in a language is called syntactic sugar if it can
be removed from the language without any effect on what the language can do:

【在 n*w 的大作中提到】
: troll
: 和主题没有关系。你可以再开个贴讨论类库。syntactic sugar是你这样定义的吗?

n*w
发帖数: 3393
75
最后解释一下。
帮你贴全
“Specifically, a construct in a language is called syntactic sugar if it
can be removed from the language without any effect on what the language can
do: functionality and expressive power will remain the same”
最后关于functionality的一个问题:Java anonymous inner class怎样实现access非
final variables?
自己想想吧,不用回帖了。

can
do:

【在 g*****g 的大作中提到】
: 自己看wiki呗。跟你这种无知的人争真是浪费时间。
: Specifically, a construct in a language is called syntactic sugar if it can
: be removed from the language without any effect on what the language can do:

g*****g
发帖数: 34805
76
你这不是自己掌脸吗。functionality and expressive power will remain the same
跟前面那句话是一致的。废话吗,这就是功能能不能实现,剩下的语法能否实现。用
100行实现和用1行实现,functionality和expressive power还是一样的。差别是
conciseness。
Java anonymous inner class不需要访问非final variables。实际使用的时候assign
一个final就行。没听说哪个类库因此实现不了。不简洁,但不影响功能。
你就继续鸵鸟,自娱自乐吧。

can

【在 n*w 的大作中提到】
: 最后解释一下。
: 帮你贴全
: “Specifically, a construct in a language is called syntactic sugar if it
: can be removed from the language without any effect on what the language can
: do: functionality and expressive power will remain the same”
: 最后关于functionality的一个问题:Java anonymous inner class怎样实现access非
: final variables?
: 自己想想吧,不用回帖了。
:
: can

G***l
发帖数: 355
77
大家觉得跟这个人还有讨论的必要吗?这逻辑,自己都把自己扇肿了。还没听说哪个类
库因此实现不了。不简洁,但不影响功能。
没听说哪个类库C语言实现不了。不简洁,但不影响功能。
没听说哪个类库汇编实现不了。不简洁,但不影响功能。
没听说哪个类库机器语言实现不了。不简洁,但不影响功能。

same
assign

【在 g*****g 的大作中提到】
: 你这不是自己掌脸吗。functionality and expressive power will remain the same
: 跟前面那句话是一致的。废话吗,这就是功能能不能实现,剩下的语法能否实现。用
: 100行实现和用1行实现,functionality和expressive power还是一样的。差别是
: conciseness。
: Java anonymous inner class不需要访问非final variables。实际使用的时候assign
: 一个final就行。没听说哪个类库因此实现不了。不简洁,但不影响功能。
: 你就继续鸵鸟,自娱自乐吧。
:
: can

g*****g
发帖数: 34805
78
问得好,那为啥hadoop c#就实现不了呢?微软可是努力了,还有linq这个大杀器。什
么linq to hpc一样胎死腹中有没有。
理论上能实现跟实际上能实现是俩回事。现在的问题就是C#的成名类库都能在java上找
到实现,反之不然。至于java的列库是否在C和汇编上都有实现,就不必讨论了吧。你
这脸都成西瓜了。
做码农要是不面对实现,而成天为所谓的语法牛逼沾沾自喜。就跟鸵鸟在沙子里觉得自
己脖子长很牛逼一样。

【在 G***l 的大作中提到】
: 大家觉得跟这个人还有讨论的必要吗?这逻辑,自己都把自己扇肿了。还没听说哪个类
: 库因此实现不了。不简洁,但不影响功能。
: 没听说哪个类库C语言实现不了。不简洁,但不影响功能。
: 没听说哪个类库汇编实现不了。不简洁,但不影响功能。
: 没听说哪个类库机器语言实现不了。不简洁,但不影响功能。
:
: same
: assign

G***l
发帖数: 355
79
你小这个问题弱爆了。你说的那些东西只是微软实验室一些试水的东西,就像google的
那些小东西一样,人家跟本没投入什么。hadoop的client又不一定是要java,像c#,
python等等都可以。既然hadoop已经发展挺成熟了,微软自己的azure上一样也可以运
行。为什么还要投入那么多另起炉灶搞一个别的东西呢?搞出来又没特别的好处。微软
的头又不是你这样的脑残语言粉,非要用自己的语言搞一个才开心不成。
算了我不应该跟你说这个,这些跟原帖的主题根本没关系。你小就逃避java语言特性落
后的事实沉浸在自己的类库世界里吧。祝你一辈子用java。我们一直可以换着用好用的
技术。
你小的逻辑我再总结一下:xx算个毛,科比得过81分!

【在 g*****g 的大作中提到】
: 问得好,那为啥hadoop c#就实现不了呢?微软可是努力了,还有linq这个大杀器。什
: 么linq to hpc一样胎死腹中有没有。
: 理论上能实现跟实际上能实现是俩回事。现在的问题就是C#的成名类库都能在java上找
: 到实现,反之不然。至于java的列库是否在C和汇编上都有实现,就不必讨论了吧。你
: 这脸都成西瓜了。
: 做码农要是不面对实现,而成天为所谓的语法牛逼沾沾自喜。就跟鸵鸟在沙子里觉得自
: 己脖子长很牛逼一样。

g*****g
发帖数: 34805
80
你敢这么说,说明你对hadoop根本没了解。继续满足做二流语言的二流程序员吧。
http://pyfunc.blogspot.com/2012/05/hadoop-map-reduce-with-mrjob
With Hadoop, you have more flexibility in accessing files and running map-
reduce jobs with java. All other languages needs to use Hadoop streaming and
it feels like a second class citizen in Hadoop programming.
说到脑残,不知道是那个傻逼坚持有linq就更牛逼的。不知道有了linq这么牛逼的
feature,为啥C#程序员工资还是那么低呢?

【在 G***l 的大作中提到】
: 你小这个问题弱爆了。你说的那些东西只是微软实验室一些试水的东西,就像google的
: 那些小东西一样,人家跟本没投入什么。hadoop的client又不一定是要java,像c#,
: python等等都可以。既然hadoop已经发展挺成熟了,微软自己的azure上一样也可以运
: 行。为什么还要投入那么多另起炉灶搞一个别的东西呢?搞出来又没特别的好处。微软
: 的头又不是你这样的脑残语言粉,非要用自己的语言搞一个才开心不成。
: 算了我不应该跟你说这个,这些跟原帖的主题根本没关系。你小就逃避java语言特性落
: 后的事实沉浸在自己的类库世界里吧。祝你一辈子用java。我们一直可以换着用好用的
: 技术。
: 你小的逻辑我再总结一下:xx算个毛,科比得过81分!

相关主题
来几个C++测试题What is wrong in this array declaration.
[合集] 编程的习惯问题metaprogramming
C++ 无效语句?Question about a C++ compilation error on Visual Studio 2005
进入Programming版参与讨论
n*w
发帖数: 3393
81
Troll

same
assign

【在 g*****g 的大作中提到】
: 你这不是自己掌脸吗。functionality and expressive power will remain the same
: 跟前面那句话是一致的。废话吗,这就是功能能不能实现,剩下的语法能否实现。用
: 100行实现和用1行实现,functionality和expressive power还是一样的。差别是
: conciseness。
: Java anonymous inner class不需要访问非final variables。实际使用的时候assign
: 一个final就行。没听说哪个类库因此实现不了。不简洁,但不影响功能。
: 你就继续鸵鸟,自娱自乐吧。
:
: can

n*w
发帖数: 3393
82
I mentioned Turing completeness for that. Anyway I will not discuss with him
anymore.

【在 G***l 的大作中提到】
: 大家觉得跟这个人还有讨论的必要吗?这逻辑,自己都把自己扇肿了。还没听说哪个类
: 库因此实现不了。不简洁,但不影响功能。
: 没听说哪个类库C语言实现不了。不简洁,但不影响功能。
: 没听说哪个类库汇编实现不了。不简洁,但不影响功能。
: 没听说哪个类库机器语言实现不了。不简洁,但不影响功能。
:
: same
: assign

r*g
发帖数: 3159
83
太搞了,不想争论了还非要抢着说最后一句。
我建议你把标题改为 Linq 不是 c# 的 syntactic sugar, 这样意思更明确,也省得有
人来喷整个c#都是sugar了。

him
★ 发自iPhone App: ChineseWeb 7.8

【在 n*w 的大作中提到】
: I mentioned Turing completeness for that. Anyway I will not discuss with him
: anymore.

n*w
发帖数: 3393
84
I was talking to response Godel's. it's Ignorance to say any language is all
syntactic sugar.

【在 r*g 的大作中提到】
: 太搞了,不想争论了还非要抢着说最后一句。
: 我建议你把标题改为 Linq 不是 c# 的 syntactic sugar, 这样意思更明确,也省得有
: 人来喷整个c#都是sugar了。
:
: him
: ★ 发自iPhone App: ChineseWeb 7.8

N*****m
发帖数: 42603
85
实在看不下去了
hadoop山寨的mapreduce是c++写的,狗狗是好东西舍不得拿出来给别人用

and

【在 g*****g 的大作中提到】
: 你敢这么说,说明你对hadoop根本没了解。继续满足做二流语言的二流程序员吧。
: http://pyfunc.blogspot.com/2012/05/hadoop-map-reduce-with-mrjob
: With Hadoop, you have more flexibility in accessing files and running map-
: reduce jobs with java. All other languages needs to use Hadoop streaming and
: it feels like a second class citizen in Hadoop programming.
: 说到脑残,不知道是那个傻逼坚持有linq就更牛逼的。不知道有了linq这么牛逼的
: feature,为啥C#程序员工资还是那么低呢?

g*****g
发帖数: 34805
86
学术论文也列了,C# developer现身说法也给了,wiki的定义也给了,就是打死不承认
。nkw估计是个女人。这都不能算狡辩的范畴,就叫鸭子煮熟了还嘴硬。
啥是功能,啥不是语法糖。比如比C跟Java比,C有指针,Java有反射。以此为基础C有
诸如opengl一类的类库,Java有IoC, AOP的类库。都是不扩展语言没法直接实现的。这
个叫功能。C#本来就是抄Java的,加了几个语法糖,以免让人说裸炒。让NeverLearn,
nkw一类的控件程序员能够写点简单程序,就不知道北了。
语法糖不语法糖,本来就以功能实现为准,wiki的定义也是如此。拿出一个Linq实现的
类库,Java做不了的,我不立刻完败了。这么简单的论证没有,成天绕来绕去。Paper
嫌是master写的,C# developer的说法号称是针对C#本身的。现在连wiki的定义都要曲
解。

【在 r*g 的大作中提到】
: 太搞了,不想争论了还非要抢着说最后一句。
: 我建议你把标题改为 Linq 不是 c# 的 syntactic sugar, 这样意思更明确,也省得有
: 人来喷整个c#都是sugar了。
:
: him
: ★ 发自iPhone App: ChineseWeb 7.8

g*****g
发帖数: 34805
87
hadoop是山寨mapreduce的没错。但C#就是山寨不下来。这能说明啥?不是没努力喔。

【在 N*****m 的大作中提到】
: 实在看不下去了
: hadoop山寨的mapreduce是c++写的,狗狗是好东西舍不得拿出来给别人用
:
: and

N*****m
发帖数: 42603
88
搞得晚,用windows的原因,etc,我不知道
总之不要把hadoop搞成java的蝎子拉屎就行了
另外,我也无心参与这个吵架,你们继续

【在 g*****g 的大作中提到】
: hadoop是山寨mapreduce的没错。但C#就是山寨不下来。这能说明啥?不是没努力喔。
z****e
发帖数: 54598
89
看不下去了
难倒hadoop不是java写的?
hadoop不是java蝎子拉屎难倒还是c++的蝎子拉屎?
要照这个逻辑,那c++写的跟java有对应系统多了
是不是tomcat也不是java的蝎子拉屎?因为有c++的web server?

【在 N*****m 的大作中提到】
: 搞得晚,用windows的原因,etc,我不知道
: 总之不要把hadoop搞成java的蝎子拉屎就行了
: 另外,我也无心参与这个吵架,你们继续

n*w
发帖数: 3393
90
Troll
And you are exactly describing yourself.

Paper

【在 g*****g 的大作中提到】
: 学术论文也列了,C# developer现身说法也给了,wiki的定义也给了,就是打死不承认
: 。nkw估计是个女人。这都不能算狡辩的范畴,就叫鸭子煮熟了还嘴硬。
: 啥是功能,啥不是语法糖。比如比C跟Java比,C有指针,Java有反射。以此为基础C有
: 诸如opengl一类的类库,Java有IoC, AOP的类库。都是不扩展语言没法直接实现的。这
: 个叫功能。C#本来就是抄Java的,加了几个语法糖,以免让人说裸炒。让NeverLearn,
: nkw一类的控件程序员能够写点简单程序,就不知道北了。
: 语法糖不语法糖,本来就以功能实现为准,wiki的定义也是如此。拿出一个Linq实现的
: 类库,Java做不了的,我不立刻完败了。这么简单的论证没有,成天绕来绕去。Paper
: 嫌是master写的,C# developer的说法号称是针对C#本身的。现在连wiki的定义都要曲
: 解。

相关主题
程序怎么不认识class, namespace等identifier呀?C++ syntax question
From C++ to Cint F::*x = &F::x是什么意思?
operator overloading (C++)Python 缩进的syntax
进入Programming版参与讨论
g*****g
发帖数: 34805
91
真是够弱的,没理搅三分。一边嚷着最后一贴,一边又忍不住,女人实在没办法。我不
跟女人计较。

【在 n*w 的大作中提到】
: Troll
: And you are exactly describing yourself.
:
: Paper

n*w
发帖数: 3393
92
I said I won't discuss the tech topic with you anymore, maybe all topics in
the future.
I will responds your troll against me. Not only me found all your
troll exactly describe yourself.

【在 g*****g 的大作中提到】
: 真是够弱的,没理搅三分。一边嚷着最后一贴,一边又忍不住,女人实在没办法。我不
: 跟女人计较。

g*****g
发帖数: 34805
93
技术讨论我没压力,纯骂人的我不如你,我闪了先。

topic

【在 n*w 的大作中提到】
: I said I won't discuss the tech topic with you anymore, maybe all topics in
: the future.
: I will responds your troll against me. Not only me found all your
: troll exactly describe yourself.

g*****g
发帖数: 34805
94
Google也不是第一个做搜索引擎的,难道讨论搜索引擎就不能提Google了。那位的逻辑
很强大。

【在 z****e 的大作中提到】
: 看不下去了
: 难倒hadoop不是java写的?
: hadoop不是java蝎子拉屎难倒还是c++的蝎子拉屎?
: 要照这个逻辑,那c++写的跟java有对应系统多了
: 是不是tomcat也不是java的蝎子拉屎?因为有c++的web server?

n*w
发帖数: 3393
95
我还从来没骂过人。那个发troll贴的攻击性骂人的话用在自己身上倒很合适。
在这个贴里发过非troll贴的人没意见的话,我将删除这个有太多垃圾troll的thread,
再重新发个关于linq,FP和syntactic sugar的总结。
g*****g
发帖数: 34805
96
真是不要脸呀。让你举例屁话没有,就一句循环论证来回说,被打脸打成西瓜就知道喊
troll。
还总结哪?我替你总结吧。
while(true) linq => C# > Java

【在 n*w 的大作中提到】
: 我还从来没骂过人。那个发troll贴的攻击性骂人的话用在自己身上倒很合适。
: 在这个贴里发过非troll贴的人没意见的话,我将删除这个有太多垃圾troll的thread,
: 再重新发个关于linq,FP和syntactic sugar的总结。

G***l
发帖数: 355
97
goodbug的逻辑之java版:
boolean 算毛(Object xx)
{
boolean 科比得过81分 = true
return 科比得过81分;
}
c#版:
bool 算毛(object xx)
{
var 科比得过81分 = true
return 科比得过81分;
}
c++版:
bool 算毛(void* xx)
{
auto 科比得过81分 = true
return 科比得过81分;
}
haskell版:
科比得过81分 = True
算毛 :: a -> Bool
算毛 x = 科比得过81分
python版:
def 算毛(xx):
科比得过81分 = True
科比得过81分
其他语言近几年没用过,欢迎补充

【在 g*****g 的大作中提到】
: 真是不要脸呀。让你举例屁话没有,就一句循环论证来回说,被打脸打成西瓜就知道喊
: troll。
: 还总结哪?我替你总结吧。
: while(true) linq => C# > Java

n*w
发帖数: 3393
98
:)
更新了一下一楼。只copy了一点和标题相关的。那些用来反驳荒谬言论的,即使有内容
的没加。
过程中重新读了了前人给的忠告,有点后悔当初没在意。

【在 G***l 的大作中提到】
: goodbug的逻辑之java版:
: boolean 算毛(Object xx)
: {
: boolean 科比得过81分 = true
: return 科比得过81分;
: }
: c#版:
: bool 算毛(object xx)
: {
: var 科比得过81分 = true

p**********e
发帖数: 316
99
LINQ 不能代替算法
.NET 工资不高
支持.NET 的都是中小公司
JAVA尽管本身没什么发展,但大系统发展迅猛, 大公司支持多
管他是和非, 提高工资和寻找机遇是硬道理

sugar

【在 n*w 的大作中提到】
: c#的property是,
: 所有语言的array[i,j]写法是
: +, -, *, / overloading 是
: 但linq不是,linq会用到expression tree,把代码存储成数据。再转化成其他东西,
: 比如sql。不是java能有的expressive power。

r****y
发帖数: 26819
100
没看出csharp版的特点,起码应该linq一下吧,不然吵了半天岂不是都白吵了
再仔细一看,diff一下java版跟c#版,简直可以转学术版了。。。带括号的看着都像
javascript版哈哈

【在 G***l 的大作中提到】
: goodbug的逻辑之java版:
: boolean 算毛(Object xx)
: {
: boolean 科比得过81分 = true
: return 科比得过81分;
: }
: c#版:
: bool 算毛(object xx)
: {
: var 科比得过81分 = true

相关主题
JAVA的确是要取代C++的问下java大牛平时都做些啥工作
C# 的一些新feature.c++ size_t 一问
有什么课是用PYTHON 语言讲算法的? (转载)三个C syntax 弱问题
进入Programming版参与讨论
g*****g
发帖数: 34805
101
LOL,这个语录还真不是我说的,是科黑想出来的,你丫弱智得不行了。

【在 G***l 的大作中提到】
: goodbug的逻辑之java版:
: boolean 算毛(Object xx)
: {
: boolean 科比得过81分 = true
: return 科比得过81分;
: }
: c#版:
: bool 算毛(object xx)
: {
: var 科比得过81分 = true

G***l
发帖数: 355
102
弱智到不行的是你才对吧,讽刺都看不出来。给你解释一下吧,那个就是你的发帖的逻
辑,表死皮赖脸不承认。你的逻辑思维果然很烂,只配跟阿三一起搞搞j2ee吹吹牛。

【在 g*****g 的大作中提到】
: LOL,这个语录还真不是我说的,是科黑想出来的,你丫弱智得不行了。
g*****g
发帖数: 34805
103
你真够脑残的,你来回论证就一句。C#有Linq,Java算个毛。
跟我给的那么多索引比,原来你俩才是有逻辑的,您老人至贱则无敌才是真的。上次被
我打脸打残了,这次又不吸取教训。

【在 G***l 的大作中提到】
: 弱智到不行的是你才对吧,讽刺都看不出来。给你解释一下吧,那个就是你的发帖的逻
: 辑,表死皮赖脸不承认。你的逻辑思维果然很烂,只配跟阿三一起搞搞j2ee吹吹牛。

N*****m
发帖数: 42603
104
看不懂上下文啊
这里说的hadoop是指此类mapreduce库

【在 z****e 的大作中提到】
: 看不下去了
: 难倒hadoop不是java写的?
: hadoop不是java蝎子拉屎难倒还是c++的蝎子拉屎?
: 要照这个逻辑,那c++写的跟java有对应系统多了
: 是不是tomcat也不是java的蝎子拉屎?因为有c++的web server?

1 (共1页)
进入Programming版参与讨论
相关主题
operator overloading (C++)c++ size_t 一问
C++ syntax question三个C syntax 弱问题
int F::*x = &F::x是什么意思?a question abou dll, 3x!!
Python 缩进的syntax来几个C++测试题
JAVA的确是要取代C++的[合集] 编程的习惯问题
C# 的一些新feature.C++ 无效语句?
有什么课是用PYTHON 语言讲算法的? (转载)What is wrong in this array declaration.
问下java大牛平时都做些啥工作metaprogramming
相关话题的讨论汇总
话题: linq话题: java话题: sugar话题: syntactic话题: c#