www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Need a JQuery plugin for D

reply Walter Bright <newshound2 digitalmars.com> writes:
https://i.stack.imgur.com/ssRUr.gif
May 12 2015
next sibling parent reply "H. S. Teoh via Digitalmars-d" <digitalmars-d puremagic.com> writes:
On Tue, May 12, 2015 at 08:54:01AM -0700, Walter Bright via Digitalmars-d wrote:
 https://i.stack.imgur.com/ssRUr.gif
Unfortunately, I think that requires D language extensions, because currently module-level operator overloading isn't possible, which would mean that it's impossible to overload the built-in integer addition operator with a jQuery integer addition function. Not overloading integer addition would be bad, because that's just yet another evil bad design inherited from C++, and if we're gonna implement std.jquery, we had better do it right and overload all built-in operators on all built-in types. And of course, the new integer addition function must use template metaprogramming and ranges, because that's where we want D to go right now, so we must also make module-level template operator overloading possible, and make mockup integer types for input / forward / bidirectional / random access ranges for adequate unittest coverage. There should also be ddoc comments thoroughly explaining all possible cases of integer addition along with their expected results. This should be reinforced by appropriate in/out contracts, too, which means we'll have to dig up that ugly old thread about why the current DbC implementation in D is flawed. All in all, I think this is a good direction to go in, but it may require too many language changes, which Walter probably wouldn't approve since it destabilizes the language. Perhaps there's a way to do it as a library extension using version(), static-if blocks, and arcane metaprogramming tricks involving __traits and CTFE. But Andrei and the other core devs is too busy to be working on low-level stuff like this, so where are those invisible champions who will push the PR through to completion? C'mon, people, stop writing essays on the forum, and get back onto GitHub; be the change that you wish to see happen! T -- There are four kinds of lies: lies, damn lies, and statistics.
May 12 2015
parent "Idan Arye" <GenericNPC gmail.com> writes:
On Tuesday, 12 May 2015 at 16:51:53 UTC, H. S. Teoh wrote:
 On Tue, May 12, 2015 at 08:54:01AM -0700, Walter Bright via 
 Digitalmars-d wrote:
 https://i.stack.imgur.com/ssRUr.gif
Unfortunately, I think that requires D language extensions, because currently module-level operator overloading isn't possible, which would mean that it's impossible to overload the built-in integer addition operator with a jQuery integer addition function. Not overloading integer addition would be bad, because that's just yet another evil bad design inherited from C++, and if we're gonna implement std.jquery, we had better do it right and overload all built-in operators on all built-in types. And of course, the new integer addition function must use template metaprogramming and ranges, because that's where we want D to go right now, so we must also make module-level template operator overloading possible, and make mockup integer types for input / forward / bidirectional / random access ranges for adequate unittest coverage. There should also be ddoc comments thoroughly explaining all possible cases of integer addition along with their expected results. This should be reinforced by appropriate in/out contracts, too, which means we'll have to dig up that ugly old thread about why the current DbC implementation in D is flawed. All in all, I think this is a good direction to go in, but it may require too many language changes, which Walter probably wouldn't approve since it destabilizes the language. Perhaps there's a way to do it as a library extension using version(), static-if blocks, and arcane metaprogramming tricks involving __traits and CTFE. But Andrei and the other core devs is too busy to be working on low-level stuff like this, so where are those invisible champions who will push the PR through to completion? C'mon, people, stop writing essays on the forum, and get back onto GitHub; be the change that you wish to see happen! T
I've started working on something. I'm currently stuck on making $("int") get a range of all the integers in the process. Do we have a trait or something I can use?
May 12 2015
prev sibling next sibling parent Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On 05/12/2015 11:54 AM, Walter Bright wrote:
 https://i.stack.imgur.com/ssRUr.gif
That is hilarious. And disturbing ;)
May 14 2015
prev sibling parent reply "extrawurst" <stephan extrawurst.org> writes:
On Tuesday, 12 May 2015 at 15:53:53 UTC, Walter Bright wrote:
 https://i.stack.imgur.com/ssRUr.gif
I hope this is fake!?
May 14 2015
parent reply "Wyatt" <wyatt.epp gmail.com> writes:
On Thursday, 14 May 2015 at 18:09:06 UTC, extrawurst wrote:
 On Tuesday, 12 May 2015 at 15:53:53 UTC, Walter Bright wrote:
 https://i.stack.imgur.com/ssRUr.gif
I hope this is fake!?
Look at the sidebar stuff. It's clearly a joke. (From about two years ago, I think?)
May 14 2015
next sibling parent reply "Idan Arye" <GenericNPC gmail.com> writes:
On Thursday, 14 May 2015 at 18:23:47 UTC, Wyatt wrote:
 On Thursday, 14 May 2015 at 18:09:06 UTC, extrawurst wrote:
 On Tuesday, 12 May 2015 at 15:53:53 UTC, Walter Bright wrote:
 https://i.stack.imgur.com/ssRUr.gif
I hope this is fake!?
Look at the sidebar stuff. It's clearly a joke. (From about two years ago, I think?)
I've seen this joke several times and this is the first time I looked at the sidebar. It's even more hilarious than the main joke! "Is there a jQuery plugin for making an html page appear in the browser?"
May 14 2015
parent "Chris" <wendlec tcd.ie> writes:
On Thursday, 14 May 2015 at 19:11:19 UTC, Idan Arye wrote:
 On Thursday, 14 May 2015 at 18:23:47 UTC, Wyatt wrote:
 On Thursday, 14 May 2015 at 18:09:06 UTC, extrawurst wrote:
 On Tuesday, 12 May 2015 at 15:53:53 UTC, Walter Bright wrote:
 https://i.stack.imgur.com/ssRUr.gif
I hope this is fake!?
Look at the sidebar stuff. It's clearly a joke. (From about two years ago, I think?)
I've seen this joke several times and this is the first time I looked at the sidebar. It's even more hilarious than the main joke! "Is there a jQuery plugin for making an html page appear in the browser?"
"Obviously I must be doing something wrong as jQuery is perfect" :O Ha ha ha!
May 15 2015
prev sibling parent "extrawurst" <stephan extrawurst.org> writes:
On Thursday, 14 May 2015 at 18:23:47 UTC, Wyatt wrote:
 On Thursday, 14 May 2015 at 18:09:06 UTC, extrawurst wrote:
 On Tuesday, 12 May 2015 at 15:53:53 UTC, Walter Bright wrote:
 https://i.stack.imgur.com/ssRUr.gif
I hope this is fake!?
Look at the sidebar stuff. It's clearly a joke. (From about two years ago, I think?)
the sidebar is great!! XD
May 15 2015