Re: Containerize Your D Server Application
On Friday, 19 April 2019 at 20:45:12 UTC, Valeriy Fedotov wrote: On Thursday, 14 March 2019 at 12:38:30 UTC, Mike Parker wrote: [...] Seems that multithe tutorial no longer works. ``` The dependency resolution process is taking too long. The dependency graph is likely hitting a pathological case in the resolution algorithm. Please file a bug report at https://github.com/dlang/dub/issues and mention the package recipe that reproduces this error. ``` [...] dlang2 was upgraded to Ubuntu 18.04 yesterday.
Re: Containerize Your D Server Application
On Friday, 19 April 2019 at 20:51:56 UTC, Andre Pany wrote: On Friday, 19 April 2019 at 20:45:12 UTC, Valeriy Fedotov wrote: On Thursday, 14 March 2019 at 12:38:30 UTC, Mike Parker wrote: [...] Seems that multithe tutorial no longer works. ``` The dependency resolution process is taking too long. The dependency graph is likely hitting a pathological case in the resolution algorithm. Please file a bug report at https://github.com/dlang/dub/issues and mention the package recipe that reproduces this error. ``` [...] This question occurs from time to time. Dub version 1.8. is very old and the error you mentioned is fixed in the meantime. Your issue is fixed by update to a recent compiler (which includes a recent dub). Kind regards Andre Sadly, it is not only my issue, it is reproduced for everyone wanting to make a multi-stage build with Dockerfile.multi from tutorial. I have made the PR to fix it (install fresh dmd and dub), but tutorial should be fixed too.
Re: Containerize Your D Server Application
On Friday, 19 April 2019 at 20:45:12 UTC, Valeriy Fedotov wrote: On Thursday, 14 March 2019 at 12:38:30 UTC, Mike Parker wrote: [...] Seems that multithe tutorial no longer works. ``` The dependency resolution process is taking too long. The dependency graph is likely hitting a pathological case in the resolution algorithm. Please file a bug report at https://github.com/dlang/dub/issues and mention the package recipe that reproduces this error. ``` [...] This question occurs from time to time. Dub version 1.8. is very old and the error you mentioned is fixed in the meantime. Your issue is fixed by update to a recent compiler (which includes a recent dub). Kind regards Andre
Re: Containerize Your D Server Application
On Thursday, 14 March 2019 at 12:38:30 UTC, Mike Parker wrote: One of the items on my list of "things I'd like to do if I only had the time" is to create a Mud server with D and deploy it with Docker. Just for kicks. If I ever do get around to it, my ignorance of all things Docker will not be the time sink it could have been thanks to this latest post on the D Blog by Kai Nacke. The Blog https://dlang.org/blog/2019/03/14/containerize-your-d-server-application/ Reddit https://www.reddit.com/r/programming/comments/b0zqck/containerize_your_d_server_application/ Seems that multithe tutorial no longer works. ``` The dependency resolution process is taking too long. The dependency graph is likely hitting a pathological case in the resolution algorithm. Please file a bug report at https://github.com/dlang/dub/issues and mention the package recipe that reproduces this error. ``` Seems for me as issue of very old dub version. Running `dub --version` in the container shows ``` DUB version 1.8.0-3, built on May 7 2018 ``` Image tag is ubuntu:cosmic, it is relatively fresh distro (18.10). It is very sad, that dub from official ubuntu repo can not compile any vibe.d app because of this issue. Even in desktop installation. Anyway, the tutoial should be fixed, for example with usage of official Dlang docker image dlang2/dmd-ubuntu. But changing dlang2/dmd-ubuntu does not simply works either, because it is based on ubuntu artful 17.10, and 17.10 does not have libssl1.1. I tried to switch to libssl1.0, but then I got linker errors. Maybe for this beginner tutorial makes sense disabling SSL and swithing to dlang2/dmd-ubuntu base image? P.S. My first post here. :)
Re: DPP on the D Blog
On Friday, 19 April 2019 at 09:04:50 UTC, Atila Neves wrote: On Tuesday, 9 April 2019 at 21:11:28 UTC, DanielG wrote: re: the difficulties of interfacing D with certain types of C/C++ code ... Has anybody looked into something like a JavaCpp[1] approach for D? Instead of trying to get D to speak directly with C++, or translating C/C++ headers to D, why not use special annotated D code to generate a middleman .cpp file, which then exports a D-friendly interface? Then all the dirty work gets handled by a C++ compiler. Wouldn't that be an order of a magnitude easier to implement? [1]: https://github.com/bytedeco/javacpp I've considered this, and am still considering it, despite not having heard of javacpp before. Thanks for the link, I'll take a look. Also SWIG (for d too) does something like this.
Re: DPP on the D Blog
On Tuesday, 9 April 2019 at 21:11:28 UTC, DanielG wrote: re: the difficulties of interfacing D with certain types of C/C++ code ... Has anybody looked into something like a JavaCpp[1] approach for D? Instead of trying to get D to speak directly with C++, or translating C/C++ headers to D, why not use special annotated D code to generate a middleman .cpp file, which then exports a D-friendly interface? Then all the dirty work gets handled by a C++ compiler. Wouldn't that be an order of a magnitude easier to implement? [1]: https://github.com/bytedeco/javacpp I've considered this, and am still considering it, despite not having heard of javacpp before. Thanks for the link, I'll take a look.
Re: Two New Manpower Initiatives
On Monday, 15 April 2019 at 10:08:31 UTC, Mike Parker wrote: I've just published a post on the blog introducing two new initiatives, the Manpower Share and the Manpower Fund, that came out of our quarterly D Language Foundation meetings. The goal is to help focus energy on getting more effort directed at the issues that fall by the wayside. The blog post has all the details, so I encourage everyone who cares about improving D and its ecosystem to give it a read. The blog: https://dlang.org/blog/2019/04/15/manpower-in-the-d-ecosystem-or-resources-resources-resources/ Reddit: https://www.reddit.com/r/d_language/comments/bde7zq/manpower_in_the_d_ecosystem_or_resources/ Great write-up. IMO, the direction is right and looks promising. Of course, besides me only talking, I'm aware that something material can be done. And hopefully, I won't miss a chance ;) Cheers, Piotrek