On Monday, 10 July 2017 at 17:29:01 UTC, 鲜卑拓跋枫 wrote:
Dear all,
I am a D-language amateur from China, and just want to share
you with a slides from me that post on MesosCon Asia
2017(Beijing):
On 14/07/2017 1:41 AM, Vitor Rozsas wrote:
Hmmm... But how would a criminal post be deleted or removed?
Even if decentralized, govs could forbid the use of it (specially having
a server of this social media), considering that it's database could
contain child pornography (undeletable child
On Thursday, 13 July 2017 at 22:30:29 UTC, crimaniak wrote:
On Thursday, 13 July 2017 at 21:49:40 UTC, dark777 wrote:
Pessoal eu fiz o seguinte programa em C++.
https://pastebin.com/CvVv6Spn
porem tentei fazer o equivalente em D mas nao entendi muito
bem...
https://pastebin.com/2xw9geRR
On Friday, 14 July 2017 at 00:40:38 UTC, FoxyBrown wrote:
Anyone have an efficient implementation that is easy to use?
If you are OK with just a range spanning the two or more strings,
then you could use chain as is.
On Friday, 14 July 2017 at 00:33:12 UTC, FoxyBrown wrote:
What I'm trying to do is fairly straightforward but I've wasted
nearly 2 days on it.
//added this so it would all compile
import core.sys.windows.windows;
import core.stdc.stdio;
import core.stdc.stdlib;
import std.stdio;
import
On Friday, 14 July 2017 at 00:26:14 UTC, Steven Schveighoffer
wrote:
On 7/13/17 8:15 PM, FoxyBrown wrote:
? Pretty much at least several times a day I cannot connect.
Either stalls, forum is down, etc.
I have noticed that the forum is not as speedy as it used to
be. Sometimes I have to
Anyone have an efficient implementation that is easy to use?
On Thursday, 13 July 2017 at 23:30:39 UTC, Moritz Maxeiner wrote:
On Thursday, 13 July 2017 at 22:53:45 UTC, FoxyBrown wrote:
On Thursday, 13 July 2017 at 20:35:19 UTC, Moritz Maxeiner
wrote:
On Thursday, 13 July 2017 at 18:22:34 UTC, FoxyBrown wrote:
The following code is pretty screwed up,
On 7/13/17 8:15 PM, FoxyBrown wrote:
? Pretty much at least several times a day I cannot connect. Either
stalls, forum is down, etc.
I have noticed that the forum is not as speedy as it used to be.
Sometimes I have to reload several times to get a message to show up.
-Steve
On 7/13/17 2:37 PM, Timon Gehr wrote:
On Thursday, 13 July 2017 at 17:25:18 UTC, Timon Gehr wrote:
Anyway, my assertion that Bottom cannot be a subtype of all other
types was actually incorrect: the compiler does not need to generate
code for implicit conversion from Bottom to some other type,
? Pretty much at least several times a day I cannot connect.
Either stalls, forum is down, etc.
On Thursday, 13 July 2017 at 22:53:45 UTC, FoxyBrown wrote:
On Thursday, 13 July 2017 at 20:35:19 UTC, Moritz Maxeiner
wrote:
On Thursday, 13 July 2017 at 18:22:34 UTC, FoxyBrown wrote:
The following code is pretty screwed up, even though it
doesn't look like it. I have a buf, a simple malloc
On Thursday, 13 July 2017 at 20:35:19 UTC, Moritz Maxeiner wrote:
On Thursday, 13 July 2017 at 18:22:34 UTC, FoxyBrown wrote:
The following code is pretty screwed up, even though it
doesn't look like it. I have a buf, a simple malloc which hold
the results of a win32 call. I am then trying to
On Saturday, 8 July 2017 at 20:27:11 UTC, H. S. Teoh wrote:
Also, a @noreturn attribute would allow overriding a non-void
class method with a @noreturn one (e.g. the derived class is a
sentinel object that forces an exception / termination upon
calling that method), whereas you can't do that
On Thursday, 13 July 2017 at 22:30:29 UTC, crimaniak wrote:
On Thursday, 13 July 2017 at 21:49:40 UTC, dark777 wrote:
char[] stalman()
{
return cast(char[])`
((__-^^-,-^^-__))
*---***---*
*--|o o|--*
On Thu, Jul 13, 2017 at 04:16:50PM -0400, Steven Schveighoffer via
Digitalmars-d wrote:
[...]
> http://www.schveiguy.com/blog/2016/05/have-your-voldemort-types-and-keep-your-disk-space-too/
>
> I was surprised as well at the reduction. I only noticed the problem
> because when I was debugging my
On Thursday, 13 July 2017 at 21:49:40 UTC, dark777 wrote:
Pessoal eu fiz o seguinte programa em C++.
https://pastebin.com/CvVv6Spn
porem tentei fazer o equivalente em D mas nao entendi muito
bem...
https://pastebin.com/2xw9geRR
alguem poderia me ajudar?
Se acepta utilizar intervalos en
https://issues.dlang.org/show_bug.cgi?id=17624
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/druntime
https://github.com/dlang/druntime/commit/180644a61436a8f3e64f1f8d8ea8ec1d2500c607
Fix Issue 17624 - typo in Fields documentation
https://issues.dlang.org/show_bug.cgi?id=17641
--- Comment #4 from andron...@gmail.com ---
Sorry, I misunderstood you.
--
Pessoal eu fiz o seguinte programa em C++.
https://pastebin.com/CvVv6Spn
porem tentei fazer o equivalente em D mas nao entendi muito bem...
https://pastebin.com/2xw9geRR
alguem poderia me ajudar?
On 07/13/2017 08:22 PM, FoxyBrown wrote:
res = EnumServicesStatusExW(schSCManager,
SC_ENUM_TYPE.SC_ENUM_PROCESS_INFO, servicesType, SERVICE_STATE_ALL,
cast(ubyte*)buf, 5, , , ,
cast(const(char)*)null);
The cast to `char*` here looks odd. The 'W' suffix in the function name
On Wednesday, 12 July 2017 at 04:40:16 UTC, Vitor Rozsas wrote:
So... basically, it's a Bitcoin, but instead of transactions,
the blockchain should store posts and profiles. :) And it
should have some additional features (the typical things of
social media - profile picture, some optional
On Thursday, 13 July 2017 at 15:52:57 UTC, Dustmight wrote:
How do I read in input from the terminal without sitting there
waiting for it? I've got code I want to run while there's no
input, and then code I want to act on input when it comes in.
How do I do both these things?
As Stefan
On Monday, 10 July 2017 at 21:30:44 UTC, Walter Bright wrote:
You can't use RTTI or Exceptions, for example. Those generate
bloat even if they are not used - a compiler switch is typical
to disable them. It's not true that C++ is "pay only for what
you use".
If the C++ usage is "C with
On Thursday, 13 July 2017 at 18:22:34 UTC, FoxyBrown wrote:
The following code is pretty screwed up, even though it doesn't
look like it. I have a buf, a simple malloc which hold the
results of a win32 call. I am then trying to copy over the data
in buf to a D struct.
But when copying the
On 7/13/17 3:23 PM, H. S. Teoh via Digitalmars-d wrote:
Today, I decided to sit down and refactor my code. I've heard tell that
Voldemort types tend to cause an explosion in symbol size, and today I
thought it'd be interesting to see just how big of a difference this
actually makes.
I could
https://issues.dlang.org/show_bug.cgi?id=17630
Jack Stouffer changed:
What|Removed |Added
Keywords||accepts-invalid
--
On 2017-07-12 14:36, Flaze07 wrote:
I see...
so...is it official ??
Not sure what you mean with "official". The forum or the library?
--
/Jacob Carlborg
On Monday, 10 July 2017 at 17:29:01 UTC, 鲜卑拓跋枫 wrote:
Dear all,
I am a D-language amateur from China, and just want to share
you with a slides from me that post on MesosCon Asia
2017(Beijing):
On Thu, Jul 13, 2017 at 06:48:27PM +, JN via Digitalmars-d-learn wrote:
> On Thursday, 13 July 2017 at 18:09:46 UTC, H. S. Teoh wrote:
> >
> > It's not quite so simple. Consider for example:
> >
> > struct Foo { int bar; }
> > struct Oof { int bar; }
> >
> > void process(Foo
On Wed, Jul 05, 2017 at 09:45:55PM -0600, Jonathan M Davis via Digitalmars-d
wrote:
[...]
> In this case, I think that it's more that Voldemort types are biting
> us than that ranges are biting us (though the Voldemort types are
> typically ranges, so in practice, using ranges ends up biting
On Thursday, 13 July 2017 at 18:09:46 UTC, H. S. Teoh wrote:
It's not quite so simple. Consider for example:
struct Foo { int bar; }
struct Oof { int bar; }
void process(Foo foo) { }
void process(Oof oof) { formatDisk(); }
void main() {
On Thursday, 13 July 2017 at 18:45:45 UTC, JN wrote:
I know that's a wrong syntax, I was just showing an example.
Yes, here it will work, but if you want to initialize only some
fields (poor man's keyword arguments), you can't use the
default constructor.
easily fixable by using
On Thursday, 13 July 2017 at 17:25:18 UTC, Timon Gehr wrote:
Anyway, my assertion that Bottom cannot be a subtype of all
other types was actually incorrect: the compiler does not need
to generate code for implicit conversion from Bottom to some
other type, so it can be treated as a subtype.
The following code is pretty screwed up, even though it doesn't
look like it. I have a buf, a simple malloc which hold the
results of a win32 call. I am then trying to copy over the data
in buf to a D struct.
But when copying the strings, the buf location changes, screwing
up the copying
On Thu, Jul 13, 2017 at 06:07:31PM +, JN via Digitalmars-d-learn wrote:
> Consider:
>
> struct Foo
> {
> int bar;
> }
>
> void processFoo(Foo foo)
> {
> }
>
> void main()
> {
> Foo f = {bar: 5};
> processFoo(f);// ok
> processFoo(Foo(5)); //
Consider:
struct Foo
{
int bar;
}
void processFoo(Foo foo)
{
}
void main()
{
Foo f = {bar: 5};
processFoo(f);// ok
processFoo(Foo(5)); // ok
processFoo({bar: 5}); // fail
processFoo(Foo({bar: 5}));// fail
}
On Thursday, 13 July 2017 at 17:08:38 UTC, jmh530 wrote:
Huh? Take a look at the "Using Span" section.
It's indeed stack-only for safety reasons. On heap can be stored
a span promise, that can be resolved to a span on stack.
https://issues.dlang.org/show_bug.cgi?id=17644
--- Comment #6 from Gerald Jansen ---
(In reply to greenify from comment #5)
> > How can I clone your branch/changes?
> https://wiki.dlang.org/Guidelines_for_maintainers
Thanks for the tips!
--
On Wednesday, 12 July 2017 at 14:23:15 UTC, Andrei Alexandrescu
wrote:
On 07/12/2017 05:32 AM, Timon Gehr wrote:
On 09.07.2017 23:45, Meta wrote:
...
Another case that we should probably just statically disallow:
... > This obviously doesn't make any sense anyway
... > I don't see a reason for
https://issues.dlang.org/show_bug.cgi?id=17644
--- Comment #5 from greenify ---
> How can I clone your branch/changes?
Btw the guidelines for maintainers might answer a few of your questions and it
contains a handy git shortcut if you happen to clone a PR more than once:
On 07/13/2017 08:52 AM, Dustmight wrote:
How do I read in input from the terminal without sitting there waiting
for it? I've got code I want to run while there's no input, and then
code I want to act on input when it comes in. How do I do both these
things?
If you're fine with buffered input,
https://issues.dlang.org/show_bug.cgi?id=17644
--- Comment #4 from greenify ---
> How can I see the effect of these changes on a copy of the site?
The simplest way is clicking on DAutoTest at the PR status page. DAutoTest
builds the entire website, shows the diff between
On Thursday, 13 July 2017 at 14:34:56 UTC, Stefan Koch wrote:
It's a stack-only type. Wow. It totally sucks!
Huh? Take a look at the "Using Span" section.
https://issues.dlang.org/show_bug.cgi?id=17644
--- Comment #3 from Gerald Jansen ---
(In reply to Seb from comment #2)
> PR: https://github.com/dlang/dlang.org/pull/1820
How can I see the effect of these changes on a copy of the site? I have cloned
dlang.org and
https://issues.dlang.org/show_bug.cgi?id=17648
uplink.co...@googlemail.com changed:
What|Removed |Added
CC||uplink.co...@googlemail.com
On Thursday, 13 July 2017 at 16:46:12 UTC, Luís Marques wrote:
[ ... ]
On D side the issue that remains is the ergonomics of having to
type cast(short) more frequently. I suppose that if this proves
too inconvenient we can just create a library type that avoids
this issue, right?
Yes. we
https://issues.dlang.org/show_bug.cgi?id=17649
Issue ID: 17649
Summary: CONTRIBUTING.md instructions failed (no ../druntime
dir)
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
https://issues.dlang.org/show_bug.cgi?id=17648
Issue ID: 17648
Summary: dmd segfault on overload set introspection
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
On Thursday, 13 July 2017 at 05:18:40 UTC, wigy wrote:
On Wednesday, 12 July 2017 at 20:11:06 UTC, Vitor Rozsas wrote:
[...]
Hi! I do not think the debate you have with yourself is
decentralized vs centralized. You are thinking about moderated
vs unmoderated. One is a technical structure,
On Monday, 10 July 2017 at 21:30:44 UTC, Walter Bright wrote:
For example, ints in C are 16 bits. In D they are 32. This
means that integer operations are expensive.
I just realized something interesting. The same situation happens
on AVR with C. AVR is 8 bit (but often competes with 16-bit
On Thursday, 13 July 2017 at 15:52:57 UTC, Dustmight wrote:
How do I read in input from the terminal without sitting there
waiting for it? I've got code I want to run while there's no
input, and then code I want to act on input when it comes in.
How do I do both these things?
Might want to
https://issues.dlang.org/show_bug.cgi?id=14982
John Colvin changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=12283
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
--
On Thursday, 13 July 2017 at 15:52:57 UTC, Dustmight wrote:
How do I read in input from the terminal without sitting there
waiting for it? I've got code I want to run while there's no
input, and then code I want to act on input when it comes in.
How do I do both these things?
You have to ask
https://issues.dlang.org/show_bug.cgi?id=17641
--- Comment #3 from ag0ae...@gmail.com ---
(In reply to andronkin from comment #2)
> Thank you, I did not know about this feature.
>
> > void delegate(uint)
> > Yeah, that looks wrong
> Why is it wrong? This is the correct delegate type definition:
https://issues.dlang.org/show_bug.cgi?id=7177
Jack Stouffer changed:
What|Removed |Added
CC||j...@jackstouffer.com
https://issues.dlang.org/show_bug.cgi?id=17646
uplink.co...@googlemail.com changed:
What|Removed |Added
Keywords||pull
--- Comment #2 from
How do I read in input from the terminal without sitting there
waiting for it? I've got code I want to run while there's no
input, and then code I want to act on input when it comes in. How
do I do both these things?
On Thursday, 13 July 2017 at 12:49:40 UTC, Per Nordlöw wrote:
Have anybody constructed an idiomatic D wrapper for FFTW?
No, sorry, although I have used the library quite a bit in D.
http://www.fftw.org/fftw3_doc/Tutorial.html#Tutorial
I'm specifically concerned about
-
https://issues.dlang.org/show_bug.cgi?id=16564
--- Comment #7 from Temtaime ---
Oh, sorry, my mistake
import
std.stdio,
std.range,
std.random,
std.typecons,
std.algorithm,
std.experimental.allocator.building_blocks,
On Thursday, 13 July 2017 at 14:30:42 UTC, Kagamin wrote:
http://adamsitnik.com/Span/
It's a stack-only type. Wow. It totally sucks!
On Monday, 10 July 2017 at 08:53:42 UTC, Mike Parker wrote:
As promised, since there has been zero feedback on DIP 1010,
"Static foreach", in either the Draft or Preliminary review
rounds, I'm going to skip the normal two-week feedback cycle on
the Formal review. If there are no major
http://adamsitnik.com/Span/
https://issues.dlang.org/show_bug.cgi?id=17641
andron...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=12736
Jon Degenhardt changed:
What|Removed |Added
Status|RESOLVED|REOPENED
https://issues.dlang.org/show_bug.cgi?id=11688
Gide Nwawudu changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=17647
Gide Nwawudu changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=17647
Issue ID: 17647
Summary: Fedora/CentOS RPM x86_64 depends on i686 libraries
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
https://issues.dlang.org/show_bug.cgi?id=17646
uplink.co...@googlemail.com changed:
What|Removed |Added
CC||uplink.co...@googlemail.com
https://issues.dlang.org/show_bug.cgi?id=17646
Issue ID: 17646
Summary: dmd segfaults on missing foreach body in import
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
On Thursday, 13 July 2017 at 13:08:37 UTC, Flaze07 wrote:
hi the reason I ask how old dfl is because it is an abandoned
project...but I want to use it... I am just afraid of
some...incompability
Your choice for a gui depends on your requirements and how you
intend to use it.
Here is a list
On Wednesday, 12 July 2017 at 12:36:34 UTC, Flaze07 wrote:
On Wednesday, 12 July 2017 at 11:18:21 UTC, Jacob Carlborg
wrote:
On 2017-07-12 12:10, Flaze07 wrote:
hi...so is this group forum about the SWT D bindings ? (I am
just surprised that it is...in the ecosystem if it is what I
think it
hi the reason I ask how old dfl is because it is an abandoned
project...but I want to use it... I am just afraid of
some...incompability
https://issues.dlang.org/show_bug.cgi?id=17634
RazvanN changed:
What|Removed |Added
Assignee|razvan.nitu1...@gmail.com |nob...@puremagic.com
Hi Guys,
It has been suggested that I open a new thread every month.
I am happy to do that as it will make documenting the progress in
newCTFE easier.
Let me start with a funny error I just fixed :)
The following code :
static assert(() { return ulong(ushort.max | ulong(ushort.max) <<
32);
Have anybody constructed an idiomatic D wrapper for FFTW?
http://www.fftw.org/fftw3_doc/Tutorial.html#Tutorial
I'm specifically concerned about
- `RefCounted`-wrapping of the C structures `fftw_complex` and
`fftw_plan`
- range semantics, lazy evaluation and caching of result in
On Wednesday, 18 January 2017 at 09:24:09 UTC, aberba wrote:
What about Photoshop? Is it native? No.
No, by-and-large Photoshop does not use native controls.
However, I would not hold up Photoshop as validation for not
using native controls.
Games have wide latitude for ignoring their
https://issues.dlang.org/show_bug.cgi?id=17645
Steven Schveighoffer changed:
What|Removed |Added
CC|
On 7/12/17 1:24 AM, Brandon Buck wrote:
On Wednesday, 12 July 2017 at 02:06:41 UTC, Steven Schveighoffer wrote:
I'm sure there's a bug filed somewhere on this...
Is this bug worthy? I can search for one and comment and/or create one
if I can't find one.
Found it. It was mistakenly closed:
https://issues.dlang.org/show_bug.cgi?id=12283
Steven Schveighoffer changed:
What|Removed |Added
Status|RESOLVED|REOPENED
On Thursday, 13 July 2017 at 11:52:13 UTC, Martin Nowak wrote:
On Thursday, 13 July 2017 at 07:22:00 UTC, Eugene Wissner wrote:
The ChangeLog link is:
http://dlang.org/changelog/2.075.0_pre.html
Works for now, but it shouldn't be under that URL.
Will check what broke with dlang.org's
https://issues.dlang.org/show_bug.cgi?id=17645
Tomer Filiba (weka) changed:
What|Removed |Added
Keywords||industry
--
https://issues.dlang.org/show_bug.cgi?id=17645
Issue ID: 17645
Summary: `pure` is transitively applied to all delegates inside
a pure function
Product: D
Version: D2
Hardware: All
OS: All
Status:
https://issues.dlang.org/show_bug.cgi?id=17645
Tomer Filiba (weka) changed:
What|Removed |Added
CC||to...@weka.io
--
On 7/12/17 9:20 PM, H. S. Teoh via Digitalmars-d wrote:
On Thu, Jul 13, 2017 at 01:23:53AM +, Stefan Koch via Digitalmars-d wrote:
On Wednesday, 12 July 2017 at 21:05:28 UTC, watcher wrote:
stop advertising yourself and polluting this thread.
seek help - no down-payments in Germany!!
I
https://issues.dlang.org/show_bug.cgi?id=17634
RazvanN changed:
What|Removed |Added
CC|
On 7/12/17 5:24 PM, Johan Engelen wrote:
On Wednesday, 12 July 2017 at 20:12:03 UTC, Steven Schveighoffer wrote:
...
Which means this may cause a bunch of nuisance errors.
It's a trade-off between nuisance in some cases (the Phobos ones can be
solved with val = abs(val), or with static if),
On Thursday, 13 July 2017 at 10:56:20 UTC, unDEFER wrote:
Seems I have found. I must do:
try{
File file;
try {
file = File(path);
}
catch (Exception exp)
{
return;
}
//Some actions with file
}
catch (ErrnoException)
{
return;
}
Well, yes, you
Thank you. I will write if will find the reason of description
corruption.
On Thursday, 13 July 2017 at 09:53:05 UTC, Jacob Carlborg wrote:
On 2017-07-13 02:34, Joel wrote:
It doesn't look like there's any thing I can use. I've come
across: dbox, dchip, and blaze. Blaze is dsource. dbox is
alpha and hasn't been updated for 3 years. dchip [1] hasn't
been updated
On Thursday, 13 July 2017 at 11:15:56 UTC, Moritz Maxeiner wrote:
---
ubyte[File.sizeof] _file;
ref File file() { return *(cast(File*) &_file[0]); }
[create File instance and assign to file]
scope (exit) destroy(file);
---
Forgot to add the try catch:
---
ubyte[File.sizeof] _file;
ref File
On Thursday, 13 July 2017 at 10:28:30 UTC, unDEFER wrote:
On Thursday, 13 July 2017 at 08:53:24 UTC, Moritz Maxeiner
wrote:
Where does that `File` come from? If it's std.stdio.File, that
one is a struct with internal reference counting, so it
shouldn't crash in the above. Could you provide a
Seems I have found. I must do:
try{
File file;
try {
file = File(path);
}
catch (Exception exp)
{
return;
}
//Some actions with file
}
catch (ErrnoException)
{
return;
}
https://issues.dlang.org/show_bug.cgi?id=6718
RazvanN changed:
What|Removed |Added
CC|
On Thursday, 13 July 2017 at 08:53:24 UTC, Moritz Maxeiner wrote:
Where does that `File` come from? If it's std.stdio.File, that
one is a struct with internal reference counting, so it
shouldn't crash in the above. Could you provide a minimal
working (in this case crashing) example?
Yes File
On 2017-07-13 02:34, Joel wrote:
It doesn't look like there's any thing I can use. I've come across:
dbox, dchip, and blaze. Blaze is dsource. dbox is alpha and hasn't been
updated for 3 years. dchip [1] hasn't been updated for 2 years and
doesn't compile (that's with out using any thing,
https://issues.dlang.org/show_bug.cgi?id=17624
Seb changed:
What|Removed |Added
Keywords||pull
CC|
https://issues.dlang.org/show_bug.cgi?id=17644
Seb changed:
What|Removed |Added
Keywords||pull
CC|
On Thursday, 13 July 2017 at 08:38:52 UTC, unDEFER wrote:
Hello! I have the code like this:
File file;
try {
file = File(path);
}
catch (Exception exp)
{
return;
}
...
try {
}
Where does that `File` come from? If it's std.stdio.File, that
one
1 - 100 of 111 matches
Mail list logo