Re: D Language Foundation Monthly Meeting Summary for November 2022

2023-01-13 Thread Daniel Kozak via Digitalmars-d-announce
Dne čt 12. 1. 2023 12:51 uživatel Mike Parker

> ...
> Next, Razvan reported he had been looking at a PR to implement
> the `throw` attribute for functions. The problem with it was that
> it potentially breaks code that uses the `getAttributes` trait
> when testing for the presence of `nothrow`. Walter said that the
> compiler internally should just view `throw` as the absence of
> `nothrow` rather than as a separate attribute. Its only purpose
> is to turn `nothrow` off, so ideally code using `getAttributes`
> shouldn't need to change at all. It's not like
> `@safe`/`@trusted`/`@system`, which is a tri-state. With the
> binary `nothrow`/`throw` state, you only need to care if a
> function is `nothrow` or not. Martin agreed.
>
> With that, Andrei brought up past debates about `attribute(true)`
> and `attribute(false)`. Walter finds that syntax clunky. It was
> easy to use `throw` to turn off `nothrow` since it's already a
> keyword. Petar brought up `pure` and `@nogc`. This led to a long
> discussion about attribute algebra, attribute soup, negative and
> positive attributes for disabling each other, attribute
> inference, circular dependencies, and tangential topics. Finally,
> Dennis gave his perspective and mentioned another proposal that
> had come up in the past: using the `default` keyword to establish
> a default set of attributes for non-templated, unannotated
> functions, which could be used to "reset" the attribute state of
> any function. Walter thought that `default` to reset state is a
> great idea, and that we should think about that before


https://wiki.dlang.org/DIP79


Re: Our community seems to have grown, so many people are joining the Facebook group

2020-12-28 Thread Daniel Kozak via Digitalmars-d-announce
On Mon, Dec 28, 2020 at 11:45 PM Ali Çehreli via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On 12/28/20 9:31 AM, Murilo wrote:
>
>  > they thought a Facebook group was unnecessary,
>
> Not only unnecessary but divisive as well. For example, because I will
> never have a Facebook account I would never be a part of that group. So,
> can the open source community be a part of Facebook groups *without* a
> Facebook account? Even if the groups would be open to the public, why
> would advertisements be a part of a D group? (I don't want to go more
> off-topic here but I would love to discuss Facebook over your favorite
> drink.)
>
>  > but what is the biggest social media in the world? Facebook!
>
> Good for them. :)
>
> Ali


+1

I am part of a nonprofit organization (some kind of admin for my village)
which provides internet access in my town(village) and  until a few months
ago there was a page (official page of our organization) which works for
all of our members even when there has been some issue with connectivity.
Ok if the issue has been between member and organization servers it would
not work, but still work in other cases or I have been able to find out
what is wrong just by looking at that page. But now they have published
all internet outages on facebook page, so I am not aware of them. And even
all my mates from the village who do not have another internet provider.

Other issue is they have some events (I always have been part of all events
before), but because those events now are on facebook it is really hard to
me to participate

So from my point of view FB is the worst thing for community or
organization in some cases.


Re: HTTP frameworks benchmark focused on D libraries

2020-09-28 Thread Daniel Kozak via Digitalmars-d-announce
On Sun, Sep 27, 2020 at 12:10 PM tchaloupka via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> ...
> Some results are a bit surprising, ie that even with 10 runs
> there are tests that are faster than C/dlang raw tests - as they
> should be at the top because they really don't do anything with
> HTTP handling.. And eventcore/fibers to beat raw C epoll loop
> with fibers overhead? It just seems odd..
>  ...


I do not see TCP_NODELAY anywhere in your code for raw tests, so maybe you
should try that


Re: Rationale for accepting DIP 1028 as is

2020-05-28 Thread Daniel Kozak via Digitalmars-d-announce
On Thu, May 28, 2020 at 4:56 AM Jonathan M Davis via
Digitalmars-d-announce  wrote:
>
> As far as I can tell, Walter understands the issues but fundamentally
> disagrees with pretty much everyone else on the issue.

I do not think so, the issue is, that there could be more people who
agree with Walter (like me),
but because we agree we do not participate.

> He seems to think
> that weakening @safe is worth doing, because it will ultimately mean that
> more code will be treated as @safe and mechnically checked by the compiler,

And I believe he is right.

> whereas most everyone else thinks that weakening @safe is unacceptable.

You make bad assumptions, who is "most everyone else"? I have only see
few  members of dlang arguing about that. But there is much bigger
community around there.

> But since Walter managed to convince Atila, the DIP has been accepted.
>
> - Jonathan M Davis
>

So everything is OK right?


Re: during: a io_uring wrapper library

2019-12-09 Thread Daniel Kozak via Digitalmars-d-announce

On Sunday, 8 December 2019 at 10:35:24 UTC, tchaloupka wrote:
As of Linux kernel 5.1 new promissing io_uring interface was 
introduced (see introduction document 
https://kernel.dk/io_uring.pdf).


During[1] is a low level wrapper directly around Linux


https://bitbucket.org/kozzi11/during_io/src/master/




Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-05 Thread Daniel Kozak via Digitalmars-d-announce
On Tue, Nov 5, 2019 at 12:05 PM Dejan Lekic via Digitalmars-d-announce
 wrote:
>
> On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote:
> > Hi all,
> > Recently there have been inquiries about support for D on
> > Alpine Linux, a distribution mostly used in combination with
> > Docker to create lightweight container images for microservices.
> >
> > At BPF Korea, we're working on a blockchain written in D, and
> > wanted to be able to easily test and distribute our node using
> > Alpine images, but there was no package for it yet.
>
> I am confused... Why do you need LDC, DMD, dub, etc on Alpine?
> Can't you build it anywhere and just put the final artifact (or
> set of artifacts) inside an Alpine-based container?

Generally no, because Apline use musl libc instead of glibc, so there
are some issues with that


Re: D code running on the Nintendo 3DS

2019-10-21 Thread Daniel Kozak via Digitalmars-d-announce
On Sun, Oct 20, 2019 at 11:40 PM TheGag96 via Digitalmars-d-announce
 wrote:
>
> On Sunday, 20 October 2019 at 20:31:04 UTC, Johan wrote:
> > (snip)
>
> Awesome, I just might try to get LDC working with this...
>
> ...
> ...in order to fit the D naming style, since the semantics for
> the enum was changing anyway. But of course, every struct must
> keep its old name... Is this alright? Should I add aliases for
> every struct for a better naming style, or maybe go back on my
> decision before, or...?

If it is binding you should probably let it same as original code. I
always try to make bindings as same as possible. It is much easier
port existing code in original language. If I want to change interface
or anything I made a new wrapper around that binding


Re: Release D 2.088.0

2019-09-03 Thread Daniel Kozak via Digitalmars-d-announce
On Tue, Sep 3, 2019 at 10:48 AM Manu via Digitalmars-d-announce
 wrote:
>
> On Tue., 3 Sep. 2019, 1:00 am Martin Nowak via Digitalmars-d-announce, 
>  wrote:
>>
>> Glad to announce D 2.088.0, ♥ to the 58 contributors.
>>
>> This release comes with a new getLocation trait, a getAvailableDiskSpace
>> in std.file, removal and deprecation of lots of various outdated APIs,
>> an core.atomic.cas with result value, and a couple of more changes.
>>
>> http://dlang.org/download.html
>> http://dlang.org/changelog/2.088.0.html
>>
>> -Martin
>
>
> Huzzah!
>
> I like to think std::string and std::vector are a pretty big deal too ;)

It will be as soon as gcc with new ABI will be supported ;-)



Re: Intellij: Support for TextMate Bundled

2019-07-25 Thread Daniel Kozak via Digitalmars-d-announce
On Thu, Jul 25, 2019 at 8:50 PM bachmeier via Digitalmars-d-announce
 wrote:
> Curious if there are a lot of D programmers using IntelliJ. It's
> $500 just for the first year.

Thats not true. I have all products pack (include idea, clion,
pystorm, phpstorm ...) and I am paying something like $200 per year.


Re: Blog post: What D got wrong

2018-12-20 Thread Daniel Kozak via Digitalmars-d-announce
default(attributes..) is no needed. You can already do this by:

pure @safe:
// your code

But what is needed is some way to disable those attributes.  As you
mentioned  one way could be done by allowing this:

pure(false)  or pure!false or @disable(pure,@nogc...)

>From implementation point of view it is not hard.  I have already
implemented this before. I have even write some old DIP. But there is new
DIP process so someone need to write a new one and need to be able to get
it throw new DIP process. And I do not feel I have enough strength to do
this right now.

čt 20. 12. 2018 8:50 odesílatel Dgame via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> napsal:

> On Thursday, 13 December 2018 at 18:29:39 UTC, Adam D. Ruppe
> wrote:
> > The attribute spam is almost longer than the function itself.
>
> I often wished for something like
>
> 
> module foo.bar;
>
> default(@safe, pure);
>
> function foo() { } // is annotated with @safe & pure
>
> @deny(pure) // or pure(false) as I suggested a long time ago
> function bar() { } // is annotated only with @safe
> 
>
> That would IMO lighten the burden.
>


Re: Blog post: What D got wrong

2018-12-11 Thread Daniel Kozak via Digitalmars-d-announce
On Tue, Dec 11, 2018 at 11:50 AM Atila Neves via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> A few things that have annoyed me about writing D lately:
>
> https://atilanevesoncode.wordpress.com/2018/12/11/what-d-got-wrong/


Eponymous templates - workaround

https://run.dlang.io/is/qIvcVH


Re: D compilation is too slow and I am forking the compiler

2018-11-21 Thread Daniel Kozak via Digitalmars-d-announce
I would say opposite :)

On Wed, Nov 21, 2018 at 9:55 PM Walter Bright via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On 11/21/2018 5:55 AM, Guillaume Piolat wrote:
> > On Wednesday, 21 November 2018 at 11:18:22 UTC, Nicholas Wilson wrote:
> >> On Wednesday, 21 November 2018 at 08:07:52 UTC, Vladimir Panteleev
> wrote:
> >>>
> https://blog.thecybershadow.net/2018/11/18/d-compilation-is-too-slow-and-i-am-forking-the-compiler/
> >>>
> >>
> >> This is #2 on HN at the moment.
> >
> > I would be wary of such titles.
> >
> > Whatever will remain in minds will be something like "D compilation is
> slow"
> > which isn't accurate when compared to the competition.
> >
> > The article is clever, the title is clever, but most people will only
> read the
> > title.
>
> Unfortunately, you're right. The title will leave the impression "D is
> slow at
> compiling". You have to carefully read the article to see otherwise, and
> few
> will do that.
>


LLVM 7.0.0 no mention of D anymore

2018-09-19 Thread Daniel Kozak via Digitalmars-d-announce

http://releases.llvm.org/7.0.0/docs/ReleaseNotes.html#external-open-source-projects-using-llvm-7

no mention of D anymore :(

http://releases.llvm.org/6.0.0/docs/ReleaseNotes.html#external-open-source-projects-using-llvm-6

http://releases.llvm.org/5.0.0/docs/ReleaseNotes.html#external-open-source-projects-using-llvm-5

http://releases.llvm.org/4.0.0/docs/ReleaseNotes.html#external-open-source-projects-using-llvm-4-0-0


Re: GDC with D frontend 2.081.2

2018-08-29 Thread Daniel Kozak via Digitalmars-d-announce
On Wed, Aug 29, 2018 at 8:35 AM Johannes Pfau via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> But this only works as you build gdc and gcc separately. I.e. for gdc,
> you build gcc+gdc, then throw away everything but gdc related
> executables. Then you compile gcc with different --with-pkgversion for
> the gcc package.
>
> However, this has the problem that your gcc executable now does not
> properly forward .d files to gdc as that build did not have --enable-
> languages=d. The supported way to do this is build all gcc based
> compilers at once. But then you can't use --with-pkgversion as it will
> apply to all compilers.
>
> --
> Johannes
>

Yes, but I never use gcc to compile .d files (I did not know it will work
anyway :) ), so I do not see this as a big issue.
But I understand it could be an issue for somebody else and it will be an
issue when gdc will be officialy part of gcc.


Re: GDC with D frontend 2.081.2

2018-08-28 Thread Daniel Kozak via Digitalmars-d-announce
On Tue, Aug 28, 2018 at 8:40 AM Eugene Wissner via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On Tuesday, 28 August 2018 at 06:18:28 UTC, Daniel Kozak wrote:
> > On Mon, Aug 27, 2018 at 7:55 PM Eugene Wissner via
> > Digitalmars-d-announce < digitalmars-d-announce@puremagic.com>
> > wrote:
> >
> >> On Monday, 27 August 2018 at 17:23:04 UTC, Arun Chandrasekaran
> >> wrote:
> >> > 1. It would be good to print the DMD frontend version with
> >> > `gdc --version`. It is helpful in reporting bugs. LDC does
> >> > this.
> >> >
> >> Unfortunately it doesn't seem to be possible. GCC doesn't
> >> allow to change --version output:
> >> https://bugzilla.gdcproject.org/show_bug.cgi?id=89
> >>
> >>
> > This is not true, right now on archlinux if you type gdc
> > --version it will display d frontend version
> > https://bugzilla.gdcproject.org/show_bug.cgi?id=89#c1
>
> Is it set with --with-pkgversion? The same information will be
> displayed for gcc and g++ then. It is not always desirable if you
> ship the compiler as a whole (with libtool etc).
>

Yes and no. It is set with  --with-pkgversion but it is only for gdc.


Re: GDC with D frontend 2.081.2

2018-08-28 Thread Daniel Kozak via Digitalmars-d-announce
On Mon, Aug 27, 2018 at 7:55 PM Eugene Wissner via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On Monday, 27 August 2018 at 17:23:04 UTC, Arun Chandrasekaran
> wrote:
> > 1. It would be good to print the DMD frontend version with `gdc
> > --version`. It is helpful in reporting bugs. LDC does this.
> >
> Unfortunately it doesn't seem to be possible. GCC doesn't allow
> to change --version output:
> https://bugzilla.gdcproject.org/show_bug.cgi?id=89
>
>
This is not true, right now on archlinux if you type gdc --version it will
display d frontend version
https://bugzilla.gdcproject.org/show_bug.cgi?id=89#c1


Re: GDC with D frontend 2.081.2

2018-08-27 Thread Daniel Kozak via Digitalmars-d-announce
On Sat, Aug 25, 2018 at 11:20 PM Anonymouse via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On Saturday, 25 August 2018 at 20:59:56 UTC, Daniel Kozak wrote:
>
> August 10th. I'll wait for -2 then.
>
> > Installed Size  : 243.72 MiB
> > Packager: Unknown Packager
> > Build Date  : fre 10 aug 2018 01:24:01
> > Install Date: fre 10 aug 2018 15:10:09
>

Fixed. There should be gdc 8.2.0-3


Re: GDC with D frontend 2.081.2

2018-08-25 Thread Daniel Kozak via Digitalmars-d-announce
On Sat, Aug 25, 2018 at 10:10 PM Anonymouse via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On Friday, 24 August 2018 at 08:30:35 UTC, Daniel Kozak wrote:
> > On Friday, 24 August 2018 at 05:35:13 UTC, Eugene Wissner wrote:
> >> As some of you may know D frontend was merged into GDC some
> >> time ago and is up to date. D version currently supported by
> >> GDC is 2.081.2 and it can be found in "gdc-7" and "gdc-8"
> >> branches. I will say a bit more about GDC development and
> >> development plans later.
> >>
> >> [...]
> >
> > Btw. there are packages for archlinux on AUR
> > gdc-8 with d frontend: https://aur.archlinux.org/packages/gdc/
> > gdc-8-stable with c++ frontend:
> > https://aur.archlinux.org/packages/gdc-stable/
>
> Is it supposed to be up to date in this sense? __VERSION__ is
> 2068L with Manjaro/Arch gdc 8.2.0-1.
>

Hmm I am not sure, but how long did you have this gdc package installed? It
seems I forgot to update .SRCINFO. There should be gdc-8.2.0-2 which has
2.081.1 d frontend.
I will fix this on monday, until than you can uninstall gdc and try to
build it again.


Re: GDC with D frontend 2.081.2

2018-08-24 Thread Daniel Kozak via Digitalmars-d-announce
On Fri, Aug 24, 2018 at 10:40 AM Basile B. via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On Friday, 24 August 2018 at 05:35:13 UTC, Eugene Wissner wrote:
> > As some of you may know D frontend was merged into GDC some
> > time ago and is up to date. D version currently supported by
> > GDC is 2.081.2
>
> Great news. Best of luck for a wide adoption in the official
> package managers of the linux distributions.
>
> I do not think this will be an issue. I believe as soon as gdc will be
part of gcc it will be part of many linux distribution


Re: GDC with D frontend 2.081.2

2018-08-24 Thread Daniel Kozak via Digitalmars-d-announce

On Friday, 24 August 2018 at 05:35:13 UTC, Eugene Wissner wrote:
As some of you may know D frontend was merged into GDC some 
time ago and is up to date. D version currently supported by 
GDC is 2.081.2 and it can be found in "gdc-7" and "gdc-8" 
branches. I will say a bit more about GDC development and 
development plans later.


[...]


Btw. there are packages for archlinux on AUR
gdc-8 with d frontend: https://aur.archlinux.org/packages/gdc/
gdc-8-stable with c++ frontend: 
https://aur.archlinux.org/packages/gdc-stable/


Re: asdf json library moved to libmir

2018-07-11 Thread Daniel Kozak via Digitalmars-d-announce
On Wed, Jul 11, 2018 at 11:45 PM yannick via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> Hi All,
>
> Since i'll be leaving Tamedia (who sponsored development of Asdf)
> and it's not under active use anymore here we decided to donate
> it to libmir.
>
> Asdf has a few nifty features that make it perfect for reading
> large amounts of json lines and transforming data. For an example
> use case see je, the json to csv transformer app (
> https://github.com/tamediadigital/je )
>
> I still think that it is by far the easiest to use and fastest
> production grade Json Library for D.
> Maybe it should be renamed to reflect that, proposals welcome.
>
> cheers,
> y
>
>
I have tried it few days ago and it does not work for me at  first. Because
I always read only "Simple Example".
One of my problem was that I have a struct with little different name that
was attribute name used in
json (positions and types has been correct), but it does not work and the
error was really wierd so it took
me a while until I have found out what was wrong.

Other problem was with types when one json attribute can be a number or null


Re: Hunt framework 1.0.0 released

2018-06-05 Thread Daniel Kozak via Digitalmars-d-announce
On Tue, Jun 5, 2018 at 3:54 PM, Steven Schveighoffer via
Digitalmars-d-announce  wrote:

> On 6/5/18 3:25 AM, Brian wrote:
>
> source code in github https://github.com/huntlabs/hunt/
>> documents in wiki https://github.com/huntlabs/hunt/wiki/
>> hunt framework website http://www.huntframework.com/
>>
>
> Is there a way to view your website in English? I found a popup on the
> bottom that has "English" as a selection, but it doesn't do anything.
>
> -Steve
>
https://translate.googleusercontent.com/translate_c?depth=1=cs=translate.google.com=zh-CN=nmt4=en=http://www.huntframework.com/=17259,152,15700022,15700124,15700149,15700168,15700173,15700186,15700191,15700201=ALkJrhiSdndhn6w5ujhGrkPtuxcHYpZFfA


Re: Funding for code-d/serve-d

2018-05-07 Thread Daniel Kozak via Digitalmars-d-announce
Works OK for me, on Arch linux and fedora

On Mon, May 7, 2018 at 11:29 AM, Dechcaudron via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On Sunday, 6 May 2018 at 16:31:02 UTC, Meta wrote:
>
>> Also, does anyone have an image of the supporter t-shirts? If possible I
>> want to donate an amount to get one of those.
>>
> Please, I'm considering it as well.
>
> Also, though I use WebFreak's extension for VS code, I never really got it
> to work 100% (never really invested more than a couple minutes either, to
> be fair). Thinks like syntax highlighting and symbol lookup are really
> welcome, but I'd like completion support out of the box. Is it only me that
> has an issue with this?
>
>
>


Re: Enum and Function Parameters Attributes -- No DIP Required

2018-04-12 Thread Daniel Kozak via Digitalmars-d-announce
DIP is an abbreviation for D Improvement Proposals, so in theory we should
have DIP for every bugfix (if I follow your logic), because it is an
improvment :D. No I do not agree with this. UDAs has been added before DIPs
and as original author said the definition of UDAs (
https://dlang.org/spec/attribute.html#UserDefinedAttribute) is lame (
https://forum.dlang.org/post/k7afq6$2832$1...@digitalmars.com).So I would say
we are talking about fixing implementation not a language change anyway.

On Thu, Apr 12, 2018 at 5:18 PM, Ali via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On Thursday, 12 April 2018 at 08:28:17 UTC, Mike Parker wrote:
>
>> * Changes to the language itself, such as syntax/semantics
>> * Changes to the functional behavior of code generated by the compiler
>>
>> This proposal is a removal of a limitation on an existing feature -- it
>> neither modifies existing syntax nor requires deprecation of any other
>> language features. Nor does it change the behavior of generated code.
>>
>
> So if this change doesn't change anything, why is it called a change?
>
> An addition is a type of change and you make it sound as if DIPs are only
> required for breaking changes
>
> I think any change or addition (transparent, minor, simple) that add
> capabilities to the language or to the standard library should have been a
> DIP
>
> If the process is too heavy for small changes, add a simple path in the
> process for small changes, instead of completely ignoring the process, add
> a fast track process for minor changes
>
> Anyway, good luck, and happy to see D adding features :)
>


Re: [OT] gdc status

2018-04-11 Thread Daniel Kozak via Digitalmars-d-announce
AFAIK, GDC does not make it, so hopefully it will be merge with gcc 9

On Wed, Apr 11, 2018 at 3:44 PM, drug via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> 11.04.2018 16:26, Uknown пишет:
>
> On Wednesday, 11 April 2018 at 13:17:23 UTC, drug wrote:
>>
>>> 11.04.2018 15:22, bachmeier пишет:
>>>
 On Wednesday, 11 April 2018 at 09:45:07 UTC, Jonathan M Davis wrote:
 ... Given that GDC has been added to GCC...

>>> Is it true? I don't see anything like that here
>>> https://gcc.gnu.org/gcc-8/changes.html
>>>
>>
>> Here's relevant news from Phoronix:
>>
>> https://www.phoronix.com/scan.php?page=news_item=D-Frontend-For-GCC
>>
>> Here's the relevant announcement:
>> https://gcc.gnu.org/ml/gcc/2017-06/msg00111.html
>>
> I've read it. Unfortunately it doesn't answer my question. I've heard
> there were some problems.
>


Re: Vibe.d web interface tutorial

2018-03-13 Thread Daniel Kozak via Digitalmars-d-announce
Yes PHP is always to blame :)

On Tue, Mar 13, 2018 at 1:55 PM, Steven Schveighoffer via
Digitalmars-d-announce  wrote:

> On 3/13/18 6:22 AM, Daniel Kozak wrote:
>
>> On contrary I really hate that :D.
>> Because of this:
>>
>> HTTP methodRecognized prefixes
>> GETget, query
>> PUTset, put
>> POSTadd, create, post
>> DELETEremove, erase, delete
>> PATCHupdate, patch
>>
>> I am calling vibed from PHP and I need to tweak my curl for every request
>> baceuse of this :D
>>
>
> That's not what I was talking about, I was talking about how the
> parameters are automatically parsed passed to the web functions. It doesn't
> affect how the routes are called externally, just how the parameters are
> dealt with.
>
> Note, you can override the method for any/all routes:
>
> class WebInterface
> {
>@method(HTTPMethod.GET):
> ... // all methods are now get
> }
>
> I think perhaps the root cause of your problem is using PHP ;)
>
> -Steve
>


Re: Vibe.d web interface tutorial

2018-03-13 Thread Daniel Kozak via Digitalmars-d-announce
On contrary I really hate that :D.
Because of this:

HTTP method Recognized prefixes
GET get, query
PUT set, put
POST add, create, post
DELETE remove, erase, delete
PATCH update, patch

I am calling vibed from PHP and I need to tweak my curl for every request
baceuse of this :D

 public function sendRequest($method, $params = []) {

$method = strtolower(preg_replace('/([^A-Z])([A-Z])/', "$1_$2",
$method));
$isGetRequestType = substr($method, 0, 3) == 'get';
$isPutRequestType = substr($method, 0, 3) == 'set';
$httpHeader = $isGetRequestType ? [] : ['Content-Type:
application/json'];
if ($this->sessionId) {
$httpHeader[] = "Cookie: vibe.session_id=" . $this->sessionId .
"; Path=/; HttpOnly";
}

if ($isGetRequestType) {
$url =
UrlBuilder::fromUrl($this->url)->appendPath(substr($method, 4));
$url->addParams($params);
$curl = curl_init($url);
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_HTTPHEADER => $httpHeader,
CURLOPT_USERAGENT => EdiClient::USER_AGENT,
CURLOPT_URL => $url->toString(),
CURLOPT_RETURNTRANSFER => true
]);
} elseif ($isPutRequestType) {
$url =
UrlBuilder::fromUrl($this->url)->appendPath(substr($method, 4));
$curl = curl_init($url);
$json = json_encode($params);

curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_HTTPHEADER => $httpHeader,
CURLOPT_USERAGENT => EdiClient::USER_AGENT,
CURLOPT_URL => $url->toString(),
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => $json,
CURLOPT_RETURNTRANSFER => true
]);
} else {
$url = UrlBuilder::fromUrl($this->url)->appendPath($method);
$curl = curl_init($url);
$json = json_encode($params);

curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_HTTPHEADER => $httpHeader,
CURLOPT_USERAGENT => EdiClient::USER_AGENT,
CURLOPT_URL => $url->toString(),
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $json,
CURLOPT_RETURNTRANSFER => true
]);
}

$result = curl_exec($curl);
curl_close($curl);
$result = json_decode($result, true);

return $result;
}


On Tue, Mar 13, 2018 at 11:12 AM, Steven Schveighoffer via
Digitalmars-d-announce  wrote:

> On 3/9/18 11:34 AM, aberba wrote:
>
>> On Friday, 9 March 2018 at 16:32:28 UTC, aberba wrote:
>>
>>> New blog post for the learning audience
>>>
>>> aberba.com/2018/using-vibe-d-web-interface
>>>
>>
>> http://aberba.com/2018/using-vibe-d-web-interface
>>
>>
> Very nice! Although this is missing one of my favorite vibe.d web
> interface features -- automatic parsing of route parameters:
>
>
> class WebInterface
> {
>void getRoute(HTTPServerResponse res, int foo, Nullable!int bar)
>{
>import std.format;
>res.writeBody(format("foo = %s, bar = %s", foo, bar));
>}
> }
>
> /route => Error, foo required
> /route?foo=1 => "foo = 1, bar = Nullable.null"
> /route?foo=2=5 => "foo = 1, bar = 5"
>
> -Steve
>


Re: State of D 2018 Survey

2018-03-01 Thread Daniel Kozak via Digitalmars-d-announce
Ok, I have same feeling, but after trying to fill this survey with one of
my colleague, I have find out that it takes "only" 15 minutes to complete.
But still I thing almost everyone from our field is OK with filling surveys
anyway.

On Thu, Mar 1, 2018 at 10:24 PM, Bill Baxter via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> Just don't overlook the fact that people who fill out 30 minute surveys
> right away after being told about them are a self-selected group of people
> who apparently have way too much time on their hands.
> Which also suggests they would likely also have more free time to go chase
> down and fix breaks in their legacy code caused by new compilers.
>
> --bb
>
>
> On Thu, Mar 1, 2018 at 1:19 PM, bauss via Digitalmars-d-announce <
> digitalmars-d-announce@puremagic.com> wrote:
>
>> On Wednesday, 28 February 2018 at 20:37:36 UTC, Seb wrote:
>>
>>> On Wednesday, 28 February 2018 at 20:24:00 UTC, JN wrote:
>>>
 On Wednesday, 28 February 2018 at 20:01:16 UTC, Seb wrote:

> Thanks! I hope so too!
>

 Is there some way to access the results without retaking the survey?

>>>
>>> Yeah the link TypeForm generates at the end is permanent:
>>>
>>> https://dlang.typeform.com/report/H1GTak/PY9NhHkcBFG0t6ig
>>>
>>> though for some reason it doesn't show full-text answers (I have opened
>>> a support ticket for that a while ago).
>>> Anyhow, as Mike said we will look at all answers and do a summary once
>>> the survey concluded.
>>>
>>
>> Interesting results. 80% in favor for breaking changes.
>>
>> Maybe it's time to not care too much about making D better and leave old
>> legacy stuff that stops D from evolving behind curtains.
>>
>
>


Re: Beta 2.079.0

2018-02-22 Thread Daniel Kozak via Digitalmars-d-announce
I still believe it should be something more readable:

import std.stdio, std.conv : [ to, from ], std.algorithm : doSomething,
std.whatever;

On Thu, Feb 22, 2018 at 11:30 AM, psychoticRabboit via
Digitalmars-d-announce  wrote:

> On Thursday, 22 February 2018 at 09:42:47 UTC, Atila Neves wrote:
>
>>
>> I'm going to a) never write these imports and b) pretend this feature
>> doesn't exist.
>>
>> Atila
>>
>
> what about something like this then?
>
> import std.stdio; std.conv: to, from; std.algorithm: doSomething;
> std.whatever;
>
> just one simple rule; multiple imports on a line are seperated with ;
>
> surely the parser or whatever it's called, could work with that clean and
> simple solution.
>
>


D support for ChromeOS

2018-02-03 Thread Daniel Kozak via Digitalmars-d-announce
Today I have added basic support for D language (ldc and dub) to 
chromebrew: https://github.com/skycocker/chromebrew/pull/1717


So if you have ChromeBook with Chrome OS (developer mode is 
needed for chromebrew), you can try it, if everything works ok 
for you.


Re: Another take on decimal data types

2018-01-08 Thread Daniel Kozak via Digitalmars-d-announce
Wow awesome, it would be nice if you could add it as a dub package (
http://code.dlang.org/publish) to dub repository (http://code.dlang.org)

On Mon, Jan 8, 2018 at 11:16 PM, rumbu via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> This is my first D finalized project (+16k loc).
>
> I know that there are other two projects intended to provide a decimal
> data type for D, but I consider mine the most complete and most compliant
> to the standards (at least until now).
>
> There are two years of since I'm working on it (and learning D in the same
> time), but I concentrated most of the efforts in the last two months.
>
> It was a nice exercise because I was happy to remember the math I learn
> through my college years (trigonometry, logarithms, Taylor series,
> derivatives, etc). Unfortunately I'm not using the same math during my
> day-to day job.
>
> Maybe in another post I will share my struggles I encountered during the
> development (plenty of). But a big thank you goes to Rainer Schuetze:
> without Visual Studio and without the integrated debugger this project was
> impossible to maintain.
>
> Now on topic:
>
> - fully IEEE-754-2008 compliant;
> - one flat file;
> - using Intel's binary decimal enconding;
> - three decimal data types: decimal32, decimal64 and decimal128
> - all D operators supported for all numeric types (left and right side
> integrals, floats, chars);
> - conversion supported from/to integrals, floats, bools, chars
> - conversion to/from other decimal formats (Microsoft Currency, Microsoft
> Decimal, IBM Densely Packed Decimal)
> - all std.math functions implemented (even logarithms and trigonometry);
> - all format specifiers implemented (%f, %e, %g, %a);
> - integrated with phobos format and conversion functions (to, format,
> writef);
> - thread local precision (from 1 to 34 decimal digits);
> - new rounding mode - Europe's most used - tiesToAway;
> - alternate exception handling (through flags);
> - minimal dependencies (some traits and some floating point functions);
> - comprehensive documentation;
>
> Source code: https://github.com/rumbu13/decimal/blob/master/src/decimal.d
>
> Documentation: http://rumbu13.github.io/decimal/doc/decimal.html
>
> The project is more than in an alpha state, all operations were tested but
> not exhaustively.
>
> What's next:
> - more tests;
> - benchmarks;
>
>
>


Re: Intellij D Language v1.15.2

2017-11-27 Thread Daniel Kozak via Digitalmars-d-announce
On my Archlinux there is no  DSCanner error so maybe it something wrong
with my fedora box at work. But I have many Possibly undefined symbol
warnings and I do not know what it is.

On Mon, Nov 27, 2017 at 11:41 AM, Daniel Kozak  wrote:

> Another problem is when I am on some another project and do open some D
> project,
> it should ask me about if I want to open it in another window or this
> window right away
> and then show some progresbar loading D project with (dub describe and so
> on)
> but now it run dub describe first which is wierd when it takes more then
> one second to finish (it makes seems like nothing happened at all)
>
> On Mon, Nov 27, 2017 at 11:33 AM, Daniel Kozak  wrote:
>
>> OK, right now I have test it on my another pc, and it does not even load
>> project (my IDE is completly frozen), but dub describe takes to long too.
>> So I guess it is not perfect to use it when code.dlang.org is down.
>>
>> On Mon, Nov 27, 2017 at 10:10 AM, Daniel Kozak  wrote:
>>
>>> I will try it again today and send more details
>>>
>>> On Fri, Nov 24, 2017 at 10:29 PM, singingbush via Digitalmars-d-announce
>>>  wrote:
>>>
 On Friday, 24 November 2017 at 11:52:52 UTC, Daniel Kozak wrote:

> I have try it, but does not seem to work, Event log is full of some
> DScanner Error:
>
> 12:50 DScanner Error
> 2017-11-24T12:50:53.293:first.d:visit:325 Could not locate object.d or
> object.di
>
> 12:50 DScanner Error
> 2017-11-24T12:50:53.293:first.d:visit:411 Could not resolve location
> of
> module 'vibe/web/rest'
>

 Did the plugin error or is the problem just DScanner? If there was a
 problem with the plugin did you submit the error? It would be helpful to
 screen shot the problem and create an issue for it:

 https://github.com/intellij-dlanguage/intellij-dlanguage/issues

>>>
>>>
>>
>


Re: Intellij D Language v1.15.2

2017-11-27 Thread Daniel Kozak via Digitalmars-d-announce
Another problem is when I am on some another project and do open some D
project,
it should ask me about if I want to open it in another window or this
window right away
and then show some progresbar loading D project with (dub describe and so
on)
but now it run dub describe first which is wierd when it takes more then
one second to finish (it makes seems like nothing happened at all)

On Mon, Nov 27, 2017 at 11:33 AM, Daniel Kozak  wrote:

> OK, right now I have test it on my another pc, and it does not even load
> project (my IDE is completly frozen), but dub describe takes to long too.
> So I guess it is not perfect to use it when code.dlang.org is down.
>
> On Mon, Nov 27, 2017 at 10:10 AM, Daniel Kozak  wrote:
>
>> I will try it again today and send more details
>>
>> On Fri, Nov 24, 2017 at 10:29 PM, singingbush via Digitalmars-d-announce
>>  wrote:
>>
>>> On Friday, 24 November 2017 at 11:52:52 UTC, Daniel Kozak wrote:
>>>
 I have try it, but does not seem to work, Event log is full of some
 DScanner Error:

 12:50 DScanner Error
 2017-11-24T12:50:53.293:first.d:visit:325 Could not locate object.d or
 object.di

 12:50 DScanner Error
 2017-11-24T12:50:53.293:first.d:visit:411 Could not resolve location of
 module 'vibe/web/rest'

>>>
>>> Did the plugin error or is the problem just DScanner? If there was a
>>> problem with the plugin did you submit the error? It would be helpful to
>>> screen shot the problem and create an issue for it:
>>>
>>> https://github.com/intellij-dlanguage/intellij-dlanguage/issues
>>>
>>
>>
>


Re: Intellij D Language v1.15.2

2017-11-27 Thread Daniel Kozak via Digitalmars-d-announce
OK, right now I have test it on my another pc, and it does not even load
project (my IDE is completly frozen), but dub describe takes to long too.
So I guess it is not perfect to use it when code.dlang.org is down.

On Mon, Nov 27, 2017 at 10:10 AM, Daniel Kozak  wrote:

> I will try it again today and send more details
>
> On Fri, Nov 24, 2017 at 10:29 PM, singingbush via Digitalmars-d-announce <
> digitalmars-d-announce@puremagic.com> wrote:
>
>> On Friday, 24 November 2017 at 11:52:52 UTC, Daniel Kozak wrote:
>>
>>> I have try it, but does not seem to work, Event log is full of some
>>> DScanner Error:
>>>
>>> 12:50 DScanner Error
>>> 2017-11-24T12:50:53.293:first.d:visit:325 Could not locate object.d or
>>> object.di
>>>
>>> 12:50 DScanner Error
>>> 2017-11-24T12:50:53.293:first.d:visit:411 Could not resolve location of
>>> module 'vibe/web/rest'
>>>
>>
>> Did the plugin error or is the problem just DScanner? If there was a
>> problem with the plugin did you submit the error? It would be helpful to
>> screen shot the problem and create an issue for it:
>>
>> https://github.com/intellij-dlanguage/intellij-dlanguage/issues
>>
>
>


Re: Intellij D Language v1.15.2

2017-11-27 Thread Daniel Kozak via Digitalmars-d-announce
I will try it again today and send more details

On Fri, Nov 24, 2017 at 10:29 PM, singingbush via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On Friday, 24 November 2017 at 11:52:52 UTC, Daniel Kozak wrote:
>
>> I have try it, but does not seem to work, Event log is full of some
>> DScanner Error:
>>
>> 12:50 DScanner Error
>> 2017-11-24T12:50:53.293:first.d:visit:325 Could not locate object.d or
>> object.di
>>
>> 12:50 DScanner Error
>> 2017-11-24T12:50:53.293:first.d:visit:411 Could not resolve location of
>> module 'vibe/web/rest'
>>
>
> Did the plugin error or is the problem just DScanner? If there was a
> problem with the plugin did you submit the error? It would be helpful to
> screen shot the problem and create an issue for it:
>
> https://github.com/intellij-dlanguage/intellij-dlanguage/issues
>


Re: Intellij D Language v1.15.2

2017-11-24 Thread Daniel Kozak via Digitalmars-d-announce
I have try it, but does not seem to work, Event log is full of some
DScanner Error:

12:50 DScanner Error
2017-11-24T12:50:53.293:first.d:visit:325 Could not locate object.d or
object.di

12:50 DScanner Error
2017-11-24T12:50:53.293:first.d:visit:411 Could not resolve location of
module 'vibe/web/rest'

On Thu, Nov 23, 2017 at 9:11 PM, singingbush via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> Hi all. A new release intellij-dlanguage plugin has been made available
> for download from the Jetbrains repository this week.
>
> The speed at which features and bug fixes are being done has picked up
> recently. We've had 4 releases this month alone. It would be really helpful
> if there are any Intellij users out there who don't already use our plugin
> to install it via the plugin repo and try it out (there are 2 D plugins,
> make sure to install the correct one). We now have error reporting built in
> to the plugin so that if anything breaks it's easy to inform the team about
> the problem.
>
> There is also support for debugging with GDB (since v1.14 1st Nov). We
> need to completely overhaul our documentation as some of it is outdated now
> and there is no mention of the gdb support. If anyone with Java/Kotlin
> experience wants to get involved with helping squash bugs then we welcome
> pull requests so please feel free to browse the issues on our github
> repository and get involved.
>
> https://github.com/intellij-dlanguage/intellij-dlanguage
>
> If you find the plugin helpful please also rate the plugin:
>
> https://plugins.jetbrains.com/plugin/8115-d-language
>


Re: Release D 2.077.0

2017-11-03 Thread Daniel Kozak via Digitalmars-d-announce
I have SIGSEGV when using DMD and simd types. This code works ok with GDC
and LDC fine, but SIGSEGV with latest DMD (maybe even with previous
versions I do not know)

https://dpaste.dzfl.pl/5476f5bef828

On Fri, Nov 3, 2017 at 5:04 PM, Steven Schveighoffer via
Digitalmars-d-announce  wrote:

> On 11/3/17 10:00 AM, Arun Chandrasekaran wrote:
>
>> On Friday, 3 November 2017 at 13:47:55 UTC, Mike Parker wrote:
>>
>>> On Thursday, 2 November 2017 at 22:35:03 UTC, Martin Nowak wrote:
>>>
 Glad to announce D 2.077.0.

 This release comes with a new, more compact mangling, templated vector
 operations, reproducible dmd builds, and various fixes.
 Thanks to everyone involved in this .

 http://downloads.dlang.org/releases/2.x/2.077.0/
 http://dlang.org/changelog/2.077.0.html
 The dlang.org website will get updated soon.

 -Martin

>>>
>>> Blog:
>>> https://dlang.org/blog/2017/11/03/dmd-2-077-0-released/
>>>
>>
>> Mike, thanks for the blog post. Few lines about how the name mangling
>> issue was addressed would've been interesting know on the blog.
>>
>
> A blog post I wrote about the issue itself (and a workaround that I
> employed to achieve the same result) is here:
>
> http://www.schveiguy.com/blog/2016/05/have-your-voldemort-ty
> pes-and-keep-your-disk-space-too/
>
> I hope Rainer agrees to the blog post as well. While I understand the
> concept, a detailed description of how the back references work would be
> very interesting.
>
> -Steve
>


Re: Release D 2.077.0

2017-11-03 Thread Daniel Kozak via Digitalmars-d-announce

On Thursday, 2 November 2017 at 22:35:03 UTC, Martin Nowak wrote:

Glad to announce D 2.077.0.

This release comes with a new, more compact mangling, templated 
vector operations, reproducible dmd builds, and various fixes.

Thanks to everyone involved in this .

http://downloads.dlang.org/releases/2.x/2.077.0/
http://dlang.org/changelog/2.077.0.html
The dlang.org website will get updated soon.

-Martin


How should I compile my program to enable array vectorization?

I have tried dmd -march=native, -march=avx2 as changlog suggest 
but does not work


I have tried even just -march=native or -march=avx2 but still 
does not compile


Error: unrecognized switch '-march=avx2'

Error: unrecognized switch '-march=native'


Re: Released vibe.d 0.8.1

2017-08-31 Thread Daniel Kozak via Digitalmars-d-announce
Same here.  We are moving from mongo to postgresql. And we are going to
rewrite our geolocation services from C# and mongo to D(vibe.d) and
PostgreSQL

Dne 31. 8. 2017 7:15 odpoledne napsal uživatel "Matthias Klumpp via
Digitalmars-d-announce" :

On Thursday, 31 August 2017 at 11:56:53 UTC, aberba wrote:

> On Wednesday, 30 August 2017 at 16:53:40 UTC, Matthias Klumpp wrote:
>
>> On Wednesday, 30 August 2017 at 07:47:53 UTC, Sönke Ludwig wrote:
>>
>>> Apart from removing the old vibe-d:diet package in favor of diet-ng,
>>> this release most notably contains a number of performance improvements in
>>> the HTTP server, as well as improvements and fixes in the WebSocket code.
>>> Furthermore, initial OpenSSL 1.1.x support has been added and a few @safe
>>> related issues introduced in 0.8.0 have been fixed.
>>>
>>> Change log:
>>> https://vibed.org/blog/posts/vibe-release-0.8.1
>>>
>>> DUB package:
>>> https://code.dlang.org/packages/vibe-d/0.8.1
>>>
>>
>> Debian packages are on their way too :-) (pending approval from our
>> archive masters). Granted, this is most useful for Vibe.d-using software
>> that wants to be in Debian.
>>
>> Now, the only thing I am missing in Vibe is a good interface to
>> PostgreSQL, because in some circumstances MongoDB is just a very bad choice.
>> (Postgres even outperforms it in my testcase, and PG supports JSON/BSON
>> as well now).
>> DPQ2[1] looks very promising though :-)
>>
>> Thank you for making Vibe.d!
>>
>> [1]: https://github.com/denizzzka/dpq2
>>
>
> Even with mysql (using mysql-native), the absent of something like
>
> struct User {
> @optional int userName; //its ok if row doesn't have this column
> @as("phone_number") string phoneNumber;
> 
> }
>
> User[] users;
> 
> foreach(row; ...)
> {
> users ~= row.toStruct!User;
> }
> 
>

I would love that :-)


MongoDB has facilities for these stuff automatically thats why using it
> seem convenient and speeds up stuff.
>

Yeah, it speeds up development, but that doesn't help much if Mongo
swallows your data or messes up replication, or if your data by its nature
simply does not fit a document store well.
I've found Postgres to be very reliable and also very fast in the past, and
- in large part thanks to Vibe.d - I am using Mongo now in a test
deployment instead of it. I don't feel comfortable at all in continuing to
use it though, which is unfortunate, since the development speed with it is
quite high.


Re: D on Tiobe Index

2017-08-31 Thread Daniel Kozak via Digitalmars-d-announce
They have changed way how is index compute. They do this many times in
history,  so there is almost zero value in this graph

Dne 31. 8. 2017 6:42 odpoledne napsal uživatel "SrMordred via
Digitalmars-d-announce" :

On Thursday, 31 August 2017 at 14:57:28 UTC, bitwise wrote:

> https://www.tiobe.com/tiobe-index/d/
>

What happened in 2009?


Re: I'm the new package maintainer for D on ArchLinux

2017-08-09 Thread Daniel Kozak via Digitalmars-d-announce
This is awesome :). Congratulation to your new role

On Wed, Aug 9, 2017 at 10:42 PM, Wild via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> Hi everyone,
>
> The D packages for ArchLinux has been orphaned since Dicebot stepped down
> as the maintainer and no one else stepped up. So I decided to step up and
> apply to become a Trusted User, and I got accepted yesterday[1]. So from
> now on I will be the one who maintains all the D packages (in the
> [community] repo), and it will be my job to fix them if they break.
>
> If you haven't heard of me before (which is probable because I mostly
> lurk), my name is Dan, I'm 21 years old and I'm the developer of
> PowerNex[2], a D kernel/OS, and I livestream coding at Twitch[3].
>
> Currently only dmd, dtools, ldc and lib{,l}phobos are in the [community]
> repo. I would like to move over dub, dcd, dscanner and dfmt (some of these
> were dropped from [community] due to being orphaned). You guys can help by
> voting on AUR packages that you want to be moved to [community].
>
> Feel free to ping me on anything that is related to packaging or the
> ArchLinux packages.
> I hope I can maintain ArchLinux as a great environment to use D.
>
> Ways of contacting me:
> - a...@vild.io
> - wild on freenode (I lurk in #d, #archlinux, #powernex)
> - Vild on github
> - Discord: https://discordapp.com/invite/bMZk9Q4
>
> Thanks
> - Dan
>
> [1] https://lists.archlinux.org/pipermail/aur-general/2017-Augus
> t/033463.html
> [2] https://github.com/PowerNex/PowerNex
> [3] https://www.twitch.tv/wildn00b
>


Re: Beta D 2.075.1

2017-08-08 Thread Daniel Kozak via Digitalmars-d-announce
https://issues.dlang.org/show_bug.cgi?id=17731

On Tue, Aug 8, 2017 at 4:45 PM, Vladimir Panteleev via
Digitalmars-d-announce  wrote:

> On Tuesday, 8 August 2017 at 08:41:15 UTC, Martin Nowak wrote:
>
>> This release does not ship with the dman tool due to an unresolved issue.
>>
>
> What's the problem with dman?
>
>


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Daniel Kozak via Digitalmars-d-announce
After reinstaling serve-d-git it is working ok for me now

On Sun, Aug 6, 2017 at 4:28 PM, Daniel Kozak  wrote:

> No I have none of those directories in my system (ArchLinux), I have
> install this aur package https://aur.archlinux.org/packages/serve-d-git
> and then code-d serve-d Beta from extensions
>
> On Sun, Aug 6, 2017 at 4:19 PM, WebFreak001 via Digitalmars-d-announce <
> digitalmars-d-announce@puremagic.com> wrote:
>
>> On Sunday, 6 August 2017 at 09:48:22 UTC, Daniel Kozak wrote:
>>
>>> https://pastebin.com/3hp2b5qy
>>>
>>> [...]
>>>
>>
>> oh right you still have the old version. Remove the serve-d directory
>> (~/.local/share/code-d, ~/.code-d or %APPDATA%/code-d) and reload vscode or
>> cd into it, git pull and dub build (on windows with --compiler=ldc2) and
>> reload
>>
>
>


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Daniel Kozak via Digitalmars-d-announce
It does not select compiler correctly:
[kozak@kleopatra dbsync]$ dub build --config= --arch=x86_64 --build=debug
--compiler=
Error processing arguments: Missing value for argument --compiler=.
Run 'dub help' for usage information.

On Sun, Aug 6, 2017 at 11:48 AM, Daniel Kozak  wrote:

> https://pastebin.com/3hp2b5qy
>
> On Sun, Aug 6, 2017 at 10:54 AM, WebFreak001 via Digitalmars-d-announce <
> digitalmars-d-announce@puremagic.com> wrote:
>
>> On Sunday, 6 August 2017 at 01:28:20 UTC, Soulsbane wrote:
>>
>>> On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
>>>
 You might remember the blog post from a while back about workspace-d
 and serve-d, I just released a beta version on the visual studio
 marketplace that allows you to try out the latest features of serve-d. Note
 that this version might easily break in the future, but for the next few
 days I am trying to gain some feedback. If you are a user of code-d and if
 you want to try out the new version please uninstall code-d and install
 code-d-beta

>>>
>>> I'm getting this error: "Could not initialize dub. Falling back to
>>> limited functionality!". I don't get this error in the other version and
>>> dub is installed: DUB version 1.4.0, built on Jul 19 2017.
>>>
>>
>> There is a new output log at the bottom now, can you try it out on a
>> project with no personal information and send me the debug log per pastebin?
>>
>> To access it open the panel at the bottom (F1 -> View: Toggle Output /
>> Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just
>> select everything, copy it and paste it somewhere.
>>
>
>


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Daniel Kozak via Digitalmars-d-announce
https://pastebin.com/3hp2b5qy

On Sun, Aug 6, 2017 at 10:54 AM, WebFreak001 via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On Sunday, 6 August 2017 at 01:28:20 UTC, Soulsbane wrote:
>
>> On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
>>
>>> You might remember the blog post from a while back about workspace-d and
>>> serve-d, I just released a beta version on the visual studio marketplace
>>> that allows you to try out the latest features of serve-d. Note that this
>>> version might easily break in the future, but for the next few days I am
>>> trying to gain some feedback. If you are a user of code-d and if you want
>>> to try out the new version please uninstall code-d and install code-d-beta
>>>
>>
>> I'm getting this error: "Could not initialize dub. Falling back to
>> limited functionality!". I don't get this error in the other version and
>> dub is installed: DUB version 1.4.0, built on Jul 19 2017.
>>
>
> There is a new output log at the bottom now, can you try it out on a
> project with no personal information and send me the debug log per pastebin?
>
> To access it open the panel at the bottom (F1 -> View: Toggle Output /
> Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just
> select everything, copy it and paste it somewhere.
>


Re: DCompute is now in the master branch of LDC

2017-05-30 Thread Daniel Kozak via Digitalmars-d-announce

Dne 30.5.2017 v 21:23 Jack Stouffer via Digitalmars-d-announce napsal(a):


On Tuesday, 30 May 2017 at 18:06:56 UTC, Walter Bright wrote:

I fear the conversation will go like this, like it has for me:

 N: DCompute
 W: What's DCompute?
 N: Enables GPU programming with D
 W: Cool!

instead of:

 N: D-GPU
 W: Cool! I can use D to program GPUs!


This was literally what happened to me when I saw the headline.
Same for me. I was thinking about mir or about some big computation. I 
understand, there are people who are able to match compute with GPU, 
CUDA, OpenCL ..., but this does not change anything about wrong name.
It is nice to know, that there are people who will find this, but there 
will be plenty of us who will not.


Re: Harbored-mod 0.2.1 and DYaml 0.6.1 at dlang-community

2017-05-16 Thread Daniel Kozak via Digitalmars-d-announce
Nice, I have wait so many months until I decided to fork yamkeys because of
d-yaml. Now I can delete it thanks. This makes my live easier.  This is
something I want to propose many times, that there is something like
dlang-community. Btw. is there some more info about it. Because I miss it
somehow

On Tue, May 16, 2017 at 10:46 PM, Basile B. via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> Following Brian Schott Announce [1] about the migration of his projects to
> the dlang-community, I'm pleased to announce that the most popular
> repository from Ferdinand Majerech are now also hosted there.
>
> - D-YAML, a YAML parser and emitter for D (native D implementation)
> is at https://github.com/dlang-community/D-YAML
>
> - harbored-mod, a D documentation generator based on harbored
> is at https://github.com/dlang-community/harbored-mod
>
> So far we pushed the commits done in several forks and the two projects
> are up to date, tested by TravisCI, buildable with either make or DUB.
>
> Note about D-Yaml: People who forked D-Yaml for their projects are
> encouraged to push their change to dlang-community and give up their fork !
>
> [1]: http://forum.dlang.org/post/abbprxuwgqlmuuwdf...@forum.dlang.org
>


Re: Introducing Diskuto - an embeddable comment system

2017-03-14 Thread Daniel Kozak via Digitalmars-d-announce



Dne 14.3.2017 v 21:24 Sönke Ludwig via Digitalmars-d-announce napsal(a):

On Tuesday, 14 March 2017 at 20:02:08 UTC, Daniel Kozak wrote:



Dne 14.3.2017 v 20:54 Azbuka via Digitalmars-d-announce napsal(a):

On Tuesday, 14 March 2017 at 19:39:08 UTC, Daniel Kozak wrote:


Sorry but I do not see it. Which one?


Looks like it have been deleted. Okay, 2k upvotes is too much. I'll 
make it 100.


curl 'http://rejectedsoftware.com:10888/diskuto/delete' -H 'Origin: 
http://rejectedsoftware.com:10888' -H 'Accept-Encoding: gzip, 
deflate' -H 'Accept-Language: cs-CZ,cs;q=0.8' -H 'User-Agent: 
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/56.0.2924.87 Safari/537.36 OPR/43.0.2442.1144' -H 
'Content-type: application/json' -H 'Accept: */*' -H 'Referer: 
http://rejectedsoftware.com:10888/' -H 'Cookie: 
vibe.session_id=QVwY1IGbGeELZw0v77w74RdDbQOKTheyQx8gi3HAQOWi6PTEQoRAxbUWUFmmLNq95FE5nyZ1Og47SCeu5v6oog' 
-H 'Connection: keep-alive' --data-binary 
'{"id":""}' --compressed


Did you delete the comments yourself? The time limit for 
deletion/editing currently isn't enforced on the server (ticket 
already open), so anyone can delete their own tickets currently at any 
time.


I've noted the other issues and will tackle those tomorrow.

I have deleted not only my comments, I can delete enyone comment


Re: Introducing Diskuto - an embeddable comment system

2017-03-14 Thread Daniel Kozak via Digitalmars-d-announce



Dne 14.3.2017 v 20:54 Azbuka via Digitalmars-d-announce napsal(a):

On Tuesday, 14 March 2017 at 19:39:08 UTC, Daniel Kozak wrote:


Sorry but I do not see it. Which one?


Looks like it have been deleted. Okay, 2k upvotes is too much. I'll 
make it 100.


curl 'http://rejectedsoftware.com:10888/diskuto/delete' -H 'Origin: 
http://rejectedsoftware.com:10888' -H 'Accept-Encoding: gzip, deflate' 
-H 'Accept-Language: cs-CZ,cs;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; 
Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 
Safari/537.36 OPR/43.0.2442.1144' -H 'Content-type: application/json' -H 
'Accept: */*' -H 'Referer: http://rejectedsoftware.com:10888/' -H 
'Cookie: 
vibe.session_id=QVwY1IGbGeELZw0v77w74RdDbQOKTheyQx8gi3HAQOWi6PTEQoRAxbUWUFmmLNq95FE5nyZ1Og47SCeu5v6oog' 
-H 'Connection: keep-alive' --data-binary 
'{"id":""}' --compressed


Re: Introducing Diskuto - an embeddable comment system

2017-03-14 Thread Daniel Kozak via Digitalmars-d-announce

Dne 14.3.2017 v 20:54 Azbuka via Digitalmars-d-announce napsal(a):


On Tuesday, 14 March 2017 at 19:39:08 UTC, Daniel Kozak wrote:


Sorry but I do not see it. Which one?


Looks like it have been deleted. Okay, 2k upvotes is too much. I'll 
make it 100.



Deleted :D



Re: Introducing Diskuto - an embeddable comment system

2017-03-14 Thread Daniel Kozak via Digitalmars-d-announce

Dne 14.3.2017 v 20:17 Azbuka via Digitalmars-d-announce napsal(a):


On Tuesday, 14 March 2017 at 14:26:35 UTC, Sönke Ludwig wrote:
Yeah, still tweaking a few things here and there. Very helpful to 
have people try out weird things ;) I'm just not sure how well that 
will work after someone posts this to Reddit.


My comment is most upvoted. Where can I get my medal?
(Just runned a script, which makes POST requests to diskuto/up with 
id=)

Sorry but I do not see it. Which one?


Re: vibe.d 0.8.0 and 0.7.31 beta releases

2017-02-13 Thread Daniel Kozak via Digitalmars-d-announce

On Wednesday, 1 February 2017 at 14:01:39 UTC, Sönke Ludwig wrote:

Am 01.02.2017 um 10:46 schrieb aberba:
On Wednesday, 1 February 2017 at 09:35:02 UTC, Sönke Ludwig 
wrote:

Am 31.01.2017 um 12:11 schrieb Sönke Ludwig:
The first release of the revamped core module [1] is 
nearing, and along
with that, a compatible vibe.d release (0.8.0). The new core 
module is

still opt-in in this release and can be activated using a
`subConfiguration "vibe-d:core" "vibe-core"` directive in 
dub.sdl
(`"subConfigurations": {"vibe-d:core": "vibe-core"}` in 
dub.json).


Forgot to mention: Due to the way DUB currently handles
"subConfigurations", an explicit dependency to "vibe-d:core" 
must also
be present in the same package recipe, or it will silently do 
nothing.

I'll try to improve this for the next release.


I don't understand what you mean. Will vibe-d:core be added as 
s

dependency?


So you need to have both, subConfiguration(s) and 
dependenc(y/ies) in the package recipe, for example:


name "foo"
dependency "vibe-d:web" version="~>0.8.0-beta"
// <- this would usually be the only dependency necessary,
// but the following one is necessary so that subConfiguration
// actually works:
dependency "vibe-d:core" version="~>0.8.0-beta"
subConfiguration "vibe-d:core" "vibe-core"


Still does not works, it always try to build vibe-d:core with 
libevent, only way how to avoid it, is to manualy remove all 
others configurations from vibe-d:core dub.sdl


Re: Updated LDC snap package with link-time optimization (LTO) support

2017-02-10 Thread Daniel Kozak via Digitalmars-d-announce

Dne 10.2.2017 v 17:30 David Nadlinger via Digitalmars-d-announce napsal(a):

On Thursday, 9 February 2017 at 17:16:35 UTC, Joseph Rushton Wakeling 
wrote:
This package should be possible to install on Ubuntu 16.04 or later, 
or Ubuntu 14.04, as well as any other distro making available a 
recent version of snapd (2.21 or later):

https://snapcraft.io/docs/core/install


Hmm, for whatever reason, Arch still ships 2.16 by default… Seems to 
work fine on Ubuntu 16.10, though.


 — David

http://www.phoronix.com/scan.php?page=news_item=Snaps-v-Flatpaks-Linux-Distros



Re: two points

2017-02-09 Thread Daniel Kozak via Digitalmars-d-announce

Dne 9.2.2017 v 21:43 Walter Bright via Digitalmars-d-announce napsal(a):


On 2/9/2017 12:29 PM, Joseph Rushton Wakeling wrote:
Yes, but it could be good to examine what can be done to more 
pro-actively look

at open PRs that have had no recent follow-up.


*Anyone* in this community can step up and do that.

This obviously does not work :(



Re: Call for arms: Arch Linux D package maintenance

2017-02-07 Thread Daniel Kozak via Digitalmars-d-announce
Dne 7.2.2017 v 12:52 Joseph Rushton Wakeling via Digitalmars-d-announce 
napsal(a):



On Thursday, 2 February 2017 at 10:08:19 UTC, Daniel Kozak wrote:

I belive arch would prefer flatpak ;)


Didn't notice this before, but: the good thing about both snap and 
flatpak is one doesn't have to choose between them; these packages can 
coexist on the same system.


So as long as Arch is prepared to have an up to date snapd in its 
repos, snap packages should Just Work for those who want to use them.

Yes that is true ;)


Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread Daniel Kozak via Digitalmars-d-announce
I belive arch would prefer flatpak ;)

Dne 2. 2. 2017 11:06 AM napsal uživatel "qznc via Digitalmars-d-announce" <
digitalmars-d-announce@puremagic.com>:

> On Wednesday, 1 February 2017 at 12:47:51 UTC, Dicebot wrote:
>
>> As I have previously announced (http://forum.dlang.org/post/o
>> 6fbbu$1qli$1...@digitalmars.com), I am stepping down from maintaining Arch
>> Linux packages for D.
>>
>> That means there are 3 possibilities:
>>
>> - No one will adopt them and all packages will be moved to AUR
>> - Some existing Trusted User decided to adopt them
>> - Someone from D community decides to become Trusted User and adopts them
>>
>
> In another thread [0] Snap packages are discussed. What is the view of
> Arch? If Snap wins, there would be only one package to maintain for all
> distros.
>
> [0] https://forum.dlang.org/post/mzklrdgeyymuwmtqz...@forum.dlang.org
>


Re: mysql-native: API Refresh RC

2017-01-30 Thread Daniel Kozak via Digitalmars-d-announce

Dne 30.1.2017 v 10:53 aberba via Digitalmars-d-announce napsal(a):


On Monday, 30 January 2017 at 08:09:18 UTC, Daniel Kozak wrote:

Wow :) Maybe it is time to go back from mysql-lited to mysql-native :)


I doubt that. Mysql-lited has support for using a struct as a Schema 
for DB queries. The @as and @optional properties are so useful for 
project I'm working on.


Unless mysql-native has that.

I do not use any of these  :)


Re: mysql-native: API Refresh RC

2017-01-30 Thread Daniel Kozak via Digitalmars-d-announce

Dne 30.1.2017 v 10:14 Dejan Lekic via Digitalmars-d-announce napsal(a):


On Monday, 30 January 2017 at 02:56:27 UTC, Nick Sabalausky wrote:
I've been working on a big refresh of mysql-native's API, to take 
care of various issues that have appeared with it. It involves some 
major breaking changes (although I've tried to keep old interfaces 
around for the moment, but marked deprecated), so I wanted to post it 
before committing to it so those interested have a change to take a 
look, give feedback, catch problems, etc.


It is all really nice, but I think it would be nice to have an API 
that is as close to the C API as possible, for those developers out 
there familiar with the MySQL C API.
No. Why? It does not make sense, almost nobody use C API directly. 
Everybody I know use some library build around C API.




Re: mysql-native: API Refresh RC

2017-01-30 Thread Daniel Kozak via Digitalmars-d-announce

Wow :) Maybe it is time to go back from mysql-lited to mysql-native :)


Dne 30.1.2017 v 03:56 Nick Sabalausky via Digitalmars-d-announce napsal(a):
I've been working on a big refresh of mysql-native's API, to take care 
of various issues that have appeared with it. It involves some major 
breaking changes (although I've tried to keep old interfaces around 
for the moment, but marked deprecated), so I wanted to post it before 
committing to it so those interested have a change to take a look, 
give feedback, catch problems, etc.


Summary of these changes:

API overhauled for better safety, reliability and ease-of-use. 
Deprecated and replaced entire Command struct with better design. 
Better handling of null. Various bugs fixed and more rigorously tested.


--

For right now, the changes are in a separate fork, here:

https://github.com/Abscissa/mysql-native-experimental

The readme there has sample code and an overview of the new interface.

Changelog: 
https://github.com/Abscissa/mysql-native-experimental/blob/master/CHANGELOG.md


API ref: http://semitwist.com/mysql-native-docs/v0.2.0-preview1

---

So take a look, let me know if there's any big issues with it. If all 
looks good, this will soon be released as mysql-native v0.2.0.




Re: Release D 2.072.0

2016-11-09 Thread Daniel Kozak via Digitalmars-d-announce

Dne 9.11.2016 v 15:17 Dicebot via Digitalmars-d-announce napsal(a):


Sadly, because of overwhelming project breakage I have to revert Arch
Linux dmd package version back to 2.071.2 until 2.072.1 is out :(

Going to look into known regressions later this week, at least some of
them look easily fixable to become deprecations.

Thank you


Re: Release D 2.072.0

2016-11-06 Thread Daniel Kozak via Digitalmars-d-announce

Dne 6.11.2016 v 07:58 Sönke Ludwig via Digitalmars-d-announce napsal(a):


Am 03.11.2016 um 14:18 schrieb Andre Pany:

On Thursday, 3 November 2016 at 12:17:29 UTC, Sönke Ludwig wrote:

Am 03.11.2016 um 06:58 schrieb Andre Pany:

Temp-folder builds are only done if the special shebang invocation
syntax is used (i.e. "dub file.d 

Unfortunately yes, the behavior of dub included in dmd 2.072 is not as
expected (windows & linux).

/+ dub.sdl:
name "app"
+/
void main(){}

dub --single app.d

Running
..\..\..\..\..\Users\abcdef\AppData\Local\Temp\.dub\build\app-~master\application-debug-windows-x86-dmd_2072-A4FA96FDE8C9353FB025486E4835F2E0\app.exe 





Same behavior for dub build --single app.d

Kind regards
André


I checked now and the version included in the (Windows) DMD bundle 
indeed reports as 1.0.0, so the fix is not present. But the next DMD 
point release will include 1.1.1, which includes all changes to date. 
I'll also put binaries of 1.1.0 on code.dlang.org in a few minutes.


Is there a place when one can check this? I mean in which repository 
this is placed?




Re: New team member: Lucia

2016-10-13 Thread Daniel Kozak via Digitalmars-d-announce
Dne 13.10.2016 v 20:15 Andrei Alexandrescu via Digitalmars-d-announce 
napsal(a):



Hello everyone,


Please join me in welcoming Lucia Lucia Cojocaru to our team. Lucia is 
a MSc student in computer security, having Razvan Deaconescu and 
Razvan Rughiniș as advisers. She just completed an internship at 
Bloomberg.


Her BSc thesis work[1] is an educational tool for facilitating better 
understanding of dynamic linking and loading. The code is open source[2].


Lucia is interested in D-related projects for her MSc research.

The plan with our new team members Lucia and Alexandru (and hopefully 
1-2 more) is to first get them through a month-long bootcamp process 
during which they get familiar with the language and toolchain. An 
integral part of the bootcamp is to get a few bugs fixed such that the 
newcomers make some positive impact from the get-go and get used to 
the review process.



Thanks,

Andrei

[1] 
https://drive.google.com/file/d/0B_idW6n517Zfb3lLaGJJckp4Y0U/view?usp=sharing

[2] https://github.com/somzzz/dyninspector

Hello Lucia, welcome in D community


Re: Beta 2.072.0-b1

2016-10-01 Thread Daniel Kozak via Digitalmars-d-announce
Nice work. One small issue link to Unrestricted Unions 



http://dlang.org/changelog/2.072.0.html#unrestricted_unions does not work


Dne 1.10.2016 v 22:57 Martin Nowak via Digitalmars-d-announce napsal(a):

First beta for the 2.072.0 release.

This release comes with many new phobos features, native TLS support on
OSX, the first bunch of @safety enhancements (try -transition=safe), and
a few smaller language and compiler additions.

This is also the first dmd release to include dub.

http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.072.0.html

Unfortunately we still need to resolve a regression that causes issues
with EncodingScheme.create
(https://issues.dlang.org/show_bug.cgi?id=16291), you might run into
problems when using std.net.curl.

In case you run into a yet unknown module cycle, this is
likely due to the fixed cycle detection.
We're still working on a -DRT-cyclecheck=printonly switch to allow
making those non-fatal.
https://github.com/dlang/druntime/pull/1602#issuecomment-248447332

Please report any bugs at https://issues.dlang.org

-Martin





Re: Terminix 1.30 Released

2016-09-30 Thread Daniel Kozak via Digitalmars-d-announce

On Friday, 30 September 2016 at 18:32:37 UTC, Gerald wrote:
Terminix 1.30 has been released, for those not familiar with it 
Terminix is a Linux terminal emulator targeting the Gnome 
desktop environment. It is written in D using the GtkD library.


More information about Terminix is available on github here 
https://github.com/gnunn1/terminix.


The following features were added in this release:

- Quake mode support
- Password manager
- Custom hyperlinks
- Advanced paste dialog
- Set a default session name
- Quick session switcher
- Experimental trigger support

I'm always looking for people who are interested in 
contributing, hence my announcing the new releases here.


One problem, when I run terminix in quake mode, there is missung 
icon on my top bar in gnome shell and there is no way to go to 
preferences, in normal window mode everything works ok.


Btw. really good work, i really like terminix and use it for some 
time now, but with quake mode (it is nice that there is no 
keybinding because it works really nice with wayland) I can 
remove guake from my system and use terminix for everything even 
on wayland. Thx


Re: Terminix 1.30 Released

2016-09-30 Thread Daniel Kozak via Digitalmars-d-announce

On Friday, 30 September 2016 at 18:32:37 UTC, Gerald wrote:
Terminix 1.30 has been released, for those not familiar with it 
Terminix is a Linux terminal emulator targeting the Gnome 
desktop environment. It is written in D using the GtkD library.


More information about Terminix is available on github here 
https://github.com/gnunn1/terminix.


The following features were added in this release:

- Quake mode support
- Password manager
- Custom hyperlinks
- Advanced paste dialog
- Set a default session name
- Quick session switcher
- Experimental trigger support

I'm always looking for people who are interested in 
contributing, hence my announcing the new releases here.


It is 1.30 or 1.3.0 because github download link is: 
https://github.com/gnunn1/terminix/releases/download/1.3.0/terminix.zip


New user, even she does not know yet

2016-09-26 Thread Daniel Kozak via Digitalmars-d-announce

https://onedrive.live.com/?authkey=!AEQ5lsngH-Oe3DA=87E57DF7155C89C9!24197=87E57DF7155C89C9


Re: Ocean v2.1.1 released

2016-09-23 Thread Daniel Kozak via Digitalmars-d-announce

On Friday, 23 September 2016 at 03:04:29 UTC, Chris Wright wrote:

What does Ocean do?


From github repo:

Ocean is a general purpose library, compatible with both D1 and 
D2, with a focus on supporting the development of 
high-performance, real-time applications. This focus has led to 
several noteworthy design choices:


Ocean is not cross-platform. The only supported platform is Linux.
Ocean assumes a single-threaded environment. Fiber-based 
multi-tasking is favoured, internally.
Ocean aims to minimise use of the D garbage collector. GC collect 
cycles can be very disruptive to real-time applications, so Ocean 
favours a model of allocating resources once then reusing them, 
wherever possible.
Ocean began life as an extension of Tango, some elements of which 
were eventually merged into Ocean.


Re: LDC: Speed up incremental builds with object file caching

2016-09-18 Thread Daniel Kozak via Digitalmars-d-announce

On Sunday, 18 September 2016 at 10:21:41 UTC, Daniel Kozak wrote:
Dne 18.9.2016 v 10:07 Johan Engelen via Digitalmars-d-announce 
napsal(a):


On Saturday, 17 September 2016 at 19:17:44 UTC, Daniel Kozak 
wrote:


Nice article, however font on this site is too small to read, 
I have to zoom in :(


Do more people have this problem? For me, the font size is 
similar to, say, Github.


Maybe it is a font type (it is light) this is how it looks on 
my display:

http://imgur.com/a/r6pX8


But on my android phone it is OK. So maybe I should bought some 
2k or 4k monitor ;)


Re: LDC: Speed up incremental builds with object file caching

2016-09-18 Thread Daniel Kozak via Digitalmars-d-announce

Dne 18.9.2016 v 10:07 Johan Engelen via Digitalmars-d-announce napsal(a):


On Saturday, 17 September 2016 at 19:17:44 UTC, Daniel Kozak wrote:


Nice article, however font on this site is too small to read, I have 
to zoom in :(


Do more people have this problem? For me, the font size is similar to, 
say, Github.


Maybe it is a font type (it is light) this is how it looks on my display:
http://imgur.com/a/r6pX8



Re: LDC: Speed up incremental builds with object file caching

2016-09-17 Thread Daniel Kozak via Digitalmars-d-announce

Dne 17.9.2016 v 20:46 Johan Engelen via Digitalmars-d-announce napsal(a):


I just finished another post about LDC:
https://johanengelen.github.io/ldc/2016/09/17/LDC-object-file-caching.html 



Thanks in advance for letting me know about any bugs you find, in the 
text or in the code :)


-Johan

Nice article, however font on this site is too small to read, I have to 
zoom in :(


Re: Adventures in D Programming

2016-05-12 Thread Daniel Kozak via Digitalmars-d-announce

Dne 12.5.2016 v 23:08 Matthias Klumpp via Digitalmars-d-announce napsal(a):

First of all, that blogpost generated way more buzz than I expected - 
looks like D is highly interesting to people, which is great news :-)


To elaborate a bit more on the version incompatibilities thing: E.g. 
me as a new user reads about std.concurrency.Generator, wants to use 
it, and it turns out that the standard library doesn't contain it yet 
(in GDC). Same for std.experimental.logger.

Okay, means I can't use these.


This is something I do not like. It would be awesome if I could use new 
version of phobos (dub package for eg.) in a dmd, ldc or gdc. Having 
language which is so unstable so is almost impossible to use standard 
library with older frontend is really anoying.


Then, I wanted to use std.getopt - turns out the semantics have 
changed and new stuff has been added there too, which I can't use. 
Meh, if the docs would have at least told me that.


I knew it :). I end up with same problem with std.getopt. It was a 
reason for this post: 
http://forum.dlang.org/post/srhttrxrqawhspibd...@forum.dlang.org


std.getopt has been backward compatible but it was not forward 
compatible. So because there is only latest docs available you are 
doomed :(.


Then, I want to use D-YAML, which depends on std.stream. But 
std.stream is completely deprecated, with no clear path for me to see 
to replace it. That's really bad, and it also means I can't compile my 
code with making the use of deprecated stuff fail the compilation.


I am not sure what exactly this deprecation message say, but you 
definitely should not used std.stream at all in a first place ;-).


That was by far the most frustrating things I experienced in D. So 
ideally the docs would be split for different Phobos versions, that 
would already be a great help. 


Yes this would help a lot.
Then, when deprecating stuff, showing a thing that replaces it or the 
proper way to write code using it would also be really nice.
E.g. wile I welcome the deprecation of std.net.curl in principle 
(having to link against an external library in the standard lib is 
odd), announcing to drop it before any replacement which offers 
feature-parity is written is bad (sidenote: IMHO the advanced net 
stuff shouldn't be in the standard library, because it's harder to 
update in case of security updates and bad crypto).


It would actually be really awesome if Phobos wasn't tied to a 
compiler, and all D compilers which are standard-compliant could 
compile it. Then, one could assume that people have the most recent 
Phobos. But it looks like it will take a longer time to get there, if 
at all.


I hope it would not take so much time. This is really important if D 
want to succeed.


Another thing that I didn't mention in the blogpost, but which might 
be interesting is that D - unlike Rust and Go - doesn't have a way 
that lets developers do a shallow-dive into the language by giving 
practical examples.
For example, Go has the really awesome Go Tour[1] which lets you 
explore and learn the basic concepts of the language by example.
For me, going through the tour was enough to actually start writing Go 
code, and while it certainly isn't complete, it is a nice way to show 
off the language and give people a taste of how it looks like. Rust 
has something similar with its tutorial[2]. For D, I haven't found an 
"in a nutshell" tutorial, and needed to read a bit more documentation 
and employ my existing C/C++ knowledge in some cases.
Having something like the Go tour for D would IMHO be an wesome way to 
attract people to try D.
There is already http://tour.dlang.io, but I do not have yet time to try 
it so I can't speak about maturity and so on. Other problem is with 
complexity of D. I believe even I can write book about D, which make 
people able to write almost anything in D. But they will not be able to 
read all D code. Go is OTOH really easy language so you need book with 
around 200 pages to explain everything. But with D I am not sure that 
even 1000 of pages would be enough :(.


Cheers,
Matthias


[1]: https://tour.golang.org/welcome/1
[2]: https://doc.rust-lang.org/book/guessing-game.html




Re: To all DConf speakers: please upload slides!

2016-05-12 Thread Daniel Kozak via Digitalmars-d-announce
Dne 12.5.2016 v 22:55 Steven Schveighoffer via Digitalmars-d-announce 
napsal(a):



On 5/12/16 4:13 PM, Seb wrote:

On Wednesday, 11 May 2016 at 09:17:54 UTC, Dicebot wrote:

To do the editing of HD videos we need presentation slides which are
currently scattered over different places. It would help a lot to have
them all in github.com/dlang/dlang.org repo - please submit pull
requests asap!


Just a minor complaint - would it be possible for the next dconf to have
the slides (or a link to them) on dconf.org before the talk starts?
Thanks for the great work!


I think it's better to not have the slides available until the talk 
starts. 


No, you are wrong. It would be really nice to have them. I would say it 
was one of the biggest failures of dconf for people who can't attend.
There may be jokes/surprises in the slides that you don't want to give 
away before the talk happens :)


-Steve


If there is anything you do not want to make available before talks. You 
don't have to ;).






Re: Adventures in D Programming

2016-05-08 Thread Daniel Kozak via Digitalmars-d-announce

Dne 8.5.2016 v 21:09 Daniel Kozak napsal(a):


Dne 8.5.2016 v 19:19 qznc via Digitalmars-d-announce napsal(a):


On Sunday, 8 May 2016 at 06:05:36 UTC, Iain Buclaw wrote:

http://blog.tenstral.net/2016/05/adventures-in-d-programming.html


Thanks, I missed that post until now.


"the documentation not matching the actual code is a bad experience 
for someone new to the language"


I would interpret that as a sign that we want multiple versions of 
documentation available on the website. For example, Python does that.


https://docs.python.org/3.4/contents.html

You see the "3.4" version in the URL and on the page top-left is a 
dropdown menu to switch between versions.


Has this been discussed for Phobos yet?
I remember that I have mentioned that once here, but I thing there was 
not big interest at it :(

http://forum.dlang.org/post/srhttrxrqawhspibd...@forum.dlang.org


Re: Adventures in D Programming

2016-05-08 Thread Daniel Kozak via Digitalmars-d-announce

Dne 8.5.2016 v 19:19 qznc via Digitalmars-d-announce napsal(a):


On Sunday, 8 May 2016 at 06:05:36 UTC, Iain Buclaw wrote:

http://blog.tenstral.net/2016/05/adventures-in-d-programming.html


Thanks, I missed that post until now.


"the documentation not matching the actual code is a bad experience 
for someone new to the language"


I would interpret that as a sign that we want multiple versions of 
documentation available on the website. For example, Python does that.


https://docs.python.org/3.4/contents.html

You see the "3.4" version in the URL and on the page top-left is a 
dropdown menu to switch between versions.


Has this been discussed for Phobos yet?
I remember that I have mentioned that once here, but I thing there was 
not big interest at it :(


Re: code-debug 0.3.0 released (GDB for vscode)

2016-02-10 Thread Daniel Kozak via Digitalmars-d-announce



Dne 9.2.2016 v 23:31 WebFreak001 via Digitalmars-d-announce napsal(a):

ext install debug

How can I install it? Where I should put this command?
ext install debug


Re: code-debug 0.3.0 released (GDB for vscode)

2016-02-10 Thread Daniel Kozak via Digitalmars-d-announce
On Wednesday, 10 February 2016 at 14:09:43 UTC, Daniel Kozak 
wrote:



Dne 9.2.2016 v 23:31 WebFreak001 via Digitalmars-d-announce 
napsal(a):

ext install debug

How can I install it? Where I should put this command?
ext install debug


OK I found it :). I cant just put ext install debug and hit enter 
(this will install debugger for chrome)


Re: Found on twitter: a long comparison of C with D, in Russian

2016-02-10 Thread Daniel Kozak via Digitalmars-d-announce

It is sad we still have official pages with something like this :(


   The D Way

The length of an array is accessible through the property "length".

int  array[17];
foreach  (i; 0 .. array.length)
 func(array[i]);

or even better:

int  array[17];
foreach  (int  value; array)
func(value);



Dne 10.2.2016 v 21:12 Andre Polykanine via Digitalmars-d-announce napsal(a):

JvDda> https://habrahabr.ru/post/276227/

It states that it actually is the translation of this one:
http://dlang.org/ctod.html
 :)
But thanks anyway!

A
ndre.





Re: Release vibe.d 0.7.27

2016-02-10 Thread Daniel Kozak via Digitalmars-d-announce



Dne 10.2.2016 v 09:50 Iain Buclaw via Digitalmars-d-announce napsal(a):
On 9 February 2016 at 20:16, Sönke Ludwig 
> wrote:


This release brings some larger changes:

 - The library has been split up into sub packages: code, utils, data,
   http, mail, diet, mongodb, redis and web. This is an intermediate
   step to moving the individual packages out to separate repositories
   with independent version numbers.

 - A lot of work went into performance tuning. Single-core performance
   of the HTTP server is improved by about +50% and multi-core
   performance scales properly again after excessive lock contention
   sneaked in in one of the previous releases. The number of worker
   threads is now also properly determined on all systems (including
   multi-CPU), which should fix the numbers for multi-threaded
   benchmarks (an update to the TechEmpower benchmark suite is on the
   way).

 - The REST interface generator now supports modelling collections
with
   native D syntax using Collection!T. It also adds support for CORS.

 - The std.concurrency integration has been fixed and re-enabled - you
   can now use std.concurrency without worrying about blocking the
   event loop. In case of problems (std.concurrency doesn't support
   passing certain kinds of values), the old implementation can still
   be accessed as sendCompat/receiveCompat/...

 - Compiles on 2.066.0 up to 2.070.0. Note that this will be the last
   release that supports the 2.066.x frontend. The next release will
   require at least 2.067.0 or maybe even 2.068.0 (still TBD).
This may
   unfortunately rule out GDC for the time being.


Not a problem.  We may be on 2.068 sooner than you think (I know that 
2.067 has been in branch/PR forever ;-)


Iain.

Wow, that would be awesome :)


Re: New D book available for pre-order: D Web Development

2016-01-30 Thread Daniel Kozak via Digitalmars-d-announce

On Sunday, 24 January 2016 at 14:35:53 UTC, Kai Nacke wrote:

On Sunday, 24 January 2016 at 13:03:42 UTC, notna wrote:

Any news? Just some days left until "January 2016" is over ;)


I am checking the pre-final PDFs of the last chapters right now.
Publishing date will be very soon

Regards,
Kai


It is available now :)


Re: Three Cool Things about D

2015-12-26 Thread Daniel Kozak via Digitalmars-d-announce

https://strongloop.com/strongblog/compare-javascript-templates-jade-mustache-dust/

Andrei Alexandrescu via Digitalmars-d-announce 
 napsal So, pro 26, 2015 v 8∶58 
:

On 12/26/15 1:35 PM, Rory McGuire via Digitalmars-d-announce wrote:
I have a full Jade template parser in Pegged that I just need to 
finish

the d code gen part, could it be an interesting example?


Yes. How well-known is Jade? -- Andrei


Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread Daniel Kozak via Digitalmars-d-announce

On Monday, 7 December 2015 at 20:42:21 UTC, Adam D. Ruppe wrote:

On Monday, 7 December 2015 at 19:37:11 UTC, deadalnix wrote:

Adam won't be coming ?


I haven't decided for sure yet, but probably not. I don't like 
travel at all and the thought of a trans-atlantic flight 
strikes me as the worst.


I just bought print version of your book, so I hope you will 
change your decision, so I can have all my D books with author's 
signature ;)


Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread Daniel Kozak via Digitalmars-d-announce
On Monday, 7 December 2015 at 17:39:14 UTC, Andrei Alexandrescu 
wrote:

We're over 20% full and seats are going fast!



I hope I was the first one :D.

We planned to send an announcement when we're 50% sold out. 
However, this time around registrations are coming quite a bit 
quicker than before so we thought we'd keep you posted earlier.


At this time DConf is over 20% sold out. That's only three 
weeks after opening early bird registration and without having 
announced the program. (Which, of course, will be great.) The 
point here is, if you're considering going to DConf, you may 
want to secure your early bird registration now at 
http://dconf.org/2016/registration.html.


On another vein, we're pleased to announce a book signing 
session by D book authors. Kai Nacke, Mike Parker, Ali Çehreli, 
and Andrei Alexandrescu will sign their respective books. Bring 
your copy (it better be dog-eared) or buy one on site (limited 
quantities available). Details forthcoming.


I allready have print version of yours and Ali's book but only 
ebook version of Learning D, so I have to ( or must to I never 
known which one is correct) upgrade to print one and pre-order 
Kai's book about vibe.d  :).


Looking forward to seeing you at DConf!


Andrei


Me too :)



Re: Official Announcement: 'Learning D' is Released

2015-12-01 Thread Daniel Kozak via Digitalmars-d-announce
V Tue, 01 Dec 2015 06:17:15 +
Mike Parker via Digitalmars-d-announce
 napsáno:

> Due to a minor mix up at the end of an otherwise enjoyable 
> process, I wasn't notified that 'Learning D' was released on Nov 
> 27. Today, I finally got that notification. Despite there already 
> being a thread on the topic here in this forum, please forgive me 
> for taking the opportunity to make my "official" announcement :)
> 
> 'Learning D' is available from the publisher's website[1], where 
> a sample[2] can also be viewed for those who want to try before 
> they buy. It's also available from Amazon[3].
> 
> Thanks to Walter for kindly providing a Foreword and to all the 
> reviewers for their valuable feedback.
> 
> The source will be downloadable from the publisher's website, but 
> I intend to put up a repository on GitHub to make sure it stays 
> up to date. I'll be posting more about the book on my blog[4] in 
> the near future.
> 
> If you know any C-family programmers who are interested in 
> learning D, this book was written with them in mind. I hope 
> people find it useful.
> 
> [1] https://www.packtpub.com/application-development/learning-d
> [2] 
> https://www.packtpub.com/packtlib/book/Application%20Development/9781783552481
> [3] 
> http://www.amazon.com/Learning-D-Michael-Parker/dp/1783552484/ref=as_li_ss_tl?ie=UTF8=1448948127=8-1=learning+d=sl1=aldacron-20=b0490265742705a2e3dd6fd25536b006
> [4] http://dblog.aldacron.net

http://wiki.dlang.org/Books should be updated :)



Re: Official Announcement: 'Learning D' is Released

2015-12-01 Thread Daniel Kozak via Digitalmars-d-announce
V Tue, 01 Dec 2015 15:27:35 +
bachmeier via Digitalmars-d-announce
 napsáno:

> Sorry to steal your thunder. I assumed I wasn't keeping up. I 
> actually went to that website because I had just noticed Kai 
> Nacke's book announcement from July, and there was your book, at 
> half price.
> 
> I strongly recommend Learning D to anyone wanting to learn more 
> about D. Count this as a five star review. Well worth the money.

+1 :)



Re: Learning D

2015-11-30 Thread Daniel Kozak via Digitalmars-d-announce
V Mon, 30 Nov 2015 04:09:42 +
Mike Parker via Digitalmars-d-announce
 napsáno:

> On Monday, 30 November 2015 at 02:36:01 UTC, bachmeier wrote:
> > The book "Learning D" by Michael Parker is available at half 
> > price through November 30:
> >
> > https://www.packtpub.com/application-development/learning-d
> >
> > I did not know it was out, but I bought a copy today, and it is 
> > quite a resource. It looks like it covers a lot of topics for 
> > which the documentation isn't helpful (at least to me) or 
> > nonexistent.
> >
> > "D Web Development" can also be preordered at half price:
> >
> > https://www.packtpub.com/web-development/d-web-development  
> 
> Thanks for posting this! I wasn't aware. The publisher has yet to 
> notify me.

It is availible from 28 November :),
https://twitter.com/kozzi11/status/670526073684238336

Btw. I really like this book :)



Re: D compiler daily downloads at an all-time high

2015-11-16 Thread Daniel Kozak via Digitalmars-d-announce

On Monday, 16 November 2015 at 16:04:09 UTC, David Gileadi wrote:

On 11/16/15 8:57 AM, Andrea Fontana wrote:

So November is the dmd month and nobody knows.


It would make more sense for it to have been D-cember.


Not in all languages :)

czech

november - Listopa-D
D-ecember - prosinec

So Listopad make sense here :P, Btw, it is my birthday this month


Re: D compiler daily downloads at an all-time high

2015-11-16 Thread Daniel Kozak via Digitalmars-d-announce

On Monday, 16 November 2015 at 17:49:34 UTC, ixid wrote:
On Monday, 16 November 2015 at 15:20:51 UTC, Andrei 
Alexandrescu wrote:
That's a new all-times high ever since we started measuring on 
January 02, 2013. The previous record, 1630 average daily 
downloads, was established in the four weeks ending November 
17, 2014.


Andrei


That looks more like growth has plateaued which should be 
extremely concerning.


Not at all. If you look at graph. You will see it is ok, from my 
point of view. I am not interested in a peek. What is more 
interesting are minimums. And those seems to rise :).


Re: DConf 2016 Early Bird Registration Open

2015-11-16 Thread Daniel Kozak via Digitalmars-d-announce
On Monday, 16 November 2015 at 17:18:04 UTC, Andrei Alexandrescu 
wrote:

http://dconf.org/2016/registration.html

The DConf 2016 registration is now open. Early bird 
registration is $250, regular registration (after we publish 
the schedule on Feb 29) is $400.


Those of you who cannot attend are welcome to figure as 
individual sponsors for $50.


We are in the process of defining corporate sponsorship 
packages. Please contact the Foundation at 
dconf2...@digitalmars.com for details.



Thanks,

Andrei


http://dconf.org/2016/thankyou.html return Not found :)


Re: DConf 2016, Berlin: Call for Submissions is now open!

2015-10-28 Thread Daniel Kozak via Digitalmars-d-announce
Wow, I can't wait :-). One question, when I would be able to make a
registration?

Dne 23. 10. 2015 18:40 napsal uživatel "Andrei Alexandrescu via
Digitalmars-d-announce" :
>
> Please join us at DConf 2016, the conference of the D programming
language in Berlin, Germany, May 4-6 2016.
>
> We're very very excited to hold DConf under Sociomantic's sponsorship in
their neck of the woods—Berlin, one of Europe's premier technology hotbeds.
Sociomantic has been a long-time supporter and user of D and we're grateful
to benefit of their hosting.
>
> The D programming language has continued to grow strongly through 2015 in
both use and development participation. The fledgling D Language Foundation
is poised to lead and organize the community better than ever before. DConf
is the main face-to-face event for everyone and everything related to the D
language and environment. The 2016 edition will be held in premiere in
Europe, on the heels of strong D adoption throughout the Old Continent.
We're gearing for our largest event yet!
>
> Call for Submissions
>
> We are looking forward to your submission for a paper, talk, demo, or
panel for DConf 2016. The topics of choice are anything and everything
related to the D language. For more details, check the conference page:
>
> http://dconf.org/2016/index.html
>


Re: The D Language Foundation is now incorporated

2015-10-16 Thread Daniel Kozak via Digitalmars-d-announce
Andrei Alexandrescu píše v Pá 16. 10. 2015 v 13:04 +0300:
> We are pleased to announce that the D Language Foundation is now 
> incorporated with the state of Washington, USA. The foundation's
> Board 
> of Directors are Walter Bright, Ali Çehreli, and myself.
> 
> Our initial administrative meeting will take place on Monday. Agenda 
> includes EIN (Employee Identification Number) application, funding,
> and 
> immediate plans for the foundation.
> 
> Going forward we're applying for a non-profit status, which is a
> longer 
> process (3-6 months).
> 
> We're very excited about the creation of the D Language Foundation
> and 
> we hold high hopes that it will have a strong positive effect on the
> D 
> language and community.
> 
> 
> Andrei
> Foundation

First foundation, where I am going to donate some money :).


Re: Fastest JSON parser in the world is a D project

2015-10-15 Thread Daniel Kozak via Digitalmars-d-announce
Daniel Kozak via Digitalmars-d-announce píše v Čt 15. 10. 2015 v 11:07
+0200:
> 
> 
> Gary Willoughby via Digitalmars-d-announce <digitalmars-d-announce@pu
> remagic.com> napsal Čt, říj 15, 2015 v 10∶08 :
> > On Wednesday, 14 October 2015 at 07:01:49 UTC, Marco Leise wrote:
> > fast:      0.34s, 226.7Mb (GDC)
> > RapidJSON: 0.79s, 687.1Mb (GCC)
> > 
> > (* Timings from my computer, Haswell CPU, Linux amd64.)
> > 
> > Where's the code?
> code.dlang.org

https://github.com/mleise/fast


Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Daniel Kozak via Digitalmars-d-announce
Adam D.Ruppe píše v Út 29. 09. 2015 v 12:05 +:
> On Tuesday, 29 September 2015 at 08:54:39 UTC, Daniel Kozak wrote:
> > Wow, I need something like this 3 weeks ago, but I dont have 
> > time to implement this myself, so I end up with phpMailer. Now 
> > I can switch my little e-mailing system to Dlang. Thank you.
> 
> If you ever need something in D, ask me first there's a good 
> chance I've written it!
> 
> https://github.com/adamdruppe/arsd/blob/master/email.d
> 
> there's also a good chance I haven't documented it too 
> though...
> 
> but the way mine works is something like:
> 
> ---
> import arsd.email;
> void main() {
>  auto message = new EmailMessage();
>  message.to ~= "destructiona...@gmail.com";
>  message.from = "t...@arsdnet.net";
>  message.subject = "test";
>  message.setHtmlBody(" />test");
>  message.addAttachment("text/csv", "cool.csv", 
> "whoa,mang");
>  message.addAttachment("text/wtf", "whoa.wtf", "WTF\nMAN");
>  message.addInlineImage("amazing", "image/png", 
> "black.png",
> import("black.png"));
>  message.send();
> }
> ---
> 
> 
> The send method uses std.net.curl to do the actual sending (the 
> smtp connection information is a default argument to the method.
> 
> 
> My lib also has a function:
> 
> void email(string to, string subject, string message, string 
> from, RelayInfo mailServer = RelayInfo("smtp://localhost")) {}
> 
> 
> for sending a plain text email quickly and easily, similar to 
> PHP's mail function.

Thanks, I will look at it.

I only look at code.dlang.org. It would be nice to have all of yours
stuff on code.dlang.org.






Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Daniel Kozak via Digitalmars-d-announce
Sebastiaan Koppe píše v Út 29. 09. 2015 v 03:53 +:
> This library[1] allows you to send multi-part emails with 
> attachments.
> 
> ```
> Mail email = new Mail;
> email.headers["Date"] = Clock.currTime().toRFC822DateTimeString();
> email.headers["Sender"] = "Domain.com Contact Form ";
> email.headers["From"] = "\"Example\" ";
> email.headers["To"] = "\"Bas\" ";
> email.headers["Subject"] = "My subject";
> import std.stdio : File;
> email.setContent(
>  mailMixed(
>  mailRelated(
>  mailAlternative(
>  
> mailHtml("asdfasdfasdf"),
>  mailText("asdfasdfasdf")
>  )
>  ),
>  
> mailAttachment(File("test.png","rb"),"image/png","image.png"),
>  mailAttachment(cast(immutable(ubyte[]))"You are an 
> idiot!","plain/text","text.txt")
>  )
> );
> sendMail(settings, email);
> ```
> 
> [1] http://code.dlang.org/packages/vibemail

Wow, I need something like this 3 weeks ago, but I dont have time to
implement this myself, so I end up with phpMailer. Now I can switch my
little e-mailing system to Dlang. Thank you.


Re: Go 1.5

2015-09-19 Thread Daniel Kozak via Digitalmars-d-announce
No, collection could not occure if we speaking about current D GC
implementation. So it safe to set pointer before addRoot.
Dne 19. 9. 2015 21:00 napsal uživatel "Ola Fosheim Grøstad via
Digitalmars-d-announce" :

> On Saturday, 19 September 2015 at 18:20:16 UTC, Ola Fosheim Grøstad wrote:
>
>> I'm not sure if the current collector scans all registers, or just scans
>> the stack?
>>
>
> According to the docs it scans all registers, but even then one must be
> careful and do addRoot before the pointer is set, otherwise the CPU might
> flush the register and a collection could run between setting the pointer
> and addRoot...?
>
>


Re: Go 1.5

2015-09-19 Thread Daniel Kozak via Digitalmars-d-announce



Dne 19.9.2015 v 21:30 Ola Fosheim Grøstad via Digitalmars-d-announce 
napsal(a):
On Saturday, 19 September 2015 at 19:25:31 UTC, Ola Fosheim Grøstad 
wrote:

On Saturday, 19 September 2015 at 19:17:38 UTC, Daniel Kozak wrote:

No, collection could not occure if we speaking about current D GC
implementation. So it safe to set pointer before addRoot.


It can be triggered by another thread.

Wrong:

ptr = somestack.pop();
someglobalptr = ptr;
// ptr register flushed
// collection triggered by other thread
// other thread allocated the same memory for some other object
addRoot(ptr);


Typo:


addRoot(someglobalptr);



Yes, now it seems possible :)


Re: Release D 2.068.0

2015-08-11 Thread Daniel Kozak via Digitalmars-d-announce

On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote:

Glad to announce D 2.068.0.

http://downloads.dlang.org/releases/2.x/2.068.0/

This release comes with many rangified phobos functions, 2 new 
GC profilers, a new AA implementation, and countless further 
improvements and fixes.


See the changelog for more details. 
http://dlang.org/changelog.html#2.068.0


-Martin


I am sorry, but this release is horrible. It is a first time when 
I am force to do nothing with my codebase. Everything works as 
expected. So there is definitely something wrong :).


Re: Voting for std.experimental.allocator

2015-07-11 Thread Daniel Kozak via Digitalmars-d-announce

On Wed, 08 Jul 2015 11:33:01 +
Dicebot via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote:

 Andrei is back online and thus it is time to make a decision 
 about adding his allocator package 
 (http://forum.dlang.org/post/vfipmwojmvseqxoiw...@forum.dlang.org) to Phobos
 std.experimental
 
 Docs: 
 http://erdani.com/d/phobos-prerelease/std_experimental_allocator.html
 Code: 
 https://github.com/andralex/phobos/tree/allocator/std/experimental/allocator
 
 Please respond to this post with a comment starting with a single 
 Yes/No and optional explanation after that. Criteria you are 
 expected to evaluate as part of Yes:
 
 - is this functionality needed in Phobos
 - is basic design sound (some breaking changes are OK for 
 std.experimental but not full redesign)
 
 As usual, anyone can vote, but opinions of Phobos developers hold 
 more value.
 
 Voting ends in 2 weeks, on July 22.

Yes


Re: Arch Linux D package update

2015-06-04 Thread Daniel Kozak via Digitalmars-d-announce

On Thursday, 4 June 2015 at 15:09:02 UTC, Daniel Kozák wrote:


On Thu, 04 Jun 2015 14:46:38 +
Dicebot via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:


[...]


Please fix description:
Compiler for D programming language which uses gcc backend
(2.065
frontend version)

should be
Compiler for D programming language which uses gcc backend
(2.066.1
frontend version)

or remove info about frontend version completely


Btw.: Thank you for your work, it is really nice to have all D 
compilers a D tools in arch linux repository.


Re: D needs...

2015-05-21 Thread Daniel Kozak via Digitalmars-d-announce

On Thu, 21 May 2015 17:19:27 +
Namespace via Digitalmars-d-announce digitalmars-d-announce@puremagic.com
wrote:

 On Thursday, 21 May 2015 at 15:10:14 UTC, Daniel Kozak wrote:
  On Monday, 11 May 2015 at 11:59:02 UTC, Namespace wrote:
  Inspired by ponce idioms list for D I've set up something 
  similar.
  There are some themes in D which come up regulary and are 
  discussed to the vomit. If something is agreed, it gets 
  forgotten sometimes and the theme disappears into oblivion 
  (for a few months :P). To prevent this, I've collected some 
  hot-discussed themes, their history and their current state. I 
  hope this helps to avoid unnecessary discussions in the future 
  and finally cut off these issues (either with an official 
  decision Nope, keep as it is or with an implementation).
 
  I've tried to stay as objective as possible, but if something 
  seems to be too subjective, please let me know, so I can fix 
  it.
 
  http://dgame.github.io/dneeds/
 
  negation of attributes: 
  https://github.com/Kozzi11/dmd/tree/rever_attr
 
 No final(false)? :(

My first local version have final(bool), but after some thoughts I end up
with !final. It is little bit easier to implement and efficient.


Re: D needs...

2015-05-21 Thread Daniel Kozak via Digitalmars-d-announce

On Thu, 21 May 2015 17:19:27 +
Namespace via Digitalmars-d-announce digitalmars-d-announce@puremagic.com
wrote:

 On Thursday, 21 May 2015 at 15:10:14 UTC, Daniel Kozak wrote:
  On Monday, 11 May 2015 at 11:59:02 UTC, Namespace wrote:
  Inspired by ponce idioms list for D I've set up something 
  similar.
  There are some themes in D which come up regulary and are 
  discussed to the vomit. If something is agreed, it gets 
  forgotten sometimes and the theme disappears into oblivion 
  (for a few months :P). To prevent this, I've collected some 
  hot-discussed themes, their history and their current state. I 
  hope this helps to avoid unnecessary discussions in the future 
  and finally cut off these issues (either with an official 
  decision Nope, keep as it is or with an implementation).
 
  I've tried to stay as objective as possible, but if something 
  seems to be too subjective, please let me know, so I can fix 
  it.
 
  http://dgame.github.io/dneeds/
 
  negation of attributes: 
  https://github.com/Kozzi11/dmd/tree/rever_attr
 
 No final(false)? :(

I will probably implement all variants (final!bool, !final, final(bool),
default), if I have a enought spare time.


  1   2   >