Re: Dockerfile with cross-compiler targeting Windows x64

2018-04-05 Thread Seb via Digitalmars-d-announce

On Thursday, 5 April 2018 at 22:10:08 UTC, WebFreak001 wrote:

On Thursday, 5 April 2018 at 11:46:42 UTC, Jacob Carlborg wrote:
I've created a Dockerfile [1] containing LDC, configured for 
cross-compiling targeting Windows x64.


It's based on the instructions provided by kinke here [2].

Note, it downloads the MSVC libs from Dropbox.

[1] 
https://github.com/jacob-carlborg/docker-ldc-windows/blob/master/Dockerfile
[2] 
https://github.com/ldc-developers/ldc/pull/2142#issuecomment-304472412


--
/Jacob Carlborg


cool exactly what I always wanted... but how do you use it?


1) Remove the last line which defines the ENTRYPOINT (the one 
that the root docker image defines is better suited

2) Run this:

wget 
https://raw.githubusercontent.com/jacob-carlborg/docker-ldc-windows/master/Dockerfile

docker build -t dlanguage/ldc-windows .
docker run --rm -ti -v $(pwd):/src dlanguage/ldc-windows ldc2 
hello.d


If this gets pushed to DockerHub, just the last line will be 
enough because Docker would fetch the image automatically for you.


See also: https://hub.docker.com/r/dlanguage/ldc

(dub seems to still default to writing `.a` object files)


BTW I just tested this and it works really nicely (I even managed 
to compile the whole DScanner for Windows (!) and it runs as 
expected in a quick test in a virtual machine). Thanks!


Now how do we get this to DockerHub? :)
Any MS libs that can be bundled "legally"?


Re: Dockerfile with cross-compiler targeting Windows x64

2018-04-05 Thread WebFreak001 via Digitalmars-d-announce

On Thursday, 5 April 2018 at 11:46:42 UTC, Jacob Carlborg wrote:
I've created a Dockerfile [1] containing LDC, configured for 
cross-compiling targeting Windows x64.


It's based on the instructions provided by kinke here [2].

Note, it downloads the MSVC libs from Dropbox.

[1] 
https://github.com/jacob-carlborg/docker-ldc-windows/blob/master/Dockerfile
[2] 
https://github.com/ldc-developers/ldc/pull/2142#issuecomment-304472412


--
/Jacob Carlborg


cool exactly what I always wanted... but how do you use it?


Re: Dizzy Omega 0.17

2018-04-05 Thread unDEFER via Digitalmars-d-announce

On Thursday, 5 April 2018 at 14:33:16 UTC, ashit axar wrote:


do i need to install derelict ?
im using windows7


No, You don't need derelict (it is needed only at compile time 
and dub downloads it automatically).. Which video card you have? 
Maybe you tried run any other OpenGL games?


Re: code-d 0.17.0 + serve-d 0.1.2

2018-04-05 Thread WebFreak001 via Digitalmars-d-announce

On Thursday, 5 April 2018 at 08:11:39 UTC, Arredondo wrote:

On Wednesday, 4 April 2018 at 09:06:31 UTC, WebFreak001 wrote:

[...]


I can confirm that it seems to be working for me now. I 
installed git, downloaded the precompiled binaries and cleared 
the %APPDATA%/code-d/bin.


I feel like this informations needs to be readily accessible 
for newcomers, or just people trying out VS Code for the first 
time. For instance, I could not find anywhere in the Wiki the 
fact that in Windows, you either need to have git installed, or 
download some binaries yourself and paste them in a very 
specific location of your file system.


[...]


don't worry, all fixed and automatic now and release in a second, 
dcd is now precompiled on windows ^^


Also more helpful error messages if you still compile from source 
(in case download and install fails)


Re: Dockerfile with cross-compiler targeting Windows x64

2018-04-05 Thread Joakim via Digitalmars-d-announce

On Thursday, 5 April 2018 at 11:46:42 UTC, Jacob Carlborg wrote:
I've created a Dockerfile [1] containing LDC, configured for 
cross-compiling targeting Windows x64.


It's based on the instructions provided by kinke here [2].

Note, it downloads the MSVC libs from Dropbox.

[1] 
https://github.com/jacob-carlborg/docker-ldc-windows/blob/master/Dockerfile
[2] 
https://github.com/ldc-developers/ldc/pull/2142#issuecomment-304472412


--
/Jacob Carlborg


Nice, rather than downloading the pre-built ldc for Windows and 
extracting its runtime, you may be interested in cross-compiling 
the stdlib yourself.  The only obstacle may be that the build 
requires a C cross-compiler for one or two C files, but clang may 
be good enough to do that now.


If you go that route, the ldc devs would appreciate a PR filling 
out this preset configuration stub to cross-compile for Windows, 
with the info you use:


https://github.com/ldc-developers/ldc/blob/master/runtime/PresetRuntimeConfiguration.cmake#L46


Re: Dizzy Omega 0.17

2018-04-05 Thread ashit axar via Digitalmars-d-announce

On Wednesday, 4 April 2018 at 20:13:24 UTC, unDEFER wrote:
I have done the first demo version of my game fully written in 
D.


Dizzy is a puzzle game, Purpose of which is the collection and 
use of items.
Dizzy Omega (Dizzy on Mars) is the sequel of the game Dizzy Y 
(which was for ZX-Spectrum).


The game has 3D graphic, but 2D logic.

The first demo has 24 screens, 17 items, 9 from which you can 
use. Some of them several times.


Site of the project: https://dizzy-omega.sourceforge.io



derelict.util.exception.DerelictException@..\..\..\..\Users\unDEFER\AppData\Roam
ing\dub\packages\derelict-util-2.0.6\derelict-util\source\derelict\util\exceptio
n.d(35): DerelictGL3.reload failure: An OpenGL context is not 
currently active.


0x002D1A00
0x002BE33A
0x002CF32E
0x002A73D5
0x002A4EAC
0x002C2EE3
0x002EF77F
0x002EF72F
0x002EF55A
0x002D00EC
0x00350D98
0x7578337A in BaseThreadInitThunk
0x77AA92E2 in RtlInitializeExceptionChain
0x77AA92B5 in RtlInitializeExceptionChain

core.exception.InvalidMemoryOperationError@src\core\exception.d(693): Invalid me
mory operation



do i need to install derelict ?
im using windows7


Re: std.variant Is Everything Cool About D

2018-04-05 Thread Meta via Digitalmars-d-announce
On Wednesday, 4 April 2018 at 11:40:58 UTC, Steven Schveighoffer 
wrote:

On 4/3/18 11:29 PM, Meta wrote:
Also, with Nullable your data is guaranteed to not be boxed, 
whereas it's a possibility with Variant/Algebraic if the types 
you're working with are large enough.


Not with Algebraic.

-Steve


Ah yes, you're right. Thanks Steven. This exact thing came up in 
the Reddit thread from a few days ago.


Dockerfile with cross-compiler targeting Windows x64

2018-04-05 Thread Jacob Carlborg via Digitalmars-d-announce
I've created a Dockerfile [1] containing LDC, configured for 
cross-compiling targeting Windows x64.


It's based on the instructions provided by kinke here [2].

Note, it downloads the MSVC libs from Dropbox.

[1] 
https://github.com/jacob-carlborg/docker-ldc-windows/blob/master/Dockerfile
[2] 
https://github.com/ldc-developers/ldc/pull/2142#issuecomment-304472412


--
/Jacob Carlborg


Re: code-d 0.17.0 + serve-d 0.1.2

2018-04-05 Thread Arredondo via Digitalmars-d-announce

On Wednesday, 4 April 2018 at 09:06:31 UTC, WebFreak001 wrote:
I now provide a precompiled DCD for windows, you can download 
it off the serve-d release page and just extract into 
%APPDATA%/code-d/bin (where the serve-d.exe is) and it will 
automatically find it. I am going to release a new release 
later which does this automatically.


I can confirm that it seems to be working for me now. I installed 
git, downloaded the precompiled binaries and cleared the 
%APPDATA%/code-d/bin.


I feel like this informations needs to be readily accessible for 
newcomers, or just people trying out VS Code for the first time. 
For instance, I could not find anywhere in the Wiki the fact that 
in Windows, you either need to have git installed, or download 
some binaries yourself and paste them in a very specific location 
of your file system.


On the other hand, this page is two clicks away (Resources menu > 
Visual D) from the homepage and describes in full detail the 
Visual-D plugin for Visual Studio:

http://rainers.github.io/visuald/visuald/StartPage.html

Given that VS Code is the favorite D editor according to the 
recent D Community Survey (#1 with 25% market share :) I feel 
like there should be a similar page explaining the several D 
extensions for VS Code, their relationships, and how to 
download/configure them, including the information in this thread.


Anyway, thanks for the amazing work.
Cheers,
Arredondo.