Re: Remove CRT (C's runtime) from betterC binaries?

2018-08-14 Thread Allen Garvey via Digitalmars-d
On Tuesday, 14 August 2018 at 13:11:57 UTC, Rel wrote: Can I or is it even possible to remove the CRT (C's runtime library) completely from my executables compiled with betterC flag? If you use either the current beta or master branch of LDC I believe they have disabled the C runtime for WebA

Re: Remove CRT (C's runtime) from betterC binaries?

2018-08-14 Thread Rel via Digitalmars-d
There are other ways to do minimalist programming in D without -betterC. See https://dlang.org/changelog/2.079.0.html#minimal_runtime Well, what would be the difference between betterC and writing my own minimal runtime? For the time being doing betterC looks preferable, so I don't need to re

Re: Remove CRT (C's runtime) from betterC binaries?

2018-08-14 Thread Rel via Digitalmars-d
printf() and exit() are part of the CRT. Well, yes, but there is implementation for them in msvcrt.dll, which is installed on all Windows platforms. So I can link to it and use it for free, without adding the whole CRT to my executable. Otherwise I could use MessageBox and ExitProcess for te

Re: Give DLS a try

2018-08-14 Thread Soulsbane via Digitalmars-d
On Wednesday, 15 August 2018 at 01:26:36 UTC, Laurent Tréguier wrote: On Tuesday, 14 August 2018 at 23:24:58 UTC, Soulsbane wrote: No problem. Thanks! It's the mainly the d.dls.format.dfmtBraceStyle that is bothering me. It seems each one uses the if () style and I prefer if(). If that makes s

Re: Give DLS a try

2018-08-14 Thread Laurent Tréguier via Digitalmars-d
On Tuesday, 14 August 2018 at 23:24:58 UTC, Soulsbane wrote: No problem. Thanks! It's the mainly the d.dls.format.dfmtBraceStyle that is bothering me. It seems each one uses the if () style and I prefer if(). If that makes sense. Again, thanks a lot for this! Maybe this should simply be a new

Re: Remove CRT (C's runtime) from betterC binaries?

2018-08-14 Thread Walter Bright via Digitalmars-d
On 8/14/2018 6:37 AM, Rel wrote: On Tuesday, 14 August 2018 at 13:11:57 UTC, Rel wrote: Can I or is it even possible to remove the CRT (C's runtime library) completely from my executables compiled with betterC flag? Okey, it seems I figure out how to do it with MinGW linker:     import core.

Re: Give DLS a try

2018-08-14 Thread Soulsbane via Digitalmars-d
On Tuesday, 14 August 2018 at 22:24:48 UTC, Laurent Tréguier wrote: On Tuesday, 14 August 2018 at 21:07:34 UTC, Soulsbane wrote: Perhaps I missed it but is there an option to disable dfmt completely. I see several options, for example, d.dls.format.dfmtSoftMaxLineLength. If you're using the V

Re: [Newbie] GDC Install error at FreeBSD

2018-08-14 Thread Iain Buclaw via Digitalmars-d
On 14 August 2018 at 09:27, namefag via Digitalmars-d wrote: > I wanted to install gdc at my FreeBSD, > and it went peacefully until I typed "sudo gmake install" > then this error happened: > > /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdlib.d:204:9: > error: undefined identi

Re: Give DLS a try

2018-08-14 Thread Laurent Tréguier via Digitalmars-d
On Tuesday, 14 August 2018 at 21:07:34 UTC, Soulsbane wrote: Perhaps I missed it but is there an option to disable dfmt completely. I see several options, for example, d.dls.format.dfmtSoftMaxLineLength. If you're using the VSCode extension or Atom package, then there is no way to deactivate

Re: Give DLS a try

2018-08-14 Thread Laurent Tréguier via Digitalmars-d
On Tuesday, 14 August 2018 at 10:43:01 UTC, w0rp wrote: For those who like Vim, I opened an issue for adding dls support to ALE. https://github.com/w0rp/ale/issues/1812 I might work on it myself some day, or someone else can set it up. ALE is a linter plugin for Vim I wrote, which is now the m

Re: Give DLS a try

2018-08-14 Thread Soulsbane via Digitalmars-d
On Wednesday, 8 August 2018 at 07:57:49 UTC, Laurent Tréguier wrote: On Wednesday, 8 August 2018 at 07:25:57 UTC, Tab wrote: I find DLS to be very stable Perhaps I missed it but is there an option to disable dfmt completely. I see several options, for example, d.dls.format.dfmtSoftMaxLineLen

Re: Signed DMD binaries

2018-08-14 Thread Jacob Carlborg via Digitalmars-d
On Tuesday, 14 August 2018 at 14:42:54 UTC, Seb wrote: On Monday, 13 August 2018 at 19:09:55 UTC, Jacob Carlborg wrote: Any plans for doing the same thing for the installer on macOS? It complains that it's from an unidentified developer and forces the user to go into System Preferences and reop

Re: Signed DMD binaries

2018-08-14 Thread Seb via Digitalmars-d
On Monday, 13 August 2018 at 19:09:55 UTC, Jacob Carlborg wrote: Any plans for doing the same thing for the installer on macOS? It complains that it's from an unidentified developer and forces the user to go into System Preferences and reopen the installer. Yes, the certificate allows signing

Re: Signed DMD binaries

2018-08-14 Thread rikki cattermole via Digitalmars-d
On 15/08/2018 2:14 AM, Timoses wrote: On Monday, 13 August 2018 at 19:09:55 UTC, Jacob Carlborg wrote: Any plans for doing the same thing for the installer on macOS? It complains that it's from an unidentified developer and forces the user to go into System Preferences and reopen the installer.

Re: Signed DMD binaries

2018-08-14 Thread Timoses via Digitalmars-d
On Monday, 13 August 2018 at 19:09:55 UTC, Jacob Carlborg wrote: Any plans for doing the same thing for the installer on macOS? It complains that it's from an unidentified developer and forces the user to go into System Preferences and reopen the installer. Can't you just usually right-click

Re: Remove CRT (C's runtime) from betterC binaries?

2018-08-14 Thread Mike Franklin via Digitalmars-d
On Tuesday, 14 August 2018 at 13:11:57 UTC, Rel wrote: Can I or is it even possible to remove the CRT (C's runtime library) completely from my executables compiled with betterC flag? -betterC currently expects the C standard library, and consequently the C runtime. Under the hood DMD calls `

Re: Remove CRT (C's runtime) from betterC binaries?

2018-08-14 Thread Seb via Digitalmars-d
On Tuesday, 14 August 2018 at 13:11:57 UTC, Rel wrote: Can I or is it even possible to remove the CRT (C's runtime library) completely from my executables compiled with betterC flag? Have a look at example 3 of the 2.079 changelog: https://dlang.org/changelog/2.079.0.html#minimal_runtime

Re: Remove CRT (C's runtime) from betterC binaries?

2018-08-14 Thread Rel via Digitalmars-d
On Tuesday, 14 August 2018 at 13:11:57 UTC, Rel wrote: Can I or is it even possible to remove the CRT (C's runtime library) completely from my executables compiled with betterC flag? Okey, it seems I figure out how to do it with MinGW linker: import core.stdc.stdlib; import core.stdc.

Re: Remove CRT (C's runtime) from betterC binaries?

2018-08-14 Thread rikki cattermole via Digitalmars-d
On 15/08/2018 1:11 AM, Rel wrote: Can I or is it even possible to remove the CRT (C's runtime library) completely from my executables compiled with betterC flag? Sure, but you can't let dmd link and it'll be a right pain (at least on Windows) to not have a libc to deal with the entry point for

Remove CRT (C's runtime) from betterC binaries?

2018-08-14 Thread Rel via Digitalmars-d
Can I or is it even possible to remove the CRT (C's runtime library) completely from my executables compiled with betterC flag?

Re: Signed DMD binaries

2018-08-14 Thread Rel via Digitalmars-d
Feedback is welcome ;-) The latest DMD installer seems not to be flaged by Kaspersky Antivirus, thanks!

Re: Give DLS a try

2018-08-14 Thread w0rp via Digitalmars-d
For those who like Vim, I opened an issue for adding dls support to ALE. https://github.com/w0rp/ale/issues/1812 I might work on it myself some day, or someone else can set it up. ALE is a linter plugin for Vim I wrote, which is now the most popular one after Syntastic and offers some language

Re: Found on proggit: Nim receives funding from a company (D should be doing something like this)

2018-08-14 Thread Mike Franklin via Digitalmars-d
On Tuesday, 14 August 2018 at 07:05:12 UTC, Joakim wrote: if you have a bug ... This is not about me: Sorry, I mean the plural "you", as in anyone reading this thread. Mike

[Newbie] GDC Install error at FreeBSD

2018-08-14 Thread namefag via Digitalmars-d
I wanted to install gdc at my FreeBSD, and it went peacefully until I typed "sudo gmake install" then this error happened: /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdlib.d:204:9: error: undefined identifier 'wchar_t' int mbtowc(scope wchar_t* pwc, scope const char* s,

Re: Found on proggit: Nim receives funding from a company (D should be doing something like this)

2018-08-14 Thread Joakim via Digitalmars-d
On Tuesday, 14 August 2018 at 02:49:58 UTC, Mike Franklin wrote: On Monday, 13 August 2018 at 09:50:29 UTC, Joakim wrote: Announced last week, the Nim team will be adding two full-time paid devs and setting up grants for needed projects with this new funding: :jealous: However, there are oth