Here are the specifications of token strings:
"Token strings open with the characters q{ and close with the
token }. In between must be valid D tokens. The { and }"
So we can deduce that any invalid D token inside a token string
will lead to a compilation error. Indeed:
void main()
{
I found http://arsdnet.net/this-week-in-d/2016-aug-07.html
Maybe it's helps me.
On 10/27/16 3:59 AM, Ilya Yaroshenko wrote:
Mir GLAS (Generic Linear Algebra Subprograms) has its own repository [1]
now.
Big news:
1. Mir GLAS does not require D / C++ runtime and can be used in any
programming language as common C library! See read README [1] for more
details.
Cool work!
On Friday, 28 October 2016 at 03:38:05 UTC, dm wrote:
On Thursday, 27 October 2016 at 13:37:29 UTC, Steven
Schveighoffer wrote:
Hm... what about:
...
Main thread still running.
Actually it's depends on compiler.
With ldc2 main thread doesn't stop, but with dmd seems all ok:
On Friday, 28 October 2016 at 03:33:33 UTC, Basile B. wrote:
On Thursday, 27 October 2016 at 14:04:23 UTC, Gianni Pisetta
wrote:
So i searched for a metod to check if an alias is a literal
value, but found nothing. Anyone have any clue on how can be
done?
Thanks,
Gianni Pisetta
Hello, I
On Thursday, 27 October 2016 at 13:37:29 UTC, Steven
Schveighoffer wrote:
Hm... what about:
...
Main thread still running.
On Thursday, 27 October 2016 at 14:04:23 UTC, Gianni Pisetta
wrote:
Hi all,
I have an AliasSeq composed of literal strings, variables and
delegates. I want to build a template Optimize that will return
an AliasSeq that have all adjacent literals concatenated into
one. So i writed something
On Thursday, 27 October 2016 at 22:24:57 UTC, Temtaime wrote:
On Thursday, 27 October 2016 at 19:49:16 UTC, Ali Çehreli wrote:
[...]
You create some complicated template function and then compiler
show you an ICE.
You shoot yourself in a tuple containing your foot, boot and sock.
On Thursday, 27 October 2016 at 23:49:49 UTC, deadalnix wrote:
On Thursday, 27 October 2016 at 05:25:49 UTC, Stefan Koch wrote:
https://github.com/dlang/dmd/pull/6215
PR is open.
Pending review and merge.
Although if you ask me this is a no-brainer.
It's now merged, thanks Stefan.
No
On Thursday, 27 October 2016 at 05:25:49 UTC, Stefan Koch wrote:
On Thursday, 27 October 2016 at 05:15:26 UTC, deadalnix wrote:
On Thursday, 27 October 2016 at 04:41:38 UTC, Stefan Koch
wrote:
On Thursday, 27 October 2016 at 04:39:03 UTC, mogu wrote:
On Thursday, 27 October 2016 at 04:33:30
On Thursday, 27 October 2016 at 22:17:35 UTC, WhatMeWorry wrote:
I'm using Derelict GLFW3 and I found the following GLFW3 code
snippet in a demo.
In a small demo, crap like this usually isn't a big deal.
It's not common practice, though, and for good reason. You should
definitely avoid
On Thursday, 27 October 2016 at 19:49:16 UTC, Ali Çehreli wrote:
http://www.toodarkpark.org/computers/humor/shoot-self-in-foot.html
Some entries for reference:
C
- You shoot yourself in the foot.
- You shoot yourself in the foot and then nobody else can
figure out what you did.
C++
-
On 10/27/2016 03:07 PM, Idan Arye wrote:
> On Thursday, 27 October 2016 at 19:49:16 UTC, Ali Çehreli wrote:
>>
>> http://www.toodarkpark.org/computers/humor/shoot-self-in-foot.html
> You conceive a baby which is born with a bullet genetically shot in the
> foot
Like others, this one is very
I'm using Derelict GLFW3 and I found the following GLFW3 code
snippet in a demo.
float distance = 3.0;
extern(C) void key_callback(GLFWwindow* window, int key, int
scancode, int action, int modifier) nothrow
{
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
{
On Thursday, 27 October 2016 at 13:43:26 UTC, Steven
Schveighoffer wrote:
It depends on the size of the file and the expectation of
duplicate words. I'm assuming the number of words is limited,
so you are going to allocate far less data by duping on demand.
In addition, you may incur penalties
On Thursday, 27 October 2016 at 19:49:16 UTC, Ali Çehreli wrote:
http://www.toodarkpark.org/computers/humor/shoot-self-in-foot.html
Some entries for reference:
C
- You shoot yourself in the foot.
- You shoot yourself in the foot and then nobody else can
figure out what you did.
C++
-
On 10/26/2016 07:34 PM, Stefam Koch wrote:
Your user name presumably on the forum in a browser tab has "m"orphed. :)
Ali
Yeah, I let it expire since it's been several years since it was used for anything other than
redirecting a couple urls to their real homes.
On 10/26/16 9:24 PM, deadalnix via Digitalmars-d wrote:
The title says it all. The certificate for
https://d.puremagic.com/issues/
is expired.
On Thursday, 27 October 2016 at 19:49:16 UTC, Ali Çehreli wrote:
http://www.toodarkpark.org/computers/humor/shoot-self-in-foot.html
Some entries for reference:
C
- You shoot yourself in the foot.
- You shoot yourself in the foot and then nobody else can
figure out what you did.
C++
-
On 10/26/2016 12:59 PM, Ilya Yaroshenko wrote:
Mir GLAS (Generic Linear Algebra Subprograms)
Ilya is giving a talk in about 5 hours on D runtime infrastructure which
Mir GLAS is a proof of concept of:
http://forum.dlang.org/thread/nu8qq8$2i1a$1...@digitalmars.com
Ali
On Thursday, 27 October 2016 at 19:59:09 UTC, Steven
Schveighoffer wrote:
On 10/27/16 3:49 PM, Ali Çehreli wrote:
http://www.toodarkpark.org/computers/humor/shoot-self-in-foot.html
Some entries for reference:
C
- You shoot yourself in the foot.
- You shoot yourself in the foot and then
On Thursday, 27 October 2016 at 19:59:09 UTC, Steven
Schveighoffer wrote:
You create a large meta-template library called footMassage,
which then ends up via compiler inference compiling into a gun
instead.
Accidentally compiling a massage into a gun is not a high
priority bug. In order to
On Thursday, 27 October 2016 at 19:59:09 UTC, Steven
Schveighoffer wrote:
On 10/27/16 3:49 PM, Ali Çehreli wrote:
[...]
You create a large meta-template library called footMassage,
which then ends up via compiler inference compiling into a gun
instead.
-Steve
Then the GC kicks in and
On 10/27/2016 12:59 PM, Steven Schveighoffer wrote:
> You create a large meta-template library called footMassage, which then
> ends up via compiler inference compiling into a gun instead.
The first thing that came to my mind was a template-generated gun as
well. :)
Ali
On 10/27/16 3:49 PM, Ali Çehreli wrote:
http://www.toodarkpark.org/computers/humor/shoot-self-in-foot.html
Some entries for reference:
C
- You shoot yourself in the foot.
- You shoot yourself in the foot and then nobody else can figure out
what you did.
C++
- You accidentally create a
http://www.toodarkpark.org/computers/humor/shoot-self-in-foot.html
Some entries for reference:
C
- You shoot yourself in the foot.
- You shoot yourself in the foot and then nobody else can figure out
what you did.
C++
- You accidentally create a dozen instances of yourself and shoot them
I admit that I can't come up with a solution right now. I hope others
can see a way out of what I describe below. :-/
On 10/27/2016 11:33 AM, pontius wrote:
> On Wednesday, 26 October 2016 at 18:19:33 UTC, Ali Çehreli wrote:
>> There are different approaches but I think the solution above
Dne 27.10.2016 v 20:54 Jot via Digitalmars-d-learn napsal(a):
Using Vibe.D here;
How can one work with the DB's abstractly without incurring duplicity.
I'd like to be able to create one struct and use that, either in D or
the DB. I'd prefer to create a struct in D and interact through that
Using Vibe.D here;
How can one work with the DB's abstractly without incurring
duplicity. I'd like to be able to create one struct and use that,
either in D or the DB. I'd prefer to create a struct in D and
interact through that struct with the database abstracted away.
struct Person
{
On Thursday, 27 October 2016 at 18:47:07 UTC, Adam D. Ruppe wrote:
It is the same content, generated at the same time, just laid
out differently.
You can use whichever you find easier.
Thanks, Adam.
On Thursday, 27 October 2016 at 18:44:00 UTC, A D dev wrote:
I viewed the above two pages and the content seems roughly the
same.
It is the same content, generated at the same time, just laid out
differently.
You can use whichever you find easier.
Hi list,
What is the difference between pages under dlang.org/phobos and
dlang.org/library?
And when should we use which, as a reference?
E.g.
https://dlang.org/phobos/std_zip.html
https://dlang.org/library/std/zip.html
I viewed the above two pages and the content seems roughly the
same.
On Wednesday, 26 October 2016 at 18:19:33 UTC, Ali Çehreli wrote:
There are different approaches but I think the solution above
achieves what you want:
DefaultManager!(A) is managing an object of A
DefaultManager!(B) is managing an object of B
SomeCustomManager is managing an object of C
Ali
On 10/27/16 9:09 AM, Steven Schveighoffer wrote:
On 10/26/16 1:24 AM, deadalnix wrote:
Seriously that makes no sense, almost everybody has it own hack to have
a different main when building for unitests, and we look like clown.
We all like to talk about language feature and all, but seriously,
On 10/27/2016 02:22 AM, Joakim wrote:
1. low-level compiled languages like C++, D, Rust, and Swift, meant for
performance and usually experts who want to squeeze it out
2. mid-level bytecode languages like Java and C#, meant for the vast
middle of day-to-day programmers to crank out libraries
A dynamic array looks something kind of like this:
struct DynamicArray(T)
{
size_t length;
T* ptr;
}
So, if you take the address of a dynamic array, you're
basically taking the address of a struct on the stack, whereas
the address in ptr is the address in memory where the data is
(be
On 10/27/2016 02:43 AM, Sebastien Alaiwan wrote:
From the article:
Surprise: C++ without optimizations is the fastest! A few other
surprises: Rust also seems quite competitive here. D starts out
comparatively slow."
These benchmarks seem to support the idea that it's not the parsing
which
On Thursday, 27 October 2016 at 16:14:03 UTC, Dicebot wrote:
On 10/27/2016 07:12 PM, Laeeth Isharc wrote:
On Thursday, 27 October 2016 at 16:01:26 UTC, Chris wrote:
On Thursday, 27 October 2016 at 15:54:59 UTC, Jonathan M
Davis wrote:
On Thursday, October 27, 2016 15:42:53 Chris via
On Thursday, October 27, 2016 16:13:34 David via Digitalmars-d-learn wrote:
> Hi
>
> The pointer (.ptr) of an array is the address of the first array
> element. But what exactly is the address of the array? And how is
> it used?
>
>auto myArray = [5, 10, 15, 20, 25, 30, 35];
>
On Thursday, 27 October 2016 at 16:13:34 UTC, David wrote:
Hi
The pointer (.ptr) of an array is the address of the first
array element. But what exactly is the address of the array?
And how is it used?
auto myArray = [5, 10, 15, 20, 25, 30, 35];
writeln("myArray.ptr: ", myArray.ptr); //
On 10/27/2016 07:12 PM, Laeeth Isharc wrote:
> On Thursday, 27 October 2016 at 16:01:26 UTC, Chris wrote:
>> On Thursday, 27 October 2016 at 15:54:59 UTC, Jonathan M Davis wrote:
>>> On Thursday, October 27, 2016 15:42:53 Chris via Digitalmars-d wrote:
Not easy to be smart with Javascript ;)
On Thursday, 27 October 2016 at 16:01:26 UTC, Chris wrote:
On Thursday, 27 October 2016 at 15:54:59 UTC, Jonathan M Davis
wrote:
On Thursday, October 27, 2016 15:42:53 Chris via Digitalmars-d
wrote:
Not easy to be smart with Javascript ;)
Sure, it is. Avoid it. ;)
- Jonathan M Davis
I
On Thursday, 27 October 2016 at 15:54:59 UTC, Jonathan M Davis
wrote:
On Thursday, October 27, 2016 15:42:53 Chris via Digitalmars-d
wrote:
Not easy to be smart with Javascript ;)
Sure, it is. Avoid it. ;)
- Jonathan M Davis
I wish I could! I wish we had DScript for browsers!
On Thursday, October 27, 2016 15:42:53 Chris via Digitalmars-d wrote:
> Not easy to be smart with Javascript ;)
Sure, it is. Avoid it. ;)
- Jonathan M Davis
On Tuesday, 25 October 2016 at 22:53:54 UTC, Walter Bright wrote:
It's a small bit, but the idea here is to eliminate if
conditionals where possible:
https://medium.com/@bartobri/applying-the-linus-tarvolds-good-taste-coding-requirement-99749f37684a#.nhth1eo4e
Dunno, I wouldn't expect an
On Thursday, 27 October 2016 at 14:54:59 UTC, Idan Arye wrote:
I'd like to point to Joel Spolsky excellent article "Five
Worlds" - http://www.joelonsoftware.com/articles/FiveWorlds.html
TL;DR: Joel Spolsky argues that different types("worlds") of
developments require different qualities and
On Thursday, 27 October 2016 at 14:45:22 UTC, Gianni Pisetta
wrote:
On Thursday, 27 October 2016 at 14:34:38 UTC, TheFlyingFiddle
wrote:
On Thursday, 27 October 2016 at 14:04:23 UTC, Gianni Pisetta
wrote:
Hi all,
but at the moment isStringLiteral will return true even with
variables of type
On Tuesday, 25 October 2016 at 22:53:54 UTC, Walter Bright wrote:
It's a small bit, but the idea here is to eliminate if
conditionals where possible:
https://medium.com/@bartobri/applying-the-linus-tarvolds-good-taste-coding-requirement-99749f37684a#.nhth1eo4e
This is something we could all
On Thursday, 27 October 2016 at 14:34:38 UTC, TheFlyingFiddle
wrote:
On Thursday, 27 October 2016 at 14:04:23 UTC, Gianni Pisetta
wrote:
Hi all,
but at the moment isStringLiteral will return true even with
variables of type string. So i searched for a metod to check
if an alias is a literal
On 10/27/2016 11:24 AM, qznc wrote:
> I'm unsure about Linus' version. For this example, I agree that it is
> elegant. It is fine in this specific case, because everything is local
> within a single function. In general, the trick to use a pointer to the
> element probably not a good idea.
>
>
Hi all,
I have an AliasSeq composed of literal strings, variables and
delegates. I want to build a template Optimize that will return
an AliasSeq that have all adjacent literals concatenated into
one. So i writed something like this:
template isStringLiteral(alias V) {
enum bool
On 10/27/16 2:40 AM, Era Scarecrow wrote:
On Tuesday, 25 October 2016 at 14:40:17 UTC, Steven Schveighoffer wrote:
I will note, that in addition to the other comments, this is going to
result in corruption. Simply put, the buffer that 'line' uses is
reused for each line. So the string data used
On 10/26/16 1:24 AM, deadalnix wrote:
Seriously that makes no sense, almost everybody has it own hack to have
a different main when building for unitests, and we look like clown.
We all like to talk about language feature and all, but seriously, this
kind of thing is what hurts us the most. We
On Thursday, 27 October 2016 at 06:43:15 UTC, Sebastien Alaiwan
wrote:
From the article:
Surprise: C++ without optimizations is the fastest! A few
other surprises: Rust also seems quite competitive here. D
starts out comparatively slow."
These benchmarks seem to support the idea that it's
https://issues.dlang.org/show_bug.cgi?id=16574
--- Comment #16 from Martin Nowak ---
Seems like the base classes symtab is empty or corrupted even though it's set
to BASEOKsemanticdone.
--
On Sunday, October 23, 2016 19:20:43 e-y-e via Digitalmars-d-learn wrote:
> On this topic, do you think a 'cumulativeSum' specialisation
> based on the 'sum' specialisation be welcome in phobos? Here's a
> quick prototype, obviously not library standard but the basic
> logic is there:
>
https://issues.dlang.org/show_bug.cgi?id=16607
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/b295ff509a52cd332d975014279ed891e11f465d
fix Issue 16607 - forward reference error for nested struct
https://issues.dlang.org/show_bug.cgi?id=16642
--- Comment #1 from Jonathan M Davis ---
https://github.com/dlang/phobos/pull/4879
--
On Thursday, 27 October 2016 at 08:24:54 UTC, qznc wrote:
On Wednesday, 26 October 2016 at 09:54:31 UTC, Dicebot wrote:
On 10/26/2016 12:53 AM, Walter Bright wrote:
It's a small bit, but the idea here is to eliminate if
conditionals where possible:
On Wednesday, 26 October 2016 at 09:54:31 UTC, Dicebot wrote:
On 10/26/2016 12:53 AM, Walter Bright wrote:
It's a small bit, but the idea here is to eliminate if
conditionals where possible:
https://issues.dlang.org/show_bug.cgi?id=16642
Issue ID: 16642
Summary: byCodeUnit doesn't work AutodecodableStrings unless
they're actually strings or alias a variable that's a
string
Product: D
Version: D2
On Wednesday, 26 October 2016 at 08:18:07 UTC, hardreset wrote:
Is there a page somewhere on how to program D without using the
GC?
The information is scattered.
How do I allocate / free structs / classes on the heap manually?
Classes =>
On Wednesday, 19 October 2016 at 22:07:04 UTC, Ali Çehreli wrote:
We're excited to have Ilya as our guest speaker this month!
From Ilya: I will talk about the future D runtime
infrastructure which is required for D ecosystem to be
desirable for business in large scale. A concept I would like
On Wednesday, 19 October 2016 at 17:05:18 UTC, Gary Willoughby
wrote:
This was posted on twitter a while ago:
Comparing compilation time of random code in C++, D, Go, Pascal
and Rust
http://imgur.com/a/jQUav
Very interesting, thanks for sharing!
From the article:
Surprise: C++ without
On Thursday, 27 October 2016 at 06:22:03 UTC, Joakim wrote:
I noticed that Richard Gabriel, one of the designers of Common
Lisp, is on the committee for the new conference
that Andrei mentioned here, so I went back and checked out his
website again: http://dreamsongs.com. I mentioned his
I noticed that Richard Gabriel, one of the designers of Common
Lisp, is on the committee for the new conference
that Andrei mentioned here, so I went back and checked out his
website again: http://dreamsongs.com. I mentioned his famous
"Worse is better" essay here a couple years ago:
On Thursday, 22 September 2016 at 05:48:42 UTC, Vadim Lopatin
wrote:
On Sunday, 18 September 2016 at 23:21:26 UTC, Gerald wrote:
I would like to suggest that the existing DWT forum be renamed
or replaced with a more generic GUIs forum. As far as I can
tell, the DWT forum doesn't get much
67 matches
Mail list logo