[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

making Ruby a standard browser side language

SpringFlowers AutumnMoon

4/15/2008 1:26:00 PM

it looks like Prototype was made to mimic Ruby in Javascript, and people
who use Prototype usually love it. I wonder if Ruby can be made into
another browser side language and what can make that happen? If Firefox
adds a Ruby interpreter to its browser and some killer websites come out
with features only supported by Ruby-enabled browsers, maybe Microsoft
and Apple will have incentive to make Ruby go into IE and Safari too?
Apple probably already loves Ruby as they put Ruby on Tiger and then
added Rails on Leopard.
--
Posted via http://www.ruby-....

13 Answers

Avdi Grimm

4/15/2008 2:20:00 PM

0

On Tue, Apr 15, 2008 at 9:25 AM, SpringFlowers AutumnMoon
<summercoolness@gmail.com> wrote:
> it looks like Prototype was made to mimic Ruby in Javascript, and people
> who use Prototype usually love it. I wonder if Ruby can be made into
> another browser side language and what can make that happen? If Firefox
> adds a Ruby interpreter to its browser and some killer websites come out
> with features only supported by Ruby-enabled browsers, maybe Microsoft
> and Apple will have incentive to make Ruby go into IE and Safari too?

Microsoft is way ahead of Mozilla and Apple in that department.
Silverlight allows web pages to be scripted with Ruby.

But I don't think it's going to take off, any more than previous
attempts to put VBScript, Python, TCL, etc. in the browser have
succeeded. Browser makers have a hard enough time standardizing their
rendering of [X]HTML, ECMAScript, and CSS without adding more
languages for them to handle in subtly incompatible ways.

--
Avdi

Home: http:...
Developer Blog: http:.../devblog/
Twitter: http://twitte...
Journal: http://avdi.livej...

Joel VanderWerf

4/15/2008 4:21:00 PM

0

SpringFlowers AutumnMoon wrote:
> it looks like Prototype was made to mimic Ruby in Javascript, and people
> who use Prototype usually love it. I wonder if Ruby can be made into
> another browser side language and what can make that happen? If Firefox
> adds a Ruby interpreter to its browser and some killer websites come out
> with features only supported by Ruby-enabled browsers, maybe Microsoft
> and Apple will have incentive to make Ruby go into IE and Safari too?
> Apple probably already loves Ruby as they put Ruby on Tiger and then
> added Rails on Leopard.

An interesting attempt to interpret ruby bytecodes (YARV) in javascript:

http://hotruby.a...

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Magicloud Magiclouds

4/16/2008 5:56:00 AM

0

Avdi Grimm wrote:
> On Tue, Apr 15, 2008 at 9:25 AM, SpringFlowers AutumnMoon
> <summercoolness@gmail.com> wrote:
>
>> it looks like Prototype was made to mimic Ruby in Javascript, and people
>> who use Prototype usually love it. I wonder if Ruby can be made into
>> another browser side language and what can make that happen? If Firefox
>> adds a Ruby interpreter to its browser and some killer websites come out
>> with features only supported by Ruby-enabled browsers, maybe Microsoft
>> and Apple will have incentive to make Ruby go into IE and Safari too?
>>
>
> Microsoft is way ahead of Mozilla and Apple in that department.
> Silverlight allows web pages to be scripted with Ruby.
>
> But I don't think it's going to take off, any more than previous
> attempts to put VBScript, Python, TCL, etc. in the browser have
> succeeded. Browser makers have a hard enough time standardizing their
> rendering of [X]HTML, ECMAScript, and CSS without adding more
> languages for them to handle in subtly incompatible ways.
>
>
Firebird is working on "python script", not officially, but I think this
is a good start, later though.

ara.t.howard

4/16/2008 6:00:00 AM

0


On Apr 15, 2008, at 7:25 AM, SpringFlowers AutumnMoon wrote:
> it looks like Prototype was made to mimic Ruby in Javascript, and
> people
> who use Prototype usually love it. I wonder if Ruby can be made into
> another browser side language and what can make that happen? If
> Firefox
> adds a Ruby interpreter to its browser and some killer websites come
> out
> with features only supported by Ruby-enabled browsers, maybe Microsoft
> and Apple will have incentive to make Ruby go into IE and Safari too?
> Apple probably already loves Ruby as they put Ruby on Tiger and then
> added Rails on Leopard.

http://headius.blogspot.com/2006/11/ruby-for-web-...

a @ http://codeforp...
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama




SpringFlowers AutumnMoon

4/17/2008 11:43:00 AM

0

Avdi Grimm wrote:

> Microsoft is way ahead of Mozilla and Apple in that department.
> Silverlight allows web pages to be scripted with Ruby.

so Silverlight is like a Flash program that can be written in many
languages including Ruby? can it become popular, since Flash is not
popular as a standalone app such as email program (gmail or yahoo mail)
or bank's website. they still just javascript and AJAX to do things.

--
Posted via http://www.ruby-....

Will in New Haven

1/9/2009 3:05:00 AM

0

On Jan 8, 5:31 pm, Jerry Kraus <jkraus_1...@yahoo.com> wrote:
> On Jan 8, 1:55 pm, eatfastnoodle <d12s34...@gmail.com> wrote:
>
>
>
> > On Jan 8, 9:54 am, Jerry Kraus <jkraus_1...@yahoo.com> wrote:
>
> > > Mao Tse Tung was born and raised Confucian, and he never renounced
> > > this upbringing. He was a Confucian prior to being a Marxist, and it
> > > can be argued that Confucianism remained his primary social-religious
> > > orientation. His last two decades were consumed in trying to
> > > reconcile revolutionary principles with Confucianism, with the
> > > "Cultural Revolution" of the 1960's -- effectively, a social
> > > revolution to maintain the status quo -- being the result.
>
> > > Suppose, instead, he had been a Buddhist. Bear in mind, Pol Pot was a
> > > Buddhist. The Imperial Japanese were Buddhists. The Nazis were
> > > influenced by the transcendental disciplines of Buddhism and the
> > > Swastika is a Buddhist religious symbol. Ho Chi Minh, in Vietnam, was
> > > so thoroughly Westernized that he probably was not a Buddhist, but,
> > > rather, a Marxist-Leninist. So, on the whole, attempts to fuse
> > > Buddhist transcendentalism with Socialism didn't work out too well, in
> > > the twentieth century. Seems to lead to apocalyptic nihilism, on the
> > > whole.
>
> > > So, does Mao turn into a super Pol Pot who exterminates the entire
> > > Chinese Nation in order to forge the theoretically perfect Communist
> > > State, once he is in power? Do the essentially pragmatic Chinese
> > > people, steeped in Confucianism, tolerate a Socialist Buddhist
> > > leader? Do they remove him from power, once they see he is a few
> > > slices short of a full loaf, a la Pol Pot? Does Stalin save the
> > > Chinese people the trouble of removing him from power, by doing it for
> > > them?
>
> > > Or, does Buddhist Mao somehow find the perfect fusion of Buddhist
> > > transcendentalism and Socialism?
>
> > Well, if you read Mao's early writtings, you would know young Mao,
> > long before he became a revolutionary, had already written extensive,
> > blistering attack against Confucianism, the biggest target of the
> > cultural revolution is Confucianism, not to mention his behavior and
> > belief were clearly much more in line with The First Emperor of China
> > whose philosophy was fundamentally at odds with Confucianism and whose
> > attempt to eradicate Confucianism resulted in countless Confucian
> > scholars being buried alive and countless Confucian books being burned
> > into extinction. Your argument that Mao was a Confucian doesn't really
> > hold water.- Hide quoted text -
>
> > - Show quoted text -
>
> ???: "?????????,??????,????,?????""??????,?????????????????,??????'?
> ??',?????????????"
>
> Mao seems to have favored Confucius in dealing with fundamental
> problem solving and leadership skills. Don't you think these were
> critical issues to him? Would any have been more critical?

Even so, the term "Buddhist" covers too much ground to make your
question easy to answer. Buddhism comes in too many "flavors." In
China, much Buddhism is heavily influenced by Taoism or vice-versa.
Maybe he could have been a Taoist.

--
Will in New Haven
After a lifelong study of the Buddha’s words, I have to regretfully
admit that the Four Noble Truths are probably not
Faster Horses,
Older Whiskey,
Younger Women,
More Money

Rob Harris

1/9/2009 4:03:00 AM

0

the
"Cultural Revolution" of the 1960's -- effectively, a social
revolution to maintain the status quo -- being the result.


Wow, I've never heard that conclusion. Is it yours? Are you relying
on another source. It would be interesting to see how you fit it
together.

eatfastnoodle

1/9/2009 8:15:00 AM

0

On Jan 8, 4:31 pm, Jerry Kraus <jkraus_1...@yahoo.com> wrote:
> On Jan 8, 1:55 pm, eatfastnoodle <d12s34...@gmail.com> wrote:
>
>
>
> > On Jan 8, 9:54 am, Jerry Kraus <jkraus_1...@yahoo.com> wrote:
>
> > > Mao Tse Tung was born and raised Confucian, and he never renounced
> > > this upbringing. He was a Confucian prior to being a Marxist, and it
> > > can be argued that Confucianism remained his primary social-religious
> > > orientation. His last two decades were consumed in trying to
> > > reconcile revolutionary principles with Confucianism, with the
> > > "Cultural Revolution" of the 1960's -- effectively, a social
> > > revolution to maintain the status quo -- being the result.
>
> > > Suppose, instead, he had been a Buddhist. Bear in mind, Pol Pot was a
> > > Buddhist. The Imperial Japanese were Buddhists. The Nazis were
> > > influenced by the transcendental disciplines of Buddhism and the
> > > Swastika is a Buddhist religious symbol. Ho Chi Minh, in Vietnam, was
> > > so thoroughly Westernized that he probably was not a Buddhist, but,
> > > rather, a Marxist-Leninist. So, on the whole, attempts to fuse
> > > Buddhist transcendentalism with Socialism didn't work out too well, in
> > > the twentieth century. Seems to lead to apocalyptic nihilism, on the
> > > whole.
>
> > > So, does Mao turn into a super Pol Pot who exterminates the entire
> > > Chinese Nation in order to forge the theoretically perfect Communist
> > > State, once he is in power? Do the essentially pragmatic Chinese
> > > people, steeped in Confucianism, tolerate a Socialist Buddhist
> > > leader? Do they remove him from power, once they see he is a few
> > > slices short of a full loaf, a la Pol Pot? Does Stalin save the
> > > Chinese people the trouble of removing him from power, by doing it for
> > > them?
>
> > > Or, does Buddhist Mao somehow find the perfect fusion of Buddhist
> > > transcendentalism and Socialism?
>
> > Well, if you read Mao's early writtings, you would know young Mao,
> > long before he became a revolutionary, had already written extensive,
> > blistering attack against Confucianism, the biggest target of the
> > cultural revolution is Confucianism, not to mention his behavior and
> > belief were clearly much more in line with The First Emperor of China
> > whose philosophy was fundamentally at odds with Confucianism and whose
> > attempt to eradicate Confucianism resulted in countless Confucian
> > scholars being buried alive and countless Confucian books being burned
> > into extinction. Your argument that Mao was a Confucian doesn't really
> > hold water.- Hide quoted text -
>
> > - Show quoted text -
>
> ???: "?????????,??????,????,?????""??????,?????????????????,??????'?
> ??',?????????????"
>
> Mao seems to have favored Confucius in dealing with fundamental
> problem solving and leadership skills. Don't you think these were
> critical issues to him? Would any have been more critical?

Don't want to sound dismissive. But you got your conclusion from the
above quote, you really should not get involved in analyzing Mao.
(He's a voracious reader, he loved to quote extensively to make his
point, even during daily casual conversation, and he probably quoted,
mentioned every living or dead soul on this planet. That in no way
means he's a Confucian, among all the people ever said anything about
Mao, positively or negatively, you probably are the first and only one
ever to indicate Mao is a Confucian. )

Jerry Kraus

1/9/2009 3:56:00 PM

0

On Jan 9, 2:14 am, eatfastnoodle <d12s34...@gmail.com> wrote:
> On Jan 8, 4:31 pm, Jerry Kraus <jkraus_1...@yahoo.com> wrote:
>
>
>
>
>
> > On Jan 8, 1:55 pm, eatfastnoodle <d12s34...@gmail.com> wrote:
>
> > > On Jan 8, 9:54 am, Jerry Kraus <jkraus_1...@yahoo.com> wrote:
>
> > > > Mao Tse Tung was born and raised Confucian, and he never renounced
> > > > this upbringing. He was a Confucian prior to being a Marxist, and it
> > > > can be argued that Confucianism remained his primary social-religious
> > > > orientation. His last two decades were consumed in trying to
> > > > reconcile revolutionary principles with Confucianism, with the
> > > > "Cultural Revolution" of the 1960's -- effectively, a social
> > > > revolution to maintain the status quo -- being the result.
>
> > > > Suppose, instead, he had been a Buddhist. Bear in mind, Pol Pot was a
> > > > Buddhist. The Imperial Japanese were Buddhists. The Nazis were
> > > > influenced by the transcendental disciplines of Buddhism and the
> > > > Swastika is a Buddhist religious symbol. Ho Chi Minh, in Vietnam, was
> > > > so thoroughly Westernized that he probably was not a Buddhist, but,
> > > > rather, a Marxist-Leninist. So, on the whole, attempts to fuse
> > > > Buddhist transcendentalism with Socialism didn't work out too well, in
> > > > the twentieth century. Seems to lead to apocalyptic nihilism, on the
> > > > whole.
>
> > > > So, does Mao turn into a super Pol Pot who exterminates the entire
> > > > Chinese Nation in order to forge the theoretically perfect Communist
> > > > State, once he is in power? Do the essentially pragmatic Chinese
> > > > people, steeped in Confucianism, tolerate a Socialist Buddhist
> > > > leader? Do they remove him from power, once they see he is a few
> > > > slices short of a full loaf, a la Pol Pot? Does Stalin save the
> > > > Chinese people the trouble of removing him from power, by doing it for
> > > > them?
>
> > > > Or, does Buddhist Mao somehow find the perfect fusion of Buddhist
> > > > transcendentalism and Socialism?
>
> > > Well, if you read Mao's early writtings, you would know young Mao,
> > > long before he became a revolutionary, had already written extensive,
> > > blistering attack against Confucianism, the biggest target of the
> > > cultural revolution is Confucianism, not to mention his behavior and
> > > belief were clearly much more in line with The First Emperor of China
> > > whose philosophy was fundamentally at odds with Confucianism and whose
> > > attempt to eradicate Confucianism resulted in countless Confucian
> > > scholars being buried alive and countless Confucian books being burned
> > > into extinction. Your argument that Mao was a Confucian doesn't really
> > > hold water.- Hide quoted text -
>
> > > - Show quoted text -
>
> > ???: "?????????,??????,????,?????""??????,?????????????????,??????'?
> > ??',?????????????"
>
> > Mao seems to have favored Confucius in dealing with fundamental
> > problem solving and leadership skills. Don't you think these were
> > critical issues to him? Would any have been more critical?
>
> Don't want to sound dismissive. But you got your conclusion from the
> above quote, you really should not get involved in analyzing Mao.
> (He's a voracious reader, he loved to quote extensively to make his
> point, even during daily casual conversation, and he probably quoted,
> mentioned every living or dead soul on this planet. That in no way
> means he's a Confucian, among all the people ever said anything about
> Mao, positively or negatively, you probably are the first and only one
> ever to indicate Mao is a Confucian. )- Hide quoted text -
>
> - Show quoted text -

Mao directly attributes his abilities to having studied first
Confucius for 6 years, then Capitalism for 7 years, and, finally,
having studied Marxist-Leninism in his late twenties.

"????????????????,???????????,????????????,??????"

Obviously, Mao rejected Capitalism, Marxist-Leninism requires this.
Does Marxist-Leninism require the rejection of Confucianism? I don't
really think so. They are both knowledge-based efforts to structure
and optimally control society. Confucianism and Marxist-Leninism are
by no means incompatible or unrelated.

I'm not saying that Mao's views were identical to Confucius.
Obviously, they weren't. I'm saying that his interpretation of
Marxist-Leninism is strongly influenced by Confucius.





eatfastnoodle

1/9/2009 7:31:00 PM

0

On Jan 9, 9:56 am, Jerry Kraus <jkraus_1...@yahoo.com> wrote:
> On Jan 9, 2:14 am, eatfastnoodle <d12s34...@gmail.com> wrote:
>
>
>
> > On Jan 8, 4:31 pm, Jerry Kraus <jkraus_1...@yahoo.com> wrote:
>
> > > On Jan 8, 1:55 pm, eatfastnoodle <d12s34...@gmail.com> wrote:
>
> > > > On Jan 8, 9:54 am, Jerry Kraus <jkraus_1...@yahoo.com> wrote:
>
> > > > > Mao Tse Tung was born and raised Confucian, and he never renounced
> > > > > this upbringing. He was a Confucian prior to being a Marxist, and it
> > > > > can be argued that Confucianism remained his primary social-religious
> > > > > orientation. His last two decades were consumed in trying to
> > > > > reconcile revolutionary principles with Confucianism, with the
> > > > > "Cultural Revolution" of the 1960's -- effectively, a social
> > > > > revolution to maintain the status quo -- being the result.
>
> > > > > Suppose, instead, he had been a Buddhist. Bear in mind, Pol Pot was a
> > > > > Buddhist. The Imperial Japanese were Buddhists. The Nazis were
> > > > > influenced by the transcendental disciplines of Buddhism and the
> > > > > Swastika is a Buddhist religious symbol. Ho Chi Minh, in Vietnam, was
> > > > > so thoroughly Westernized that he probably was not a Buddhist, but,
> > > > > rather, a Marxist-Leninist. So, on the whole, attempts to fuse
> > > > > Buddhist transcendentalism with Socialism didn't work out too well, in
> > > > > the twentieth century. Seems to lead to apocalyptic nihilism, on the
> > > > > whole.
>
> > > > > So, does Mao turn into a super Pol Pot who exterminates the entire
> > > > > Chinese Nation in order to forge the theoretically perfect Communist
> > > > > State, once he is in power? Do the essentially pragmatic Chinese
> > > > > people, steeped in Confucianism, tolerate a Socialist Buddhist
> > > > > leader? Do they remove him from power, once they see he is a few
> > > > > slices short of a full loaf, a la Pol Pot? Does Stalin save the
> > > > > Chinese people the trouble of removing him from power, by doing it for
> > > > > them?
>
> > > > > Or, does Buddhist Mao somehow find the perfect fusion of Buddhist
> > > > > transcendentalism and Socialism?
>
> > > > Well, if you read Mao's early writtings, you would know young Mao,
> > > > long before he became a revolutionary, had already written extensive,
> > > > blistering attack against Confucianism, the biggest target of the
> > > > cultural revolution is Confucianism, not to mention his behavior and
> > > > belief were clearly much more in line with The First Emperor of China
> > > > whose philosophy was fundamentally at odds with Confucianism and whose
> > > > attempt to eradicate Confucianism resulted in countless Confucian
> > > > scholars being buried alive and countless Confucian books being burned
> > > > into extinction. Your argument that Mao was a Confucian doesn't really
> > > > hold water.- Hide quoted text -
>
> > > > - Show quoted text -
>
> > > ???: "?????????,??????,????,?????""??????,?????????????????,??????'?
> > > ??',?????????????"
>
> > > Mao seems to have favored Confucius in dealing with fundamental
> > > problem solving and leadership skills. Don't you think these were
> > > critical issues to him? Would any have been more critical?
>
> > Don't want to sound dismissive. But you got your conclusion from the
> > above quote, you really should not get involved in analyzing Mao.
> > (He's a voracious reader, he loved to quote extensively to make his
> > point, even during daily casual conversation, and he probably quoted,
> > mentioned every living or dead soul on this planet. That in no way
> > means he's a Confucian, among all the people ever said anything about
> > Mao, positively or negatively, you probably are the first and only one
> > ever to indicate Mao is a Confucian. )- Hide quoted text -
>
> > - Show quoted text -
>
> Mao directly attributes his abilities to having studied first
> Confucius for 6 years, then Capitalism for 7 years, and, finally,
> having studied Marxist-Leninism in his late twenties.
>
> "????????????????,???????????,????????????,??????"
>
> Obviously, Mao rejected Capitalism, Marxist-Leninism requires this.
> Does Marxist-Leninism require the rejection of Confucianism? I don't
> really think so. They are both knowledge-based efforts to structure
> and optimally control society. Confucianism and Marxist-Leninism are
> by no means incompatible or unrelated.
>
> I'm not saying that Mao's views were identical to Confucius.
> Obviously, they weren't. I'm saying that his interpretation of
> Marxist-Leninism is strongly influenced by Confucius.

Word of advice, go to local university and meet some native Chinese
speakers. They will tell you what he really meant.