On Wednesday, 23 August 2017 at 17:44:31 UTC, Jonathan M Davis
wrote:
On Wednesday, August 23, 2017 13:12:04 Mike Parker via
Digitalmars-d- announce wrote:
[...]
I confess that I tend to think of betterC as a waste of time.
Clearly, there are folks who find it useful, but it loses so
much th
On Wednesday, 23 August 2017 at 13:12:04 UTC, Mike Parker wrote:
To coincide with the improvements to -betterC in the upcoming
DMD 2.076, Walter has published a new article on the D blog
about what it is and why to use it. A fun read. And I'm
personally happy to see the love this feature is get
On Thu, Aug 24, 2017 at 12:35:22AM +, Michael V. Franklin via
Digitalmars-d-announce wrote:
[...]
> Consider this: Rust doesn't need a special switch to make it
> interoperable with C. What's wrong with D's implementation that
> requires such things? Granted, D is not Rust, but D's implemen
On Wednesday, 23 August 2017 at 17:44:31 UTC, Jonathan M Davis
wrote:
I confess that I tend to think of betterC as a waste of time.
Clearly, there are folks who find it useful, but it loses so
much that I see no point in using it for anything unless I have
no choice. As long as attempts to im
On Wednesday, 23 August 2017 at 17:44:31 UTC, Jonathan M Davis
wrote:
I confess that I tend to think of betterC as a waste of time.
The overwhelming majority of programmers don't need betterC. At
all. But today we live in a world where practically everything
just builds on top of C, and we
On Wednesday, 23 August 2017 at 16:17:57 UTC, SrMordred wrote:
No structs in -betterC ???
I haven't tried the latest iteration of betterC yet, but the
longstanding problem is that the compiler generates TypeInfo
instances for structs, and TypeInfos are classes, which inherit
from Object, whi
On Wednesday, 23 August 2017 at 17:43:27 UTC, Steven
Schveighoffer wrote:
On 8/23/17 11:59 AM, Walter Bright wrote:
On 8/23/2017 7:37 AM, Steven Schveighoffer wrote:
How do dynamic closures work without the GC?
They don't allocate the closure on the GC heap. (Or do I have
static/dynamic clos
On Wednesday, 23 August 2017 at 15:41:02 UTC, Paolo Invernizzi
wrote:
On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
[...]
It seems that under macOS, the linux executable is used, with a
fresh install...
iMac:~ pinver$ uname -a
Darwin iMac.local 17.0.0 Darwin Kernel Version
On Wednesday, 23 August 2017 at 17:39:00 UTC, Walter Bright wrote:
On 8/23/2017 10:26 AM, jmh530 wrote:
Am I correct that betterC requires main to be extern(C) and
must act like a C main (i.e. no void return)?
Yes.
This might be added to
http://dlang.org/dmd-windows.html#switch-betterC
or
ht
On 8/23/17 11:59 AM, Walter Bright wrote:
On 8/23/2017 7:37 AM, Steven Schveighoffer wrote:
How do dynamic closures work without the GC?
They don't allocate the closure on the GC heap. (Or do I have
static/dynamic closures backwards?)
I thought "closure" means allocating the stack onto the
On 8/23/2017 10:17 AM, Kagamin wrote:
Also how assert failure works in C?
It calls the C assert failure function.
On Wednesday, August 23, 2017 13:12:04 Mike Parker via Digitalmars-d-
announce wrote:
> To coincide with the improvements to -betterC in the upcoming DMD
> 2.076, Walter has published a new article on the D blog about
> what it is and why to use it. A fun read. And I'm personally
> happy to see the
On 8/23/2017 10:26 AM, jmh530 wrote:
Am I correct that betterC requires main to be extern(C) and must act like a C
main (i.e. no void return)?
Yes.
Is that something that can be changed in the future?
Yes, but I don't see a need for it.
On 8/23/17 11:52 AM, Walter Bright wrote:
On 8/23/2017 7:24 AM, Steven Schveighoffer wrote:
Looks like there are some outstanding requests to be fulfilled before
it's pulled.
I don't agree that the requests improve matters.
You may want to mention that in the PR. Right now it just looks like
On 8/23/17 11:56 AM, Walter Bright wrote:
On 8/23/2017 7:10 AM, Steven Schveighoffer wrote:
Nope.
A ModuleInfo is generated, as well as FMB/FM/FME sections. Those
sections may not work with the C runtime.
My point was simply that your small example doesn't cause any runtime or
link time er
On Wednesday, 23 August 2017 at 14:01:30 UTC, jmh530 wrote:
Great piece.
It might be useful to beef up the documentation on some of the
things that betterC changes. For instance, here
http://dlang.org/dmd-windows.html#switch-betterC
links to TypeInfo, which has like one line of explanation of
On Wednesday, 23 August 2017 at 14:00:34 UTC, Walter Bright wrote:
One of the reasons people use C is to get that small footprint.
This has been a large barrier to C programs making use of D.
Not a better C, but intermediate D has small footprint for me too.
7.5kb totext.exe (encodes stdin to b
On 8/23/2017 6:12 AM, Mike Parker wrote:
The blog:
https://dlang.org/blog/2017/08/23/d-as-a-better-c/
Reddit:
https://www.reddit.com/r/programming/comments/6viswu/d_as_a_better_c/
Now on the front page of news.ycombinator.com !
On Wednesday, 23 August 2017 at 13:12:04 UTC, Mike Parker wrote:
To coincide with the improvements to -betterC in the upcoming
DMD 2.076, Walter has published a new article on the D blog
about what it is and why to use it.
I like this concept of "upward compatibility," -- although
opposed to
On Wednesday, 23 August 2017 at 16:17:57 UTC, SrMordred wrote:
On Wednesday, 23 August 2017 at 15:53:11 UTC, Walter Bright
wrote:
On 8/23/2017 7:10 AM, Steven Schveighoffer wrote:
It's only if you do something that needs the runtime, such as
static ctors, or use the GC.
Or use asserts, or eve
On Wednesday, 23 August 2017 at 15:53:11 UTC, Walter Bright wrote:
On 8/23/2017 7:10 AM, Steven Schveighoffer wrote:
It's only if you do something that needs the runtime, such as
static ctors, or use the GC.
Or use asserts, or even declare a struct.
No structs in -betterC ???
On 8/23/2017 7:37 AM, Steven Schveighoffer wrote:
How do dynamic closures work without the GC?
They don't allocate the closure on the GC heap. (Or do I have static/dynamic
closures backwards?)
On 8/23/2017 8:05 AM, John Colvin wrote:
"D polymorphic classes will not, as they rely on the garbage collector."
They do? Don't have to allocate classes on the GC heap.
Using them without the GC is a fairly advanced technique, and I don't want to
deal with people writing:
C c = new C()
On 8/23/2017 7:10 AM, Steven Schveighoffer wrote:
Nope.
A ModuleInfo is generated, as well as FMB/FM/FME sections. Those sections may
not work with the C runtime.
On 8/23/2017 7:10 AM, Steven Schveighoffer wrote:
It's only if you do something that needs the runtime, such as static ctors, or
use the GC.
Or use asserts, or even declare a struct.
On 8/23/2017 7:24 AM, Steven Schveighoffer wrote:
Looks like there are some outstanding requests to be fulfilled before it's
pulled.
I don't agree that the requests improve matters.
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 migh
On Wednesday, 23 August 2017 at 15:17:31 UTC, Moritz Maxeiner
wrote:
On Wednesday, 23 August 2017 at 14:37:19 UTC, Steven
Schveighoffer wrote:
On 8/23/17 9:12 AM, Mike Parker wrote:
To coincide with the improvements to -betterC in the upcoming
DMD 2.076, Walter has published a new article on th
On Wednesday, 23 August 2017 at 13:12:04 UTC, Mike Parker wrote:
To coincide with the improvements to -betterC in the upcoming
DMD 2.076, Walter has published a new article on the D blog
about what it is and why to use it. A fun read. And I'm
personally happy to see the love this feature is get
On Wednesday, 23 August 2017 at 14:37:19 UTC, Steven
Schveighoffer wrote:
On 8/23/17 9:12 AM, Mike Parker wrote:
To coincide with the improvements to -betterC in the upcoming
DMD 2.076, Walter has published a new article on the D blog
about what it is and why to use it. A fun read. And I'm
per
On Wednesday, 23 August 2017 at 13:12:04 UTC, Mike Parker wrote:
To coincide with the improvements to -betterC in the upcoming
DMD 2.076, Walter has published a new article on the D blog
about what it is and why to use it. A fun read. And I'm
personally happy to see the love this feature is get
On Tuesday, August 22, 2017 22:35:53 Johannes Loher via Digitalmars-d-
announce wrote:
> I created a zsh completion script for dub. It is not perfect, but
> it does many things well already. You can find it here:
> https://github.com/ghost91-/dub-zsh-completion.
>
> I have seen that bash and fish c
On 8/23/17 9:12 AM, Mike Parker wrote:
To coincide with the improvements to -betterC in the upcoming DMD 2.076,
Walter has published a new article on the D blog about what it is and
why to use it. A fun read. And I'm personally happy to see the love this
feature is getting. I have a project I'd
On Wednesday, 23 August 2017 at 14:00:34 UTC, Walter Bright wrote:
On 8/23/2017 6:28 AM, Moritz Maxeiner wrote:
I've been mixing C and full D for a while now (on Linux) by
either having the main C program call rt_init/rt_term directly
(if druntime is linked in when building a mixed C/D
appli
On 8/23/17 10:11 AM, Walter Bright wrote:
On 8/23/2017 7:01 AM, jmh530 wrote:
ModuleInfo isn't linked to at all (and I'm still a little unclear on
what that does).
That's because ModuleInfo doesn't appear in the online documentation due
to having a malformed Ddoc comment. I fixed it here:
On Wednesday, 23 August 2017 at 14:01:30 UTC, jmh530 wrote:
On Wednesday, 23 August 2017 at 13:12:04 UTC, Mike Parker wrote:
To coincide with the improvements to -betterC in the upcoming
DMD 2.076, Walter has published a new article on the D blog
about what it is and why to use it. A fun read.
On 8/23/2017 7:01 AM, jmh530 wrote:
ModuleInfo isn't linked to at all (and I'm still a little unclear on what that
does).
That's because ModuleInfo doesn't appear in the online documentation due to
having a malformed Ddoc comment. I fixed it here:
https://github.com/dlang/druntime/pull/190
On 8/23/17 10:00 AM, Walter Bright wrote:
On 8/23/2017 6:28 AM, Moritz Maxeiner wrote:
Interesting article, though one thing that I'm confused by is
Hence D libraries remain inaccessible to C programs, and chimera
programs (a mix of C and D) are not practical. One cannot
pragmatically “try ou
On Wednesday, 23 August 2017 at 13:12:04 UTC, Mike Parker wrote:
To coincide with the improvements to -betterC in the upcoming
DMD 2.076, Walter has published a new article on the D blog
about what it is and why to use it. A fun read. And I'm
personally happy to see the love this feature is get
On 8/23/2017 6:28 AM, Moritz Maxeiner wrote:
Interesting article, though one thing that I'm confused by is
Hence D libraries remain inaccessible to C programs, and chimera programs (a
mix of C and D) are not practical. One cannot pragmatically “try out” D by
add D modules to an existing C prog
On Wednesday, 23 August 2017 at 13:12:04 UTC, Mike Parker wrote:
To coincide with the improvements to -betterC in the upcoming
DMD 2.076, Walter has published a new article on the D blog
about what it is and why to use it. A fun read. And I'm
personally happy to see the love this feature is get
To coincide with the improvements to -betterC in the upcoming DMD
2.076, Walter has published a new article on the D blog about
what it is and why to use it. A fun read. And I'm personally
happy to see the love this feature is getting. I have a project
I'd like to use it with if I can ever make
On Tuesday, 22 August 2017 at 22:35:53 UTC, Johannes Loher wrote:
I created a zsh completion script for dub. It is not perfect,
but it does many things well already. You can find it here:
https://github.com/ghost91-/dub-zsh-completion.
I have seen that bash and fish completion scripts are incl
43 matches
Mail list logo