On Monday, 20 June 2016 at 05:11:12 UTC, Hugo wrote:
On Sunday, 19 June 2016 at 23:01:26 UTC, Adam D. Ruppe wrote:
One potentially simple option would be to preprocess it by
doing a .replace(`\"`, `\\"`) then pass to CommandLineToArgvW
to hack in the extra slash...
The problem with that
On Sunday, 19 June 2016 at 23:01:26 UTC, Adam D. Ruppe wrote:
One potentially simple option would be to preprocess it by
doing a .replace(`\"`, `\\"`) then pass to CommandLineToArgvW
to hack in the extra slash...
The problem with that approach is that replace does not work with
wchar*. I
On Sunday, 19 June 2016 at 15:47:21 UTC, Dicebot wrote:
Let me propose another idea where maybe we can remove the
extra dependency for new codebase collaborators but still have
access to a full-blown build system: Add a sub-command to
Button that produces a shell script to run the build. For
On Sunday, 19 June 2016 at 23:01:26 UTC, Adam D. Ruppe wrote:
On Sunday, 19 June 2016 at 15:36:08 UTC, Hugo wrote:
I thought the proper way to call GetCommandLineW was precisely
through CommandLineToArgvW, now I am lost.
Typically, yes, but you are saying you don't like what
On Sunday, 19 June 2016 at 23:12:10 UTC, ag0aep6g wrote:
On 06/20/2016 12:38 AM, Hugo wrote:
What you suggest is non-standard in Windows,
I don't buy this. MSDN says about "Parsing C++ Command-Line
Arguments" [1]:
> A double quotation mark preceded by a backslash (\") is
interpreted as a
On Sun, Jun 19, 2016 at 03:01:33PM +, Seb via Digitalmars-d-announce wrote:
> Hi,
>
> I am not sure how much you have heard about the D-Man, but in Japan
> there is an entire culture based on the D-Man!
> As I learned about this by accident (and even Walter didn't know about
> it), I thought
On Sun, Jun 19, 2016 at 05:49:40PM -0700, Walter Bright via Digitalmars-d wrote:
> http://utf8everywhere.org/
>
> It has a good explanation of the issues and problems, and how these
> things came to be.
>
> This is pretty much in line with my current (!) opinion on Unicode.
> What it means for
On Sunday, 19 June 2016 at 18:33:36 UTC, moe wrote:
I see where I went wrong. I thought that it's possible to only
use the .lib file without the source code of dbar. Having
access to the source makes what I am trying somewhat pointless.
Is it otherwise possible to provide some functionality
On 2016-06-20 06:33, moe wrote:
I see where I went wrong. I thought that it's possible to only use the
.lib file without the source code of dbar. Having access to the source
makes what I am trying somewhat pointless. Is it otherwise possible to
provide some functionality without having to give
On Sunday, 19 June 2016 at 18:33:36 UTC, moe wrote:
On Sunday, 19 June 2016 at 18:00:07 UTC, Mike Parker wrote:
On Sunday, 19 June 2016 at 17:33:43 UTC, moe wrote:
Unfortunatelly I still don't get it. I would like to have an
independant project "dbar". The created lib is then used in
On Monday, 20 June 2016 at 00:34:18 UTC, Joerg Joergonson wrote:
Can I just force the cast in some way if I know good an well it
works for ever? Or do I have to write extra code to get around
axiom: "We did this to save you trouble because we know better
than you what you are doing. Go forth
On Sunday, 19 June 2016 at 19:53:46 UTC, Gary Willoughby wrote:
When compiling, what exactly does the -betterC flag do? The
command help says "omit generating some runtime information and
helper functions" but what does this really mean? Is there any
specifics somewhere?
My understanding was
http://utf8everywhere.org/
It has a good explanation of the issues and problems, and how these things came
to be.
This is pretty much in line with my current (!) opinion on Unicode. What it
means for us is I don't think it is that important anymore for algorithms to
support strings of
On Monday, 20 June 2016 at 00:15:33 UTC, David Nadlinger wrote:
On Monday, 20 June 2016 at 00:01:58 UTC, Joerg Joergonson wrote:
class a { }
class b : a { }
class A(T : a)
{
T x;
}
void main(string[] argv)
{
auto y = new A!a();
auto z = new A!b();
y.x = new a();
On Monday, 20 June 2016 at 00:01:58 UTC, Joerg Joergonson wrote:
class a { }
class b : a { }
class A(T : a)
{
T x;
}
void main(string[] argv)
{
auto y = new A!a();
auto z = new A!b();
y.x = new a();
z.x = new b();
auto p1 = cast(A!a)y;
On 2016-06-19 23:29:35 +, Adam D. Ruppe said:
We should probably make a D-man video game.
There already are a couple:
http://yomogimaru.tumblr.com/post/145803169293
http://goboriin.sub.jp/DLNGRING/
I have a gui based on the following classes:
public class Widget { Widget Parent; }
public class Item : Widget;
public class Button(T : ButtonItem) : Widget { T[] Items; ... }
public class ButtonItem : Item
{
void Do() { auto parent = (cast(Button!ButtonItem)this.Parent);
...}
...
}
All
On Sunday, 19 June 2016 at 23:00:03 UTC, ag0aep6g wrote:
On 06/19/2016 11:19 PM, Joerg Joergonson wrote:
On Sunday, 19 June 2016 at 20:21:35 UTC, ag0aep6g wrote:
[...]
No. B!b is derived from A!b, not from A!a. `b` being derived
from `a`
does not make A!b derived from A!a.
why not? This
On Saturday, 18 June 2016 at 16:46:26 UTC, Mark wrote:
I've spent may hours trying to do this in OSX. Everything goes
fine from the marketplace window...until I restart Eclipse and
find no files have been added?
Any words of consolation or advice will be greatly appreciated.
Desperately,
We should probably make a D-man video game.
On 06/20/2016 12:38 AM, Hugo wrote:
What you suggest is non-standard in Windows,
I don't buy this. MSDN says about "Parsing C++ Command-Line Arguments" [1]:
> A double quotation mark preceded by a backslash (\") is interpreted
as a literal double quotation mark character (").
As we've
On Saturday, 18 June 2016 at 16:46:26 UTC, Mark wrote:
I've spent may hours trying to do this in OSX. Everything goes
fine from the marketplace window...until I restart Eclipse and
find no files have been added?
Any words of consolation or advice will be greatly appreciated.
I have Eclipse
On 06/19/2016 11:19 PM, Joerg Joergonson wrote:
On Sunday, 19 June 2016 at 20:21:35 UTC, ag0aep6g wrote:
[...]
No. B!b is derived from A!b, not from A!a. `b` being derived from `a`
does not make A!b derived from A!a.
why not? This doesn't seem logical!
Template parameters simply don't work
On Sunday, 19 June 2016 at 15:36:08 UTC, Hugo wrote:
I thought the proper way to call GetCommandLineW was precisely
through CommandLineToArgvW, now I am lost.
Typically, yes, but you are saying you don't like what
CommandLineToArgvW does (it is responsible for handling quotes
and backslash
On Sunday, 19 June 2016 at 20:52:52 UTC, deadalnix wrote:
On Sunday, 19 June 2016 at 11:11:18 UTC, Basile B. wrote:
On Saturday, 23 April 2016 at 13:37:31 UTC, Andrei
Alexandrescu wrote:
https://issues.dlang.org/show_bug.cgi?id=15951. I showed a
few obvious cases, but finding the best code in
On Sunday, 19 June 2016 at 17:49:55 UTC, ag0aep6g wrote:
I don't know if you can solve this with regex alone. May depend
on what exact behavior you want. Maybe just write a little
function instead that splits the command line, handling quotes
and such as you want. If you're not comfortable
On Saturday, 18 June 2016 at 18:13:22 UTC, Johan Engelen wrote:
An example of how __FILE__ as template parameter will break
your library:
In library, distributed in binary+source form:
```
alias file_templ_alias = file_templ!bool;
T file_templ(T, string file = __FILE__, size_t line = __LINE__)
Hello
struct WTable
{
...
private enum opApply_body = q{
if( smt )
{
foreach( f; 0 .. size-1 )
foreach( t; f+1 .. size )
if( auto r = dlg(f,t,data[getIndex(f,t)]) )
return r;
}
else
{
On Sunday, 19 June 2016 at 21:40:20 UTC, David Nadlinger wrote:
On Sunday, 19 June 2016 at 21:13:00 UTC, Johan Engelen wrote:
On Sunday, 19 June 2016 at 21:11:59 UTC, Johan Engelen wrote:
(I think we can pretty much inline anything the user throws
at us)
(as long as it is not a naked asm
On Sunday, 19 June 2016 at 16:21:36 UTC, Lodovico Giaretta wrote:
Fibers are more of a concurrency than a parallelism tool. Do
you have a link to relevant Chapel description? I am not
familiar with it.
Just found this, although there's probably other material out
there:
On Sunday, 19 June 2016 at 21:06:43 UTC, Joerg Joergonson wrote:
A!b is derived from A!a if b is derived from a, is it not? If
not, then I am wrong, if so then D casting has a bug.
You are wrong.
The array example given by Adam is actually a neat illustration
of precisely your question if
On Sunday, 19 June 2016 at 21:13:00 UTC, Johan Engelen wrote:
On Sunday, 19 June 2016 at 21:11:59 UTC, Johan Engelen wrote:
(I think we can pretty much inline anything the user throws at
us)
(as long as it is not a naked asm function)
Another example is `alloca`, which you might not want to
https://issues.dlang.org/show_bug.cgi?id=15341
hba...@hotmail.com changed:
What|Removed |Added
Status|NEW |ASSIGNED
On Sunday, 19 June 2016 at 20:21:35 UTC, ag0aep6g wrote:
On 06/19/2016 09:59 PM, Joerg Joergonson wrote:
This should be completely valid since B!T' obviously derives
from A!T
directly
ok
and we see that T' derives from b which derives from a
directly.
ok
So B!b is an entirely derived
On Sunday, 19 June 2016 at 21:11:59 UTC, Johan Engelen wrote:
(I think we can pretty much inline anything the user throws at
us)
(as long as it is not a naked asm function)
On Sunday, 19 June 2016 at 20:37:02 UTC, Dicebot wrote:
On 06/19/2016 11:33 AM, Johan Engelen wrote:
On Sunday, 19 June 2016 at 08:06:09 UTC, Dicebot wrote:
This important feature and can't be simply removed. For
example, std.experimental.logger also relies on it.
Do you mean it relies on
On Sunday, 19 June 2016 at 20:18:14 UTC, Adam D. Ruppe wrote:
On Sunday, 19 June 2016 at 19:59:28 UTC, Joerg Joergonson wrote:
This should be completely valid since B!T' obviously derives
from A!T directly and we see that T' derives from b which
derives from a directly. So B!b is an entirely
On Sunday, 19 June 2016 at 20:52:52 UTC, deadalnix wrote:
On Sunday, 19 June 2016 at 11:11:18 UTC, Basile B. wrote:
On Saturday, 23 April 2016 at 13:37:31 UTC, Andrei
Alexandrescu wrote:
https://issues.dlang.org/show_bug.cgi?id=15951. I showed a
few obvious cases, but finding the best code in
On Sunday, 19 June 2016 at 11:49:06 UTC, Andrei Alexandrescu
wrote:
On 06/19/2016 06:38 AM, qznc wrote:
Unfortunately, Im currently traveling and lost my bag with
laptop at the
airport.
Bummer. I hope you find it! -- Andrei
Not in D, but:
On Sunday, 19 June 2016 at 11:11:18 UTC, Basile B. wrote:
On Saturday, 23 April 2016 at 13:37:31 UTC, Andrei Alexandrescu
wrote:
https://issues.dlang.org/show_bug.cgi?id=15951. I showed a few
obvious cases, but finding the best code in general is tricky.
Ideas? -- Andrei
A new "@noinit"
On 06/19/2016 11:33 AM, Johan Engelen wrote:
> On Sunday, 19 June 2016 at 08:06:09 UTC, Dicebot wrote:
>> This important feature and can't be simply removed. For example,
>> std.experimental.logger also relies on it.
>
> Do you mean it relies on __FILE__ being a template parameter (instead of
> a
On Sunday, 19 June 2016 at 20:20:38 UTC, David Nadlinger wrote:
Such a separate driver could then also be used as part of the
regular distribution to improve the performance on
memory-constrained all-at-once builds, by freeing all the
frontend/LLVM memory (i.e., terminating the process) before
On 06/19/2016 09:59 PM, Joerg Joergonson wrote:
This should be completely valid since B!T' obviously derives from A!T
directly
ok
and we see that T' derives from b which derives from a
directly.
ok
So B!b is an entirely derived from A!a
No. B!b is derived from A!b, not from A!a. `b`
On Sunday, 19 June 2016 at 18:23:06 UTC, Jakob Bornecrantz wrote:
That will be annoying, the LDC that works with SPIR-V wont be
able to produce MSVC compatible exes. Lets hope they mainline
it soon.
One possible solution for this would be a thin driver executable
that parses just enough of
On Sunday, 19 June 2016 at 19:59:28 UTC, Joerg Joergonson wrote:
This should be completely valid since B!T' obviously derives
from A!T directly and we see that T' derives from b which
derives from a directly. So B!b is an entirely derived from A!a
and hence the cast should be successful
I
import std.stdio;
class X { X Parent; }
class x : X { }
class a : x
{
void Do()
{
auto p = cast(A!a)(this.Parent); // works as long as we
are in A
assert(p !is null);
}
}
class A(T : a) : X
{
X Parent = new X();
T _y = new T();
}
class b : a { }
class
When compiling, what exactly does the -betterC flag do? The
command help says "omit generating some runtime information and
helper functions" but what does this really mean? Is there any
specifics somewhere?
On Sunday, 19 June 2016 at 19:39:05 UTC, Bienlein wrote:
Hello,
RefCounted so far works well with structs, but not with classes
(see http://wiki.dlang.org/DIP74). I have now set up a little
kludge where a struct takes a class as a template parameter.
The struct with the containing object,
Hello,
RefCounted so far works well with structs, but not with classes
(see http://wiki.dlang.org/DIP74). I have now set up a little
kludge where a struct takes a class as a template parameter. The
struct with the containing object, which is of the type of the
struct's template type, is
On Sunday, June 19, 2016 15:59:41 Joerg Joergonson via Digitalmars-d-learn
wrote:
> If foreach removes all/any of the elements of a container then
> something is broke.
That's exactly what happens with a basic input range, and if it doesn't
happen with a forward range, it's just because copying
On Sunday, 19 June 2016 at 18:51:09 UTC, Jack Stouffer wrote:
I would like to try this out on my date parsing library, but I
don't see a way to generate strings of a specific format.
take a look at
https://github.com/dlang/phobos/pull/2995/files#diff-1a5f159e09980950bb9931ac674cbf40R358
On Sunday, 19 June 2016 at 16:15:15 UTC, Robert burner Schadek
wrote:
...
I would like to try this out on my date parsing library, but I
don't see a way to generate strings of a specific format.
I'm think you have two options, either pass a std.format format
string and generate random
On Sunday, 19 June 2016 at 18:00:07 UTC, Mike Parker wrote:
On Sunday, 19 June 2016 at 17:33:43 UTC, moe wrote:
Unfortunatelly I still don't get it. I would like to have an
independant project "dbar". The created lib is then used in
another project "dfoo". Assuming that "dfoo" has no
Whew! I thought this was going to be a scathing critique of some lurking
anti-feministic culture in the D world.
Glad to see it's just about some cute D-shaped characters!
On Sun, Jun 19, 2016 at 10:30 AM, Walter Bright via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:
>
On Sunday, 19 June 2016 at 14:04:15 UTC, Nicholas Wilson wrote:
On Sunday, 19 June 2016 at 12:38:00 UTC, Jakob Bornecrantz
wrote:
On Sunday, 19 June 2016 at 11:12:50 UTC, Nicholas Wilson wrote:
This thread is partly to announce that i will be adding to
LDC the ability to generate code for GPUs
On Sunday, 19 June 2016 at 18:04:52 UTC, ZombineDev wrote:
On Sunday, 19 June 2016 at 16:24:53 UTC, mogu wrote:
On Sunday, 19 June 2016 at 15:06:40 UTC, David Nadlinger wrote:
On Sunday, 19 June 2016 at 14:05:22 UTC, mogu wrote:
It's awful that I compile a little 64bit program(or
-m32mscoff)
On Sunday, 19 June 2016 at 17:33:43 UTC, moe wrote:
Unfortunatelly I still don't get it. I would like to have an
independant project "dbar". The created lib is then used in
another project "dfoo". Assuming that "dfoo" has no access to
"dbar" other than the .lib file.
You can't do it
On Sunday, 19 June 2016 at 16:24:53 UTC, mogu wrote:
On Sunday, 19 June 2016 at 15:06:40 UTC, David Nadlinger wrote:
On Sunday, 19 June 2016 at 14:05:22 UTC, mogu wrote:
It's awful that I compile a little 64bit program(or
-m32mscoff) in windows must have visual studio which has
tremendous
Also, for some reason one image has a weird horizontal line at
the bottom of the image that is not part of the original. This is
as if the height was 1 pixel to much and it's reading "junk". I
have basically a few duplicate images that were generated from
the same base image. None of the
On 06/19/2016 06:21 PM, Hugo wrote:
What would be the efficient way to talke this then? I tried regex:
[...]
However it doesn't quite work will all cases (besides I fear in this
case a regexp could offer an unnecessary entry point for an exploit):
I don't know if you can solve this with
On Sunday, 19 June 2016 at 17:33:43 UTC, moe wrote:
On Sunday, 19 June 2016 at 16:31:40 UTC, Mike Parker wrote:
[...]
Thanks for the reply.
Unfortunatelly I still don't get it. I would like to have an
independant project "dbar". The created lib is then used in
another project "dfoo".
On 06/19/2016 05:36 PM, Hugo wrote:
I thought the proper way to call GetCommandLineW was precisely through
CommandLineToArgvW, now I am lost.
It may be the proper way, but you don't want the proper way then. I
don't know if there's a Windows function for the behavior you want. If
there
On Sunday, 19 June 2016 at 16:31:40 UTC, Mike Parker wrote:
On Sunday, 19 June 2016 at 15:35:04 UTC, moe wrote:
I am new to d and doing some small test apps at the moment to
learn d. Currently I must be missing something basic here. I
have installed dub as a project manager and I am trying to
I find this amazing and lots of fun!
On Sunday, 19 June 2016 at 15:35:04 UTC, moe wrote:
I am new to d and doing some small test apps at the moment to
learn d. Currently I must be missing something basic here. I
have installed dub as a project manager and I am trying to use
a .lib file in an app. However, I can not use a module
https://issues.dlang.org/show_bug.cgi?id=15341
hba...@hotmail.com changed:
What|Removed |Added
CC||hba...@hotmail.com
--- Comment #1 from
On Sunday, 19 June 2016 at 15:06:40 UTC, David Nadlinger wrote:
On Sunday, 19 June 2016 at 14:05:22 UTC, mogu wrote:
It's awful that I compile a little 64bit program(or
-m32mscoff) in windows must have visual studio which has
tremendous size installed even though I only need a linker.
It's
On Sunday, 19 June 2016 at 15:40:09 UTC, Dicebot wrote:
On Sunday, 19 June 2016 at 13:32:02 UTC, jmh530 wrote:
On Sunday, 19 June 2016 at 06:19:34 UTC, Dicebot wrote:
Which is inherently suboptimal and is a part of Go marketing
bullshit not worth spending time on. It also requires heavy
On Sunday, 19 June 2016 at 14:29:27 UTC, ag0aep6g wrote:
You're calling Windows' CommandLineToArgvW here. I don't think
that's what Adam meant by "process it yourself". If you don't
like how CommandLineToArgvW parses the command line, don't use
it.
What would be the efficient way to talke
Thank you Seb for taking over the review management.
Some additional feature for the proposed module is.
* Simple way to create test data for user defined types
* Benchmark data is stored into csv file for comparing the
benchmark results between runs
* Standalone tool to create gnuplot graphs
On Saturday, 18 June 2016 at 02:17:01 UTC, Adam D. Ruppe wrote:
I have an auto generator for pngs and 99% of the time it works,
but every once in a while I get an error when loading the png's.
Usually re-running the generator "fixes the problem" so it might
be on my end. Regardless of where
On Sunday, 19 June 2016 at 14:45:43 UTC, Rene Zwanenburg wrote:
On Sunday, 19 June 2016 at 14:05:22 UTC, mogu wrote:
Today, I'm working on a private GUI tool which must be run at
linux and windows. It's awful that I compile a little 64bit
program(or -m32mscoff) in windows must have visual
On Sunday, 19 June 2016 at 10:10:54 UTC, Jonathan M Davis wrote:
On Saturday, June 18, 2016 21:55:31 Joerg Joergonson via
Digitalmars-d-learn wrote:
I wanted to switch to std.container.Array but it doesn't seem
to mimic [] for some odd ball reason.
D's dynamic arrays are really quite weird in
On Sunday, 19 June 2016 at 15:06:40 UTC, David Nadlinger wrote:
On Sunday, 19 June 2016 at 14:05:22 UTC, mogu wrote:
It's awful that I compile a little 64bit program(or
-m32mscoff) in windows must have visual studio which has
tremendous size installed even though I only need a linker.
It's
On Saturday, 18 June 2016 at 08:05:18 UTC, Jason White wrote:
I realize you might be playing devil's advocate a bit and I
appreciate it.
Yeah, I personally quite like how Button looks and would totally
consider it, probably with some tweaks of own taste. But not for
most public projects for
On Sunday, 19 June 2016 at 13:32:02 UTC, jmh530 wrote:
On Sunday, 19 June 2016 at 06:19:34 UTC, Dicebot wrote:
Which is inherently suboptimal and is a part of Go marketing
bullshit not worth spending time on. It also requires heavy
runtime modifications (because TLS) unless one wants to
Hello,
I am new to d and doing some small test apps at the moment to
learn d. Currently I must be missing something basic here. I have
installed dub as a project manager and I am trying to use a .lib
file in an app. However, I can not use a module from the .lib
file. I get the following
On Sunday, 19 June 2016 at 15:00:07 UTC, Rene Zwanenburg wrote:
Don't underestimate the value of fast compilation, it's
incredibly useful while writing code.
Sorry for my tone. After waste so much time, I've been a little
mad. :(
In fact, I'm an advocator of meta-programming.
On Sunday, 19 June 2016 at 14:29:27 UTC, ag0aep6g wrote:
[...]
auto wargs = CommandLineToArgvW(GetCommandLineW(),
);
You're calling Windows' CommandLineToArgvW here. I don't think
that's what Adam meant by "process it yourself". If you don't
like how CommandLineToArgvW parses the
On Saturday, 18 June 2016 at 17:48:47 UTC, Joerg Joergonson wrote:
class foo(T) if (is(T : subfoo)) X;
FYI this can also be done in the template parameter list:
class foo(T : subfoo){}
On Sunday, 19 June 2016 at 14:05:22 UTC, mogu wrote:
It's awful that I compile a little 64bit program(or -m32mscoff)
in windows must have visual studio which has tremendous size
installed even though I only need a linker. It's weird that a
compiler compiles to binary targets needs another
On Sunday, 19 June 2016 at 14:45:29 UTC, mogu wrote:
Moreover, I wonder if D is really a cross-platform programming
language?! The official dmd only supports x86 structure. You
can never build a project with third party static library in
windows independently.
Back when DMD on windows
Hi,
I am not sure how much you have heard about the D-Man, but in
Japan there is an entire culture based on the D-Man!
As I learned about this by accident (and even Walter didn't know
about it), I thought I share this great movement with the DLang
community!
Here are some awesome impressions
On Sunday, 19 June 2016 at 14:05:22 UTC, mogu wrote:
Today, I'm working on a private GUI tool which must be run at
linux and windows. It's awful that I compile a little 64bit
program(or -m32mscoff) in windows must have visual studio which
has tremendous size installed even though I only need a
Moreover, I wonder if D is really a cross-platform programming
language?! The official dmd only supports x86 structure. You can
never build a project with third party static library in windows
independently. And how I can build an android program? LDC2? So
what dmd is? Only for a bit faster
On 06/19/2016 02:23 PM, Hugo wrote:
On Friday, 20 May 2016 at 17:41:22 UTC, Adam D. Ruppe wrote:
[...]
Use GetCommandLine to fetch the original thing the user typed, then
process it yourself.
[...]
Then why doesn't the following code produce the expected output?
[...]
auto wargs =
On Sunday, 19 June 2016 at 11:11:18 UTC, Basile B. wrote:
On Saturday, 23 April 2016 at 13:37:31 UTC, Andrei Alexandrescu
wrote:
https://issues.dlang.org/show_bug.cgi?id=15951. I showed a few
obvious cases, but finding the best code in general is tricky.
Ideas? -- Andrei
A new "@noinit"
Today, I'm working on a private GUI tool which must be run at
linux and windows. It's awful that I compile a little 64bit
program(or -m32mscoff) in windows must have visual studio which
has tremendous size installed even though I only need a linker.
It's weird that a compiler compiles to
On Sunday, 19 June 2016 at 12:38:00 UTC, Jakob Bornecrantz wrote:
On Sunday, 19 June 2016 at 11:12:50 UTC, Nicholas Wilson wrote:
This thread is partly to announce that i will be adding to LDC
the ability to generate code for GPUs through OpenCL, CUDA
(and if i have time) Metal in my fork at
On Sunday, 19 June 2016 at 06:19:34 UTC, Dicebot wrote:
Which is inherently suboptimal and is a part of Go marketing
bullshit not worth spending time on. It also requires heavy
runtime modifications (because TLS) unless one wants to totally
screw plain fibers.
Proper action item instead
Optimizing for performance is one of the major challenges for
Phobos and user libraries in the next month and years. As an
example of the benefits, have a look at the recent blog post
about find [1].
Robert burner Schadek has proposed
std.experimental.randomized_unittest_benchmark over a
Further, notice what happens if I remove the buildNormalizedPath:
mytestapp dir1 ..\ "another dir\"
Argument 0: 'mytestapp '
Argument 1: 'dir'
Argument 2: '..\'
Argument 3: 'another dir"'
Apparently the backslash is still being interpreted as an escape
when followed by a double quote, even if
On 06/19/2016 12:45 PM, Gary Willoughby wrote:
On Sunday, 19 June 2016 at 10:35:59 UTC, Gary Willoughby wrote:
...
A more correct example:
import core.stdc.stdlib;
import std.traits;
ref T foo(T)()
{
alias Type = Unqual!(T);
Type* foo = cast(Type*) malloc(Type.sizeof * 8);
On Sunday, 19 June 2016 at 11:12:50 UTC, Nicholas Wilson wrote:
This thread is partly to announce that i will be adding to LDC
the ability to generate code for GPUs through OpenCL, CUDA (and
if i have time) Metal in my fork at
https://github.com/thewilsonator/ldc and partly to request the
On Sunday, 19 June 2016 at 10:45:25 UTC, Gary Willoughby wrote:
On Sunday, 19 June 2016 at 10:35:59 UTC, Gary Willoughby wrote:
...
A more correct example:
In the second example, the problem is this:
alias Type = Unqual!(T);
You are declaring the function to return T, which in your
On Friday, 20 May 2016 at 17:41:22 UTC, Adam D. Ruppe wrote:
[...]
Use GetCommandLine to fetch the original thing the user typed,
then process it yourself.
[...]
Then why doesn't the following code produce the expected output?
import std.stdio, std.file, std.path;
version (Windows) {
On 06/19/2016 06:38 AM, qznc wrote:
Unfortunately, Im currently traveling and lost my bag with laptop at the
airport.
Bummer. I hope you find it! -- Andrei
On Sunday, 19 June 2016 at 09:50:42 UTC, John Colvin wrote:
On Sunday, 19 June 2016 at 01:01:30 UTC, Nicholas Wilson wrote:
On Saturday, 18 June 2016 at 20:04:50 UTC, Walter Bright wrote:
[...]
Now that I'm on my (southern hemisphere) winter break I will
be working on getting LDC to emit
This thread is partly to announce that i will be adding to LDC
the ability to generate code for GPUs through OpenCL, CUDA (and
if i have time) Metal in my fork at
https://github.com/thewilsonator/ldc and partly to request the
reservation of the relevant Version identifiers. (Do I do this by
a
On Saturday, 23 April 2016 at 13:37:31 UTC, Andrei Alexandrescu
wrote:
https://issues.dlang.org/show_bug.cgi?id=15951. I showed a few
obvious cases, but finding the best code in general is tricky.
Ideas? -- Andrei
A new "@noinit" attribute could solve this issue and other cases
where the
1 - 100 of 122 matches
Mail list logo