final Tuple!(int,"value",bool,"hasValue") value(const
string name) { return nameImpl(value); }
Sorry, this is the error. It should have been
final Tuple!(int,"value",bool,"hasValue") value(const
string name) { return valueImpl(name); }
On Wednesday, 8 June 2016 at 15:52:06 UTC, ketmar wrote:
On Wednesday, 8 June 2016 at 15:40:48 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 8 June 2016 at 15:31:34 UTC, ketmar wrote:
i'm trying to hint that there is no reason to reimplement
*everything* in D. bad engineers reinvent, good
On Wednesday, 8 June 2016 at 16:23:13 UTC, Ola Fosheim Grøstad
wrote:
Yes, no point in writing your own forum software.
ah, sure, there was the reason to write DFeed! that's why
forum.dlang.org is using engine written in D.
On Wednesday, 8 June 2016 at 16:28:54 UTC, dewitt wrote:
On Wednesday, 8 June 2016 at 15:18:27 UTC, ketmar wrote:
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
People check out stuff like that. The forum backend also use
a standard NNTP server, not implemented in D?
On Wednesday, 8 June 2016 at 16:40:37 UTC, Ola Fosheim Grøstad
wrote:
DFeed is a NNTP client, not a NNTP server.
sure. why should it be an NNTP server? there is task to solve:
provide web frontend to the existing NNTP server. that task was
solved. there was no task "waste some time to
On Wednesday, 8 June 2016 at 16:53:32 UTC, ketmar wrote:
go write it! nope? why do you think that D devs should? they
have other work to do, it would be *stupid* to not reuse
existing tools.
If I thought that D was good for the purpose, I would. I have not
made such claims. I am pointing out
On Wednesday, 8 June 2016 at 14:43:35 UTC, Mike Parker wrote:
Really? I just don't see it as that big of a deal. Again, three
subdomains are using D right now. So it's not like it's not
being used at all. Moving the website to D just hasn't been a
priority (nor should it be, IMO). Anyone in
On Wednesday, 8 June 2016 at 14:57:11 UTC, Jonathan Marler wrote:
However, I think you have to consider the emotional impact of
this.
nodejs.org's homepage is served by nginx. D is general purpose,
node is specifically web.
Nobody seems to care (probably because using nginx is the
On Wednesday, 8 June 2016 at 14:45:58 UTC, Mike Parker wrote:
What does that have to do with the website? The forum software
is written in D and has a reputation for performance. This is
simply a matter of it not popping up on anyone's radar and has
nothing to do with the GC or performance
On Wednesday, 8 June 2016 at 15:18:27 UTC, ketmar wrote:
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
People check out stuff like that. The forum backend also use a
standard NNTP server, not implemented in D? That's ok too as
there is no D forum software...
it's even
On Wednesday, 8 June 2016 at 16:58:31 UTC, Ola Fosheim Grøstad
wrote:
This is very basic marketing 101.
engineers doesn't do marketing. engineers solving tasks.
On Wednesday, 8 June 2016 at 16:07:26 UTC, ketmar wrote:
On Wednesday, 8 June 2016 at 15:57:42 UTC, Ola Fosheim Grøstad
wrote:
Huh? No, as long as D is not backed by some giant like Google
or Apple it has to do its own marketing and showcase its own
stuff where it can.
the key words are
On Wednesday, 8 June 2016 at 13:32:00 UTC, Mike Parker wrote:
On Wednesday, 8 June 2016 at 13:13:07 UTC, Jonathan Marler
wrote:
I've decided to write a web application using vibe and was
shocked to see that dlang.org was using apache.
Should I be scared that even after this long, the official
On Tuesday, 7 June 2016 at 04:21:34 UTC, Mike Parker wrote:
On Tuesday, 7 June 2016 at 02:05:00 UTC, Seb wrote:
On Tuesday, 7 June 2016 at 01:40:01 UTC, your_name wrote:
The way I traced the problem, ironically ;), was to catch
Error and print it to screen.
It involved dereferencing a null
String is an alias for 'immutable(char)[]'.
I assume you meant const(char)[] instead of 'const string'?
P.S. always use parentheses.
On Wednesday, 8 June 2016 at 15:18:27 UTC, ketmar wrote:
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
People check out stuff like that. The forum backend also use a
standard NNTP server, not implemented in D? That's ok too as
there is no D forum software...
it's even
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 8 June 2016 at 14:45:58 UTC, Mike Parker wrote:
What does that have to do with the website? The forum software
is written in D and has a reputation for performance. This is
simply a matter of it not popping up
I have an immutable final class with methods with the following
signature
import std.typecons;
immutable class Base{
...
@safe pure nothrow
final Tuple!(int,"value",bool,"hasValue") value(const string
name) { return nameImpl(value); }
@safe pure nothrow
protected
On Wednesday, 8 June 2016 at 15:51:58 UTC, Adam D. Ruppe wrote:
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
The forum-index http header report:
Server:nginx/1.4.6 (Ubuntu)
People check out stuff like that.
Yeah, and that's an industry-standard production
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
The forum-index http header report:
Server:nginx/1.4.6 (Ubuntu)
People check out stuff like that.
Yeah, and that's an industry-standard production deployment.
But perhaps we should just change the server line for the
On Wednesday, 8 June 2016 at 15:40:48 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 8 June 2016 at 15:31:34 UTC, ketmar wrote:
i'm trying to hint that there is no reason to reimplement
*everything* in D. bad engineers reinvent, good engineers
reuse!
This is about marketing, not engineering.
On Wednesday, 8 June 2016 at 15:57:42 UTC, Ola Fosheim Grøstad
wrote:
Huh? No, as long as D is not backed by some giant like Google
or Apple it has to do its own marketing and showcase its own
stuff where it can.
the key words are "where it can". rewriting already working tools
(perfectly
On Wednesday, 8 June 2016 at 16:38:02 UTC, Ola Fosheim Grøstad
wrote:
They do of course use golang for their blog and make it
available as a download.
As they _should_.
google. money. does that rings the bell?
On Wednesday, 8 June 2016 at 16:36:50 UTC, ketmar wrote:
On Wednesday, 8 June 2016 at 16:23:13 UTC, Ola Fosheim Grøstad
wrote:
Yes, no point in writing your own forum software.
ah, sure, there was the reason to write DFeed! that's why
forum.dlang.org is using engine written in D.
DFeed is
On Wednesday, 8 June 2016 at 16:49:46 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 8 June 2016 at 16:44:00 UTC, ketmar wrote:
On Wednesday, 8 June 2016 at 16:38:02 UTC, Ola Fosheim Grøstad
wrote:
They do of course use golang for their blog and make it
available as a download.
As they
On Wednesday, 8 June 2016 at 16:44:00 UTC, ketmar wrote:
On Wednesday, 8 June 2016 at 16:38:02 UTC, Ola Fosheim Grøstad
wrote:
They do of course use golang for their blog and make it
available as a download.
As they _should_.
google. money. does that rings the bell?
No. The go blog
In a first implementation I defined a named enum in my class
which I could use with my template function foo.
final class Info {
...
enum Value { info_1 = 1, ... }
...
static bar(Value e) {...}
}
void foo(T)(T.Value e) { T.bar(e); }
I could then write :
On Wednesday, 8 June 2016 at 17:05:42 UTC, Jonathan Marler wrote:
I can picture the article now:
I can't. It is an industry-standard deployment with a commonly
used configuration option - people change that all the time. PHP,
for example, will modify it to output something like this:
On Wednesday, 8 June 2016 at 15:04:24 UTC, Adam D. Ruppe wrote:
On Wednesday, 8 June 2016 at 14:57:11 UTC, Jonathan Marler
wrote:
However, I think you have to consider the emotional impact of
this.
nodejs.org's homepage is served by nginx. D is general purpose,
node is specifically web.
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
People check out stuff like that. The forum backend also use a
standard NNTP server, not implemented in D? That's ok too as
there is no D forum software...
it's even more than that: D servers are using OS which is not
On Wednesday, 8 June 2016 at 15:31:34 UTC, ketmar wrote:
i'm trying to hint that there is no reason to reimplement
*everything* in D. bad engineers reinvent, good engineers reuse!
This is about marketing, not engineering.
Walter is arguing that vibe.d should be distributed with the
compiler.
On Wednesday, 8 June 2016 at 14:41:55 UTC, Ola Fosheim Grøstad
wrote:
But DMD also doesn't use the GC because it doesn't perform well
enough. Stuff like this adds up.
So I agree with you in essence, sending the message that there
are things to avoid is not good in the long run. It might
On Wednesday, 8 June 2016 at 15:23:58 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 8 June 2016 at 15:18:27 UTC, ketmar wrote:
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
People check out stuff like that. The forum backend also use
a standard NNTP server, not
On Wednesday, 8 June 2016 at 17:05:42 UTC, Jonathan Marler wrote:
On Wednesday, 8 June 2016 at 15:51:58 UTC, Adam D. Ruppe wrote:
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
The forum-index http header report:
Server:nginx/1.4.6 (Ubuntu)
People check out stuff like
On Wednesday, 8 June 2016 at 17:59:29 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 8 June 2016 at 17:43:23 UTC, dewitt wrote:
vibes website doesn't use a proxy.
Yes, but more people visit dlang.org, and it makes it more
official if it is showcased here as a visible part of the
website (one
On Wednesday, 8 June 2016 at 17:34:25 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 8 June 2016 at 17:17:37 UTC, Adam D. Ruppe wrote:
bother with a proper setup. There's a reason ALL the other
major languages and frameworks use Apache/nginx/IIS on their
websites. It's the recommended way to do
On Wednesday, 8 June 2016 at 17:05:42 UTC, Jonathan Marler wrote:
On Wednesday, 8 June 2016 at 15:51:58 UTC, Adam D. Ruppe wrote:
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
The forum-index http header report:
Server:nginx/1.4.6 (Ubuntu)
People check out stuff like
On Wednesday, 8 June 2016 at 17:34:25 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 8 June 2016 at 17:17:37 UTC, Adam D. Ruppe wrote:
bother with a proper setup. There's a reason ALL the other
major languages and frameworks use Apache/nginx/IIS on their
websites. It's the recommended way to do
On Wednesday, 8 June 2016 at 18:15:22 UTC, Seb wrote:
- good nosql interface
what's wrong with vibed's mongodb?
Probably nothing for those who use it. I only use:
https://cloud.google.com/datastore/
https://cloud.google.com/storage/
https://cloud.google.com/sql/
Amazon and Microsoft have
On Wednesday, 8 June 2016 at 14:41:55 UTC, Ola Fosheim Grøstad
wrote:
[snip]
I like the "are we fast yet" websites that various project put
up, displaying improvements over time.
You mean like this? http://digger.k3.1azy.net/trend/
On Wednesday, 8 June 2016 at 16:58:42 UTC, Mike Parker wrote:
At any rate, we *are* using our own tech in several places. And
I think Seb has shown that in practice, it probably isn't that
big a deal that the entire website isn't served by a D project.
If you want to convince me, as a backend
On Wednesday, 8 June 2016 at 17:25:32 UTC, Brad Anderson wrote:
On Wednesday, 8 June 2016 at 14:41:55 UTC, Ola Fosheim Grøstad
wrote:
[snip]
I like the "are we fast yet" websites that various project put
up, displaying improvements over time.
You mean like this?
On Wednesday, 8 June 2016 at 17:43:23 UTC, dewitt wrote:
vibes website doesn't use a proxy.
Yes, but more people visit dlang.org, and it makes it more
official if it is showcased here as a visible part of the website
(one way or another).
But if D wants to compete in web then there are
On Wednesday, 8 June 2016 at 17:17:37 UTC, Adam D. Ruppe wrote:
bother with a proper setup. There's a reason ALL the other
major languages and frameworks use Apache/nginx/IIS on their
websites. It's the recommended way to do it.
Sure, you can have vibe.d behind nginx, if you want to, but it
On Wednesday, 8 June 2016 at 17:43:03 UTC, Seb wrote:
On Wednesday, 8 June 2016 at 17:05:42 UTC, Jonathan Marler
wrote:
On Wednesday, 8 June 2016 at 15:51:58 UTC, Adam D. Ruppe wrote:
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim
Grøstad wrote:
The forum-index http header report:
On Wednesday, 8 June 2016 at 17:50:11 UTC, Seb wrote:
I agree that a showcase website for vibed (or another D web
framework) would be beneficial, but a real showcase has totally
different specs:
- > 1 million visitors per day
- highly dynamic content (high-throughput databases)
- solved
On 06/08/2016 10:02 AM, chmike wrote:
In a first implementation I defined a named enum in my class which I
could use with my template function foo.
final class Info {
...
enum Value { info_1 = 1, ... }
...
static bar(Value e) {...}
}
void foo(T)(T.Value e) { T.bar(e); }
I do have (Steinberg) ASIO binding in D.
The problem is I couldn't release the bindings. I've asked Steinberg
if it was OK to release D bindings and they were strongly against it
unfortunately (and this was over 3 years ago..).
Any kind of direct use of ASIO requires their approval first..
I've decided to write a web application using vibe and was
shocked to see that dlang.org was using apache.
Should I be scared that even after this long, the official D
website doesn't rely on its own web tools?
On Wednesday, 8 June 2016 at 13:13:07 UTC, Jonathan Marler wrote:
I've decided to write a web application using vibe and was
shocked to see that dlang.org was using apache.
Should I be scared that even after this long, the official D
website doesn't rely on its own web tools?
No, you
On 09/06/2016 1:13 AM, Jonathan Marler wrote:
I've decided to write a web application using vibe and was shocked to
see that dlang.org was using apache.
Should I be scared that even after this long, the official D website
doesn't rely on its own web tools?
Why would we change over when Apache
Hi,
I personally separate OS-specific implementations in modules with
the same name, in different directories. From the filesystem
perspective:
widget.d
linux/widgetimpl.d
windows/widgetimpl.d
From the code perspective, the *impl modules would present
homonymic types with the same public
I know there are easy ways to handle this,
anyone with a code snippet for me?
I would use two regex first to make 01,02,03... from Jan,Feb,..
and
second to split the result.
best regards mt.
On Wednesday, 8 June 2016 at 10:42:19 UTC, Martin Tschierschke
wrote:
I know there are easy ways to handle this,
anyone with a code snippet for me?
I found this solution, letting the MySQL engine do the work:
SELECT STR_TO_DATE('26/Apr/2011:13:21:58', '%d/%b/%Y:%H:%i:%S');
On Thursday, 9 June 2016 at 04:57:30 UTC, Jonathan Marler wrote:
I've googled and searched through the forums but haven't found
too much on how fibers are implemented. How does yield return
execution to the caller but then resume execution in the same
place on the next call? Also some
On Thursday, 9 June 2016 at 05:07:33 UTC, Nikolay wrote:
On Thursday, 9 June 2016 at 04:57:30 UTC, Jonathan Marler wrote:
I've googled and searched through the forums but haven't found
too much on how fibers are implemented. How does yield return
execution to the caller but then resume
On Tuesday, 7 June 2016 at 22:17:03 UTC, ag0aep6g wrote:
You don't specify the types of the parameters of the function
literals, so you effectively have templates there. As such the
literals have no types, and can't be passed as arguments.
Yeah, I see that now. The compiler does have all the
On Thursday, 9 June 2016 at 05:20:46 UTC, cy wrote:
On Tuesday, 7 June 2016 at 22:17:03 UTC, ag0aep6g wrote:
You don't specify the types of the parameters of the function
literals, so you effectively have templates there. As such the
literals have no types, and can't be passed as arguments.
On Wednesday, 8 June 2016 at 23:19:13 UTC, Andrej Mitrovic wrote:
I do have (Steinberg) ASIO binding in D.
The problem is I couldn't release the bindings. I've asked
Steinberg if it was OK to release D bindings and they were
strongly against it unfortunately (and this was over 3 years
I've googled and searched through the forums but haven't found
too much on how fibers are implemented. How does yield return
execution to the caller but then resume execution in the same
place on the next call? Also some information on how the fiber
call stack works would be nice. I'm
On Wednesday, 8 June 2016 at 13:13:07 UTC, Jonathan Marler wrote:
I've decided to write a web application using vibe and was
shocked to see that dlang.org was using apache.
It is very common for real world web apps to run behind Apache,
nginx, IIS, or another major production server.
These
On Wednesday, 8 June 2016 at 13:32:00 UTC, Mike Parker wrote:
Why would we change over when Apache is working quite happily
to serve up static content?
I've heard that same argument as the reason people don't use the
D language. Why would I change over to D when C/C++ is working
quite
On Wednesday, 8 June 2016 at 14:30:53 UTC, Adam D. Ruppe wrote:
These servers tend to be very efficient at front end tasks like
load balancing, static file serving and cache management,
standards compliance (including automatically up/down grading
HTTP versions or TLS requirements),
On 6/8/16 10:33 AM, Jonathan Marler wrote:
On Wednesday, 8 June 2016 at 13:32:00 UTC, Mike Parker wrote:
Why would we change over when Apache is working quite happily to serve
up static content?
I've heard that same argument as the reason people don't use the D
language. Why would I change
On Wednesday, 8 June 2016 at 14:33:50 UTC, Jonathan Marler wrote:
On Wednesday, 8 June 2016 at 13:32:00 UTC, Mike Parker wrote:
Why would we change over when Apache is working quite happily
to serve up static content?
I didn't say that. Rikki did :)
If the official D website doesn't feel
On Wednesday, 8 June 2016 at 14:33:50 UTC, Jonathan Marler wrote:
On Wednesday, 8 June 2016 at 13:32:00 UTC, Mike Parker wrote:
Why would we change over when Apache is working quite happily
to serve up static content?
I've heard that same argument as the reason people don't use
the D
66 matches
Mail list logo