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?
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
https://issues.dlang.org/show_bug.cgi?id=16961
Issue ID: 16961
Summary: Fix Algorithms to Account for ref Value Front and
Avoid Copying Where Unnecessary.
Product: D
Version: D2
Hardware: x86
OS: Windows
Q4: Current allocator API requires DRuntime to be linked. So,
they are not compatible with BetterC mode. Can this be fixed
before std.experimental.allocator -> std.allocator migration?
--Ilya
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
std::string ip ="192.168.1.54";
std::stringstream s(ip);
int a,b,c,d; //to store the 4 ints
char ch; //to
Hi all,
tl;dr: I would like to start having GC-free methods and data
structures in Phobos, which depends on std.allocator being stable
(i.e not in experimental).
Q1: So I would like to know what's missing/blocking this? Is it
just time?
(FYI: std.experimental.allocator has been merged in
https://issues.dlang.org/show_bug.cgi?id=16949
Martin Nowak changed:
What|Removed |Added
Status|RESOLVED|REOPENED
How do I separate IP parts with dlang?
I found this very cool trick, with C++:
http://stackoverflow.com/a/5328190
std::string ip ="192.168.1.54";
std::stringstream s(ip);
int a,b,c,d; //to store the 4 ints
char ch; //to temporarily store the '.'
s >> a >> ch >> b >> ch >> c >> ch >> d;
On Saturday, 10 December 2016 at 03:36:11 UTC, Adam D. Ruppe
wrote:
On Saturday, 10 December 2016 at 03:29:18 UTC, unDEFER wrote:
But it works under Linux
That's just because the underlying C function handles the case.
But the D function makes no promises about that:
std.file.remove's
On Saturday, 10 December 2016 at 01:30:52 UTC, Jonathan M Davis
wrote:
On Saturday, December 10, 2016 01:19:45 unDEFER via
Digitalmars-d-learn wrote:
Well, much as I'd love to rag on Windows for doing dumb and
annoying stuff with file locks (which they do do), in this
case, your code
On Saturday, 10 December 2016 at 03:29:18 UTC, unDEFER wrote:
But it works under Linux
That's just because the underlying C function handles the case.
But the D function makes no promises about that:
std.file.remove's documentation says "removes the file", leaving
what it does to
On Saturday, 10 December 2016 at 01:28:13 UTC, SonicFreak94 wrote:
On Saturday, 10 December 2016 at 01:19:45 UTC, unDEFER wrote:
remove("D:\\TEST");
Try rmdir instead.
But it works under Linux
On Saturday, 10 December 2016 at 02:39:33 UTC, timotheecour wrote:
Have a look at what `trace -E d_executable args` and `trace -E
c++_executable args`
print on startup and grep for dlopen calls and the like.
do you mean strace?
I have trace on OSX but I'm asking for linux.
Looking at the
Have a look at what `trace -E d_executable args` and `trace -E
c++_executable args`
print on startup and grep for dlopen calls and the like.
do you mean strace?
I have trace on OSX but I'm asking for linux.
On 12/09/2016 05:34 PM, Stefan Koch wrote:
On Friday, 9 December 2016 at 18:52:59 UTC, Ali Çehreli wrote:
I thought I needed something like staticIota in a unittest to effect
static foreach over a number range and I found one in druntime's
implementation:
On Friday, 9 December 2016 at 18:52:59 UTC, Ali Çehreli wrote:
I thought I needed something like staticIota in a unittest to
effect static foreach over a number range and I found one in
druntime's implementation:
https://github.com/dlang/druntime/blob/master/src/core/internal/traits.d#L106
On Saturday, 10 December 2016 at 01:19:45 UTC, unDEFER wrote:
remove("D:\\TEST");
Try rmdir instead.
On Friday, 9 December 2016 at 10:27:05 UTC, Eugene Wissner wrote:
Hello,
we've just open sourced a small module ("accessors") that helps
to generate getters and setters automatically:
https://github.com/funkwerk/accessors
http://code.dlang.org/packages/accessors
It takes advantage of the
On Friday, 9 December 2016 at 21:20:12 UTC, Martin Krejcirik
wrote:
On Friday, 9 December 2016 at 16:50:05 UTC, unDEFER wrote:
And in mini program it works and shows diagnostic message.
Where my diagnostic message in more complicate program???
Try redirecting stdout and stderr to a file(s).
On Friday, 9 December 2016 at 20:35:07 UTC, Ali Çehreli wrote:
Assuming boundschecking is turned off, I think you get unlucky
in the mini program and happen to hit a '\0' byte.
No, no.. the program built in debug mode with dub.
Hello!
$ cat try.d
import std.file;
void main ()
{
mkdir("D:\\TEST");
remove("D:\\TEST");
}
$ ./try.exe
std.file.FileException@std\file.d(731): D:\TEST: Access Denied.
What I don't know about removing directories in Windows?
Why I can't remove directory
On 10/12/2016 12:00 PM, jest wrote:
The wlink32 is a 32 bit linker for Windows.
It is an effort of me, (Manos) and LADSoft (David Lindauer) to produce a
modern linker.
It is based on the original ALINK of Anthony A.J. Williams.
But ALINK does not support MS-COFF import libraries and
its support
On 10.12.2016 00:25, qznc wrote:
On Friday, 9 December 2016 at 10:25:49 UTC, Kagamin wrote:
On Friday, 9 December 2016 at 10:01:13 UTC, qznc wrote:
http://beza1e1.tuxen.de/articles/functional.html
What about python and javascript?
Python and Javascript are mixed paradigm languages. You
On Friday, 9 December 2016 at 17:05:24 UTC, Kagamin wrote:
On Friday, 9 December 2016 at 16:47:18 UTC, Jesse Phillips
wrote:
An MSI can't execute an arbitrary executable, just an
arbitrary DLL which could run an arbitrary executable :)
On Friday, 9 December 2016 at 10:25:49 UTC, Kagamin wrote:
On Friday, 9 December 2016 at 10:01:13 UTC, qznc wrote:
http://beza1e1.tuxen.de/articles/functional.html
What about python and javascript?
Python and Javascript are mixed paradigm languages. You could
argue if purity and
Ok, thats your opinion :P
Dne 9.12.2016 v 23:04 Iain Buclaw via Digitalmars-d napsal(a):
On 9 December 2016 at 18:34, Daniel Kozak via Digitalmars-d
wrote:
Dne 9.12.2016 v 16:59 Eduard Staniloiu via Digitalmars-d napsal(a):
Hello, everyone.
...
Based on my
The wlink32 is a 32 bit linker for Windows.
It is an effort of me, (Manos) and LADSoft (David Lindauer) to
produce a modern linker.
It is based on the original ALINK of Anthony A.J. Williams.
But ALINK does not support MS-COFF import libraries and
its support for making DLLs was limited and had
On Friday, 9 December 2016 at 03:06:49 UTC, Stefan Koch wrote:
On Friday, 9 December 2016 at 02:10:58 UTC, Andrei Alexandrescu
wrote:
That's pretty awesome. The new CTFE engine release will soon
rival Tesla Model 3 in terms of interest raised :o).
In addition to artificial corpora like the
https://issues.dlang.org/show_bug.cgi?id=16960
Issue ID: 16960
Summary: implicit function return breaks chaining of exceptions
thrown in scope(exit)
Product: D
Version: D2
Hardware: x86_64
OS: Linux
On 9 December 2016 at 18:34, Daniel Kozak via Digitalmars-d
wrote:
>
>
> Dne 9.12.2016 v 16:59 Eduard Staniloiu via Digitalmars-d napsal(a):
>>
>> Hello, everyone.
>>
>> ...
>>
>> Based on my previous assumtion (both dmd and gdc use /usr/include/dmd/)
>> and the error
On 9 December 2016 at 18:53, Matthias Klumpp via Digitalmars-d
wrote:
> Hi!
>
> This issue should be fixed since LDC 1:1.1.0-2, which Xenial doesn't have.
> Ideally, fetch a newer version from Debian or a PPA to solve this issue.
>
> Cheers,
> Matthias
>
Thanks
On Friday, 9 December 2016 at 16:50:05 UTC, unDEFER wrote:
And in mini program it works and shows diagnostic message.
Where my diagnostic message in more complicate program???
Try redirecting stdout and stderr to a file(s). There are cases
when the console itself can crash.
On 12/09/2016 08:50 AM, unDEFER wrote:
> On Friday, 9 December 2016 at 14:29:38 UTC, unDEFER wrote:
>> I'm afraid that the problem that my program wants to say something,
>> but there is no "flush" so message leaves in the buffer.
>
> I have found, it was code like:
>
> string path = "C:";
>
https://eb.host.cs.st-andrews.ac.uk/drafts/elab-reflection.pdf
Shows some of the more advanced/esoteric stuff that can be done with
introspection. -- Andrei
On 12/9/16 5:27 AM, Eugene Wissner wrote:
Hello,
we've just open sourced a small module ("accessors") that helps to
generate getters and setters automatically:
https://github.com/funkwerk/accessors
http://code.dlang.org/packages/accessors
It takes advantage of the UDAs and mixins. A simple
I thought I needed something like staticIota in a unittest to effect
static foreach over a number range and I found one in druntime's
implementation:
https://github.com/dlang/druntime/blob/master/src/core/internal/traits.d#L106
(I wonder why that one is implemented in divide-and-conquer
Hi!
This issue should be fixed since LDC 1:1.1.0-2, which Xenial
doesn't have.
Ideally, fetch a newer version from Debian or a PPA to solve this
issue.
Cheers,
Matthias
Am Fri, 09 Dec 2016 15:59:07 +
schrieb Eduard Staniloiu :
> Hello, everyone.
>
> So I have found that installing ldc will break gdc.
>
> The setup:
>
> I have a VM running a 64bit Ubuntu 16.04, as you can see from the
> output of uname -a:
>
>Linux ubuntu-xenial
Dne 9.12.2016 v 16:59 Eduard Staniloiu via Digitalmars-d napsal(a):
Hello, everyone.
...
Based on my previous assumtion (both dmd and gdc use
/usr/include/dmd/) and the error above, I am inclined to believe that
after installing ldc, gdc is using /usr/include/d/ and it breaks.
Maybe we
On Friday, 9 December 2016 at 16:47:18 UTC, Jesse Phillips wrote:
An MSI can't execute an arbitrary executable, just an arbitrary
DLL which could run an arbitrary executable :)
https://msdn.microsoft.com/en-us/library/windows/desktop/aa368563%28v=vs.85%29.aspx
this?
On Friday, 9 December 2016 at 14:29:38 UTC, unDEFER wrote:
I'm afraid that the problem that my program wants to say
something, but there is no "flush" so message leaves in the
buffer.
I have found, it was code like:
string path = "C:";
string parent = path[0..path.lastIndexOf("\\")];
And in
On Friday, 9 December 2016 at 10:35:00 UTC, Kagamin wrote:
On Thursday, 8 December 2016 at 20:04:01 UTC, Jesse Phillips
wrote:
These sequences can call "Custom Actions" which are just table
entries that point to a DLL (there is more to Custom Actions).
Why not just unpack the stuff and run a
https://issues.dlang.org/show_bug.cgi?id=16699
--- Comment #31 from anonymous4 ---
The obvious solution is to create a different merge PR that will just merge and
nothing more.
--
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 accessor names. What
affixes do you mean?
Hello, everyone.
So I have found that installing ldc will break gdc.
The setup:
I have a VM running a 64bit Ubuntu 16.04, as you can see from the
output of uname -a:
Linux ubuntu-xenial 4.4.0-51-generic #72-Ubuntu SMP Thu Nov 24
18:29:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
I have
https://issues.dlang.org/show_bug.cgi?id=4125
Alexandru Razvan Caciulescu changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=15421
Andrei Alexandrescu changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=15401
Issue 15401 depends on issue 15421, which changed state.
Issue 15421 Summary: The behaviours of the topNs differ with the bottom
https://issues.dlang.org/show_bug.cgi?id=15421
What|Removed |Added
On Thursday, 8 December 2016 at 23:08:35 UTC, Jonathan M Davis
wrote:
I've seen that in C++ code all the time, especially if you're
dealing with
smart pointers, because otherwise you have to do stuff like
(*iter)->foo()
instead of just var->foo().
Smart pointers weren't introduced until
On 2016-12-09 00:00, Stefan Koch wrote:
On Thursday, 8 December 2016 at 19:49:47 UTC, Faux Amis wrote:
Any reason for the infinite depth update posting style?
I would have loved to see each update to be a child of the root post
with its own discussions tree.
Currently, the posts are quite
I'm afraid that the problem that my program wants to say
something, but there is no "flush" so message leaves in the
buffer.
mixin template GenerateFieldAccessorMethods()
{
static enum GenerateFieldAccessorMethods()
{
string result = "";
return result;
}
}
Strange syntax
On Friday, 9 December 2016 at 10:27:05 UTC, Eugene Wissner wrote:
Hello,
we've just open sourced a small module ("accessors") that helps
to generate getters and setters automatically:
https://github.com/funkwerk/accessors
http://code.dlang.org/packages/accessors
It takes advantage of the
https://issues.dlang.org/show_bug.cgi?id=6133
--- Comment #2 from Carlos Ballesteros Velasco ---
@Infiltrator Probably it changed to not be compatible. But you can find the
original collection in the git history here, if you want to try to merge or PR
it:
My issue isn't about @property, it just shows 3 cases where i
think that dmd is missing a check for alias this.
Even if D didnt had @property or parentesis less function call,
due to alias opCall this it should be possible to call opCall
without parentesis.
On Friday, 9 December 2016 at 10:01:13 UTC, qznc wrote:
http://beza1e1.tuxen.de/articles/functional.html
What about python and javascript?
Hello,
we've just open sourced a small module ("accessors") that helps
to generate getters and setters automatically:
https://github.com/funkwerk/accessors
http://code.dlang.org/packages/accessors
It takes advantage of the UDAs and mixins. A simple example would
be:
import accessors;
On Thursday, 8 December 2016 at 20:04:01 UTC, Jesse Phillips
wrote:
These sequences can call "Custom Actions" which are just table
entries that point to a DLL (there is more to Custom Actions).
Why not just unpack the stuff and run a configuration program?
The latter would be useful anyway.
On Friday, 9 December 2016 at 10:08:24 UTC, unDEFER wrote:
On Friday, 9 December 2016 at 09:42:52 UTC, unDEFER wrote:
Exceptions works good, and prints debug message always. It is
not exception..
I have tried to add try/catch around full loop of the program.
It doesn't work. And program has
On Friday, 9 December 2016 at 10:01:13 UTC, qznc wrote:
What is your definition of Functional Programming? Mine:
http://beza1e1.tuxen.de/articles/functional.html
I think, it's more about being declarative.
On Thursday, 8 December 2016 at 22:09:14 UTC, Jonathan M Davis
wrote:
On Thursday, December 08, 2016 16:54:57 Adam D. Ruppe via
Digitalmars-d- learn wrote:
[...]
Yeah, it's pretty common for folks to slap @property on
functions to make it clear that it's intended to be used as a
property
On Friday, 9 December 2016 at 09:42:52 UTC, unDEFER wrote:
Exceptions works good, and prints debug message always. It is
not exception..
I have tried to add try/catch around full loop of the program.
It doesn't work. And program has infinite loop.
But maybe it is unhandled signal?
I have
On Friday, 9 December 2016 at 09:58:27 UTC, Kagamin wrote:
Functional doesn't imply purity and immutability
I disagree.
What is your definition of Functional Programming? Mine:
http://beza1e1.tuxen.de/articles/functional.html
Functional doesn't imply purity and immutability, and mutable
functional has cognitive problems: mutation is important, but
functional code is too high level, so whatever happens is hidden
from the programmer; D suffers from this too as people are
confused whether ranges are taken by value or
On Friday, 9 December 2016 at 09:29:36 UTC, rikki cattermole
wrote:
On 09/12/2016 10:26 PM, unDEFER wrote:
An exception/error might be thrown, try catching Error's in the
threads function.
Also try adding an infinite loop to it.
Exceptions works good, and prints debug message always. It is
On 09/12/2016 10:26 PM, unDEFER wrote:
Hello!
I'm starting port my program to Windows _without_ Cygwin and found big
trouble.
My main thread exits unexpectedly without any diagnostic messages. The
second thread still lives when it happens.
The visual studio debugger say that thread exits with
Hello!
I'm starting port my program to Windows _without_ Cygwin and
found big trouble.
My main thread exits unexpectedly without any diagnostic
messages. The second thread still lives when it happens.
The visual studio debugger say that thread exits with code 2.
What it maybe?
67 matches
Mail list logo