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

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

Could anybody make Sublime plugin please?




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&t=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.


Visual Studio Code code-d serve-d beta release

2017-08-05 Thread WebFreak001 via Digitalmars-d-announce
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 
(https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, it's version 0.16.1) and just try to use it.


You no longer need workspace-d or dfmt with this release as both 
are included inside serve-d now which replaces most of the plugin 
which was written in typescript before. Now that serve-d uses 
Microsoft's language server protocol we get a fully featured D 
IDE for vscode, eclipse, emacs, GNOME builder, atom and theia 
with very little effort to implement them! For all the basic 
features you can simply start serve-d with the `--require D` 
argument and all the basic features you would expect from a auto 
completion plugin would be there. (See full list of editors here: 
https://github.com/Microsoft/language-server-protocol/wiki/Protocol-Implementations#editors-ides-supporting-the-protocol). serve-d adds some custom commands that give the user more control so they might be implemented for decent implementations too + serve-d depends on 2 custom notifications on the client side for automatic installation of dscanner & dcd.


Some new features in the serve-d branch include:

* automatic module naming: when you rename a file you are 
currently in or create a new file a module statement will be 
added/changed
* the English, German and Japanese translations are finally used! 
Thanks to Seiji Fujita for the Japanese translation
* dfmt is now included inside serve-d (also in the normal code-d 
if you update workspace-d)
* nice ddoc preview: the old preview was really chunky, this one 
now converts the ddoc to markdown and highlights embedded D code 
blocks correctly
* dedicated output log: you can now attach a very verbose output 
debug log to issues by opening the bottom panel, going to output 
and copying the code-d & serve-d output. This will hopefully make 
debugging issues much easier!
* live DScanner linting: you get errors from dscanner while you 
type now. Sometimes the issues are a bit off but after saving 
they get fixed.
* Argument parsing got an update: the current parameter highlight 
inside the DCD tooltips should be a bit better now
* goto definition should work better now and use less memory and 
be faster (well it's written in D now so that was to be expected)


So basically if you want to try out the latest bleeding edge 
version of my visual studio code plugin, uninstall the old code-d 
and get code-d-beta from the marketplace.


serve-d: https://github.com/Pure-D/serve-d
code-d: https://github.com/Pure-D/code-d/tree/serve-d
chat room to get quicker replies & support (please only bug 
WebFreak about code-d/serve-d issues): 
https://discordapp.com/invite/bMZk9Q4


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 WebFreak001 via Digitalmars-d-announce

On Monday, 31 July 2017 at 08:51:16 UTC, Mike wrote:

https://github.com/JinShil/svd_to_d

SVD_to_D is a command-line utility that generates D code from 
ARM Cortex-M SVD files.


[...]


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


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