Re: D-Man culture

2016-07-28 Thread jdfgjdf via Digitalmars-d-announce

On Thursday, 28 July 2016 at 09:06:42 UTC, Jack Applegame wrote:

To be honest, with those legs she should wear a longer skirt. :D


Yes that's two fucking hams she's got.


Re: D-Man culture

2016-07-28 Thread Kagamin via Digitalmars-d-announce

On Wednesday, 27 July 2016 at 19:50:13 UTC, Walter Bright wrote:

partially unbuttoned blouse


That's a faithful reference to the empty space in the middle of 
D-Man :)


Re: New Diet template engine almost complete, ready for comments

2016-07-28 Thread Sönke Ludwig via Digitalmars-d-announce

Am 28.07.2016 um 20:07 schrieb WhatMeWorry:

On Monday, 25 July 2016 at 09:29:38 UTC, Sönke Ludwig wrote:

The Diet template language is aimed at providing a way to define
procedurally generated HTML/XML pages (or other output formats), with
minimal visual noise. Syntax and feature set are heavily inspired by
Jade , but instead of JavaScript, all
expressions and statements are D statements,


Is "Diet template" a D/Vibe unique language? I can't find anything to
contradict that view, but just wanted to sure. Every time I try and look
it up on google, it takes me to weight loss stuff :)   Good name though.


Yes, it started out as vibe.d exclusive (now it's properly decoupled 
from it). For Google it's probably not popular enough, atm, but I've 
registered diet-lang.org, which should help a lot once it gets filled 
with content.


Re: New Diet template engine almost complete, ready for comments

2016-07-28 Thread WhatMeWorry via Digitalmars-d-announce

On Monday, 25 July 2016 at 09:29:38 UTC, Sönke Ludwig wrote:
The Diet template language is aimed at providing a way to 
define procedurally generated HTML/XML pages (or other output 
formats), with minimal visual noise. Syntax and feature set are 
heavily inspired by Jade , but instead 
of JavaScript, all expressions and statements are D statements,


Is "Diet template" a D/Vibe unique language? I can't find 
anything to contradict that view, but just wanted to sure. Every 
time I try and look it up on google, it takes me to weight loss 
stuff :)   Good name though.


Re: D-Man culture

2016-07-28 Thread Seb via Digitalmars-d-announce

On Thursday, 28 July 2016 at 10:16:19 UTC, Chris wrote:

On Thursday, 28 July 2016 at 09:35:20 UTC, Walter Bright wrote:

On 7/28/2016 2:06 AM, Jack Applegame wrote:

[...]


Past time to drop this topic.


Any way we could generate revenue with the (real) D-Man? I 
don't know, if it existed independently of DLang, or if it's in 
some way related to DLang. In the latter case we might use it 
to make some money for the D Foundation.


@Chris you should get in touch with the nice guys from 
Sociomantic (e.g.
Dylan Cromwell (https://github.com/dylan-cromwell-sociomantic) 
and Leandro Lucarella 
(https://github.com/leandro-lucarella-sociomantic)). They are 
working on helping the D Foundation to setup a D Store with swag 
;-)


Re: New Diet template engine almost complete, ready for comments

2016-07-28 Thread Sönke Ludwig via Digitalmars-d-announce

Am 28.07.2016 um 15:26 schrieb Chris:

On Monday, 25 July 2016 at 09:29:38 UTC, Sönke Ludwig wrote:

The Diet template language is aimed at providing a way to define
procedurally generated HTML/XML pages (or other output formats), with
minimal visual noise. Syntax and feature set are heavily inspired by
Jade , but instead of JavaScript, all
expressions and statements are D statements, and everything that can
be done at compile-time is done at compile-time.

Vibe.d still contains the original implementation, which was written
around the limitations of DMD's CTFE engine back years ago, and is
basically a monolithic parser+generator with little flexibility and a
number of convenience features missing, because of their
implementation complexity. The new implementation has been rewritten
cleanly, with separate parser, modifier and generator modules, working
on a common DOM tree intermediate representation.

The major new features/improvements are:

  - No external dependencies other than Phobos
  - Supports inline and nested tags syntax
  - Supports string interpolations within filter nodes (falls back to
runtime filters)
  - Supports AngularJS special attribute names
  - Extensible/configurable with traits structures
  - Uses less memory during compilation (this one was a real surprise)
  - (Unit) tested from the start
  - Supports arbitrary uses other than generating HTML, for example we
   use it similar to QML/XAML for our internal UI framework

The API documentation can be shown ba running DUB:
   dub fetch diet-ng --version=1.0.0-alpha.2
   dub run diet-ng -b ddox

You can try the library directly, or together with the latest alpha
release of vibe.d (0.7.30-alpha.3). Simply add a dependency to
"diet-ng", version "~>1.0.0-alpha.2". Vibe.d will automatically
re-route render!(...) calls to diet-ng.

A small example with just the most essential features is shown in the
README:
https://code.dlang.org/packages/diet-ng

More complex real-world examples:
https://github.com/rejectedsoftware/vibed.org/tree/master/views
https://github.com/rejectedsoftware/ddox/tree/master/views

Any comments/requests regarding the feature set or API are highly
welcome!


Great stuff! Very much appreciated. Btw, the link to jade-lang.org
(don't click!) leads to a dodgy business homepage atm. The right address is

http://jade-lang.com/


Oh, dang! Thanks for mentioning this. Fortunately I copy/pasted the 
right link to the README.


Re: New Diet template engine almost complete, ready for comments

2016-07-28 Thread rikki cattermole via Digitalmars-d-announce

On 29/07/2016 1:57 AM, Rory McGuire via Digitalmars-d-announce wrote:



On Thu, Jul 28, 2016 at 3:26 PM, Chris via Digitalmars-d-announce
> wrote:

Great stuff! Very much appreciated. Btw, the link to jade-lang.org
 (don't click!) leads to a dodgy business
homepage atm. The right address is

http://jade-lang.com/


Also:

Renaming jade -> pug #2184
https://github.com/pugjs/pug/issues/2184


Hehehehe, I was wondering when this would come up :)

They are only like 2.5km away from me.


Re: New Diet template engine almost complete, ready for comments

2016-07-28 Thread Rory McGuire via Digitalmars-d-announce
On Thu, Jul 28, 2016 at 3:26 PM, Chris via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:
>
> Great stuff! Very much appreciated. Btw, the link to jade-lang.org (don't
> click!) leads to a dodgy business homepage atm. The right address is
>
> http://jade-lang.com/
>

Also:

Renaming jade -> pug #2184
https://github.com/pugjs/pug/issues/2184


Re: New Diet template engine almost complete, ready for comments

2016-07-28 Thread Chris via Digitalmars-d-announce

On Monday, 25 July 2016 at 09:29:38 UTC, Sönke Ludwig wrote:
The Diet template language is aimed at providing a way to 
define procedurally generated HTML/XML pages (or other output 
formats), with minimal visual noise. Syntax and feature set are 
heavily inspired by Jade , but instead 
of JavaScript, all expressions and statements are D statements, 
and everything that can be done at compile-time is done at 
compile-time.


Vibe.d still contains the original implementation, which was 
written around the limitations of DMD's CTFE engine back years 
ago, and is basically a monolithic parser+generator with little 
flexibility and a number of convenience features missing, 
because of their implementation complexity. The new 
implementation has been rewritten cleanly, with separate 
parser, modifier and generator modules, working on a common DOM 
tree intermediate representation.


The major new features/improvements are:

  - No external dependencies other than Phobos
  - Supports inline and nested tags syntax
  - Supports string interpolations within filter nodes (falls 
back to

runtime filters)
  - Supports AngularJS special attribute names
  - Extensible/configurable with traits structures
  - Uses less memory during compilation (this one was a real 
surprise)

  - (Unit) tested from the start
  - Supports arbitrary uses other than generating HTML, for 
example we

   use it similar to QML/XAML for our internal UI framework

The API documentation can be shown ba running DUB:
   dub fetch diet-ng --version=1.0.0-alpha.2
   dub run diet-ng -b ddox

You can try the library directly, or together with the latest 
alpha release of vibe.d (0.7.30-alpha.3). Simply add a 
dependency to "diet-ng", version "~>1.0.0-alpha.2". Vibe.d will 
automatically re-route render!(...) calls to diet-ng.


A small example with just the most essential features is shown 
in the README:

https://code.dlang.org/packages/diet-ng

More complex real-world examples:
https://github.com/rejectedsoftware/vibed.org/tree/master/views
https://github.com/rejectedsoftware/ddox/tree/master/views

Any comments/requests regarding the feature set or API are 
highly welcome!


Great stuff! Very much appreciated. Btw, the link to 
jade-lang.org (don't click!) leads to a dodgy business homepage 
atm. The right address is


http://jade-lang.com/


Re: D-Man culture

2016-07-28 Thread Chris via Digitalmars-d-announce

On Thursday, 28 July 2016 at 09:35:20 UTC, Walter Bright wrote:

On 7/28/2016 2:06 AM, Jack Applegame wrote:

[...]


Past time to drop this topic.


Any way we could generate revenue with the (real) D-Man? I don't 
know, if it existed independently of DLang, or if it's in some 
way related to DLang. In the latter case we might use it to make 
some money for the D Foundation.


Re: D-Man culture

2016-07-28 Thread Walter Bright via Digitalmars-d-announce

On 7/28/2016 2:06 AM, Jack Applegame wrote:

[...]


Past time to drop this topic.


Re: D-Man culture

2016-07-28 Thread Jack Applegame via Digitalmars-d-announce

On Thursday, 28 July 2016 at 01:58:13 UTC, ketmar wrote:

On Wednesday, 27 July 2016 at 19:50:13 UTC, Walter Bright wrote:
While I appreciate the effort and the offer, it is 
inappropriate to have a woman with a miniskirt and partially 
unbuttoned blouse as an official mascot for D.


i agree. she has too much clothes on.

To be honest, with those legs she should wear a longer skirt. :D


Re: New Diet template engine almost complete, ready for comments

2016-07-28 Thread Sönke Ludwig via Digitalmars-d-announce

Am 26.07.2016 um 07:54 schrieb Sönke Ludwig:

However, what should work well is a combination of
https://github.com/dlang/dub/pull/446 and
https://github.com/rejectedsoftware/vibe.d/pull/1385 - I'll merge the
latter one into vibe.d master today.


I decided against putting it into vibe.d and instead re-implemented it 
for diet-ng. It is available in 1.0.0-beta.1 now. See the README section 
for a description: https://code.dlang.org/packages/diet-ng