Re: pragma(inline, true) not very useful in its current state?

2015-09-27 Thread Marco Leise via Digitalmars-d
Am Sat, 26 Sep 2015 19:58:14 +0200 schrieb Artur Skawina via Digitalmars-d : > `allow` is the default state and always safe; for the cases > where it's /undesirable/, there is noinline. > > artur No what I meant was when the compiler sees inline assembly or anything

Re: DIP82: static unittest blocks

2015-09-27 Thread Jonathan M Davis via Digitalmars-d
On Sunday, 27 September 2015 at 10:32:00 UTC, Kenji Hara wrote: 2015-09-27 14:01 GMT+09:00 Jonathan M Davis via Digitalmars-d < digitalmars-d@puremagic.com>: This DIP provides a way to handle unittest blocks inside of templates which works with ddoc without compiling the unittest blocks into

Re: pragma(inline, true) not very useful in its current state?

2015-09-27 Thread Marco Leise via Digitalmars-d
Am Sun, 27 Sep 2015 16:48:21 +0200 schrieb Artur Skawina via Digitalmars-d : > On 09/27/15 13:48, Marco Leise via Digitalmars-d wrote: > > Am Sat, 26 Sep 2015 19:58:14 +0200 > > schrieb Artur Skawina via Digitalmars-d > > : > > > >>

[Issue 15123] [REG2.069.0-devel] segfault when compiling simple SIMD code

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15123 Kenji Hara changed: What|Removed |Added Keywords||pull

[Issue 15123] [REG2.069.0-devel] segfault when compiling simple SIMD code

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15123 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/074f4f3379adafe64f632d11dcebea5df9afa170 fix Issue 15123 - segfault

[Issue 15123] [REG2.069.0-devel] segfault when compiling simple SIMD code

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15123 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: pragma(inline, true) not very useful in its current state?

2015-09-27 Thread Marco Leise via Digitalmars-d
Am Sat, 26 Sep 2015 21:11:07 +0200 schrieb Jacob Carlborg : > On 2015-09-26 18:42, Marco Leise wrote: > > > Maybe the compiler devs can decide on more common syntax like > > a generic core.attribute or just use pragma for inlining, but > > extend it so that it offers more options: >

Re: DIP82: static unittest blocks

2015-09-27 Thread Jack Stouffer via Digitalmars-d
On Sunday, 27 September 2015 at 05:01:48 UTC, Jonathan M Davis wrote: This DIP provides a way to handle unittest blocks inside of templates which works with ddoc without compiling the unittest blocks into each instantiation. I understand that this DIP solves a genuine problem, so understand

Re: Moving back to .NET

2015-09-27 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 27 September 2015 at 10:38:39 UTC, cym13 wrote: You might like to read http://www.paulgraham.com/avg.html if that's not already done. Startups have a different logic to them, they might try to attract developers to build a small tight team, for less pay, by providing a more

Re: Go 1.5

2015-09-27 Thread Martin Nowak via Digitalmars-d-announce
On 09/24/2015 03:49 AM, Ola Fosheim Grøstad wrote: > On Thursday, 24 September 2015 at 00:08:18 UTC, Martin Nowak wrote: >> The key to a low latency/high throughput GC is being able to >> incrementally collect the heap. There is a very interesting paper that >> uses the type system to perform

[Issue 14897] shared linux libraries from zip package don't work

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14897 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/installer https://github.com/D-Programming-Language/installer/commit/5b4a867e98fb90b6d6301cb1d29af9c98ff5f3e3 fix Issue 14897

[Issue 13889] mscoff32 libs not available

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13889 --- Comment #8 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/installer https://github.com/D-Programming-Language/installer/commit/95ace32ecf6ef403b376eb9d7f11612110beea47 fix Issue 13889

Testing Return Value Optimization (RVO)

2015-09-27 Thread chmike via Digitalmars-d-learn
Hello, Sorry if this question is a bit naive or shows a misunderstanding of RVO. I was trying to see if my C compiler was doing RVO with struct, but after testing it at is apparently not the case. Since I have heard that D supports RVO I wanted to give it a try in D. But apparently it

Re: Purity of std.conv.to!string

2015-09-27 Thread Daniel Murphy via Digitalmars-d-learn
On 27/09/2015 3:14 AM, cym13 wrote: On Saturday, 26 September 2015 at 17:08:00 UTC, Nordlöw wrote: Why is the following code not pure: float x = 3.14; import std.conv : to; auto y = x.to!string; ??? Is there a reason for it not being pure? If not, this is a serious problem as

Re: DIP82: static unittest blocks

2015-09-27 Thread Jonathan M Davis via Digitalmars-d
On Sunday, 27 September 2015 at 15:06:28 UTC, Jonathan M Davis wrote: On Sunday, 27 September 2015 at 10:32:00 UTC, Kenji Hara wrote: 2. Currently the members of template won't be semantically analyzed until it's instantiated. So, when the `static unittest` is enclosed in other blocks, how

[Issue 15065] associative array has no keys property

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15065 Kenji Hara changed: What|Removed |Added Keywords||pull, rejects-valid

Re: "Programming in D" paper book is available for purchase

2015-09-27 Thread Meta via Digitalmars-d-announce
On Wednesday, 9 September 2015 at 12:28:21 UTC, Ali Çehreli wrote: On 08/18/2015 05:57 PM, Ali Çehreli wrote: > it is up to date with 2.068 http://ddili.org/ders/d.en/index.html This information is coming a little late but here are the changes since the previous release on December 15:

[Issue 15076] Get ID of current thread

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15076 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/1699b5fc466232087d876bd41e214ec41b290e1c fix Issue 15076 - Get

Re: "Programming in D" paper book is available for purchase

2015-09-27 Thread olivier henley via Digitalmars-d-announce
On Sunday, 27 September 2015 at 15:35:38 UTC, olivier henley wrote: OMG! Congratulations many many times Ali. As we speak, my copy just left the motorcycle dealer and is riding, without a helmet, to Montreal! =) Forgot to mention: I find the cover very neat and of great taste.

Re: "Programming in D" paper book is available for purchase

2015-09-27 Thread olivier henley via Digitalmars-d-announce
OMG! Congratulations many many times Ali. As we speak, my copy just left the motorcycle dealer and is riding, without a helmet, to Montreal! =)

Re: std.data.json formal review

2015-09-27 Thread Dmitry Olshansky via Digitalmars-d
On 27-Sep-2015 20:43, Marco Leise wrote: Am Mon, 03 Aug 2015 12:11:14 +0300 schrieb Dmitry Olshansky : [...] Now back to our land let's look at say rapidJSON. It MAY seem to handle big integers:

Re: DIP82: static unittest blocks

2015-09-27 Thread Jonathan M Davis via Digitalmars-d
On Sunday, 27 September 2015 at 09:24:29 UTC, Jacob Carlborg wrote: On 2015-09-27 07:01, Jonathan M Davis wrote: This DIP provides a way to handle unittest blocks inside of templates which works with ddoc without compiling the unittest blocks into each instantiation.

Re: Testing Return Value Optimization (RVO)

2015-09-27 Thread Rene Zwanenburg via Digitalmars-d-learn
On Sunday, 27 September 2015 at 13:55:02 UTC, chmike wrote: Can someone please explain me why this doesn't work as I would expect RVO to work ? I'm not an expert on the subject so this may contain some inaccuracies, but the gist of it is: As the name implies, NRVO is an optimization and

[Issue 15122] Ddoc: macros not expanded in comments in code sections

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15122 ag0ae...@gmail.com changed: What|Removed |Added Keywords||ddoc CC|

Re: pragma(inline, true) not very useful in its current state?

2015-09-27 Thread Artur Skawina via Digitalmars-d
On 09/27/15 13:48, Marco Leise via Digitalmars-d wrote: > Am Sat, 26 Sep 2015 19:58:14 +0200 > schrieb Artur Skawina via Digitalmars-d > : > >> `allow` is the default state and always safe; for the cases >> where it's /undesirable/, there is noinline. > > No what I

[Issue 15065] associative array has no keys property

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15065 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/082ba6b5da6932bb10ab9e43f8e4acae742878d4 fix Issue 15065 -

[Issue 15065] associative array has no keys property

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15065 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15119] LDC version of installer

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15119 ki...@gmx.net changed: What|Removed |Added CC||ki...@gmx.net --- Comment #1 from

Re: Client socket sending data only one time.

2015-09-27 Thread holo via Digitalmars-d-learn
On Friday, 25 September 2015 at 04:38:06 UTC, tcak wrote: On Thursday, 24 September 2015 at 14:20:39 UTC, holo wrote: Hello I'm trying to connect to server and send data, with such simple client: #!/usr/bin/rdmd import std.stdio; import std.socket; import std.socketstream; import

Re: Mac IDE with Intellisense

2015-09-27 Thread Johannes Loher via Digitalmars-d-learn
On Saturday, 26 September 2015 at 18:27:52 UTC, Mike McKee wrote: On Saturday, 26 September 2015 at 10:31:13 UTC, wobbles wrote: Have you installed dkit for sublime? As in? https://github.com/yazd/DKit Looks like it's alpha and doesn't run on Mac? No homebrew install? I'm using this and

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-27 Thread Manu via Digitalmars-d
On 27 September 2015 at 19:26, Jacob Carlborg via Digitalmars-d wrote: > On 2015-09-26 21:30, extrawurst wrote: > >> I tried visual studio code and it sucks - it is nothing but a text >> editor, a notepad with syntax highlighting like sublime only much worse ;) > > >

[Issue 15060] Can't load a D shared library first, then load a C shared library

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15060 --- Comment #5 from ponce --- Unfortunately I'm trying to bootstrap a business so I'll live with the hacky work-around and move on to the next task (I do everything). It's also way beyond my understanding. I've bountied $50 on

Re: Mac IDE with Intellisense

2015-09-27 Thread nazriel via Digitalmars-d-learn
On Saturday, 26 September 2015 at 09:17:10 UTC, Mike McKee wrote: I've tried Sublime Text 3 editor on the Mac, but even it doesn't seem to have the D2 language in it yet (only D), and doesn't have intellisense for components in the imports that I do, even after saving the file after adding the

[Issue 15079] [REG2.068.1] Assertion `fd->semanticRun == PASSsemantic3done' failed.

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15079 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/848ea9a8698e3dade62374a540953483c7811d6c fix Issue 15079 - Assertion

[Issue 15079] [REG2.068.1] Assertion `fd->semanticRun == PASSsemantic3done' failed.

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15079 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15123] New: segfault when compiling simple SIMD code

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15123 Issue ID: 15123 Summary: segfault when compiling simple SIMD code Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: ice, SIMD

Re: DIP82: static unittest blocks

2015-09-27 Thread Jonathan M Davis via Digitalmars-d
On Sunday, 27 September 2015 at 14:10:06 UTC, Jack Stouffer wrote: On Sunday, 27 September 2015 at 05:01:48 UTC, Jonathan M Davis wrote: This DIP provides a way to handle unittest blocks inside of templates which works with ddoc without compiling the unittest blocks into each instantiation.

Re: Desperately looking for a work-around to load and unload D shared libraries from C on OSX

2015-09-27 Thread Martin Nowak via Digitalmars-d
On Thursday, 17 September 2015 at 21:13:46 UTC, bitwise wrote: The op shouldn't have to actually modify druntime in this case. He shouldn't have to replace "_dyld_register_func_for_add_image". Now that you guys digged in the dyld implementation, did anyone find a solution to use the callback

[Issue 15118] Have dmd on Win32 look for optlink.exe instead of link.exe

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15118 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #3

Re: std.data.json formal review

2015-09-27 Thread Marco Leise via Digitalmars-d
Am Mon, 03 Aug 2015 12:11:14 +0300 schrieb Dmitry Olshansky : > [...] > > Now back to our land let's look at say rapidJSON. > > It MAY seem to handle big integers: > https://github.com/miloyip/rapidjson/blob/master/include/rapidjson/internal/biginteger.h > > But it's used

New blog about D

2015-09-27 Thread Márcio Martins via Digitalmars-d-announce
Today I launched a very tiny and humble blog, with the first post being about D. It's likely all posts will be about D in the end... You can reach it http://www.mmartins.me I want to get better at writing, as I have barely ever written anything other than code, and my name... I noticed there

Server side command execution.

2015-09-27 Thread holo via Digitalmars-d-learn
Hello Im trying to execute commands on server side. Here is my server based on other example from forum: #!/usr/bin/rdmd import std.stdio; import std.socket; import std.algorithm; import std.conv; void main() { Socket server = new TcpSocket();

Re: Server side command execution.

2015-09-27 Thread tcak via Digitalmars-d-learn
On Sunday, 27 September 2015 at 23:56:10 UTC, holo wrote: Hello Im trying to execute commands on server side. Here is my server based on other example from forum: [...] You are comparing whole buffer to "exit"

Re: New blog about D

2015-09-27 Thread Walter Bright via Digitalmars-d-announce
On 9/27/2015 4:23 PM, Márcio Martins wrote: Today I launched a very tiny and humble blog, with the first post being about D. It's likely all posts will be about D in the end... https://www.reddit.com/r/programming/comments/3mnhp4/vector_swizzle_in_d/ You might want to do an "I am the author,

Re: New blog about D

2015-09-27 Thread Meta via Digitalmars-d-announce
I didn't even notice the blog name at first; I don't think it makes that much of a difference, and it wouldn't put me off reading articles from the blog. Usually blog posts are linked to directly from sites like Hackernews and Reddit anyway. As for the post itself, I enjoyed it. Vector

Re: Simple tutorial on deploying Vibe.d to Azure Web App

2015-09-27 Thread Lionello Lunesu via Digitalmars-d-announce
On 26/09/15 12:50, Jeremy wrote: http://www.codestrokes.com/2015/09/deploying-d-to-azure-webapp/ Thanks for this! Really useful!

[Issue 15060] Can't load a D shared library first, then load a C shared library

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15060 bitwise changed: What|Removed |Added CC|

Re: New blog about D

2015-09-27 Thread Andy Smith via Digitalmars-d-announce
On Sunday, 27 September 2015 at 23:23:05 UTC, Márcio Martins wrote: Today I launched a very tiny and humble blog, with the first post being about D. It's likely all posts will be about D in the end... You can reach it http://www.mmartins.me I want to get better at writing, as I have barely

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-27 Thread Walter Bright via Digitalmars-d
On 9/27/2015 12:54 AM, Manu via Digitalmars-d wrote: They simply don't recognise its existence. It's a piece of antiquated detritus, only used by strange people who wear woolen shirts pretending to be *nix users while using windows ;) ?? Visual Studio sets all these environment variables, in

Re: New blog about D

2015-09-27 Thread Pankaj via Digitalmars-d-announce
On Sunday, 27 September 2015 at 23:23:05 UTC, Márcio Martins wrote: Today I launched a very tiny and humble blog, with the first post being about D. It's likely all posts will be about D in the end... [...] I like your blog. I'm a newbie to D (or to Programming you can say) and need

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-27 Thread Manu via Digitalmars-d
On 27 September 2015 at 16:52, Jonathan M Davis via Digitalmars-d wrote: > On Sunday, 27 September 2015 at 06:34:29 UTC, Walter Bright wrote: >> >> On 9/26/2015 10:20 AM, Brad Anderson wrote: >>> >>> Just a little aside tip, Windows search these days is actually

[Issue 15122] New: [std.random] DDoc page

2015-09-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15122 Issue ID: 15122 Summary: [std.random] DDoc page Product: D Version: D2 Hardware: All URL: http://dlang.org/phobos/ OS: All Status: NEW Severity:

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-27 Thread Walter Bright via Digitalmars-d
On 9/26/2015 10:20 AM, Brad Anderson wrote: Just a little aside tip, Windows search these days is actually really excellent for settings like this (and programs). Windows Key + "env" + Enter is enough to get you to the dialog. Sorry, but the env dialog box is a sad joke, at least on Windows 7.

All these errors running basic Pegged helloworld example.

2015-09-27 Thread Enjoys Math via Digitalmars-d-learn
The example is: import pegged.grammar; mixin(grammar(` Arithmetic: Term < Factor (Add / Sub)* Add < "+" Factor Sub < "-" Factor Factor < Primary (Mul / Div)* Mul < "*" Primary Div < "/" Primary Primary < Parens / Neg / Pos / Number /

Re: Indicators and traction…

2015-09-27 Thread Jonathan M Davis via Digitalmars-d
On Sunday, 27 September 2015 at 03:34:31 UTC, Manu wrote: On 24 September 2015 at 01:09, Nick Sabalausky via Popularity has no place in decision making here. Sadly, false. As much as it would be nice to not have decisions based on popularity, we _do_ want D to be popular regardless, and

Re: Indicators and traction…

2015-09-27 Thread Manu via Digitalmars-d
On 27 September 2015 at 16:45, Jonathan M Davis via Digitalmars-d wrote: > On Sunday, 27 September 2015 at 03:34:31 UTC, Manu wrote: >> >> On 24 September 2015 at 01:09, Nick Sabalausky via >>> >>> Popularity has no place in decision making here. >> >> >> Sadly,

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-27 Thread Jonathan M Davis via Digitalmars-d
On Sunday, 27 September 2015 at 06:34:29 UTC, Walter Bright wrote: On 9/26/2015 10:20 AM, Brad Anderson wrote: Just a little aside tip, Windows search these days is actually really excellent for settings like this (and programs). Windows Key + "env" + Enter is enough to get you to the dialog.

Re: All these errors running basic Pegged helloworld example.

2015-09-27 Thread BBasile via Digitalmars-d-learn
On Sunday, 27 September 2015 at 06:30:37 UTC, Enjoys Math wrote: The example is: import pegged.grammar; mixin(grammar(` Arithmetic: Term < Factor (Add / Sub)* Add < "+" Factor Sub < "-" Factor Factor < Primary (Mul / Div)* Mul < "*" Primary Div

Re: DIP82: static unittest blocks

2015-09-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-27 07:01, Jonathan M Davis wrote: This DIP provides a way to handle unittest blocks inside of templates which works with ddoc without compiling the unittest blocks into each instantiation. http://wiki.dlang.org/DIP82 How would this work in the compiler? Currently it only lexes and

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-26 21:30, extrawurst wrote: I tried visual studio code and it sucks - it is nothing but a text editor, a notepad with syntax highlighting like sublime only much worse ;) I guess that depends on for which languages. For C# it supports accurate intellisense, refactoring, debugging

Re: Moving back to .NET

2015-09-27 Thread Ola Fosheim Grøstad via Digitalmars-d
On Saturday, 26 September 2015 at 22:19:41 UTC, Laeeth Isharc wrote: In practice, life is risk, and sometimes you have to take calculated risks to advance - this is true whether or not we acknowledge it to ourselves. Some people shouldn't even think about using D at work, but that tradeoff

What am I doing wrong in this Pegged grammar? "Expected ' be ' but got 'groups'"

2015-09-27 Thread Enjoys Math via Digitalmars-d-learn
Here's a minimal example: http://pastebin.com/mJDwGDbb Is this a bug in Pegged? Nothing seems to fix it.

Re: DIP82: static unittest blocks

2015-09-27 Thread Kenji Hara via Digitalmars-d
2015-09-27 14:01 GMT+09:00 Jonathan M Davis via Digitalmars-d < digitalmars-d@puremagic.com>: > This DIP provides a way to handle unittest blocks inside of templates > which works with ddoc without compiling the unittest blocks into each > instantiation. > > http://wiki.dlang.org/DIP82 > > > At

Re: Moving back to .NET

2015-09-27 Thread cym13 via Digitalmars-d
On Sunday, 27 September 2015 at 09:51:42 UTC, Ola Fosheim Grøstad wrote: On Saturday, 26 September 2015 at 22:19:41 UTC, Laeeth Isharc wrote: [...] I am not doing consulting on a forum, I am arguing against the viewpoint that the lack of adoption of fringe tools is a result of unjustified