Re: diet-ng Live mode and announcing dietpc

2020-04-29 Thread Greatsam4sure via Digitalmars-d-announce
On Wednesday, 29 April 2020 at 18:47:47 UTC, Steven Schveighoffer 
wrote:

On 4/29/20 1:25 PM, Greatsam4sure wrote:


For chrome and edge refresh does not affect changes in HTML 
content but restart


What about shift-refresh, which should reload the whole thing? 
Sometimes the caching gets in the way (it depends on the 
headers your server is sending).


-Steve


After a rebooting of my system, all browser now works


Re: Interfacing D with C: Arrays and Functions (Arrays Part 2)

2020-04-29 Thread Walter Bright via Digitalmars-d-announce

On 4/28/2020 9:12 AM, Seb wrote:

// Internal Compiler Error: type int[] cannot be mapped to C++

There have been multiple attempts to fix this, the latest one is 
https://github.com/dlang/dmd/pull/8120.
Now, that dmd comes with the (experimental) -H flag for C++ header generation, 
maybe there's more interest in making D arrays/strings work seamlessly between D 
and C++?


They're never going to work seamlessly between D and C++ because C++ does not 
have a standard compatible type for it. We discussed this at length at DConf 2019.


Re: diet-ng Live mode and announcing dietpc

2020-04-29 Thread Steven Schveighoffer via Digitalmars-d-announce

On 4/29/20 1:25 PM, Greatsam4sure wrote:


For chrome and edge refresh does not effect changes in HTML content but 
restart


What about shift-refresh, which should reload the whole thing? Sometimes 
the caching gets in the way (it depends on the headers your server is 
sending).


-Steve


Re: diet-ng Live mode and announcing dietpc

2020-04-29 Thread Greatsam4sure via Digitalmars-d-announce
On Wednesday, 29 April 2020 at 13:43:12 UTC, Steven Schveighoffer 
wrote:

On 4/29/20 9:23 AM, Greatsam4sure wrote:
On Tuesday, 24 March 2020 at 15:03:33 UTC, Steven 
Schveighoffer wrote:

[...]


Thanks, the live mode is really lovely.it really saves a lot 
of time building your UI. Chrome and edge browser are not 
working on my windows 10 but firefox is working greatly. Maybe 
be I need to update them


Nice! The live mode shouldn't affect what HTML is sent, it 
basically should be equivalent to the compiled mode. It just 
changes when the HTML strings are generated.


If your browsers are not consistent, that strongly points to 
something outside diet-ng (perhaps something to do with your 
content).


If you have a use case, I can look into it.

-Steve




For chrome and edge refresh does not effect changes in HTML 
content but restart


Re: diet-ng Live mode and announcing dietpc

2020-04-29 Thread Steven Schveighoffer via Digitalmars-d-announce

On 4/29/20 9:23 AM, Greatsam4sure wrote:

On Tuesday, 24 March 2020 at 15:03:33 UTC, Steven Schveighoffer wrote:
Since October I have been using an experimental feature I created for 
the diet-ng package [1] that allows one to alter just the HTML 
portions of a diet template and have the server re-render those pages. 
It has saved me significant development time as I can e.g. alter a 
class on an html element, add javascript, just about anything that 
doesn't have to do with running actual D code, and I do not need to 
rebuild my entire application. Those of you who watched my dconf 2018 
presentation may have heard me talk about the issue of vibe.d build 
times.


[...]


Thanks, the live mode is really lovely.it really saves a lot of time 
building your UI. Chrome and edge browser are not working on my windows 
10 but firefox is working greatly. Maybe be I need to update them


Nice! The live mode shouldn't affect what HTML is sent, it basically 
should be equivalent to the compiled mode. It just changes when the HTML 
strings are generated.


If your browsers are not consistent, that strongly points to something 
outside diet-ng (perhaps something to do with your content).


If you have a use case, I can look into it.

-Steve


Re: diet-ng Live mode and announcing dietpc

2020-04-29 Thread Greatsam4sure via Digitalmars-d-announce
On Tuesday, 24 March 2020 at 15:03:33 UTC, Steven Schveighoffer 
wrote:
Since October I have been using an experimental feature I 
created for the diet-ng package [1] that allows one to alter 
just the HTML portions of a diet template and have the server 
re-render those pages. It has saved me significant development 
time as I can e.g. alter a class on an html element, add 
javascript, just about anything that doesn't have to do with 
running actual D code, and I do not need to rebuild my entire 
application. Those of you who watched my dconf 2018 
presentation may have heard me talk about the issue of vibe.d 
build times.


[...]


Thanks, the live mode is really lovely.it really saves a lot of 
time building your UI. Chrome and edge browser are not working on 
my windows 10 but firefox is working greatly. Maybe be I need to 
update them