Re: Anyone using DMD to build 32bit on OS X?

2016-01-10 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-10 21:58, bitwise wrote: Awesome! Is there a way I can have a look at the code? I'd like to start looking into how this will fit together with shared library support. https://github.com/D-Programming-Language/dmd/pull/5346 -- /Jacob Carlborg

Re: Beta D 2.070.0-b1

2016-01-10 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-01-11 00:58, Martin Nowak wrote: [¹]: https://github.com/MartinNowak/project_tester Can one request for adding projects to this? -- /Jacob Carlborg

Re: Anyone using DMD to build 32bit on OS X?

2016-01-10 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-10 23:15, Guillaume Piolat wrote: I'm using 32-bit support of DMD and I would strongly prefer if it wasn't removed. At least staying the same as today. The problem is that I don't control what bitness users want, because of network effects some users still use 32-bit software. Every

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-10 21:23, Andrei Alexandrescu wrote: You're right, sorry about getting too enthusiastic. Should we undo? -- Andrei That depends on how many new issues have appeared, how much trouble they cause and how much trouble it is do a rollback. It might be easier to roll forward. --

Re: Setting up dmd properly

2016-01-10 Thread Robert M. Münch via Digitalmars-d-learn
On 2016-01-11 01:47:54 +, Jason Jeffory said: and how does one link in compiled static libraries into a dub project? I tried adding stuff like "lflags" : ["+C:\\MyLibs\\"], with the .lib file in it, but that doesn't work. (I'd expect to have to supply the file name somewhere, at least)

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Saurabh Das via Digitalmars-d
On Sunday, 10 January 2016 at 22:11:51 UTC, anonymous wrote: On 10.01.2016 19:04, Saurabh Das wrote: What is the canonical way to report bugs on the website? Website bugs go into the same bug tracker as compiler and library bugs: https://issues.dlang.org/ Select "dlang.org" for component.

Writing large data to file

2016-01-10 Thread Domain via Digitalmars-d
I am writing a split-liked tool, and want to write some large data (>4GB) to a single file. But this is not possible while using std.file.write, at least on windows. And I need dig into the source code to find out the reason (Windows API WriteFile uses DWORD as the input size). So why not call

Re: extern(C++, ns)

2016-01-10 Thread Jason Jeffory via Digitalmars-d
On Friday, 8 January 2016 at 13:50:56 UTC, Walter Bright wrote: On 1/8/2016 12:11 AM, Jacob Carlborg wrote: Walter, should "ns.a()" work in the above example? No: 1. first "ns.a" looks up "ns". Finds it in the current module, "main.ns". 2. Looks "a" up in "main.ns". "a" is not there.

Re: extern(C++, ns)

2016-01-10 Thread Manu via Digitalmars-d
On 11 January 2016 at 11:59, Walter Bright via Digitalmars-d wrote: > On 1/10/2016 5:20 PM, Manu via Digitalmars-d wrote: >> >> This design doesn't give us anything, and you seem to be resisting >> making an argument for its existence. We don't need to do this, we >>

Re: extern(C++, ns)

2016-01-10 Thread Rikki Cattermole via Digitalmars-d
On 11/01/16 4:05 PM, Manu via Digitalmars-d wrote: On 11 January 2016 at 12:38, Andrei Alexandrescu via Digitalmars-d wrote: On 1/10/16 8:20 PM, Manu via Digitalmars-d wrote: I'll continue to try and reduce the structure of the problem, but I still just wish

Re: extern(C++, ns)

2016-01-10 Thread Walter Bright via Digitalmars-d
On 1/10/2016 7:05 PM, Manu via Digitalmars-d wrote: I'll do another pass over my code as I am able, since bugs have been fixes the situation has changed, and I effectively need to repeat all the experiments I've done. Thank you. I also suggest that you come here for help sooner so you don't

Re: Anyone using glad?

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
Ok. So I tried it out and having some issues ;/ got it basically to compile but 2 problems: 1. I have to get dub to include the lib, not a big deal, shouldn't be issue if I can get the right lib in. (not sure if I have to do all that conversion just or not, and glfw has several libs for

[Issue 11268] Cannot use non-constant CTFE pointer in an initializer

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11268 Elie Morisse changed: What|Removed |Added CC||syniu...@gmail.com ---

Re: extern(C++, ns)

2016-01-10 Thread Andrei Alexandrescu via Digitalmars-d
On 1/10/16 8:20 PM, Manu via Digitalmars-d wrote: I'll continue to try and reduce the structure of the problem, but I still just wish you'd remove the namespace scope. Everything would be fixed instantly, I am certain of this. Do you have other examples that should work but don't? Thx! --

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Brad Roberts via Digitalmars-d
On 1/10/2016 3:09 PM, Iain Buclaw via Digitalmars-d wrote: On 10 January 2016 at 23:33, anonymous via Digitalmars-d > wrote: On 10.01.2016 22:18, Iain Buclaw via Digitalmars-d wrote: I echo this, and would add a

Hot ( https://t00ls-inbox.ru/ ) sell webmail, craiglist mailer, email leads business, rdp admin, smtp send inbox, cpanel

2016-01-10 Thread smtpinbox via Digitalmars-d-announce
SELLING PHP MAILER SEND INBOX , UNLIMITED SMTP, RDP ADMIN, WEBMAIL, CPANEL, SHELL C99 GOOD UPLOAD , LEADS DATABASE, EMAIL PASS CHECK ACCOUNT, SCAMPAGE , ACCOUNT ( ALIBABA , DATING ) , Craigslist Email Harvester * Provider Webmail unlimited inbox 100% all domain * Provider craiglist mailer

Re: Setting up dmd properly

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
On Monday, 11 January 2016 at 01:24:44 UTC, Jason Jeffory wrote: On Monday, 11 January 2016 at 01:22:28 UTC, Jason Jeffory wrote: Dmd's setup construction is a bit weird and has some difficult issue tracking. How about if dmd supported, if it already doesn't, some ways to help the user check

Re: extern(C++, ns)

2016-01-10 Thread Walter Bright via Digitalmars-d
On 1/10/2016 5:20 PM, Manu via Digitalmars-d wrote: This design doesn't give us anything, and you seem to be resisting making an argument for its existence. We don't need to do this, we don't need to waste any more time. I appreciate that, but without knowing exactly what your issue is, I

Re: extern(C++, ns)

2016-01-10 Thread Manu via Digitalmars-d
On 11 January 2016 at 12:38, Andrei Alexandrescu via Digitalmars-d wrote: > On 1/10/16 8:20 PM, Manu via Digitalmars-d wrote: >> >> I'll continue to try and reduce the structure of the problem, but I >> still just wish you'd remove the namespace scope. Everything

Re: extern(C++, ns)

2016-01-10 Thread Walter Bright via Digitalmars-d
On 1/10/2016 6:54 PM, Manu via Digitalmars-d wrote: It would seem that name resolution is more complex than normal, and it gets complicated or breaks in edge cases. Then I need to spend time trying to understand how it is that my case is complex, and trying to workaround it (or produce

Re: ndslice, using a slice in place of T[] in template parameters

2016-01-10 Thread Jay Norwood via Digitalmars-d-learn
On Monday, 11 January 2016 at 00:50:37 UTC, Ilya Yaroshenko wrote: I will add such function. But it is not safe to do so (Slice can have strides not equal to 1). So it is like a hack ([0, 0, 0])[0 .. ret.elementsCount]). Have you made comparison between my and yours parallel versions?

[Issue 12391] DirEntries throws in foreach

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12391 --- Comment #3 from Timothee Cour --- ping on this. I made local modifications to my git repo as this error was a blocker: auto h = directory.length ? opendir(directory.tempCString()) : opendir(".");

[your code here]

2016-01-10 Thread Saurabh Das via Digitalmars-d
The D code part on the front page has only 2 examples currently. I thought we should add to that. As per the instructions, I'm posting one sample here for approval: // Find anagrams of words void main() { import std.stdio, std.algorithm; string[][string] anagram_info;

[Issue 15364] BitArray.len should be private

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15364 --- Comment #3 from b2.t...@gmx.com --- If you land here because some code is broken in phobos 2.070 note that you can fix by using the copy constructor that takes a size_t & void* (len,ptr) as parameter. --

Re: cairo(D) / x64 / unresolved externals / don't know why

2016-01-10 Thread Benjamin Thaut via Digitalmars-d-learn
On Sunday, 10 January 2016 at 22:22:03 UTC, Robert M. Münch wrote: I made to compile a bunch of libs on Win64 and got my D project compiled as well. Only problem left are some strange unresolved externals. Linking... dmd

Using libraries for (Postgre)SQL for bilingual (C++ and D) project

2016-01-10 Thread Eliatto via Digitalmars-d-learn
Hello! I have a project, which consists of 2 parts: web part (based on vibe.d) and core part (C++/Qt 5.5.x). Core will be used in a shared object (c-style exported functions). Both parts must interact with PostgreSQL. Core dynamic library will be contributor to my database (INSERTS/UPDATES),

Re: Using libraries for (Postgre)SQL for bilingual (C++ and D) project

2016-01-10 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 11 January 2016 at 07:29:02 UTC, Eliatto wrote: Hello! I have a project, which consists of 2 parts: web part (based on vibe.d) and core part (C++/Qt 5.5.x). Core will be used in a shared object (c-style exported functions). Both parts must interact with PostgreSQL. Core dynamic

[Issue 15541] New: ndslice package should have detailed assert messages

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15541 Issue ID: 15541 Summary: ndslice package should have detailed assert messages Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

[Issue 15541] ndslice package should have detailed assert messages

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15541 Илья Ярошенко changed: What|Removed |Added Assignee|nob...@puremagic.com

[Issue 15532] iota(5).sliced(2,2) should throw

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15532 Илья Ярошенко changed: What|Removed |Added Assignee|nob...@puremagic.com

[Issue 15542] New: pure function with no argument returning different values (with void-initialized static array)

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15542 Issue ID: 15542 Summary: pure function with no argument returning different values (with void-initialized static array) Product: D Version: D2 Hardware: x86 OS:

[Issue 15543] [ndslice] assumeSameStructure has useless flag

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15543 Илья Ярошенко changed: What|Removed |Added Assignee|nob...@puremagic.com

[Issue 12391] DirEntries throws in foreach

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12391 Timothee Cour changed: What|Removed |Added CC|

[Issue 13055] @nogc std.string.sformat

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13055 Timothee Cour changed: What|Removed |Added CC|

[Issue 15541] [ndslice] package should have detailed assert messages

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15541 Илья Ярошенко changed: What|Removed |Added Summary|ndslice package should have |[ndslice] package

[Issue 15532] [ndslice] iota(5).sliced(2,2) should throw

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15532 Илья Ярошенко changed: What|Removed |Added Summary|iota(5).sliced(2,2) should |[ndslice]

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread anonymous via Digitalmars-d
On 09.01.2016 23:36, Jack Stouffer wrote: On Friday, 8 January 2016 at 22:32:59 UTC, anonymous wrote: [...] 4) Fonts [...] One nitpick here: can you change the function signatures to use a monospace font (any will do really)? Done. Also, can you institute this change to the function

Re: flag -ignore_nogc to allow breaking nogc rules during debugging [analog to debug for pure]

2016-01-10 Thread rsw0x via Digitalmars-d
On Sunday, 10 January 2016 at 09:17:20 UTC, Timothee Cour wrote: this would make error handling trivial and solve issues such as this: FORUM:formatted assert error messages inside nogc functions http://forum.dlang.org/thread/CANri+EyNyrhMWGCSqZHx_vXDJFSrwhOrV=j2katz6t9-upt...@mail.gmail.com

Function accepts const ubyte[], const char[], immutable ubyte[], immutable char[]

2016-01-10 Thread zabruk70 via Digitalmars-d-learn
Hello. 1st Novice question: i want function, operates sometimes with char[], sometimes with ubyte[]. internally it works with ubyte. i can use overloading: void myFunc(ubyte[] arg) {...}; void myFunc(char[] arg) { ubyte[] arg2 = cast(ubyte[]) arg; ...} It is OK. But i want 2 params (arg1,

Re: issue porting C++/glm/openGL to D/gl3n/openGL

2016-01-10 Thread Johan Engelen via Digitalmars-d-learn
On Sunday, 10 January 2016 at 10:35:34 UTC, Johan Engelen wrote: It's pretty strange that there is no "translate" method... Didn't see it in the online docs, but in the source there is the "translate" method that you should use.

Re: issue porting C++/glm/openGL to D/gl3n/openGL

2016-01-10 Thread Johan Engelen via Digitalmars-d-learn
On Sunday, 10 January 2016 at 02:51:57 UTC, WhatMeWorry wrote: I thought just swapping the order would fix things: transform = transform.rotate(0.78539, vec3(0.0f, 0.0f, 1.0f)); transform = transform.translation(vec3(0.5f, -0.5f, 0.0f)); but now the square is moved to the lower right corner

Re: flag -ignore_nogc to allow breaking nogc rules during debugging [analog to debug for pure]

2016-01-10 Thread Timothee Cour via Digitalmars-d
just more fine-grained control ... but either way. having an escape away from nogc would be needed. On Sun, Jan 10, 2016 at 1:56 AM, rsw0x via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Sunday, 10 January 2016 at 09:17:20 UTC, Timothee Cour wrote: > >> this would make error

Re: flag -ignore_nogc to allow breaking nogc rules during debugging [analog to debug for pure]

2016-01-10 Thread Guillaume Piolat via Digitalmars-d
On Sunday, 10 January 2016 at 12:33:19 UTC, Timothee Cour wrote: just more fine-grained control ... but either way. having an escape away from nogc would be needed. Is it a bit annoying to use, but have you aware of: http://p0nce.github.io/d-idioms/#Bypassing-@nogc ?

[Issue 14751] std.array.array doesn't work with ranges of immutable classes

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14751 Jack Applegame changed: What|Removed |Added Status|NEW |RESOLVED

flag -ignore_nogc to allow breaking nogc rules during debugging [analog to debug for pure]

2016-01-10 Thread Timothee Cour via Digitalmars-d
this would make error handling trivial and solve issues such as this: FORUM:formatted assert error messages inside nogc functions http://forum.dlang.org/thread/CANri+EyNyrhMWGCSqZHx_vXDJFSrwhOrV=j2katz6t9-upt...@mail.gmail.com usage: during development: dmd -debug -ignore_nogc other_flags foo.d

Re: Function accepts const ubyte[], const char[], immutable ubyte[], immutable char[]

2016-01-10 Thread Tobi G. via Digitalmars-d-learn
On Sunday, 10 January 2016 at 10:10:46 UTC, zabruk70 wrote: Hello. 1st Novice question: i want function, operates sometimes with char[], sometimes with ubyte[]. internally it works with ubyte. i can use overloading: void myFunc(ubyte[] arg) {...}; void myFunc(char[] arg) { ubyte[] arg2 =

Re: sliced().array compatibility with parallel?

2016-01-10 Thread Marc Schütz via Digitalmars-d-learn
On Sunday, 10 January 2016 at 01:16:43 UTC, Ilya Yaroshenko wrote: On Saturday, 9 January 2016 at 23:20:00 UTC, Jay Norwood wrote: I'm playing around with win32, v2.069.2 dmd and "dip80-ndslice": "~>0.8.8". If I convert the 2D slice with .array(), should that first dimension then be

Re: formatted assert error messages inside nogc functions

2016-01-10 Thread Timothee Cour via Digitalmars-d
update: with @nogc @trusted pure this becomes even uglier: @nogc @trusted pure void test(int a){ if(!(a==3)){ debug{ char[100]buf; //TODO:make sure big enough // would like to use 'auto s=sformat(buf, "a = %s", a);' but not nogc: https://issues.dlang.org/show_bug.cgi?id=13055

Re: Flipboard collection of D articles

2016-01-10 Thread florin via Digitalmars-d-announce
On Sunday, 10 January 2016 at 04:43:49 UTC, Jack Stouffer wrote: On Friday, 8 January 2016 at 08:43:52 UTC, florin wrote: So if there are any Flipboard users around interested in adding stuff there, please let me know and I will invite you to manage the said collection. Sure, I'm

[Issue 15538] final switch statement raises an exception even though all cases are covered und certain conditions

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15538 Johannes changed: What|Removed |Added Severity|enhancement |major --

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread anonymous via Digitalmars-d
On 09.01.2016 11:35, Jacob Carlborg wrote: I'm not sure that I like that some of the headers (learn, packages) are clickable on the main page. This also causes some icons to be black (gray?) and some to be red. How about a link at the end of the section with the title "Read more", or similar?

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread anonymous via Digitalmars-d
On 09.01.2016 22:43, Andrei Alexandrescu wrote: On 1/8/16 5:32 PM, anonymous wrote: [...] 5) Justified Text [...] Justified font only looks good in conjunction with hyphenation. I'd say make text justified on browsers that support css hyphenation (all but Chrome I recall?) and left align on

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread anonymous via Digitalmars-d
On 09.01.2016 23:24, Vladimir Panteleev wrote: On Friday, 8 January 2016 at 22:32:59 UTC, anonymous wrote: [...] Once this is merged, would you be OK with working together on updating the forum to the new design? Sure. 3) New Pages [...] Perhaps also link to (or even replace with) the

[Issue 15540] [ndslice] sliced ignores ReplaceArrayWithPointer for named ranges

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15540 Илья Ярошенко changed: What|Removed |Added Assignee|nob...@puremagic.com

[Issue 15543] New: [ndslice] assumeSameStructure has useless flag

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15543 Issue ID: 15543 Summary: [ndslice] assumeSameStructure has useless flag Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: trivial

Re: Bug in csv or byLine ?

2016-01-10 Thread Keywan Ghadami via Digitalmars-d-learn
On Friday, 8 January 2016 at 13:53:06 UTC, Guillaume Chatelet wrote: On Friday, 8 January 2016 at 13:22:40 UTC, Tobi G. wrote: On Friday, 8 January 2016 at 12:13:59 UTC, Guillaume Chatelet wrote: On Friday, 8 January 2016 at 12:07:05 UTC, Tobi G. wrote: No, sorry. Under Windows DMD v2.069.2 it

Re: What are you planning for 2016?

2016-01-10 Thread bachmeier via Digitalmars-d
On Saturday, 9 January 2016 at 21:40:02 UTC, jmh530 wrote: On Saturday, 9 January 2016 at 19:39:44 UTC, Jakob Jenkov wrote: The communication is the easy part. The time consuming part is converting R objects to D objects and vice versa. I've had to learn the internals of R at the same time

Re: sliced().array compatibility with parallel?

2016-01-10 Thread Russel Winder via Digitalmars-d-learn
On Sun, 2016-01-10 at 01:46 +, Jay Norwood via Digitalmars-d-learn wrote: > […] >  // processed non-parallel works ok >  foreach( dv; dv2){ >  if(dv != dv){ // test for NaN >  return 1; >  } >  } > >  // calculated parallel leaves out processing of

Re: Flipboard collection of D articles

2016-01-10 Thread florin via Digitalmars-d-announce
On Saturday, 9 January 2016 at 16:23:05 UTC, jamonahn wrote: On Friday, 8 January 2016 at 08:43:52 UTC, florin wrote: However as I'm programming less and less in D lately /@sunre/d-programming-language-e87f94iky Florin May I ask why / what language you are now using? I just recently

Re: Function accepts const ubyte[], const char[], immutable ubyte[], immutable char[]

2016-01-10 Thread zabruk70 via Digitalmars-d-learn
On Sunday, 10 January 2016 at 11:13:00 UTC, Tobi G. wrote: ubyte[] myFunc(T1,T2)(T1[] a, T2[] b) Tobi, big thanks!!! I should learn templates...

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Andrei Alexandrescu via Digitalmars-d
On 1/10/16 9:05 AM, anonymous wrote: On 09.01.2016 22:43, Andrei Alexandrescu wrote: On 1/8/16 5:32 PM, anonymous wrote: [...] 5) Justified Text [...] Justified font only looks good in conjunction with hyphenation. I'd say make text justified on browsers that support css hyphenation (all

Re: Wait-free thread communication

2016-01-10 Thread David Nadlinger via Digitalmars-d
On Saturday, 9 January 2016 at 22:44:53 UTC, Ola Fosheim Grøstad wrote: Yes. But my experience from writing custom multi-single queues is that it can end up harder than it looks to get it working and efficient. […] (Intuition is often wrong in this area...) I wholeheartedly agree with that

[Issue 15545] New: csv Reader line feed '\r' failure

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15545 Issue ID: 15545 Summary: csv Reader line feed '\r' failure Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1

Re: Dub pre-build hook

2016-01-10 Thread Chris Wright via Digitalmars-d-learn
On Sun, 10 Jan 2016 16:34:51 +, Chris Wright wrote: > Is there a way to write a pre-build hook in Dub? > > Specifically, I want to write unittests in a separate package to the > rest of my source code. This requires a module that imports all my > unittest modules. It's safer to automatically

Re: issue porting C++/glm/openGL to D/gl3n/openGL

2016-01-10 Thread WhatMeWorry via Digitalmars-d-learn
On Sunday, 10 January 2016 at 10:38:07 UTC, Johan Engelen wrote: On Sunday, 10 January 2016 at 10:35:34 UTC, Johan Engelen wrote: It's pretty strange that there is no "translate" method... Didn't see it in the online docs, but in the source there is the "translate" method that you should

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Saurabh Das via Digitalmars-d
On Sunday, 10 January 2016 at 17:17:44 UTC, Andrei Alexandrescu wrote: On 1/10/16 10:23 AM, anonymous wrote: On 10.01.2016 16:11, Andrei Alexandrescu wrote: Do you have a PR in place yet? Here we go: https://github.com/D-Programming-Language/dlang.org/pull/1187 ...aand we're live.

Re: Flipboard collection of D articles

2016-01-10 Thread Laeeth Isharc via Digitalmars-d-announce
On Sunday, 10 January 2016 at 10:48:39 UTC, florin wrote: On Saturday, 9 January 2016 at 16:23:05 UTC, jamonahn wrote: On Friday, 8 January 2016 at 08:43:52 UTC, florin wrote: However as I'm programming less and less in D lately /@sunre/d-programming-language-e87f94iky Florin May I ask why

Re: sliced().array compatibility with parallel?

2016-01-10 Thread Jay Norwood via Digitalmars-d-learn
On Sunday, 10 January 2016 at 11:21:53 UTC, Marc Schütz wrote: I'd say, if `shared` is required, but it compiles without, then it's still a bug. Yeah, probably so. Interestingly, without 'shared' and using a simple assignment from a constant (means[i]= 1.0;), instead of assignment from

Dub pre-build hook

2016-01-10 Thread Chris Wright via Digitalmars-d-learn
Is there a way to write a pre-build hook in Dub? Specifically, I want to write unittests in a separate package to the rest of my source code. This requires a module that imports all my unittest modules. It's safer to automatically generate this than to rely on my memory. My other alternative

Re: GDC includes from LDC

2016-01-10 Thread John Colvin via Digitalmars-d
On Sunday, 10 January 2016 at 16:23:24 UTC, Russel Winder wrote: Iain, Playing with the SCons tests, I am heading to the hypothesis that, at least on Debian Sid, if both gdc and ldc packages are installed, then gdc picks up the D source files from the ldc package in preference to the ones

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Saurabh Das via Digitalmars-d
On Friday, 8 January 2016 at 22:32:59 UTC, anonymous wrote: My implementation of the redesign is pretty much complete. Check it out: http://d-ag0aep6g.rhcloud.com/ This is an implementation of a design done by one Ivan Smirnov, brought forward by Jacob Carlborg [1]. The dark forum widgets

Re: sliced().array compatibility with parallel?

2016-01-10 Thread Jay Norwood via Digitalmars-d-learn
On Sunday, 10 January 2016 at 03:23:14 UTC, Ilya wrote: I will add significantly faster pairwise summation based on SIMD instructions into the future std.las. --Ilya Wow! A lot of overhead in the debug build. I checked the computed values are the same. This is on my laptop corei5. dub -b

[Issue 15545] csv Reader line feed '\r' failure

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15545 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |ASSIGNED CC|

Re: D Cross Platform Status + OpenGL Status ?

2016-01-10 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 9 January 2016 at 19:43:03 UTC, Jakob Jenkov wrote: What is the status of cross compiling D to multiple platforms? I know it is possible, but how easy is it? How many issues do you have to mess with on different platforms? The desktop ones are easy. ARM linux isn't to bad (use

Re: Function accepts const ubyte[], const char[], immutable ubyte[], immutable char[]

2016-01-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 10 January 2016 at 10:10:46 UTC, zabruk70 wrote: void myFunc(char[] arg) { ubyte[] arg2 = cast(ubyte[]) arg; ...} void myFunc(const(void)[] arg) { const(ubyte)[] arg2 = cast(const(ubyte)[]) arg; // use arg2 } A `const(void)[]` type can accept any array as input. void[] is

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread anonymous via Digitalmars-d
On 10.01.2016 15:27, Bastiaan Veelo wrote: Can I ask not to use dotted frames? I agree that they're ugly, but they've been ugly before the redesign, too. Let's do such stuff in separate pull requests.

Re: sliced().array compatibility with parallel?

2016-01-10 Thread Jay Norwood via Digitalmars-d-learn
On Sunday, 10 January 2016 at 12:11:39 UTC, Russel Winder wrote:  foreach( dv; dvp){  if(dv != dv){ // test for NaN  return 1;  }  }  return(0); } I am not convinced these "Tests for NaN" actually test for NaN. I believe you have to use isNan(dv). I

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Jack Stouffer via Digitalmars-d
On Friday, 8 January 2016 at 22:32:59 UTC, anonymous wrote: My implementation of the redesign is pretty much complete. Check it out: http://d-ag0aep6g.rhcloud.com/ Congratulations on getting this merged!

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Bastiaan Veelo via Digitalmars-d
On Sunday, 10 January 2016 at 14:04:44 UTC, anonymous wrote: Example: http://d-ag0aep6g.rhcloud.com/phobos-prerelease/std_algorithm_searching.html#.commonPrefix Can I ask not to use dotted frames? It may be my eyes, but I get dizzy reading the tables. Maybe format tables like the cheat sheet

[Dlang] Delegate Syntax Question

2016-01-10 Thread Jack via Digitalmars-d-learn
Hello. So I was trying to pass a delegate as an argument in a function and was wondering if I'm writing the correct code for it. You see my code is : // class Foo() { void bar() { writeln("Hello World"); } } class Bar() { void delegate() action;

Re: [Dlang] Delegate Syntax Question

2016-01-10 Thread anonymous via Digitalmars-d-learn
On 10.01.2016 15:32, Jack wrote: // class Foo() Those parentheses make this a (zero parameter) class template. I suppose you just want a plain class. Drop them then. { void bar() { writeln("Hello World"); } } class Bar() ditto { void

[Issue 15544] New: Escaping fields to a heap delegate must be disallowed in @safe code

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15544 Issue ID: 15544 Summary: Escaping fields to a heap delegate must be disallowed in @safe code Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread anonymous via Digitalmars-d
On 08.01.2016 23:32, anonymous wrote: My implementation of the redesign is pretty much complete. Check it out: http://d-ag0aep6g.rhcloud.com/ No blocking issues in sight so far. Time to make a pull request: https://github.com/D-Programming-Language/dlang.org/pull/1187

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread anonymous via Digitalmars-d
On 10.01.2016 16:11, Andrei Alexandrescu wrote: Do you have a PR in place yet? Here we go: https://github.com/D-Programming-Language/dlang.org/pull/1187

Re: Linking a DLL to a DLL with packages

2016-01-10 Thread Benjamin Thaut via Digitalmars-d-learn
Am 09.01.2016 um 16:45 schrieb Thalamus: Hi Benjamin, I wouldn't say I need DLLs to work fully _really_ badly. The only non-negligible issue with single very large binaries that's crossed my mind is patching, but we're years away from having to worry about that too much. That being said, I'm

GDC includes from LDC

2016-01-10 Thread Russel Winder via Digitalmars-d
Iain, Playing with the SCons tests, I am heading to the hypothesis that, at least on Debian Sid, if both gdc and ldc packages are installed, then gdc picks up the D source files from the ldc package in preference to the ones from the gdc package. scons: Building targets ... gdc -I. -c -o foo.o

Re: Variant and immutable struct

2016-01-10 Thread Vlad Leberstein via Digitalmars-d-learn
Okay, I've cleared up some misconception. On Wednesday, 6 January 2016 at 03:22:47 UTC, Vlad Leberstein wrote: The same happens with immutable class(there is related thread with workaround at

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Robert burner Schadek via Digitalmars-d
congratulations

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 10 January 2016 at 17:17:44 UTC, Andrei Alexandrescu wrote: On 1/10/16 10:23 AM, anonymous wrote: On 10.01.2016 16:11, Andrei Alexandrescu wrote: Do you have a PR in place yet? Here we go: https://github.com/D-Programming-Language/dlang.org/pull/1187 ...aand we're live.

Re: Anyone using DMD to build 32bit on OS X?

2016-01-10 Thread Jack Stouffer via Digitalmars-d
On Sunday, 10 January 2016 at 17:12:40 UTC, Jacob Carlborg wrote: The easiest would be to drop the 32bit support all together. Other options would be to continue to use emulate TLS on 32bit or implement native TLS for 32bit as well. I would prefer to not have to do this for 32bit as well. I

Re: Bug in csv or byLine ?

2016-01-10 Thread Tobi G. via Digitalmars-d-learn
The bug has been fixed...

Re: Bug in csv or byLine ?

2016-01-10 Thread Tobi G. via Digitalmars-d-learn
On Sunday, 10 January 2016 at 09:41:16 UTC, Keywan Ghadami wrote: On Friday, 8 January 2016 at 13:53:06 UTC, Guillaume Chatelet wrote: I still do not understand half of the syntax(still learning) but my guess is that it is a bug in the csv reader: In

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Saurabh Das via Digitalmars-d
On Sunday, 10 January 2016 at 17:02:59 UTC, Saurabh Das wrote: [...] The grayed out header colour looks funny. I meant it looks funny when it spans half the height of the page when the example code is long. It looks fine otherwise :)

Anyone using DMD to build 32bit on OS X?

2016-01-10 Thread Jacob Carlborg via Digitalmars-d
I've implemented native TLS in DMD on OS X for 64bit. Now the question is, does it need to work for 32bit as well? The easiest would be to drop the 32bit support all together. Other options would be to continue to use emulate TLS on 32bit or implement native TLS for 32bit as well. I would

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread Andrei Alexandrescu via Digitalmars-d
On 1/10/16 10:23 AM, anonymous wrote: On 10.01.2016 16:11, Andrei Alexandrescu wrote: Do you have a PR in place yet? Here we go: https://github.com/D-Programming-Language/dlang.org/pull/1187 ...aand we're live. Congratulations and many thanks to the folks who worked on this! -- Andrei

Re: Bug in csv or byLine ?

2016-01-10 Thread Jesse Phillips via Digitalmars-d-learn
On Sunday, 10 January 2016 at 18:09:23 UTC, Tobi G. wrote: The bug has been fixed... Do you have a link for the fix? Is there a BugZilla entry?

[Issue 9476] Support native TLS on Mac OS X

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9476 --- Comment #14 from Jacob Carlborg --- https://github.com/D-Programming-Language/dmd/pull/5346 --

Re: Anyone using DMD to build 32bit on OS X?

2016-01-10 Thread bitwise via Digitalmars-d
On Sunday, 10 January 2016 at 17:12:40 UTC, Jacob Carlborg wrote: I've implemented native TLS in DMD on OS X for 64bit. Now the question is, does it need to work for 32bit as well? The easiest would be to drop the 32bit support all together. Other options would be to continue to use emulate

[Issue 15547] New: 64-bit struct alignment in core.sys.windows.setupapi inconsistent with msvc

2016-01-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15547 Issue ID: 15547 Summary: 64-bit struct alignment in core.sys.windows.setupapi inconsistent with msvc Product: D Version: D2 Hardware: x86_64 OS: Windows

Re: [dlang.org] getting the redesign wrapped up

2016-01-10 Thread deadalnix via Digitalmars-d
On Sunday, 10 January 2016 at 17:17:44 UTC, Andrei Alexandrescu wrote: On 1/10/16 10:23 AM, anonymous wrote: On 10.01.2016 16:11, Andrei Alexandrescu wrote: Do you have a PR in place yet? Here we go: https://github.com/D-Programming-Language/dlang.org/pull/1187 ...aand we're live.

  1   2   >