On Tue, May 01, 2018 at 05:13:13PM +, IntegratedDimensions via
Digitalmars-d wrote:
[...]
> The point of O is for the most dominant rate of growth(asymptotic
> behavior). In mathematics, one only cares about n as it approaches
> infinity and so any constant term will eventually be dwarfed.
I'm trying to do an optimization here: a hash function which
expect a ubye[] array as argument, would just work if I cast
string to ubyte[] but I need to convert it to upper case, so I'd
like to do that lazily, so that the byte is converted to its
upper case version soon as it's requested. I'm
On Tuesday, 1 May 2018 at 18:46:20 UTC, H. S. Teoh wrote:
Well, yes. Of course the whole idea behind big O is asymptotic
behaviour, i.e., behaviour as n becomes arbitrarily large.
Unfortunately, as you point out below, this is not an accurate
depiction of the real world:
[snip]
The
They're calling it "dconf" as short for the "Digital Health and Well-being
Conference". Really?!
Why wouldn't you use something less generic like "dhealth2018"?
They're tweeting from the handle @dconf2018.
I guess you should go ahead and sign up for the @dconf2019 and on accounts
now.
Maybe that
On Tuesday, 1 May 2018 at 12:03:15 UTC, ag0aep6g wrote:
By the way, you shouldn't mark toString as @trusted when `sink`
is @system.
Thanks
Is there a way to convert a `double` to a `string` in a `pure`
function?
I tried
@safe pure unittest
{
import std.conv : to;
const y = 3.14.to!string;
}
but it fails to compile as
`pure` function `foo.__unittest_L1_C12` cannot call impure
function `std.conv.to!string.to!double.to`
On Tuesday, 1 May 2018 at 22:08:50 UTC, Dr.No wrote:
On Tuesday, 1 May 2018 at 21:57:22 UTC, IntegratedDimensions
wrote:
Trying to curl basic stuff but std.net.curl isn't cooperating:
curl "https://www.googleapis.com/youtube/v3/channels; -G -d
part=contentDetails -d forUsername=test -d
On Tuesday, 1 May 2018 at 23:02:39 UTC, Dr.No wrote:
On Tuesday, 1 May 2018 at 22:51:01 UTC, IntegratedDimensions
wrote:
[...]
those dlls:
libeay32.dll libssl32.dll ssleay32.dll
I'm sure they would be installed with whatever
[...]
I don't think so. IIRC, when I used D+curl I needed to
Glad to announce D 2.080.0.
This release comes with CTFE support for log, exp and a couple of more
math functions. There is also a new isReturnOnStack trait, an apply
function for Nullable, and static method support for Objective-C classes.
http://dlang.org/download.html
https://issues.dlang.org/show_bug.cgi?id=18815
--- Comment #1 from Manu ---
I just confirmed, this is a regression from 2.78 to 2.79.
It runs when building with 2.78, newer releases segfault.
main.cpp:
-
#include
extern "C" void rt_init();
extern "C" void dfunc();
https://issues.dlang.org/show_bug.cgi?id=18815
Manu changed:
What|Removed |Added
Keywords||C++, industry
Trying to curl basic stuff but std.net.curl isn't cooperating:
curl "https://www.googleapis.com/youtube/v3/channels; -G -d
part=contentDetails -d forUsername=test -d key=somekey
import std.stdio;
import std.net.curl;
int main(string[] argv)
{
auto http = HTTP();
https://issues.dlang.org/show_bug.cgi?id=18816
dd86k changed:
What|Removed |Added
CC||devddst...@gmail.com
--
On Tuesday, 1 May 2018 at 23:35:42 UTC, Arun Chandrasekaran wrote:
On Tuesday, 1 May 2018 at 21:57:22 UTC, IntegratedDimensions
wrote:
Trying to curl basic stuff but std.net.curl isn't cooperating:
This is one of the reasons I hate D ;/ I've spent more time
trying to get std.net.curl to do
I'm a die-hard static typing fan, hate dynamic languages, heck I
dont even like structural typing (ex, as used by D ranges). And
that's exactly why I *love* auto. It lets you have static typing
without turning programming into a 2000's-era C++/Java-style
royal anti-DRY PITA.
I also think
https://issues.dlang.org/show_bug.cgi?id=18817
--- Comment #1 from Manu ---
It might also need a command line arg to select which default library to use
(parallel to the current crt options)?
--
On Tuesday, 1 May 2018 at 03:57:25 UTC, Walter Bright wrote:
Unfortunately, some other conference is using #dconf2018, so
don't use that.
By the way, it will be live streamed?
https://issues.dlang.org/show_bug.cgi?id=18815
Issue ID: 18815
Summary: thread_attachThis crash
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
On Tuesday, 1 May 2018 at 17:20:54 UTC, Ali wrote:
On Tuesday, 1 May 2018 at 12:26:25 UTC, Joakim wrote:
I realize it's right before the conference, but I'd like to
put out a request for Walter and Andrei to spend five minutes
during your talks laying out some overarching strategy for how
you
Looking for make application run fast as possible, aside
optimization in the source code, is using 64 bit over 32 really
worth?
On Tuesday, 1 May 2018 at 22:48:08 UTC, Dr.No wrote:
Looking for make application run fast as possible, aside
optimization in the source code, is using 64 bit over 32 really
worth?
With the GC yes, since false pointers become less of an issue.
Also you get to take full advantage of the
https://issues.dlang.org/show_bug.cgi?id=18816
Issue ID: 18816
Summary: [betterC] Standard Streams Unlinkable
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
On Tuesday, 1 May 2018 at 22:20:53 UTC, John Gabriele wrote:
On Tuesday, 1 May 2018 at 17:20:54 UTC, Ali wrote:
It is very clear, and feel free to read between the lines, on
what might be the long term strategy
I think point 1 in the vision is very telling
1. Lock down the language
On Tuesday, 1 May 2018 at 21:57:22 UTC, IntegratedDimensions
wrote:
Trying to curl basic stuff but std.net.curl isn't cooperating:
This is one of the reasons I hate D ;/ I've spent more time
trying to get std.net.curl to do something that just works from
the command line.
std.net.curl is not
https://issues.dlang.org/show_bug.cgi?id=18817
Issue ID: 18817
Summary: Include debug (symbols) builds of photos/druntime?
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Severity: enhancement
On Tuesday, 1 May 2018 at 21:57:22 UTC, IntegratedDimensions
wrote:
Trying to curl basic stuff but std.net.curl isn't cooperating:
curl "https://www.googleapis.com/youtube/v3/channels; -G -d
part=contentDetails -d forUsername=test -d key=somekey
[...]
Just a wild guess, do you have the SSL
On Tuesday, 1 May 2018 at 00:34:55 UTC, Walter Bright wrote:
Please file all betterC issues with bugzilla and tag them with
the 'betterC' keyword. We want to get them all fixed, and this
makes it easy to find them!
Hello Walter,
I hope my first report[1] is properly done before I make other
On Tuesday, 1 May 2018 at 22:51:01 UTC, IntegratedDimensions
wrote:
On Tuesday, 1 May 2018 at 22:08:50 UTC, Dr.No wrote:
On Tuesday, 1 May 2018 at 21:57:22 UTC, IntegratedDimensions
wrote:
Trying to curl basic stuff but std.net.curl isn't cooperating:
curl
To call D functions from python, especially to support mir
ndslice and numpy ndarray, I'm making a new library
"mir-pybuffer". The pybuffer is python's official C struct to
support writing C extensions of numpy-like ndarray. The
mir-pybuffer generates functions automatically to convert
I'm a die-hard static typing fan, hate dynamic languages, heck I
dont even like structural typing (ex, as used by D ranges). And
that's exactly why I *love* auto. It lets you have static typing
without turning programming into a 2000's-era C++/Java-style
royal anti-DRY PITA.
I also think
On 2018-05-01 17:14:53 +, Robert M. Münch said:
Yes, great! Thanks. I could extend the code now. But I get a next problem:
extern (C++, b2d) {
class AnyBase {
bool isShared();
}
pragma(mangle, "Object");
class b2dObject : AnyBase {
}
class Image : b2dObject {
// class
On Tuesday, 1 May 2018 at 12:26:25 UTC, Joakim wrote:
I realize it's right before the conference, but I'd like to put
out a request for Walter and Andrei to spend five minutes
during your talks laying out some overarching strategy for how
you see D evolving. It could be during the keynotes or
On Tuesday, May 01, 2018 22:48:08 Dr.No via Digitalmars-d-learn wrote:
> Looking for make application run fast as possible, aside
> optimization in the source code, is using 64 bit over 32 really
> worth?
That would heavily depend on the program. The big win for D code and 64-bit
that doesn't
https://issues.dlang.org/show_bug.cgi?id=18818
Issue ID: 18818
Summary: VariantN has unittests that are compiled into user
modules
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
We are very happy to announce another special event at this
year's DConf.
For the first time, DConf will host a C++ Meetup.
On Thursday evening (7pm) (i.e. after all official talks and
enough time to have dinner), the C++ folks will invade the DConf
territory.
There will be a main talk by
On 05/01/2018 10:51 PM, TheDalaiLama wrote:
There's no substituion for taste...some have it.. some don't.
'Experience' is irrelevant.
Honestly, there's a lot of truth to this. People can certainly learn, of
course (well, at least some people can), but experience definitely does
not imply
On Tuesday, May 01, 2018 20:13:41 Dr.No via Digitalmars-d-learn wrote:
> I'm trying to do an optimization here: a hash function which
> expect a ubye[] array as argument, would just work if I cast
> string to ubyte[] but I need to convert it to upper case, so I'd
> like to do that lazily, so that
On Monday, 30 April 2018 at 21:11:07 UTC, Gerald wrote:
So I'm curious, what's the consensus on auto?
For local variables, it's not an unalloyed good, but it is good.
When I use Java, everything is explicit, and sometimes that's
nice. In D, I think I overuse `auto` for local variables.
On Wednesday, 2 May 2018 at 03:44:37 UTC, Nick Sabalausky
(Abscissa) wrote:
On 05/01/2018 10:27 PM, Joakim wrote:
Those are specific technical priorities that hint at a
strategy, as you say, but it is better to lay out that
strategy itself. Not knocking that vision document, as I
called for
https://issues.dlang.org/show_bug.cgi?id=18800
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/b2016be15501039956e370ddc94e623a1caee0c5
fix Issue 18800 - Array.length setter segfaults for
https://issues.dlang.org/show_bug.cgi?id=18800
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
On 05/01/2018 10:13 PM, Dr.No wrote:
I'm trying to do an optimization here: a hash function which expect a
ubye[] array as argument, would just work if I cast string to ubyte[]
but I need to convert it to upper case, so I'd like to do that lazily,
so that the byte is converted to its upper
On Wednesday, 2 May 2018 at 00:00:46 UTC, Martin Nowak wrote:
Glad to announce D 2.080.0.
This release comes with CTFE support for log, exp and a couple
of more math functions. There is also a new isReturnOnStack
trait, an apply function for Nullable, and static method
support for
On 04/30/2018 05:35 PM, H. S. Teoh wrote:
Also, design by introspection. Dependence on explicit types is so last
century. Design by introspection FTW! Decoupling your code from
explicit types makes it more encapsulated, and gives you incentive to
write more defensively, resulting in better,
On Thursday, 26 April 2018 at 23:26:30 UTC, Walter Bright wrote:
I posit that redundancy is something programmers learn to
appreciate as they gain experience, and that eliminating
redundancy is something new programmers think is a new idea :-)
Not just 'new programmers', but even old
On Tuesday, 1 May 2018 at 16:02:03 UTC, rikki cattermole wrote:
On 02/05/2018 3:51 AM, Vino wrote:
On Tuesday, 1 May 2018 at 15:42:38 UTC, Jonathan M Davis wrote:
On Tuesday, May 01, 2018 15:18:12 Vino via
Digitalmars-d-learn wrote:
[...]
That sounds like your /tmp is mounted with noexec.
On Wednesday, 2 May 2018 at 00:04:49 UTC, IntegratedDimensions
wrote:
On Tuesday, 1 May 2018 at 23:35:42 UTC, Arun Chandrasekaran
wrote:
On Tuesday, 1 May 2018 at 21:57:22 UTC, IntegratedDimensions
wrote:
[...]
std.net.curl is not quite up to date when compared to the curl
command. It is
On 05/01/2018 10:27 PM, Joakim wrote:
Those are specific technical priorities that hint at a strategy, as you
say, but it is better to lay out that strategy itself. Not knocking that
vision document, as I called for a concrete document like that for
years, but a conference keynote is a good
On Tuesday, 1 May 2018 at 17:20:54 UTC, Ali wrote:
On Tuesday, 1 May 2018 at 12:26:25 UTC, Joakim wrote:
I realize it's right before the conference, but I'd like to
put out a request for Walter and Andrei to spend five minutes
during your talks laying out some overarching strategy for how
you
On Tuesday, 1 May 2018 at 12:26:25 UTC, Joakim wrote:
I realize it's right before the conference, but I'd like to put
out a request for Walter and Andrei to spend five minutes
during your talks laying out some overarching strategy for how
you see D evolving. It could be during the keynotes or
On Monday, 30 April 2018 at 21:11:07 UTC, Gerald wrote:
I'll freely admit I haven't put a ton of thought into this post
(never a good start), however I'm genuinely curious what
people's feeling are with regards to the auto keyword.
Speaking for myself, I dislike the auto keyword. Some of this
I had planned to work on this some more, but I'm editor of a
journal and have recently agreed to become director of graduate
studies, so there's no time to work on anything I don't use in my
own research. Therefore I'm putting this out there as is.
Basically, it works for me, but you might
On 02/05/2018 2:42 AM, bachmeier wrote:
I had planned to work on this some more, but I'm editor of a journal and
have recently agreed to become director of graduate studies, so there's
no time to work on anything I don't use in my own research. Therefore
I'm putting this out there as is.
Hi All,
Request your help, trying to execute the below program in SUSE
Linux but there is no output
Code
#!/usr/bin/env rdmd
import std.stdio;
void main() {
writeln("Test");
}
DMD Version : DMD64 D Compiler v2.079.1
Package installed : dmd-2.079.1-0.openSUSE.x86_64.rpm
Execution 1 : rdmd
On 02/05/2018 2:56 AM, Vino wrote:
Hi All,
Request your help, trying to execute the below program in SUSE Linux
but there is no output
Code
#!/usr/bin/env rdmd
import std.stdio;
void main() {
writeln("Test");
}
DMD Version : DMD64 D Compiler v2.079.1
Package installed :
On 01/05/2018 9:00 PM, biocyberman wrote:
On Monday, 30 April 2018 at 20:34:41 UTC, Steven Schveighoffer wrote:
On 4/30/18 2:47 PM, biocyberman wrote:
Hellow D community.
I am attending Dconf 2018 and giving a talk there on May 4. Link:
https://dconf.org/2018/talks/le.html. It will be very
On Monday, 30 April 2018 at 20:34:41 UTC, Steven Schveighoffer
wrote:
On 4/30/18 2:47 PM, biocyberman wrote:
Hellow D community.
I am attending Dconf 2018 and giving a talk there on May 4.
Link: https://dconf.org/2018/talks/le.html. It will be very
interesting to talk about the outcome of
On Sunday, 29 April 2018 at 15:34:49 UTC, Bastiaan Veelo wrote:
On Monday, 19 March 2018 at 13:34:36 UTC, Mike Parker wrote:
...
Visit dconf.org to see the programme[1] and register[2], then
head over to the D Blog[3] for the latest post on DConf.
See you in Munich May 2-5!
[1]
On Monday, 30 April 2018 at 19:30:25 UTC, Luís Marques wrote:
Hi. Can anyone staying at the conference hotel lend me an
iPhone charging cable? Even just for a few minutes would help.
I forgot mine :(
It's a normal USB-A-mini right?
On Monday, 30 April 2018 at 21:56:23 UTC, H. S. Teoh wrote:
On Mon, Apr 30, 2018 at 09:31:48PM +, Giles Bathgate via
Digitalmars-d wrote: [...]
[...]
T
On Monday, 30 April 2018 at 21:56:23 UTC, H. S. Teoh wrote:
[...]
Appart from the good points Teoh has made, imagine you would have
On Monday, 30 April 2018 at 19:57:10 UTC, Seb wrote:
As I live in Munich and there have been a few threads about
things to do in Munich, I thought I quickly share a few
selected activities + current events.
- over 80 museums (best ones: Museum Brandhost, Pinakothek der
Moderne, Haus der
On Sunday, 29 April 2018 at 02:18:37 UTC, Nicholas Wilson wrote:
On Saturday, 28 April 2018 at 14:30:14 UTC, Basile B. wrote:
New release of the strange D IDE not written in D and without
Every time you post a release I think " I should check this
out!" then I (re)discover that there are no
In which cases (if any) is it possible to make a delegate-style
implementation of toString such as
void toString(scope void delegate(const(char)[]) sink) const
@trusted pure
{
// sink("...");
// sink.formattedWrite!"..."(...);
}
pure?
On 05/01/2018 01:44 PM, Per Nordlöw wrote:
In which cases (if any) is it possible to make a delegate-style
implementation of toString such as
void toString(scope void delegate(const(char)[]) sink) const
@trusted pure
{
// sink("...");
//
I realize it's right before the conference, but I'd like to put
out a request for Walter and Andrei to spend five minutes during
your talks laying out some overarching strategy for how you see D
evolving. It could be during the keynotes or leading off the Q
panel, but I think it's worth laying
On Tuesday, 1 May 2018 at 09:32:13 UTC, Stefan Koch wrote:
On Monday, 30 April 2018 at 19:30:25 UTC, Luís Marques wrote:
Hi. Can anyone staying at the conference hotel lend me an
iPhone charging cable? Even just for a few minutes would help.
I forgot mine :(
It's a normal USB-A-mini right?
On Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn wrote:
> On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:
> > On 02/05/2018 2:56 AM, Vino wrote:
> >> Hi All,
> >>
> >> Request your help, trying to execute the below program in
> >>
> >> SUSE Linux but there is no
Hi All,
Request your help, what is the equivalent function of
timeCreated(Windows) for Linux. Or how do i get the file creation
date and time in Linux using D.
From,
Vino.B
On Tuesday, 1 May 2018 at 15:24:09 UTC, Robert M. Münch wrote:
Hi, I'm mostly doing simple C-API wrappers around C++ code to
access thigns from D. However, I wanted to try how far I can
come using C++ directly.
I have the following C++ code in namespace N:
class Image : public Object {
On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:
On 02/05/2018 2:56 AM, Vino wrote:
Hi All,
Request your help, trying to execute the below program in
SUSE Linux but there is no output
Code
#!/usr/bin/env rdmd
import std.stdio;
void main() {
writeln("Test");
}
DMD Version
On Tuesday, 1 May 2018 at 12:46:04 UTC, bachmeier wrote:
On Tuesday, 1 May 2018 at 12:26:25 UTC, Joakim wrote:
I realize it's right before the conference, but I'd like to
put out a request for Walter and Andrei to spend five minutes
during your talks laying out some overarching strategy for
Hi, I'm mostly doing simple C-API wrappers around C++ code to access
thigns from D. However, I wanted to try how far I can come using C++
directly.
I have the following C++ code in namespace N:
class Image : public Object {
Error create(int w, int h, uint32_t p) noexcept;
}
And I have
On Tuesday, 1 May 2018 at 14:45:17 UTC, rikki cattermole wrote:
On 02/05/2018 2:42 AM, bachmeier wrote:
I had planned to work on this some more, but I'm editor of a
journal and have recently agreed to become director of
graduate studies, so there's no time to work on anything I
don't use in
On Tuesday, May 01, 2018 15:41:07 Vino via Digitalmars-d-learn wrote:
> Hi All,
>
> Request your help, what is the equivalent function of
> timeCreated(Windows) for Linux. Or how do i get the file creation
> date and time in Linux using D.
AFAIK, no filesystems on Linux keep track of that
On Tuesday, 1 May 2018 at 15:42:38 UTC, Jonathan M Davis wrote:
On Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn
wrote:
On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:
> On 02/05/2018 2:56 AM, Vino wrote:
>> [...]
>
> Does this work?
>
> $ dmd -run foo.d
Hi Rikki,
On Tuesday, May 01, 2018 15:51:14 Vino via Digitalmars-d-learn wrote:
> On Tuesday, 1 May 2018 at 15:42:38 UTC, Jonathan M Davis wrote:
> > On Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn
> >
> > wrote:
> >> On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:
> >> > On
On 02/05/2018 3:51 AM, Vino wrote:
On Tuesday, 1 May 2018 at 15:42:38 UTC, Jonathan M Davis wrote:
On Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn wrote:
On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:
> On 02/05/2018 2:56 AM, Vino wrote:
>> [...]
>
> Does this
On 2018-05-01 16:07:30 +, Timoses said:
On Tuesday, 1 May 2018 at 15:24:09 UTC, Robert M. Münch wrote:
Hi, I'm mostly doing simple C-API wrappers around C++ code to access
thigns from D. However, I wanted to try how far I can come using C++
directly.
I have the following C++ code in
On Friday, 27 April 2018 at 00:03:34 UTC, H. S. Teoh wrote:
On Thu, Apr 26, 2018 at 07:14:17PM -0400, Nick Sabalausky
(Abscissa) via Digitalmars-d wrote:
On 04/26/2018 06:47 PM, H. S. Teoh wrote:
>
> If "less is more" were universally true, we'd be programming
> in BF instead of D. :-O
79 matches
Mail list logo