Re: Need a JQuery plugin for D

2015-05-15 Thread extrawurst via Digitalmars-d

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


Re: Need a JQuery plugin for D

2015-05-15 Thread Chris via Digitalmars-d

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!


Re: Need a JQuery plugin for D

2015-05-14 Thread Idan Arye via Digitalmars-d

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?"


Re: Need a JQuery plugin for D

2015-05-14 Thread Wyatt via Digitalmars-d

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?)


Re: Need a JQuery plugin for D

2015-05-14 Thread extrawurst via Digitalmars-d

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!?


Re: Need a JQuery plugin for D

2015-05-14 Thread Nick Sabalausky via Digitalmars-d

On 05/12/2015 11:54 AM, Walter Bright wrote:

https://i.stack.imgur.com/ssRUr.gif


That is hilarious. And disturbing ;)


Re: Need a JQuery plugin for D

2015-05-12 Thread Idan Arye via Digitalmars-d

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?


Re: Need a JQuery plugin for D

2015-05-12 Thread H. S. Teoh via Digitalmars-d
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.


Need a JQuery plugin for D

2015-05-12 Thread Walter Bright via Digitalmars-d

https://i.stack.imgur.com/ssRUr.gif