https://issues.dlang.org/show_bug.cgi?id=16962
--- Comment #11 from Vladimir Panteleev ---
ag0aep6g: Since implementing -c directly is more complicated with the recent
changes, can we emulate by using -lib and extracting the lib file's contents or
such?
Timothee, can
Adam Wilson wrote:
Adam Wilson wrote:
rikki cattermole wrote:
On 14/11/2016 9:31 AM, Adam Wilson wrote:
Jacob Carlborg wrote:
On 2016-11-12 21:50, Adam Wilson wrote:
I choose OpenSSL because it's a well respected, highly trusted,
and it
is available everywhere. I despise the license and
Chris Wright wrote:
> Okay, and D gives me sufficient tools to not leak database connections
> under typical workflows. So does C#. So does Python. So does Java, these
> days. The last time it's been even vaguely annoying for me was with
> nodejs, thanks to callback hell,
The following compiles fine:
immutable char[5] array = x"01 02 03 04 05";
The following doesn't:
immutable ubyte[5] array = x"01 02 03 04 05";
which makes sense, but neither does:
immutable ubyte[5] array = cast(immutable ubyte []) x"01 02 03 04 05";
playground.d(1): Error: cannot implicitly
On 11/12/16 21:03, Johan Engelen wrote:
On Sunday, 11 December 2016 at 12:48:17 UTC, Shachar Shemesh wrote:
Is this a know issue?
Which compiler(s) did you test?
-Johan
DMD 2.072.1 and ldc 2.070.2
It's easy to verify. Just create a large array (1M) and check the
segment sizes of the
On Sun, 11 Dec 2016 22:47:21 +, sarn wrote:
> On Saturday, 10 December 2016 at 22:55:22 UTC, Chris Wright wrote:
>> It's always a bit weird when people talk about "resources" as a
>> unification of memory, files, sockets, etc. My programs exist to fill
>> memory and then push bits of memory
https://issues.dlang.org/show_bug.cgi?id=16962
Andrei Alexandrescu changed:
What|Removed |Added
CC||and...@erdani.com
https://issues.dlang.org/show_bug.cgi?id=5710
--- Comment #42 from Martin Nowak ---
I'm hearing that C++ closures simply pass one pointer/reference for each
referenced variable, which does support an arbitrary amount of contexts.
Sounds interesting.
--
https://issues.dlang.org/show_bug.cgi?id=5710
Martin Nowak changed:
What|Removed |Added
OS|Windows |All
--
On Sunday, 11 December 2016 at 18:30:54 UTC, aberba wrote:
In php, I use built-in functions like
filter_var(FILTER_VALIDATE_EMAIL, $email). There are other
constants for different data types.
You can enforce that the string that you receive is an email
address with `isEmail` from
On Sunday, 11 December 2016 at 22:18:02 UTC, Adam D. Ruppe wrote:
On Sunday, 11 December 2016 at 22:00:27 UTC, Kevin Balbas wrote:
Basically, I need some way to turn an array of strings
into an argument list at runtime. Is this possible?
Write (or generate) a helper function that loops over
On Sunday, 11 December 2016 at 21:39:26 UTC, Timothee Cour wrote:
is there a way to pass linker flags?
dmd -Wl=comma_separated_linker_flags
eg:
dmd -Wl=-lbar,-Ldir,--export-dynamic,-pie
(same functionality as clang++
-Wl,-lbar,-Ldir,--export-dynamic,-pie)
If not could we support it? Would
On Sunday, 11 December 2016 at 18:05:19 UTC, Era Scarecrow wrote:
On Sunday, 11 December 2016 at 16:34:38 UTC, Orut wrote:
I need to be able to vary the number of ranges to feed into
cartesianProduct() at run time.
Hmmm... what kind of ranges? Are they going to be arrays? Or
something else?
On Sun, 11 Dec 2016 18:08:04 +, safety0ff wrote:
> However, I understand the quadratic nature of comparing:
> AliasSeq!(AliasSeq!(AliasSeq!(...)))
> to:
> AliasSeq!(AliasSeq!(...))
That's one option. Here's another:
Template instantiations are interned as they are constructed (or at least
On Saturday, 10 December 2016 at 22:55:22 UTC, Chris Wright wrote:
It's always a bit weird when people talk about "resources" as a
unification of memory, files, sockets, etc. My programs exist
to fill memory and then push bits of memory around. At least
99% of my "resource" usage is heap
import std.traits;
import std.stdio;
alias FDg = void delegate (string args);
FDg[string] cmdlist;
void register(DG) (string name, DG dg) if (isCallable!DG) {
cmdlist[name] = delegate (string args) {
import std.array : split;
import std.conv : to;
alias Args = Parameters!DG;
On Sunday, 11 December 2016 at 22:00:27 UTC, Kevin Balbas wrote:
Basically, I need some way to turn an array of strings
into an argument list at runtime. Is this possible?
Write (or generate) a helper function that loops over the
Parameters!Func tuple and populates it from the strings. Call
https://issues.dlang.org/show_bug.cgi?id=11274
--- Comment #5 from greenify ---
Adding some thoughts of mine to the discussion:
> As a user, CloudFlare hasn't been very nice. While I still used the Opera 12
> browser, I would get hit by CloudFlare CAPTCHAs very regularly.
On Sunday, 11 December 2016 at 18:30:53 UTC, Erdem wrote:
element.parentNode = null;
content.appendChild(element);
That works too, but could lead to data corruption later because
the other document thinks it still owns the element, but the
element doesn't know that. So if you
On Sunday, 11 December 2016 at 17:52:29 UTC, Erdem wrote:
content.appendChild(firstElements[0]);
How should one use appendChild or similiar methods
of arsd.dom library?
You need to remove the element from the first document before
trying to append it to another.
Try something like:
I'm writing a system to register functions to be called at
runtime. With zero-argument functions, it works fine. However,
I run into a problem with functions that take arguments.
This is the relevant code I started with (zero-argument version):
mixin template CommandSystemRegister(string s
https://issues.dlang.org/show_bug.cgi?id=11274
--- Comment #4 from Vladimir Panteleev ---
(In reply to Martin Nowak from comment #3)
> For an opionion I'd hope to draw a bit on Vladimir's vast experience for
> this (CC).
Hmm, I wouldn't really say my experience is that
https://issues.dlang.org/show_bug.cgi?id=16962
--- Comment #9 from Timothee Cour ---
>> Sorry, what is the use case of using -c ? I think it working was a mere
>> accident. If you want to syntax-check the file, use dmd (not rdmd) with -o-.
>> Or do you want to compile
question 1:
is there a way to pass linker flags?
dmd -Wl=comma_separated_linker_flags
eg:
dmd -Wl=-lbar,-Ldir,--export-dynamic,-pie
(same functionality as clang++ -Wl,-lbar,-Ldir,--export-dynamic,-pie)
If not could we support it? Would make a lot of things easier.
question 2:
Furthermore, on
https://issues.dlang.org/show_bug.cgi?id=16962
--- Comment #8 from Vladimir Panteleev ---
There is a known problem with -lib and -od:
https://issues.dlang.org/show_bug.cgi?id=14296
Admittedly it's my fault as my commit introduced the regression, however the
underlying
https://issues.dlang.org/show_bug.cgi?id=16962
Vladimir Panteleev changed:
What|Removed |Added
CC|
On Sunday, 11 December 2016 at 11:33:40 UTC, Basile B. wrote:
DIP 1003 is faddish. It would really be better to have a system
that would allow any keyword to be used as identifier. An
escape system is the key.
It would also guarantee that the DIP would not be accepted. With
this DIP I aimed
https://issues.dlang.org/show_bug.cgi?id=11274
Martin Nowak changed:
What|Removed |Added
CC||c...@dawg.eu,
https://issues.dlang.org/show_bug.cgi?id=11274
--- Comment #2 from Martin Nowak ---
Caches come with their own problems and they often block for
longer times with 5xx screens, for even smallest backend hickups. So my
experience is that they easily worsen reachability if you're
On Sunday, 4 December 2016 at 13:17:09 UTC, Era Scarecrow wrote:
On Tuesday, 29 November 2016 at 00:05:31 UTC, Steven
Schveighoffer wrote:
hashOf is kind of this horrible hacky thing that nobody should
be using. It literally takes whatever you pass it and hashes
the local bytes.
Ugg...
On Sunday, 4 December 2016 at 07:50:26 UTC, Tofu Ninja wrote:
Well for now I am going to revert back to 2.071.2, 2.072 seems
broke as fuck.
For the record: it has been reverted:
https://github.com/dlang/druntime/pull/1707 and thus should be
part of the next point release.
On Sunday, 11 December 2016 at 19:40:21 UTC, safety0ff wrote:
On Sunday, 11 December 2016 at 19:00:23 UTC, Stefan Koch wrote:
Just use this little program to simulate the process.
That's not really useful for understanding and making progress
on the issue.
I had a patch with improved hash
On Sunday, 11 December 2016 at 19:40:21 UTC, safety0ff wrote:
That's not really useful for understanding and making progress
on the issue.
Uh, it kinda does actually. It's highlighting that a better hash
function will only have a minor effect. The time sink is the
number of instantiations
On Sunday, 11 December 2016 at 11:58:39 UTC, ag0aep6g wrote:
Try putting an `assert(childCrossPoint !is otherCrossPoint);`
before the assignment. If it fails, the variables refer to the
same node. That would explain how otherCrossPoint.left gets set.
Ahh... This led me to it. I was about to
On Sunday, 11 December 2016 at 19:00:23 UTC, Stefan Koch wrote:
Just use this little program to simulate the process.
That's not really useful for understanding and making progress on
the issue.
I had a patch with improved hash functions which I stashed away
since it seemed the mangle
On Saturday, 10 December 2016 at 17:39:20 UTC, aberba wrote:
On Thursday, 8 December 2016 at 20:48:52 UTC, NVolcz wrote:
On Tuesday, 6 December 2016 at 22:28:04 UTC, aberba wrote:
[...]
Love the article! Please keep writing tutorials like this :-D.
Feedback:
1.
The upload function is (kind
https://issues.dlang.org/show_bug.cgi?id=16955
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/aec837beca951d6e7194e93a08de6cb375230e42
Fix Issue 16955 - std.process.spawnProcessImpl can
https://issues.dlang.org/show_bug.cgi?id=16955
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
On Sunday, 11 December 2016 at 11:58:39 UTC, ag0aep6g wrote:
Try putting an `assert(childCrossPoint !is otherCrossPoint);`
before the assignment. If it fails, the variables refer to the
same node. That would explain how otherCrossPoint.left gets set.
Furthermore, I think he is calling breed
On Sunday, 11 December 2016 at 12:48:17 UTC, Shachar Shemesh
wrote:
Is this a know issue?
Which compiler(s) did you test?
-Johan
On Sunday, 11 December 2016 at 18:08:04 UTC, safety0ff wrote:
On Sunday, 11 December 2016 at 17:20:24 UTC, Stefan Koch wrote:
That means you have to compute the mangled name which is crazy
expensive.
And you can't cache the parent part of mangle because it all
freshly generated by the
In php, I use built-in functions like
filter_var(FILTER_VALIDATE_EMAIL, $email). There are other
constants for different data types.
Again, there is mysqli_real_escape_string() for escaping SQL
injection/harmful characters.
What are my options in vibe.d or even D?
Ok this seems to work as expected.
import arsd.dom;
import std.stdio;
void main()
{
auto document = new Document();
document.parseGarbage(`
Test Document1
This is the first paragraph of our href="test.html">test document.
This second paragraph also has a
On Saturday, 10 December 2016 at 03:51:34 UTC, brocolis wrote:
How do I separate IP parts with dlang?
I found this very cool trick, with C++:
http://stackoverflow.com/a/5328190
Heh, I'd prefer to use sscanf vs using the streams.
https://issues.dlang.org/show_bug.cgi?id=16963
safety0ff.bugz changed:
What|Removed |Added
Keywords||iasm
On Sunday, 11 December 2016 at 17:20:24 UTC, Stefan Koch wrote:
That means you have to compute the mangled name which is crazy
expensive.
And you can't cache the parent part of mangle because it all
freshly generated by the template.
How often would the mangle be needed regardless later on
On Sunday, 11 December 2016 at 16:34:38 UTC, Orut wrote:
I need to be able to vary the number of ranges to feed into
cartesianProduct() at run time. In Python, this is possible
because I can dynamically construct a list of lists, then
unpack this list using the unpacking operator when it is
On Saturday, 10 December 2016 at 13:25:13 UTC, Nicholas Wilson
wrote:
On Saturday, 10 December 2016 at 13:21:40 UTC, notna wrote:
Those statements need to be inside a function.
Feel free to post a working example or, even better, a pull
request with one ;)
I would like to add first documents content inside a div element
like this.
import arsd.dom;
import std.stdio;
void main()
{
auto document = new Document();
document.parseGarbage(`
Test Document1
This is the first paragraph of our href="test.html">test
https://issues.dlang.org/show_bug.cgi?id=16963
ag0ae...@gmail.com changed:
What|Removed |Added
Keywords||wrong-code
CC|
On Sunday, 11 December 2016 at 17:04:24 UTC, safety0ff wrote:
On Sunday, 11 December 2016 at 16:26:29 UTC, Ethan Watson wrote:
At the very least, I now have an idea of which parts of the
compiler I'm taxing and can attempt to write around that. But
I'm also tempted to go in and optimise
On Sunday, 11 December 2016 at 16:26:29 UTC, Ethan Watson wrote:
At the very least, I now have an idea of which parts of the
compiler I'm taxing and can attempt to write around that. But
I'm also tempted to go in and optimise those parts of the
compiler.
Have a look at this issue:
https://issues.dlang.org/show_bug.cgi?id=16962
ag0ae...@gmail.com changed:
What|Removed |Added
CC||ag0ae...@gmail.com
--- Comment #6 from
On Sunday, 11 December 2016 at 16:26:29 UTC, Ethan Watson wrote:
But
I'm also tempted to go in and optimise those parts of the
compiler.
I already what I could to optimize those parts.
whatever you manage to squeeze out.
It's not going to do much good.
The templates you are using are by their
Hi,
I am using DUB with the SDL language and I have two questions:
1. How can I add some text file to my project? I want to add shaders
in my Visual Project.
2. How to make a compiler option depending on the platform and debug
mode at the same time?
Thanks.
Am trying to port some Python code to D and I got stumped on the
use of cartesianProduct() from std.algorithm.setops. In Python,
the same functionality is implemented by product() in the
itertools module. I need to be able to vary the number of ranges
to feed into cartesianProduct() at run
https://issues.dlang.org/show_bug.cgi?id=16966
ag0ae...@gmail.com changed:
What|Removed |Added
Keywords||pull
I've been keeping in contact with Stefan and providing him
example code to test with his CTFE engine. He's been saying for a
while that templates are slow. So I decided to finally work out
just how slow we're talking about here.
I can't show the exact code I'm running with, but needless to
https://issues.dlang.org/show_bug.cgi?id=16966
Issue ID: 16966
Summary: rdmd: AssertError@rdmd.d(489): should have been
created by compileRootAndGetDeps
Product: D
Version: D2
Hardware: All
OS: All
On Sunday, 11 December 2016 at 03:15:55 UTC, Mike Bierlee wrote:
On Sunday, 11 December 2016 at 02:17:18 UTC, Mike Parker wrote:
On Saturday, 10 December 2016 at 20:25:05 UTC, Mike Bierlee
wrote:
On Friday, 9 December 2016 at 10:27:05 UTC, Eugene Wissner
wrote:
It would generate 2 methods
On Saturday, 10 December 2016 at 16:37:53 UTC, Iakh wrote:
On Friday, 9 December 2016 at 16:30:55 UTC, Eugene Wissner
wrote:
On Friday, 9 December 2016 at 12:37:58 UTC, Iakh wrote:
Is there possibility to remove affixes in generated accessor
names?
No, there is no way to manipulate the
https://issues.dlang.org/show_bug.cgi?id=16962
--- Comment #5 from Andrej Mitrovic ---
(In reply to Andrej Mitrovic from comment #4)
> https://github.com/dlang/tools/commit/
> a63233c22dce33ff91141c5706cdc7d66a8c0099 seems to have caused the regression
> for the first
https://issues.dlang.org/show_bug.cgi?id=16962
Andrej Mitrovic changed:
What|Removed |Added
CC|
On Sunday, 11 December 2016 at 11:33:40 UTC, Basile B. wrote:
On Sunday, 11 December 2016 at 07:52:28 UTC, Rory McGuire wrote:
On Sat, Dec 10, 2016 at 4:43 PM, Basile B. via
Digitalmars-d-announce < digitalmars-d-announce@puremagic.com>
wrote:
[...]
Why is #line obsolete? I use it a lot
On Sunday, 11 December 2016 at 09:13:41 UTC, Stefan Koch wrote:
Originally I planned for this to over in 3 months.
Now I am going finish the 6th month and it won't be done
completely.
I hear that.
As an anecdote, by Binderoo work has been functional for months;
but it's only now becoming
Hello everyone,
Please consider the following snippet:
immutable ubyte[] array1 = [ 1, 2, 3, 4 ];
immutable ubyte[] array2 = cast(immutable ubyte[]) x"01 02 03 04";
Examining the resulting code, it is obvious that the literals
initializing array2 are stored in the read only segment (.rodata),
https://issues.dlang.org/show_bug.cgi?id=16965
--- Comment #1 from rdirect...@gmail.com ---
Created attachment 1625
--> https://issues.dlang.org/attachment.cgi?id=1625=edit
git diff patch
--
https://issues.dlang.org/show_bug.cgi?id=16965
rdirect...@gmail.com changed:
What|Removed |Added
URL||https://github.com/dlang/to
https://issues.dlang.org/show_bug.cgi?id=16965
Issue ID: 16965
Summary: changed.d compile error
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
On Sunday, 11 December 2016 at 11:37:39 UTC, Shachar Shemesh
wrote:
On 11/12/16 12:02, Suliman wrote:
On Saturday, 10 December 2016 at 08:10:46 UTC, Shachar Shemesh
wrote:
On 10/12/16 09:25, Suliman wrote:
I plan to visit Tel Aviv from 31 December to 6-th of January
of next
year.
Is there
On 12/12/2016 12:43 AM, TheGag96 wrote:
On Sunday, 11 December 2016 at 11:17:50 UTC, rikki cattermole wrote:
Not public, please pastebin.
https://github.com/TheGag96/evo-pacman/blob/master/source/pacman/tree.d#L135
I just put it on GitHub. No idea why the repo wasn't public even after I
set
On 12/11/2016 12:43 PM, TheGag96 wrote:
On Sunday, 11 December 2016 at 11:17:50 UTC, rikki cattermole wrote:
Not public, please pastebin.
https://github.com/TheGag96/evo-pacman/blob/master/source/pacman/tree.d#L135
I just put it on GitHub. No idea why the repo wasn't public even after I
set
On Sunday, 11 December 2016 at 11:17:50 UTC, rikki cattermole
wrote:
Not public, please pastebin.
https://github.com/TheGag96/evo-pacman/blob/master/source/pacman/tree.d#L135
I just put it on GitHub. No idea why the repo wasn't public even
after I set it to be public...
On 11/12/16 12:02, Suliman wrote:
On Saturday, 10 December 2016 at 08:10:46 UTC, Shachar Shemesh wrote:
On 10/12/16 09:25, Suliman wrote:
I plan to visit Tel Aviv from 31 December to 6-th of January of next
year.
Is there anybody who take part in D-community there?
There are about 30 D
On Sunday, 11 December 2016 at 07:52:28 UTC, Rory McGuire wrote:
On Sat, Dec 10, 2016 at 4:43 PM, Basile B. via
Digitalmars-d-announce < digitalmars-d-announce@puremagic.com>
wrote:
On Saturday, 10 December 2016 at 13:49:09 UTC, Basile B. wrote:
On Monday, 28 November 2016 at 02:17:20 UTC,
On 12/12/2016 12:15 AM, TheGag96 wrote:
I was porting my Evolutionary Computing homework written in Python over
to D, and I've come across this bug I cannot for the life of me figure out.
https://gitlab.com/TheGag96/evo-pacman/blob/master/source/pacman/tree.d#L139
Not public, please pastebin.
I was porting my Evolutionary Computing homework written in
Python over to D, and I've come across this bug I cannot for the
life of me figure out.
https://gitlab.com/TheGag96/evo-pacman/blob/master/source/pacman/tree.d#L139
I don't think I could cut this down to a smaller reproducible
On Sunday, 11 December 2016 at 10:01:21 UTC, Orut wrote:
On Sunday, 11 December 2016 at 02:46:58 UTC, Nicholas Wilson
wrote:
join performs allocations which is probably the reason for its
slowness. There is joiner (in std.algorithm.iterations) that
lazily performs the join, (though in the
On Saturday, 10 December 2016 at 08:10:46 UTC, Shachar Shemesh
wrote:
On 10/12/16 09:25, Suliman wrote:
I plan to visit Tel Aviv from 31 December to 6-th of January
of next year.
Is there anybody who take part in D-community there?
There are about 30 D programmers in the Weka.io offices in
On Sunday, 11 December 2016 at 02:46:58 UTC, Nicholas Wilson
wrote:
join performs allocations which is probably the reason for its
slowness. There is joiner (in std.algorithm.iterations) that
lazily performs the join, (though in the case of this
"benchmark" will be cheating because you don't
On Sunday, 11 December 2016 at 09:05:26 UTC, Anonymouse wrote:
Would you say it has ended up being more or less (or roughly
equal) work than you initially expected?
And keep up the good work!
I did expect a lot of work.
But with debugging it exceeded my expectations.
Originally I planned
On Sunday, 11 December 2016 at 08:37:28 UTC, Stefan Koch wrote:
Disregard That!
I wasn't paying attention
The lower numbers are produced by ldc!
The performance fixes did lower the overall overhead even more
though.
Which means bytecode generation will not even show up among the
top 50
On Sunday, 11 December 2016 at 08:33:49 UTC, Stefan Koch wrote:
On Monday, 31 October 2016 at 13:29:01 UTC, Stefan Koch wrote:
Hi Guys, since I got a few complaints about giving minor
status updates in the announce group, I am opening this thread.
I will start with giving an overview of what
On Monday, 31 October 2016 at 13:29:01 UTC, Stefan Koch wrote:
Hi Guys, since I got a few complaints about giving minor status
updates in the announce group, I am opening this thread.
I will start with giving an overview of what works and what
does not work.
Currently the only basic type
84 matches
Mail list logo