On Friday, August 11, 2017 08:13:07 SC via Digitalmars-d wrote:
> On Wednesday, 9 August 2017 at 22:17:42 UTC, Jonathan M Davis
> > Regardless, we're here because we want a quality language, not
> > because we want a popular one. We just hope that those two
> > things aren't mutually exclusive.
>
On Saturday, 12 August 2017 at 03:58:30 UTC, Vladimir Panteleev
wrote:
On Saturday, 12 August 2017 at 03:52:25 UTC, Mr. Pib wrote:
You are making assumptions about me making assumptions...
please don't make any more assumptions or we will be in an
infinite regression ;/
Sorry, maybe I don't
On Saturday, 12 August 2017 at 03:52:25 UTC, Mr. Pib wrote:
You are making assumptions about me making assumptions...
please don't make any more assumptions or we will be in an
infinite regression ;/
Sorry, maybe I don't understand the question. Maybe you could
explain in broader terms the
On Saturday, 12 August 2017 at 03:02:31 UTC, Vladimir Panteleev
wrote:
On Saturday, 12 August 2017 at 02:45:30 UTC, rikki cattermole
wrote:
On 12/08/2017 3:34 AM, Mr. Pib wrote:
I have -J added to the command line like
-JC:\Temp
I then use import(r"C:\Temp\a.dat");
and I get an error about
Here is what I came up with
import gdkpixbuf.Pixbuf;
GdkPixbuf*[string] __ImageCache;
void SetImage(string imgName)(gtk.Image T)
{
import std.path, std.conv, gdkpixbuf.Pixbuf;
GError* err = null;
if (imgName !in __ImageCache)
{
GdkPixbufLoader*
On Saturday, 12 August 2017 at 02:45:30 UTC, rikki cattermole
wrote:
On 12/08/2017 3:34 AM, Mr. Pib wrote:
I have -J added to the command line like
-JC:\Temp
I then use import(r"C:\Temp\a.dat");
and I get an error about the file not existing in the
main.d: Error: file "C:\\Temp\\a.dat"
https://issues.dlang.org/show_bug.cgi?id=3420
Vladimir Panteleev changed:
What|Removed |Added
Status|REOPENED
On 12/08/2017 3:34 AM, Mr. Pib wrote:
I have -J added to the command line like
-JC:\Temp
I then use import(r"C:\Temp\a.dat");
and I get an error about the file not existing in the
main.d: Error: file "C:\\Temp\\a.dat" cannot be found or not in a path
specified with -J
It seems dmd does
On Saturday, 12 August 2017 at 01:16:35 UTC, HyperParrow wrote:
On Friday, 11 August 2017 at 22:21:53 UTC, Mr. Pib wrote:
[...]
Try a serialization library or inifiled. Some may even use a DB
with ORM for this.
https://code.dlang.org/packages/inifiled
I have -J added to the command line like
-JC:\Temp
I then use import(r"C:\Temp\a.dat");
and I get an error about the file not existing in the
main.d: Error: file "C:\\Temp\\a.dat" cannot be found or not in a
path specified with -J
It seems dmd does internally compare the paths to see if
On Friday, 11 August 2017 at 13:06:54 UTC, aberba wrote:
So I'm into this platform with a vibe.d api server + back-end
and I'm confused/curious to know the hosting package to use. I
will have a lot of images uploaded by users.
2. Get an EC2 instance from Amazon or Vultr and install
https://issues.dlang.org/show_bug.cgi?id=17744
Walter Bright changed:
What|Removed |Added
Keywords||safe
https://issues.dlang.org/show_bug.cgi?id=17743
Walter Bright changed:
What|Removed |Added
Keywords||safe
On Friday, 11 August 2017 at 22:21:53 UTC, Mr. Pib wrote:
Does D have a persistent storage somewhere? I'd like something
easy to use that allows me to load and save settings to disk in
between executions of the program. I want to specify the
variable to be saved or loaded and a default value.
On Friday, 11 August 2017 at 21:58:20 UTC, Johnson wrote:
Just a thought, maybe the GC isn't cleaning up quick enough?
You are allocating and md5 digest each iteration.
Possibly, an opitimization is use use a collection of md5
hashes and reuse them. e.g., pre-allocate 100(you probably only
On Fri, Aug 11, 2017 at 11:34:04PM +, Adam D. Ruppe via Digitalmars-d-learn
wrote:
> On Friday, 11 August 2017 at 22:43:02 UTC, Mr. Pib wrote:
> > int and I should be able to append an int without having to worry
> > about the value of the int.
>
> Appending an int to a string really ought
On Friday, 11 August 2017 at 23:34:04 UTC, Adam D. Ruppe wrote:
On Friday, 11 August 2017 at 22:43:02 UTC, Mr. Pib wrote:
int and I should be able to append an int without having to
worry about the value of the int.
Appending an int to a string really ought to just be a type
mismatch error.
On Friday, 11 August 2017 at 22:43:02 UTC, Mr. Pib wrote:
int and I should be able to append an int without having to
worry about the value of the int.
Appending an int to a string really ought to just be a type
mismatch error.
We might be able to convince the leadership to do that too,
On Friday, 11 August 2017 at 22:50:53 UTC, ketmar wrote:
Mr. Pib wrote:
Wow, that is pretty screwed up! I thought D was against
implicit conversions that might cause problems? I'm passing
an int and I should be able to append an int without having to
worry about the value of the int.
Mr. Pib wrote:
Wow, that is pretty screwed up! I thought D was against implicit
conversions that might cause problems? I'm passing an int and I should
be able to append an int without having to worry about the value of the
int. Instead D chose to do something very strange, awkward, and error
On Friday, 11 August 2017 at 04:17:32 UTC, ketmar wrote:
Mr. Pib wrote:
string Q(alias T, alias D)()
{
pragma(msg, T);
pragma(msg, D);
enum x = T~" = "~D~";";
pragma(msg, x);
}
mixin(Q!(`x`, 100)());
outputs, at compile time,
x
100
x = d;
there is no
On Friday, 11 August 2017 at 19:01:44 UTC, Yuxuan Shui wrote:
On Friday, 11 August 2017 at 18:44:56 UTC, bitwise wrote:
[...]
My guess is a pointer to the array still lives somewhere on the
stack. This gives the expected output:
void f()
{
S[] x = [S(1), S(1)];
writeln("GC allocated:
Does D have a persistent storage somewhere? I'd like something
easy to use that allows me to load and save settings to disk in
between executions of the program. I want to specify the variable
to be saved or loaded and a default value.
e.g.,
Persist_Load(Some_variable, 100);
will load
Bluejay is an application test runner, allowing easy writing of cross-
platform tests.
Bluejay uses Lua (via LuaD) with a small test library and is on the dub
registry at http://code.dlang.org/packages/bluejay
I also converted the first 37 test cases of DCD[1] to try it out - so
those tests
On Friday, 11 August 2017 at 21:33:51 UTC, Arun Chandrasekaran
wrote:
I've modified the sample from tour.dlang.org to calculate the
md5 digest of the files in a directory using std.parallelism.
When I run this on a dir with huge number of files, I get:
On Friday, 11 August 2017 at 21:33:51 UTC, Arun Chandrasekaran
wrote:
I've modified the sample from tour.dlang.org to calculate the
[...]
RHEL 7.2 64 bit
dmd v2.075.0
ldc 1.1.0
I've modified the sample from tour.dlang.org to calculate the md5
digest of the files in a directory using std.parallelism.
When I run this on a dir with huge number of files, I get:
core.exception.OutOfMemoryError@src/core/exception.d(696): Memory
allocation failed
Since dirEntries returns
https://issues.dlang.org/show_bug.cgi?id=17736
hst...@quickfur.ath.cx changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=17746
hst...@quickfur.ath.cx changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=17736
--- Comment #5 from hst...@quickfur.ath.cx ---
Wrote it up here:
https://issues.dlang.org/show_bug.cgi?id=17746
Doesn't necessarily mean I have the time to actually implement this, though.
:-)
--
https://issues.dlang.org/show_bug.cgi?id=17746
Issue ID: 17746
Summary: Improve BigInt memory usage
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
On Friday, 11 August 2017 at 13:06:54 UTC, aberba wrote:
So I'm into this platform with a vibe.d api server + back-end
and I'm confused/curious to know the hosting package to use. I
will have a lot of images uploaded by users.
1. For sometime, I've been looking at heroku which is fine with
On Friday, 11 August 2017 at 12:57:10 UTC, Mike Parker wrote:
Joakim has put together a wonderful interview with Gerald Nunn,
the maintainer of Tilix. Gerald talks about Tilix and his
experience using D. It's a fun read that expands on the talk he
gave at DConf this year.
[...]
By
On Friday, 11 August 2017 at 20:13:04 UTC, Dominikus Dittes
Scherkl wrote:
On Friday, 11 August 2017 at 09:27:47 UTC, Stefan Koch wrote:
On Tuesday, 1 August 2017 at 21:27:32 UTC, Stefan Koch wrote:
[ ... ]
Hey guys,
I just finished &&.
Hooray!
So what's still missing? Or is this now
On Friday, 11 August 2017 at 09:27:47 UTC, Stefan Koch wrote:
On Tuesday, 1 August 2017 at 21:27:32 UTC, Stefan Koch wrote:
[ ... ]
Hey guys,
I just finished &&.
Hooray!
So what's still missing? Or is this now complete enough to
release?
On Friday, 11 August 2017 at 18:44:56 UTC, bitwise wrote:
struct S {
static int count = 0;
this(int x) { ++count; }
this(this) { ++count; }
~this() { --count; }
}
int main(string[] argv)
{
S[] x = [S(1), S(1)];
writeln("GC allocated: ", (GC.addrOf(x.ptr) !is null));
https://issues.dlang.org/show_bug.cgi?id=17745
Issue ID: 17745
Summary: Upgrade DLang Bugzilla to 4.4.12
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
struct S {
static int count = 0;
this(int x) { ++count; }
this(this) { ++count; }
~this() { --count; }
}
int main(string[] argv)
{
S[] x = [S(1), S(1)];
writeln("GC allocated: ", (GC.addrOf(x.ptr) !is null));
x = null;
GC.collect();
writeln("live objects: ",
How to make http requests to unix socket? For example, in Docker
engine api,
curl --unix-socket /var/run/docker.sock
http:/v1.24/containers/json
On Friday, 11 August 2017 at 17:20:18 UTC, HyperParrow wrote:
[...]
I made a mistake but it's not about i, which is a global.
I meant "other.__dtor." just before the last assert.
This doesn't change the results.
hmm...indeed ;)
On Friday, 11 August 2017 at 17:24:17 UTC, HyperParrow wrote:
On Friday, 11 August 2017 at 10:45:03 UTC, Mike Parker wrote:
The first stage of the formal review for DIP 1011 [1],
"extern(delegate)", is now underway.
I see no problem with this DIP.
And even if the usecase is rare, I think it is worth the new
syntax (and thereby increased complexity of
https://issues.dlang.org/show_bug.cgi?id=17738
--- Comment #1 from Dominikus Dittes Scherkl ---
Sorry, that was gdc, and it was the compilation that only stopped after stack
overflow was reached (which took about 10 minutes).
dmd (2.075.0) directly fails with a
On Friday, 11 August 2017 at 17:10:14 UTC, bitwise wrote:
On Friday, 11 August 2017 at 17:02:20 UTC, HyperParrow wrote:
On Friday, 11 August 2017 at 16:53:02 UTC, bitwise wrote:
What do they do?
What's the difference?
Thanks
__xdtor() also calls the __dtor() that are mixed with template
On Friday, 11 August 2017 at 17:12:22 UTC, bitwise wrote:
On Friday, 11 August 2017 at 17:06:40 UTC, HyperParrow wrote:
[...]
int i;
struct Foo
{
template ToMix(){ ~this(){i;}}
~this(){++i;}
mixin ToMix;
}
void main()
{
Foo* foo = new Foo;
foo.__xdtor;
assert(i==3);
On Friday, 11 August 2017 at 17:06:40 UTC, HyperParrow wrote:
[...]
int i;
struct Foo
{
template ToMix(){ ~this(){i;}}
~this(){++i;}
mixin ToMix;
}
void main()
{
Foo* foo = new Foo;
foo.__xdtor;
assert(i==3);
Foo* other = new Foo;
foo.__dtor;
On Friday, 11 August 2017 at 17:02:20 UTC, HyperParrow wrote:
On Friday, 11 August 2017 at 16:53:02 UTC, bitwise wrote:
What do they do?
What's the difference?
Thanks
__xdtor() also calls the __dtor() that are mixed with template
mixins while __dtor() only call the __dtor() that matches to
On Friday, 11 August 2017 at 17:02:20 UTC, HyperParrow wrote:
On Friday, 11 August 2017 at 16:53:02 UTC, bitwise wrote:
What do they do?
What's the difference?
Thanks
__xdtor() also calls the __dtor() that are mixed with template
mixins while __dtor() only call the __dtor() that matches to
On Friday, 11 August 2017 at 16:53:02 UTC, bitwise wrote:
What do they do?
What's the difference?
Thanks
__xdtor() also calls the __dtor() that are mixed with template
mixins while __dtor() only call the __dtor() that matches to the
normal ~this(){}
What do they do?
What's the difference?
Thanks
On Friday, 11 August 2017 at 08:17:32 UTC, Vadim Lopatin wrote:
I'm using DCD as a library in DlangIDE.
All DCD calls are made from separate thread.
DCD works ok until some thread is created (e.g. to invoke DUB
for building).
/// call this function after DCD ModuleCache is instantiated to
On Friday, 11 August 2017 at 13:06:54 UTC, aberba wrote:
So I'm into this platform with a vibe.d api server + back-end
and I'm confused/curious to know the hosting package to use. I
will have a lot of images uploaded by users.
1. For sometime, I've been looking at heroku which is fine with
https://issues.dlang.org/show_bug.cgi?id=17744
Issue ID: 17744
Summary: Type system hole: returning inout delegates
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
https://issues.dlang.org/show_bug.cgi?id=17743
Issue ID: 17743
Summary: Type system hole: escaping inout delegates
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
So yeah reminder on the terminal emulator thing, if anyone who
knows gtk wants to try to wrap my emulator in it.. it should be
pretty easy. I have done a terminal.d frontend and a
simpledisplay.d frontend and it isn't that hard.
I just don't know gtk.
On Friday, 11 August 2017 at 03:16:17 UTC, Dmitry wrote:
On Thursday, 10 August 2017 at 19:44:35 UTC, 12345swordy wrote:
On Thursday, 10 August 2017 at 05:55:59 UTC, Dmitry wrote:
On Wednesday, 9 August 2017 at 20:29:07 UTC, 12345swordy
wrote:
You edit the json file of course. That how DUB
On Thursday, 10 August 2017 at 19:10:05 UTC, Jiyan wrote:
Hey,
wanted to the following simple thing with vectorflow:
...
You'll want to end your stack with your wanted output size (1 -
being the sum).
Training it with the "square" function seems to give the best
result for simple additions.
On Friday, 11 August 2017 at 12:11:13 UTC, Vadim Lopatin wrote:
E.g. DlangIDE is written in D, uses cross-platform GUI library
DlangUI which is written in D, and is cross-platform. May work
even as console app.
First, you are to be saluted (luimarco style*) for your effor on
DlangIDE and
On Friday, 11 August 2017 at 13:11:36 UTC, aberba wrote:
After comparing Google's object storage platform with Amazon, I
found Google's to be much simpler and straight forward plus it
uses a json based api which is much simple to parse and
understand.
Maybe, but some people have to or
On Thursday, 10 August 2017 at 19:10:05 UTC, Jiyan wrote:
Hey,
wanted to the following simple thing with vectorflow:
[...]
I'm worried there might not be many on the forums who can help
too much with vectorflow given how new it is. Maybe some in the
community are more familiar with neural
On Friday, 11 August 2017 at 04:50:48 UTC, rikki cattermole wrote:
On 11/08/2017 12:18 AM, David Zhang wrote:
I've been working on getting OpenGL to load on windows without
a library, and encountered something curious;
Context creation fails when I try to use the function pointer
retrieved
On Thursday, 10 August 2017 at 15:49:35 UTC, Andres Clari wrote:
On Monday, 7 August 2017 at 22:46:57 UTC, aberba wrote:
vibe-s3 (https://code.dlang.org/packages/vibe-s3) is an Amazon
s3 object storage API for D.
Has anyone here used or tested it? What was your experiences?
It has the
So I'm into this platform with a vibe.d api server + back-end and
I'm confused/curious to know the hosting package to use. I will
have a lot of images uploaded by users.
1. For sometime, I've been looking at heroku which is fine with
its load balancer, easily scaling etc. But the hosting cost
Joakim has put together a wonderful interview with Gerald Nunn,
the maintainer of Tilix. Gerald talks about Tilix and his
experience using D. It's a fun read that expands on the talk he
gave at DConf this year.
With this post, I've also taken the opportunity to create a new
site for extended
https://issues.dlang.org/show_bug.cgi?id=14916
Maksim Zholudev changed:
What|Removed |Added
CC||maxim...@gmail.com
--
On Friday, 11 August 2017 at 10:46:43 UTC, Mike Parker wrote:
The formal review feedback period for DIP 1011,
'extern(delegate)', is now underway.
http://forum.dlang.org/post/eriumcjifxcbdvtya...@forum.dlang.org
After reading the whole proposal with fresh mind, I wonder how
often will
On Friday, 11 August 2017 at 11:34:44 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 9 August 2017 at 07:59:46 UTC, Ryion wrote:
this here because its obvious pattern. I agree that this seems
to be a very small community and it is hard to get things done
in a small community. But it is counter
On 11/08/2017 12:46 PM, HyperParrow wrote:
On Friday, 11 August 2017 at 08:13:07 UTC, SC wrote:
[...]
having great tooling might increase popularity, but for me it'll
improve my productivity, and that's all i care about, popularity is
next, quality is already nice for me
The language itself
https://issues.dlang.org/show_bug.cgi?id=8006
--- Comment #6 from Mike ---
An attempt at a partial implementation:
https://github.com/dlang/dmd/pull/7079/files
--
On Friday, 11 August 2017 at 08:13:07 UTC, SC wrote:
[...]
having great tooling might increase popularity, but for me
it'll improve my productivity, and that's all i care about,
popularity is next, quality is already nice for me
The language itself should improve your productivity: meta
On Wednesday, 9 August 2017 at 07:59:46 UTC, Ryion wrote:
this here because its obvious pattern. I agree that this seems
to be a very small community and it is hard to get things done
in a small community. But it is counter productive to
constantly tell people that there is no solution, they
The formal review feedback period for DIP 1011,
'extern(delegate)', is now underway.
http://forum.dlang.org/post/eriumcjifxcbdvtya...@forum.dlang.org
The first stage of the formal review for DIP 1011 [1],
"extern(delegate)", is now underway. From now until 11:59 PM ET
on August 25 (3:59 AM GMT on August 26), the community has the
opportunity to provide last-minute feedback. If you missed the
preliminary review [2], this is your chance to
On Wednesday, 9 August 2017 at 20:42:48 UTC, Wild wrote:
Hi everyone,
The D packages for ArchLinux has been orphaned since Dicebot
stepped down as the maintainer and no one else stepped up. So I
decided to step up and apply to become a Trusted User, and I
got accepted yesterday[1]. So from
On Tuesday, 1 August 2017 at 21:27:32 UTC, Stefan Koch wrote:
[ ... ]
Hey guys,
I just finished &&.
The following test works now:
int[2] aaa2(bool b1, bool b2, bool b3, bool b4)
{
int x = 0;
if (b1 && ++x && b2 && x++ && b3 && (b4 || x++))
{
return [x, 1];
}
else
{
On Thursday, 10 August 2017 at 20:18:50 UTC, Walter Bright wrote:
On 8/8/2017 1:32 PM, Martin Nowak wrote:
On Tuesday, 8 August 2017 at 15:45:45 UTC, Vladimir Panteleev
wrote:
On Tuesday, 8 August 2017 at 14:57:58 UTC, Daniel Kozak wrote:
https://issues.dlang.org/show_bug.cgi?id=17731
I'm using DCD as a library in DlangIDE.
All DCD calls are made from separate thread.
DCD works ok until some thread is created (e.g. to invoke DUB for
building).
After this operation DCD stops working correctly and can locate
symbols only from current source file.
Root cause:
If some another
On Wednesday, 9 August 2017 at 22:17:42 UTC, Jonathan M Davis
wrote:
On Wednesday, August 09, 2017 17:13:37 Timon Gehr via
Digitalmars-d wrote:
It is also a common pattern for the complainers to point out
how not fixing their pet peeve will result in negative PR or
reduced popularity. As if
On Friday, 11 August 2017 at 02:25:51 UTC, Mike Parker wrote:
On Thursday, 10 August 2017 at 23:38:42 UTC, Jiyan wrote:
[...]
Sounds like you used the script from the download page that
installs the compiler per user. It's designed to allow you to
have multiple versions installed in your
On Thursday, 10 August 2017 at 14:59:52 UTC, Adam D. Ruppe wrote:
On Thursday, 10 August 2017 at 14:55:06 UTC, Mike Wey wrote:
[...]
Oh, I see. My generator lists them on the index, but doesn't
recreate it each time, it just links. For example:
79 matches
Mail list logo