Re: Visual Studio Code code-d serve-d beta release

2017-08-05 Thread Dmitry via Digitalmars-d-announce

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
try out the new version please uninstall code-d and install 
code-d-beta 
(https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, it's version 0.16.1) and just try to use it.


Failed to install serve-d (Error code 2)
https://pastebin.com/EMgV1tR2



Re: d_to_html.d

2017-08-05 Thread Meta via Digitalmars-d-announce

On Saturday, 5 August 2017 at 19:07:50 UTC, WebFreak001 wrote:
Hi, I made a D to HTML generator which is basically diet, but 
fully using the D compiler as generator and not some 
complicated parser, etc. Here an example what you pass in:


string page = html(
head(
title("wtf is this"),
style(
html(
font-family = "Roboto",
background = 0xEFEFEF
),
div.content(
max-width = 800.px,
margin = auto_,
margin-top = 32.px,
box-shadow = "0 2px 5px rgba(0, 0, 0, 0.3)",
background = white,
padding = 32.px
),
div.footer(
text-"align" = center
)
)
),
body(
div.content(
h1("The most crappy HTML generator ever"),
div.teaser(
p("Super fast")
),
hr,
p("Reasons why you should use d_to_html:"),
ul(
li("TODO: no reason yet") * 5
)
),
div.footer(
p(raw!" 2017 webfreak.org")
)
)
).toString;

Which generates: https://i.webfreak.org/fStzn0.html

Full source: 
https://gist.github.com/WebFreak001/6a1916779e48898c7ababc47a3113829


Though some things (like min and max for example) won't work 
correctly, so you need to manually write `attr!"min" = 4` if 
you wanted to add that to an input element.


btw this is just a joke project, it's totally abusing operator 
overloading just to show what is possible with it. The idea 
came up in Wild's discord server, you can join us too, we have 
a programming and a dplug channel: 
https://discordapp.com/invite/bMZk9Q4


Just because you *can* do something, it doesn't mean you 
*should*. ;-)


Very creative, I don't think reading source code has ever made me 
chuckle before.


Re: Visual Studio Code code-d serve-d beta release

2017-08-05 Thread Neia Neutuladh via Digitalmars-d-announce

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
I just released a beta version on the visual studio marketplace 
that allows you to try out the latest features of serve-d.


Awesome! Once I worked around the binary placement issue, this 
actually gave me completion options, which is better than the 
previous version ever did for me.


Re: Netflix opensources its first D library: Vectorflow

2017-08-05 Thread Joakim via Digitalmars-d-announce

On Wednesday, 2 August 2017 at 22:56:32 UTC, Joakim wrote:
On Wednesday, 2 August 2017 at 21:31:19 UTC, Walter Bright 
wrote:

https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/


No. 2 liked proggit link of the day, should be no. 1 soon:

https://www.reddit.com/r/programming/top/?time=day

Not doing well on HN though:

https://hn.algolia.com/?query=vectorflow


Top 3 for the week:

https://www.reddit.com/r/programming/top/?sort=top=week

People seem really enthused by this library.


Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-05 Thread Mike via Digitalmars-d-announce

On Saturday, 5 August 2017 at 20:08:39 UTC, WebFreak001 wrote:

I just clicked through some random files in the example folder, 
this line seems broken: 
https://github.com/JinShil/svd_to_d/blob/master/examples/atsamd21g18a/AC.d#L13


Fixed. Thanks!


Re: Visual Studio Code code-d serve-d beta release

2017-08-05 Thread Soulsbane via Digitalmars-d-announce

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
You might remember the blog post from a while back about 
workspace-d and serve-d, I just released a beta version on the 
visual studio marketplace that allows you to try out the latest 
features of serve-d. Note that this version might easily break 
in the future, but for the next few days I am trying to gain 
some feedback. If you are a user of code-d and if you want to 
try out the new version please uninstall code-d and install 
code-d-beta


I'm getting this error: "Could not initialize dub. Falling back 
to limited functionality!". I don't get this error in the other 
version and dub is installed: DUB version 1.4.0, built on Jul 19 
2017.





Re: d_to_html.d

2017-08-05 Thread David Gileadi via Digitalmars-d-announce

On 8/5/17 12:07 PM, WebFreak001 wrote:
Hi, I made a D to HTML generator which is basically diet, but fully 
using the D compiler as generator and not some complicated parser, etc. 


[snip]

That is amazing! I can't decide whether it's the best thing I've ever 
seen or a horrible hack, but it's a great showcase for what you can do 
with D.


d_to_html.d

2017-08-05 Thread WebFreak001 via Digitalmars-d-announce
Hi, I made a D to HTML generator which is basically diet, but 
fully using the D compiler as generator and not some complicated 
parser, etc. Here an example what you pass in:


string page = html(
head(
title("wtf is this"),
style(
html(
font-family = "Roboto",
background = 0xEFEFEF
),
div.content(
max-width = 800.px,
margin = auto_,
margin-top = 32.px,
box-shadow = "0 2px 5px rgba(0, 0, 0, 0.3)",
background = white,
padding = 32.px
),
div.footer(
text-"align" = center
)
)
),
body(
div.content(
h1("The most crappy HTML generator ever"),
div.teaser(
p("Super fast")
),
hr,
p("Reasons why you should use d_to_html:"),
ul(
li("TODO: no reason yet") * 5
)
),
div.footer(
p(raw!" 2017 webfreak.org")
)
)
).toString;

Which generates: https://i.webfreak.org/fStzn0.html

Full source: 
https://gist.github.com/WebFreak001/6a1916779e48898c7ababc47a3113829


Though some things (like min and max for example) won't work 
correctly, so you need to manually write `attr!"min" = 4` if you 
wanted to add that to an input element.


btw this is just a joke project, it's totally abusing operator 
overloading just to show what is possible with it. The idea came 
up in Wild's discord server, you can join us too, we have a 
programming and a dplug channel: 
https://discordapp.com/invite/bMZk9Q4


Re: dlang-requetst: openssl 1.1 compatible release

2017-08-05 Thread Jack Applegame via Digitalmars-d-announce

On Friday, 4 August 2017 at 18:28:23 UTC, ikod wrote:

On Friday, 4 August 2017 at 17:06:16 UTC, Jack Applegame wrote:
Does dlang-requests support binding interface for outgoing 
connection, like curl --interface option?


No, but this can be done. It would be nice if you post issue on 
github.



https://github.com/ikod/dlang-requests/issues/51