https://issues.dlang.org/show_bug.cgi?id=14835
Walter Bright changed:
What|Removed |Added
CC|
On 10/11/2016 7:01 AM, Johan Engelen wrote:
I wrote a piece on LDC's fastmath stuff that Mir uses for high-performance D
math code:
https://johanengelen.github.io/ldc/2016/10/11/Math-performance-LDC.html
Articles like this are great! Keep 'em coming.
On Wednesday, 12 October 2016 at 02:18:47 UTC, TheFlyingFiddle
wrote:
On Wednesday, 12 October 2016 at 01:22:04 UTC, lobo wrote:
Hi,
I'm coming from C++ and wondered if the pattern below has an
equivalent in D using structs. I could just use classes and
leave it up to the caller to use
On Wednesday, 12 October 2016 at 02:18:47 UTC, TheFlyingFiddle
wrote:
void foo(ref ABase base)
{
base.ival = 32;
}
This should be:
void foo(ref Base1 base)
{
base.ival = 32;
}
On Wednesday, 12 October 2016 at 01:22:04 UTC, lobo wrote:
Hi,
I'm coming from C++ and wondered if the pattern below has an
equivalent in D using structs. I could just use classes and
leave it up to the caller to use scoped! as well but I'm not
sure how that will play out when others start
Hi,
I'm coming from C++ and wondered if the pattern below has an
equivalent in D using structs. I could just use classes and leave
it up to the caller to use scoped! as well but I'm not sure how
that will play out when others start using my lib.
Thanks,
lobo
module A;
class Base1 {
On Tuesday, 11 October 2016 at 16:59:56 UTC, vino wrote:
Hi All,
Need your help, on the below request.
Requirement:
Server:
2 socket listening to 2 different ports with one main program
Socket1 Port1 (Used for receiving user request(user data))
Socket2 Port2 (Used for system
On Tuesday, 11 October 2016 at 18:13:53 UTC, Andrei Alexandrescu
wrote:
http://indianautosblog.com/2016/10/most-powerful-suzuki-swift-produces-350-hp-25
-- Andrei
Obviously the ECU is programmed in D.
oh wait...
Hi list,
I'm liking D as I keep using it (still new to it), and interested
in how it evolved, hence this question.
I have seen the Wikipedia article about D:
https://en.wikipedia.org/wiki/D_(programming_language)
which mentions language influences (right sidebar). I've also
read some other
On 10/11/2016 12:53 PM, Dennis Ritchie wrote:
On Tuesday, 11 October 2016 at 19:43:07 UTC, cym13 wrote:
On Tuesday, 11 October 2016 at 18:58:09 UTC, Dennis Ritchie wrote:
On Tuesday, 11 October 2016 at 18:13:53 UTC, Andrei Alexandrescu wrote:
I have a class T with a templated function foo(string name)(int,
int, float) that will be mixed in via template, and I want to
determine if that class has mixed it in such that foo(name =
"bar"). How could I go about this? Thanks.
eg:
mixin template A(string name, Args...) {
void
On Tuesday, 11 October 2016 at 19:46:31 UTC, Jon Degenhardt wrote:
On Tuesday, 11 October 2016 at 18:18:41 UTC, ag0aep6g wrote:
On 10/11/2016 06:24 AM, Jon Degenhardt wrote:
The example I gave uses ref parameters. On the surface it
would seem
reasonable to that passing a static array by ref
On Tuesday, 11 October 2016 at 19:43:07 UTC, cym13 wrote:
On Tuesday, 11 October 2016 at 18:58:09 UTC, Dennis Ritchie
wrote:
On Tuesday, 11 October 2016 at 18:13:53 UTC, Andrei
Alexandrescu wrote:
http://indianautosblog.com/2016/10/most-powerful-suzuki-swift-produces-350-hp-25
-- Andrei
On Tuesday, 11 October 2016 at 18:18:41 UTC, ag0aep6g wrote:
On 10/11/2016 06:24 AM, Jon Degenhardt wrote:
The example I gave uses ref parameters. On the surface it
would seem
reasonable to that passing a static array by ref would allow
it to be
modified, without having to slice it first.
On Tuesday, 11 October 2016 at 18:58:09 UTC, Dennis Ritchie wrote:
On Tuesday, 11 October 2016 at 18:13:53 UTC, Andrei
Alexandrescu wrote:
http://indianautosblog.com/2016/10/most-powerful-suzuki-swift-produces-350-hp-25
-- Andrei
Yes, definitely.
http://dlanguage-z.com/about.html
On Tuesday, October 11, 2016 10:42:42 Ali Çehreli via Digitalmars-d-learn
wrote:
> Those interfaces already exist in Phobos: :)
>
>https://dlang.org/phobos/std_range_interfaces.html
>
> auto foo(int[] ints) {
>import std.range;
>if (ints.length > 10) {
>return
>
https://issues.dlang.org/show_bug.cgi?id=16608
Ali Cehreli changed:
What|Removed |Added
Summary|'static foreach', local |'static foreach', nested
https://issues.dlang.org/show_bug.cgi?id=16608
--- Comment #1 from Ali Cehreli ---
Johan Engelen notes that the problem is because the local function is generated
only for the first iteration:
https://issues.dlang.org/show_bug.cgi?id=16608
Ali Cehreli changed:
What|Removed |Added
Priority|P1 |P3
--
https://issues.dlang.org/show_bug.cgi?id=16608
Issue ID: 16608
Summary: 'static foreach', local function template, 'static
if', anySatisfy: Only the first iteration seems to
work
Product: D
Version: D2
On Tuesday, 11 October 2016 at 18:09:26 UTC, ag0aep6g wrote:
You've got some options:
Wow, thanks everyone, great information! I think I understand my
options now.
On Tuesday, 11 October 2016 at 18:13:53 UTC, Andrei Alexandrescu
wrote:
http://indianautosblog.com/2016/10/most-powerful-suzuki-swift-produces-350-hp-25
-- Andrei
Yes, definitely.
http://dlanguage-z.com/about.html
On Tuesday, 11 October 2016 at 18:01:47 UTC, Johan Engelen wrote:
On Tuesday, 11 October 2016 at 17:29:47 UTC, Ali Çehreli wrote:
On 10/11/2016 07:01 AM, Johan Engelen wrote:
> I wrote a piece on LDC's fastmath stuff that Mir uses for
> high-performance D math code:
>
>
On Tuesday, 11 October 2016 at 18:13:53 UTC, Andrei Alexandrescu
wrote:
http://indianautosblog.com/2016/10/most-powerful-suzuki-swift-produces-350-hp-25
-- Andrei
There is no Kenji Hara in the team, so I would say no :)
On 10/11/2016 11:13 AM, Andrei Alexandrescu wrote:
http://indianautosblog.com/2016/10/most-powerful-suzuki-swift-produces-350-hp-25
-- Andrei
I think so:
- D-Language: check
- Most powerful: check
- Japan: check
- squeeze out [...] power: check
- not street-legal: check (similar to D
On 10/11/2016 06:24 AM, Jon Degenhardt wrote:
The example I gave uses ref parameters. On the surface it would seem
reasonable to that passing a static array by ref would allow it to be
modified, without having to slice it first.
Your ref parameters are only for the per-element operations.
http://indianautosblog.com/2016/10/most-powerful-suzuki-swift-produces-350-hp-25
-- Andrei
On Tuesday, 11 October 2016 at 17:21:42 UTC, Nick Sabalausky
wrote:
The automatically-updated list of D compiler versions available
on Travis-CI (and which front-end/back-end version they each
use) has had a few small improvements lately:
http://semitwist.com/travis-d-compilers
Perhaps
On 10/11/2016 09:55 AM, orip wrote:
auto foo(int[] ints) {
import std.range;
if (ints.length > 10) {
return chain(ints[0..5], ints[8..$]);
} else {
//return ints; // Error: mismatched function return type inference
of int[] and Result
return chain(ints[0..0], ints[0..$]); //
On Tuesday, 11 October 2016 at 17:29:47 UTC, Ali Çehreli wrote:
On 10/11/2016 07:01 AM, Johan Engelen wrote:
> I wrote a piece on LDC's fastmath stuff that Mir uses for
> high-performance D math code:
>
>
https://johanengelen.github.io/ldc/2016/10/11/Math-performance-LDC.html
>
> cheers,
>
On Tuesday, October 11, 2016 07:55:36 orip via Digitalmars-d-learn wrote:
> I get "Error: mismatched function return type inference" errors
> with choosing the return type for functions that work on ranges
> using, e.g, std.algorithm or std.range functions, but have
> different behavior based on
On 10/11/2016 10:28 AM, TheFlyingFiddle wrote:
On Tuesday, 11 October 2016 at 15:46:20 UTC, orip wrote:
On Tuesday, 11 October 2016 at 13:06:37 UTC, pineapple wrote:
Rewrite `return chain(ints[0..5], ints[8..$]);` as `return ints[0..5]
~ ints[8..$];`
The `chain` function doesn't return an
On 10/11/2016 07:01 AM, Johan Engelen wrote:
> I wrote a piece on LDC's fastmath stuff that Mir uses for
> high-performance D math code:
>
> https://johanengelen.github.io/ldc/2016/10/11/Math-performance-LDC.html
>
> cheers,
> Johan
Kind of off topic and hopefully constructive critism: You
On Tuesday, 11 October 2016 at 15:46:20 UTC, orip wrote:
On Tuesday, 11 October 2016 at 13:06:37 UTC, pineapple wrote:
Rewrite `return chain(ints[0..5], ints[8..$]);` as `return
ints[0..5] ~ ints[8..$];`
The `chain` function doesn't return an array, it returns a
lazily-evaluated sequence of
The automatically-updated list of D compiler versions available on
Travis-CI (and which front-end/back-end version they each use) has had a
few small improvements lately:
http://semitwist.com/travis-d-compilers
- Now includes beta versions available for DMD (starting at v2.072.0)
and LDC
On Tuesday, 11 October 2016 at 16:13:45 UTC, Andrei Alexandrescu
wrote:
On 10/11/16 11:15 AM, Stefan Koch wrote:
I will now run this problem through STOKE.
Let's see what it comes up with :)
http://stoke.stanford.edu you mean? That would be cool. Keep us
posted! -- Andrei
Yep I mean that
Hi All,
Need your help, on the below request.
Requirement:
Server:
2 socket listening to 2 different ports with one main program
Socket1 Port1 (Used for receiving user request(user data))
Socket2 Port2 (Used for system request(system data))
User request arrives via
On Monday, 3 October 2016 at 09:06:32 UTC, Dicebot wrote:
Purpose is to skip code generation and only do syntax/semantic
validation. Very helpful when testing compiler because:
a) it takes less time speeding up overall test suite
b) doesn't require runtime static library to succeed, thus
On 10/11/16 11:15 AM, Stefan Koch wrote:
I will now run this problem through STOKE.
Let's see what it comes up with :)
http://stoke.stanford.edu you mean? That would be cool. Keep us posted!
-- Andrei
On Tuesday, 11 October 2016 at 06:22:24 UTC, Suliman wrote:
Could you add example of progress bar?
Yes, will get one up in the next coming days
11.10.2016 18:46, orip пишет:
On Tuesday, 11 October 2016 at 13:06:37 UTC, pineapple wrote:
Rewrite `return chain(ints[0..5], ints[8..$]);` as `return ints[0..5]
~ ints[8..$];`
The `chain` function doesn't return an array, it returns a
lazily-evaluated sequence of an entirely different type
On Tuesday, 11 October 2016 at 13:06:37 UTC, pineapple wrote:
Rewrite `return chain(ints[0..5], ints[8..$]);` as `return
ints[0..5] ~ ints[8..$];`
The `chain` function doesn't return an array, it returns a
lazily-evaluated sequence of an entirely different type from
`int[]`.
Of course it
On Tuesday, 11 October 2016 at 15:08:34 UTC, Andrei Alexandrescu
wrote:
On 10/10/2016 11:00 PM, Stefan Koch wrote:
[...]
Looked at this, still seems to generate a jump forward with
ldc. Also, why do you leave a fallthrough path? Progress needs
to be made on all paths, otherwise we have
On 10/11/2016 11:06 AM, Ilya Yaroshenko wrote:
On Tuesday, 11 October 2016 at 14:01:54 UTC, Johan Engelen wrote:
I wrote a piece on LDC's fastmath stuff that Mir uses for
high-performance D math code:
https://johanengelen.github.io/ldc/2016/10/11/Math-performance-LDC.html
cheers,
Johan
On Tuesday, 11 October 2016 at 15:08:34 UTC, Andrei Alexandrescu
wrote:
Looked at this, still seems to generate a jump forward with ldc.
ldc.intrinsics.llvm_expect might help to influence basic block
layout.
— David
On Tuesday, 11 October 2016 at 14:01:54 UTC, Johan Engelen wrote:
I wrote a piece on LDC's fastmath stuff that Mir uses for
high-performance D math code:
https://johanengelen.github.io/ldc/2016/10/11/Math-performance-LDC.html
cheers,
Johan
Awesome! Thank you for the post! Twitted
On 10/10/2016 11:00 PM, Stefan Koch wrote:
void popFront3(ref char[] s) @trusted pure nothrow {
immutable c = s[0];
uint char_length = 1;
if (c < 127)
{
Lend :
s = s.ptr[char_length .. s.length];
} else {
if ((c & b01100_) == 0b1000_)
{
//just
On 10/11/2016 10:49 AM, Matthias Bentrup wrote:
void popFrontAsmIntel(ref char[] s) @trusted pure nothrow {
immutable c = s[0];
if (c < 0x80) {
s = s[1 .. $];
} else {
uint l = void;
asm pure nothrow @nogc {
mov EAX, 1;
mov BL, 0xf8-1;
sub BL, c;
cmp
On Tuesday, 11 October 2016 at 14:49:28 UTC, Matthias Bentrup
wrote:
This is the result I'd like to get, but I can't find a way to
write it without inline assembly :(
void popFrontAsmIntel(ref char[] s) @trusted pure nothrow {
immutable c = s[0];
if (c < 0x80) {
s = s[1 .. $];
}
On 10/11/2016 05:45 AM, Temtaime wrote:
void popFront7(ref char[] s) @trusted pure nothrow
{
import core.bitop;
auto v = 7 - bsr(~s[0] | 1);
s = s[v > 6 ? 1 : (v ? (v > s.length ? s.length : v) : 1)..$];
}
Please check this.
Thanks. This does a lot of work on the frequent path c < 0x80:
(Mir) cpuid v0.3.0 was released.
https://github.com/libmir/cpuid
## New
- Basic leaf 7 CPUID information was added. It includes AVX2
flag, AVX512 family flags and others.
- Initial support for virtual machines was added.
- `virtualVendor`, `virtualVendorIndex` was added.
- `cpuid` is
On Tuesday, 11 October 2016 at 14:24:56 UTC, Andrei Alexandrescu
wrote:
On 10/11/2016 03:30 AM, Matthias Bentrup wrote:
A branch-free version:
void popFront4(ref char[] s) @trusted pure nothrow {
immutable c = s[0];
uint char_length = 1 + (c >= 192) + (c >= 240) + (c >= 248);
s =
On Tuesday, 11 October 2016 at 14:24:56 UTC, Andrei Alexandrescu
wrote:
On 10/11/2016 03:30 AM, Matthias Bentrup wrote:
A branch-free version:
void popFront4(ref char[] s) @trusted pure nothrow {
immutable c = s[0];
uint char_length = 1 + (c >= 192) + (c >= 240) + (c >= 248);
s =
On 10/11/2016 03:30 AM, Matthias Bentrup wrote:
A branch-free version:
void popFront4(ref char[] s) @trusted pure nothrow {
immutable c = s[0];
uint char_length = 1 + (c >= 192) + (c >= 240) + (c >= 248);
s = s.ptr[char_length .. s.length];
}
Theoretically the char_length could be
On Tuesday, 11 October 2016 at 14:16:54 UTC, Andrei Alexandrescu
wrote:
On 10/11/2016 04:57 AM, Stefan Koch wrote:
Yours runs with 790 us best time.
bsr is a real timetaker :)
What inputs did you test it on?
https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.txt
judr jpg
On Tuesday, October 11, 2016 10:08:02 Nordlöw via Digitalmars-d-learn wrote:
> I can't find any traits `hasIndexing!R` corresponding to
> `std.range.primitives.hasSlicing!R`
>
> that is `true` iff `R` has `opIndex[size_t]` defined. Is there
> one?
>
> If not what should I use instead?
The traits
On 10/11/2016 04:57 AM, Stefan Koch wrote:
Yours runs with 790 us best time.
bsr is a real timetaker :)
What inputs did you test it on?
Here's what I think would be a good set of requirements:
* The ASCII case should be short and fast: a comparison and a branch,
followed by return. This
https://issues.dlang.org/show_bug.cgi?id=16423
--- Comment #9 from Ketmar Dark ---
(In reply to Steven Schveighoffer from comment #8)
> But there may be code out there which expects Object.factory to work, and in
> some cases, it will not.
and there is. some of my UI
On Tuesday, 11 October 2016 at 10:01:41 UTC, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 09:45:11 UTC, Temtaime wrote:
Sorry this was also a type in the code.
void popFront7(ref char[] s) @trusted pure nothrow
{
import core.bitop;
auto v = 7 - bsr(~s[0] | 1);
s = s[v > 6 ? 1 : (v
On Monday, 10 October 2016 at 21:12:42 UTC, Martin Lundgren wrote:
So what's been happening in memory management land lately? Bad
GC seems like one of the Dlangs weak points, so showing
improvements here could definitely bring more people in.
It's not that the D GC is bad per se, but rather
the backend/view for it:
https://github.com/kamon-io/docker-grafana-graphite
On Tuesday, 11 October 2016 at 12:47:55 UTC, Atila Neves wrote:
I didn't even know that this existed, and I have a feeling that
soon I'll wonder how I lived without it. Awesome!
I had the exact same feeling
https://issues.dlang.org/show_bug.cgi?id=16423
--- Comment #8 from Steven Schveighoffer ---
Whether we need it or not, it's currently a feature of the runtime. Do we not
care about existing code anymore?
I'm totally in favor of deprecating Object.factory, and also in favor
On Tuesday, 11 October 2016 at 13:22:48 UTC, Dicebot wrote:
On 10/11/2016 04:13 PM, Joakim wrote:
On Monday, 10 October 2016 at 08:47:54 UTC, Robert burner
Schadek wrote:
[...]
Never heard about this either, I ignore node.js stuff. I was
just reading this interesting post on
On Tuesday, 11 October 2016 at 12:14:37 UTC, Manu wrote:
Oh dear... thanks for digging that up.
I didn't know the web had a standard for alpha. Certainly
0xAARRGGBB
has been used in windows code for as long as I've been
programming...
but now there's a competing #RRGGBBAA version...
How to
On 10/11/2016 04:13 PM, Joakim wrote:
> On Monday, 10 October 2016 at 08:47:54 UTC, Robert burner Schadek wrote:
>> http://code.dlang.org/packages/dstatsd
>>
>> StatsD allows to collect statistics about any application by using
>> counters, gauges and more through UDP.
>>
>> Usage:
>>
>> auto s =
On Tuesday, 11 October 2016 at 09:16:36 UTC, Johan Engelen wrote:
On Tuesday, 11 October 2016 at 07:29:00 UTC, Sönke Ludwig wrote:
Whoops, that's my bad :(
(I editted a little and clicked the "save draft" button which
turned it into a draft again, I think)
:-) Unintentionally I did the same
On Monday, 10 October 2016 at 08:47:54 UTC, Robert burner Schadek
wrote:
http://code.dlang.org/packages/dstatsd
StatsD allows to collect statistics about any application by
using counters, gauges and more through UDP.
Usage:
auto s = new StatsD("127.0.0.1", 1234, ""); // connect to
statsd
On Tuesday, 11 October 2016 at 07:55:36 UTC, orip wrote:
I get "Error: mismatched function return type inference" errors
with choosing the return type for functions that work on ranges
using, e.g, std.algorithm or std.range functions, but have
different behavior based on runtime values. The
On Monday, 10 October 2016 at 08:47:54 UTC, Robert burner Schadek
wrote:
http://code.dlang.org/packages/dstatsd
StatsD allows to collect statistics about any application by
using counters, gauges and more through UDP.
Usage:
auto s = new StatsD("127.0.0.1", 1234, ""); // connect to
statsd
On 11 October 2016 at 18:10, Andrea Fontana via Digitalmars-d
wrote:
> On Monday, 10 October 2016 at 23:26:53 UTC, Manu wrote:
>>
>> I'm not sure why it matters what format the colour you have is...
>> Strings are in the form #RRGGBB, or #AARRGGBB. That is all.
>>
On Tuesday, 11 October 2016 at 10:08:02 UTC, Nordlöw wrote:
I can't find any traits `hasIndexing!R` corresponding to
`std.range.primitives.hasSlicing!R`
My definition of `hasIndexing` so far:
https://github.com/nordlow/phobos-next/blob/master/src/typecons_ex.d#L83
I can't find any traits `hasIndexing!R` corresponding to
`std.range.primitives.hasSlicing!R`
that is `true` iff `R` has `opIndex[size_t]` defined. Is there
one?
If not what should I use instead?
On Tuesday, 11 October 2016 at 09:45:11 UTC, Temtaime wrote:
Sorry this was also a type in the code.
void popFront7(ref char[] s) @trusted pure nothrow
{
import core.bitop;
auto v = 7 - bsr(~s[0] | 1);
s = s[v > 6 ? 1 : (v ? (v > s.length ? s.length : v) : 1)..$];
}
Please check this.
On Tuesday, 11 October 2016 at 09:13:10 UTC, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 08:57:46 UTC, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 08:44:04 UTC, Temtaime wrote:
void popFront1(ref char[] s) @trusted pure nothrow
{
import core.bitop, std.algorithm;
auto v =
On Tuesday, 11 October 2016 at 07:29:00 UTC, Sönke Ludwig wrote:
Just noticed that the release binaries are missing from
https://github.com/ldc-developers/ldc/releases/tag/v1.1.0-beta3
This means that the beta currently cannot be tested with
TravisCI (wanted to test a DUB related regression
On Tuesday, 11 October 2016 at 08:57:46 UTC, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 08:44:04 UTC, Temtaime wrote:
void popFront1(ref char[] s) @trusted pure nothrow
{
import core.bitop, std.algorithm;
auto v = bsr(~s[0] | 1);
s = s[clamp(v, 1, v > 6 ? 1 : $)..$];
}
Seems to
https://issues.dlang.org/show_bug.cgi?id=16513
ZombineDev changed:
What|Removed |Added
CC|
On Tuesday, 11 October 2016 at 08:44:04 UTC, Temtaime wrote:
void popFront1(ref char[] s) @trusted pure nothrow
{
import core.bitop, std.algorithm;
auto v = bsr(~s[0] | 1);
s = s[clamp(v, 1, v > 6 ? 1 : $)..$];
}
Seems to be less if i'm not wrong.
Yours runs with 790 us best time.
bsr
On Tuesday, 11 October 2016 at 08:17:52 UTC, Stefan Koch wrote:
Also the code produces conditional set instructions which have
a higher latency.
And worse throughput.
On my arguably a bit dated laptop:
popFront3 performs 109 us best time
and popFront4 performs with 265 us best time
On Tuesday, 11 October 2016 at 08:17:52 UTC, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 08:03:40 UTC, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 07:30:26 UTC, Matthias Bentrup
wrote:
A branch-free version:
void popFront4(ref char[] s) @trusted pure nothrow {
immutable c =
On Tuesday, 11 October 2016 at 08:03:40 UTC, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 07:30:26 UTC, Matthias Bentrup
wrote:
A branch-free version:
void popFront4(ref char[] s) @trusted pure nothrow {
immutable c = s[0];
uint char_length = 1 + (c >= 192) + (c >= 240) + (c >= 248);
On Monday, 10 October 2016 at 23:26:53 UTC, Manu wrote:
I'm not sure why it matters what format the colour you have
is...
Strings are in the form #RRGGBB, or #AARRGGBB. That is all.
It's the standard I've seen used everywhere ever, including the
web,
which is a pretty good precedent :P
If
https://issues.dlang.org/show_bug.cgi?id=16607
Issue ID: 16607
Summary: [REG2.072b1] "forward reference" error with structs
nested in struct templates
Product: D
Version: D2
Hardware: All
OS: All
On Tuesday, 11 October 2016 at 07:30:26 UTC, Matthias Bentrup
wrote:
A branch-free version:
void popFront4(ref char[] s) @trusted pure nothrow {
immutable c = s[0];
uint char_length = 1 + (c >= 192) + (c >= 240) + (c >= 248);
s = s.ptr[char_length .. s.length];
}
Theoretically the
I get "Error: mismatched function return type inference" errors
with choosing the return type for functions that work on ranges
using, e.g, std.algorithm or std.range functions, but have
different behavior based on runtime values. The return type is
always a range with the same underlying
On Tuesday, 11 October 2016 at 04:05:47 UTC, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 03:58:59 UTC, Andrei
Alexandrescu wrote:
On 10/10/16 11:00 PM, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 02:48:22 UTC, Andrei
Alexandrescu wrote:
[...]
If you want to skip a byte it's easy
Am 09.10.2016 um 14:32 schrieb Kai Nacke:
Hi everyone,
LDC 1.1.0-beta3, the LLVM-based D compiler, is available for download!
This BETA release is based on the 2.071.2 frontend and standard library
and supports LLVM 3.5-3.9.
We provide binaries for Linux, OX X, FreeBSD, Win32 & Win64,
On Monday, 10 October 2016 at 09:18:16 UTC, Marc Schütz wrote:
On Saturday, 8 October 2016 at 22:48:53 UTC, vino wrote:
Hi,
Can some one guide me on how to implement the weighted round
robin, below is what i tried or any other better ways to do it
Main Requirement : Incoming socket
On Monday, 10 October 2016 at 19:50:53 UTC, vladdeSV wrote:
scone, Simple CONsole Engine, version 1.2.0 has just been
released!
https://github.com/vladdeSV/scone/releases/tag/v1.2.0
This version includes a restructure of the whole project
(should not affect applications), and the addition of
On Monday, 10 October 2016 at 18:21:10 UTC, Jonathan M Davis
wrote:
On Monday, October 10, 2016 17:57:15 Satoshi via
Digitalmars-d-learn wrote:
[...]
You can use the offsetof property of a member variable to find
out the offset between its address and the address of the
beginning of the
On Tuesday, 11 October 2016 at 01:37:55 UTC, Martin Nowak wrote:
On Saturday, 20 August 2016 at 13:45:11 UTC, Basile B. wrote:
"to MSI using innosetup" ?
There's a misunderstanding here. Inno setup doesn't compile to
MS installer, it's a complete independant solution.
Whatever makes more
On Tuesday, 11 October 2016 at 03:20:54 UTC, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 03:05:12 UTC, Nicholas Wilson
wrote:
Splitting this from the colour
thread(https://forum.dlang.org/thread/mailman.961.1475765646.2994.digitalmar...@puremagic.com?page=1).
[...]
This will bloat
94 matches
Mail list logo