digitalmars.D - Need a JQuery plugin for D
- Walter Bright (1/1) May 12 2015 https://i.stack.imgur.com/ssRUr.gif
- H. S. Teoh via Digitalmars-d (31/32) May 12 2015 Unfortunately, I think that requires D language extensions, because
- Idan Arye (4/57) May 12 2015 I've started working on something. I'm currently stuck on making
- Nick Sabalausky (2/3) May 14 2015 That is hilarious. And disturbing ;)
- extrawurst (2/3) May 14 2015 I hope this is fake!?
- Wyatt (3/6) May 14 2015 Look at the sidebar stuff. It's clearly a joke. (From about two
- Idan Arye (6/13) May 14 2015 I've seen this joke several times and this is the first time I
- Chris (3/17) May 15 2015 "Obviously I must be doing something wrong as jQuery is perfect"
- extrawurst (2/9) May 15 2015 the sidebar is great!! XD
On Tue, May 12, 2015 at 08:54:01AM -0700, Walter Bright via Digitalmars-d wrote:https://i.stack.imgur.com/ssRUr.gifUnfortunately, 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
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: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?https://i.stack.imgur.com/ssRUr.gifUnfortunately, 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
May 12 2015
On 05/12/2015 11:54 AM, Walter Bright wrote:https://i.stack.imgur.com/ssRUr.gifThat is hilarious. And disturbing ;)
May 14 2015
On Tuesday, 12 May 2015 at 15:53:53 UTC, Walter Bright wrote:https://i.stack.imgur.com/ssRUr.gifI hope this is fake!?
May 14 2015
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:Look at the sidebar stuff. It's clearly a joke. (From about two years ago, I think?)https://i.stack.imgur.com/ssRUr.gifI hope this is fake!?
May 14 2015
On Thursday, 14 May 2015 at 18:23:47 UTC, Wyatt wrote:On Thursday, 14 May 2015 at 18:09:06 UTC, extrawurst wrote: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?"On Tuesday, 12 May 2015 at 15:53:53 UTC, Walter Bright wrote:Look at the sidebar stuff. It's clearly a joke. (From about two years ago, I think?)https://i.stack.imgur.com/ssRUr.gifI hope this is fake!?
May 14 2015
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:"Obviously I must be doing something wrong as jQuery is perfect" :O Ha ha ha!On Thursday, 14 May 2015 at 18:09:06 UTC, extrawurst wrote: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?"On Tuesday, 12 May 2015 at 15:53:53 UTC, Walter Bright wrote:Look at the sidebar stuff. It's clearly a joke. (From about two years ago, I think?)https://i.stack.imgur.com/ssRUr.gifI hope this is fake!?
May 15 2015
On Thursday, 14 May 2015 at 18:23:47 UTC, Wyatt wrote:On Thursday, 14 May 2015 at 18:09:06 UTC, extrawurst wrote:the sidebar is great!! XDOn Tuesday, 12 May 2015 at 15:53:53 UTC, Walter Bright wrote:Look at the sidebar stuff. It's clearly a joke. (From about two years ago, I think?)https://i.stack.imgur.com/ssRUr.gifI hope this is fake!?
May 15 2015