By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,686 Members | 1,510 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,686 IT Pros & Developers. It's quick & easy.

Difference lists

P: n/a
Hallo, does anyone have an idea how to implement difference lists in
Javascript?

Thanks allot in advance

Aug 7 '07 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Petronius said the following on 8/7/2007 4:39 PM:
Hallo, does anyone have an idea how to implement difference lists in
Javascript?
That depends on what you are calling a "difference list".

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 7 '07 #2

P: n/a
Petronius wrote on 07 aug 2007 in comp.lang.javascript:
Hallo, does anyone have an idea how to implement difference lists in
Javascript?
I don't think so, but it would make a difference.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 7 '07 #3

P: n/a
Randy Webb wrote on 08 aug 2007 in comp.lang.javascript:
Petronius said the following on 8/7/2007 4:39 PM:
>Hallo, does anyone have an idea how to implement difference lists in
Javascript?

That depends on what you are calling a "difference list".
I don't think so, Randy.

As long as no one knows(!!) what he means by a "difference list",
the answer must be "no".

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 7 '07 #4

P: n/a
Evertjan. said the following on 8/7/2007 7:12 PM:
Randy Webb wrote on 08 aug 2007 in comp.lang.javascript:
>Petronius said the following on 8/7/2007 4:39 PM:
>>Hallo, does anyone have an idea how to implement difference lists in
Javascript?
That depends on what you are calling a "difference list".

I don't think so, Randy.
If you don't think so, and I think so but might not think so, and we
have a difference, would that be a "difference list"? :-)
As long as no one knows(!!) what he means by a "difference list",
the answer must be "no".
I think we need to come up with a "difference list" to determine the
difference between knowing and not knowing what a difference list is :)

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 7 '07 #5

P: n/a
On 8 Sie, 00:36, Randy Webb <HikksNotAtH...@aol.comwrote:
Petronius said the following on 8/7/2007 4:39 PM:
Hallo, does anyone have an idea how to implement difference lists in
Javascript?

That depends on what you are calling a "difference list".

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
You don't know what is a difference list in functional languages? :-o
Google helps you to find an explanation (try e.g. "difference lists
haskell") ;-)
What I'm asking for is the best solution to implement them in
Javascript.

Aug 8 '07 #6

P: n/a
Just as there are ten sorts of people: Those who understand binary, and
those who don't, there are two sorts of people in my difference list:
Those who know what a difference list is, and those who don't.

I would guess that at least 99% of the people reading this (including
me) are in the latter.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Aug 8 '07 #7

P: n/a
Petronius wrote on 08 aug 2007 in comp.lang.javascript:
On 8 Sie, 00:36, Randy Webb <HikksNotAtH...@aol.comwrote:
>Petronius said the following on 8/7/2007 4:39 PM:
Hallo, does anyone have an idea how to implement difference lists
in Javascript?

That depends on what you are calling a "difference list".
[please do not quote signatures on usenet]
>
You don't know what is a difference list in functional languages? :-o
Google helps you to find an explanation (try e.g. "difference lists
haskell") ;-)
What I'm asking for is the best solution to implement them in
Javascript.

As you, Petronius, are the asking party,
importing terms that are not part of javascript,
the burden is on you to supply the explanation,
certainly when hinted at.

Furthermore, asking for "the best solution" is contradictory in iself,
given the subjectivity of the mening of "best". You clould certainly add,
wy you would like to implement them, since obviously we don't feel that
urge.

Just pointing to Google seems not the way to explain.
Please ad some substance, that will make the difference.

Example [taking the words of your illustrious but elusive namesake]:

'Haec vulnera pro libertate publica excepi; hunc oculum pro vobis
impendi: date mihi ducem, qui me ducat ad liberos meos, nam succisi
poplites membra non sustinent'?
<http://www.thelatinlibrary.com/petronius1.html>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 8 '07 #8

P: n/a
Petronius said the following on 8/8/2007 3:28 AM:
On 8 Sie, 00:36, Randy Webb <HikksNotAtH...@aol.comwrote:
>Petronius said the following on 8/7/2007 4:39 PM:
>>Hallo, does anyone have an idea how to implement difference lists in
Javascript?
That depends on what you are calling a "difference list".
You don't know what is a difference list in functional languages? :-o
I will leave it to others to determine the answer to that question.
Google helps you to find an explanation (try e.g. "difference lists
haskell") ;-)
You ask for help, you give answers to the questions asked to give you
that help. You don't require the people trying to help you to look up
what it is you are talking about.
What I'm asking for is the best solution to implement them in
Javascript.
Again, that depends - directly - on what *you* are referring to as a
"difference list". And until you explain that, nobody can answer you
without making some guesses. I don't feel like guessing today.

Looking at the wiki entry on a difference list, how you would implement
one in JS depends on how your original lists are created. Are they comma
seperated, array entries, object properties, or......

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 8 '07 #9

P: n/a
In comp.lang.javascript message <11*********************@57g2000hsv.goog
legroups.com>, Tue, 7 Aug 2007 13:39:28, Petronius <ho******@gmail.com>
posted:
>Hallo, does anyone have an idea how to implement difference lists in
Javascript?
Yes.

--
(c) John Stockton, Surrey, UK. ??*@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.
Aug 8 '07 #10

P: n/a
Petronius wrote:
Hallo, does anyone have an idea how to implement difference lists in
Javascript?
Trying to let others do our homework for free, are we?

http://en.wikipedia.org/wiki/Difference_list
http://www.crockford.com/javascript/javascript.html
HTH & HAND

PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Aug 8 '07 #11

P: n/a
On Aug 8, 10:30 am, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
Petronius wrote:
Hallo, does anyone have an idea how to implement difference lists in
Javascript?

Trying to let others do our homework for free, are we?

http://en.wikipedia.org/wiki/Differe...avascript.html

HTH & HAND

PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
According to the WikiPedia entry, there are two types of difference
lists.

The first one, the difference of two lists, would use two arrays and
created a third array containing the exclusion set. That is a good
algorithm question.

Petronius, Is this the difference function you meant?

You should be able to find this published online (in various
languages), where you can compare algorithms. It's a good one to think
about.

Garrett

Aug 8 '07 #12

P: n/a
dh**********@gmail.com wrote:
[...] Thomas 'PointedEars' Lahn [...] wrote:
>Petronius wrote:
>>Hallo, does anyone have an idea how to implement difference lists in
Javascript?
Trying to let others do our homework for free, are we?

http://en.wikipedia.org/wiki/Differe...avascript.html
I posted the second link, which BTW was *on another line*, to point out that
ECMAScript implementations (like JavaScript) are very similar to functional
languages in that regard. So it would not be very difficult to implement a
difference list in JS if one had a single clue what a difference list was.
Hence the "homework" reference.

It would be best if you refrained from using Google's buggy Web interface
for posting ...
>[...]
.... and learned how to quote correctly on Usenet.

http://netmeister.org/news/learn2quote.html
HTH

PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Aug 8 '07 #13

This discussion thread is closed

Replies have been disabled for this discussion.