[Issue 17197] Link failure with -m64 on Windows

2017-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17197 --- Comment #2 from Rainer Schuetze --- -msmode now passed for links with the MS Linker by https://github.com/dlang/visuald/releases/tag/v0.44-rc2 --

Re: D street cred: Just a thought

2017-03-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/04/2017 02:29 AM, Joakim wrote: I recently ported this small C++/OpenGL ES 2.0 Android app to D, just finished fixing the last bug I know of: [...] Obviously not a bigger project like you had in mind, but just thought I'd mention this one. Actually, that's very cool, particularly since

Re: D street cred: Just a thought

2017-03-03 Thread Joakim via Digitalmars-d
On Saturday, 4 March 2017 at 07:09:17 UTC, Nick Sabalausky (Abscissa) wrote: Just a thought for boosting D's street cred: Perhaps...take a worthwhile C/C++ project with real potential, fork it, and port it to D. And make a real commitment to maintaining it. Obviously a bit of a gambit,

D street cred: Just a thought

2017-03-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
Just a thought for boosting D's street cred: Perhaps...take a worthwhile C/C++ project with real potential, fork it, and port it to D. And make a real commitment to maintaining it. Obviously a bit of a gambit, granted, but the potential payout is improving a worthwhile tool's maintainability

Re: Google is apparently now better at searching programming-related questions

2017-03-03 Thread Ola Fosheim Grostad via Digitalmars-d
On Friday, 3 March 2017 at 18:28:50 UTC, Nick Sabalausky (Abscissa) wrote: startpage.com is another way to get clean (or at least clean-ish) results. Although, it's conceivable (probable?) it's really giving out results based on a "user" that's really an aggregate of startpage.com's users.

Poor man's Result<T,E> implementation

2017-03-03 Thread Moritz Maxeiner via Digitalmars-d
Having taken a bit of time to get more familiar with Rust I wondered if we could have something like Rust's algebraic result type[1] using Phobos' Algebraic template and started to experiment: --- Usage enum DivisionError { ZeroDivisor } Result!(int, DivisionError) divide(int dividend,

Re: [NOTABLE PR] First step from traditional to generic runtime

2017-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/17 10:16 AM, Kagamin wrote: Nitpick: object.d is for symbols visible to user code, but it's not necessary to provide these helper functions to used code, so they should be in a different module known to the compiler. Fundamentally the code resulting from lowering must be in the standard

Re: Nothing builds on debian anymore.

2017-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/17 6:27 PM, deadalnix wrote: On Friday, 3 March 2017 at 18:47:53 UTC, H. S. Teoh wrote: Actually, I just tested on a freshly-cloned copy of dmd/druntime/phobos, it seems that building on Debian does work. Digging into the git log, it appears that commit 78cd023 *should* have added -fPIC

Re: Floating point constant folding

2017-03-03 Thread Fool via Digitalmars-d
On Friday, 3 March 2017 at 22:35:15 UTC, Johan Engelen wrote: Clang without/with optimizations turned on: ❯ clang++ float.cpp && ./a.out 1.0011920928955078125 ❯ clang++ float.cpp -O3 && ./a.out 1 -Johan GCC with optimizations turned on: $ g++ float.cpp -O3 -frounding-math && ./a.out

Re: How to get dub to work when I have dlang installed in custom directory?

2017-03-03 Thread Jamal via Digitalmars-d-learn
On Friday, 3 March 2017 at 23:22:07 UTC, sarn wrote: On Friday, 3 March 2017 at 20:35:04 UTC, Jamal wrote: I have no idea what is is wrong and or how to fix it. Any help? It would be the alias. When you're running dmd from your shell, you're using an alias that includes a bunch of flags to

Re: Nothing builds on debian anymore.

2017-03-03 Thread deadalnix via Digitalmars-d
On Friday, 3 March 2017 at 18:47:53 UTC, H. S. Teoh wrote: Actually, I just tested on a freshly-cloned copy of dmd/druntime/phobos, it seems that building on Debian does work. Digging into the git log, it appears that commit 78cd023 *should* have added -fPIC to the makefiles. So how come

Re: How to get dub to work when I have dlang installed in custom directory?

2017-03-03 Thread sarn via Digitalmars-d-learn
On Friday, 3 March 2017 at 20:35:04 UTC, Jamal wrote: I have no idea what is is wrong and or how to fix it. Any help? It would be the alias. When you're running dmd from your shell, you're using an alias that includes a bunch of flags to make dmd work. When dub runs, it'll run the dmd

Re: Floating point constant folding

2017-03-03 Thread Guillaume Chatelet via Digitalmars-d
On Friday, 3 March 2017 at 22:35:15 UTC, Johan Engelen wrote: Clang without/with optimizations turned on: ❯ clang++ float.cpp && ./a.out 1.0011920928955078125 ❯ clang++ float.cpp -O3 && ./a.out 1 -Johan Thx Johan I should have checked... My point is moot then. -- "welcome to the

Re: Yes, building DMD on Debian works just fine

2017-03-03 Thread Seb via Digitalmars-d
On Friday, 3 March 2017 at 18:11:29 UTC, deadalnix wrote: https://issues.dlang.org/show_bug.cgi?id=17236 Coming to you on ubuntu soon. I started a new Docker instance and tried this: ``` docker run -i -t ubuntu:16.10 /bin/bash apt-get update apt-get install git curl gcc g++ unzip git clone

[Issue 17210] DMD's Failure to Inline Calls in std.array.Appender.put Cause 3x Slowdown

2017-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17210 --- Comment #2 from Jack Stouffer --- BTW, making this @safe by changing the manual code to static if (isBasicType!U) { auto d = (() @trusted => _data.arr.ptr[0 .. len + 1])();

Re: Floating point constant folding

2017-03-03 Thread Johan Engelen via Digitalmars-d
On Friday, 3 March 2017 at 09:31:19 UTC, Guillaume Chatelet wrote: Considering the floating point operations have a runtime component, it seems to me that constant folding is not allowed to occur in the first example. For example, it does not occur in the following C++ snippet: --- #include

Re: Building a project with CMAKE

2017-03-03 Thread berni via Digitalmars-d-learn
On Friday, 3 March 2017 at 20:10:25 UTC, Ali Çehreli wrote: Which would put gdc in between the two. Is your experience different? Actually, I've got not much experience. A few weeks ago I ran a test where ldc was in between dmd and gdc. But I missed the -release flags then. With that flag

Re: Nothing builds on debian anymore.

2017-03-03 Thread David Nadlinger via Digitalmars-d
On Friday, 3 March 2017 at 18:11:29 UTC, deadalnix wrote: https://issues.dlang.org/show_bug.cgi?id=17236 Coming to you on ubuntu soon. I'm pretty sure that would still work with LDC. So not exactly "nothing". ;) – David

scriptlike v0.10.2

2017-03-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
Scriptlike is a utility library to help you write script-like programs in D. https://github.com/Abscissa/scriptlike Changes in v0.10.2: - Enhancement: Added trace functions as debugging aid. Outputs file/line info and optionally a variable name/value.

Re: Pegged v0.4: longest-match, left-recursion, and expandable parse trees

2017-03-03 Thread Bastiaan Veelo via Digitalmars-d-announce
On Friday, 3 March 2017 at 20:37:33 UTC, Philippe Sigaud wrote: Thank you all for the positive comments! Indeed, I subscribe to that! (Literally, I am subscribed to this thread :-))

Re: Pegged v0.4: longest-match, left-recursion, and expandable parse trees

2017-03-03 Thread Philippe Sigaud via Digitalmars-d-announce
Thank you all for the positive comments!

How to get dub to work when I have dlang installed in custom directory?

2017-03-03 Thread Jamal via Digitalmars-d-learn
I have successfully compiled and installed dmd, druntime and phobos and installed them all in /opt/dlang/dmd /opt/dlang/druntime /opt/dlang/phobos Everything works, I can compile and run d programs just fine. I use this in my .bashrc to make everything work: # Dlang export

Re: [OT] Re: Why don't you advertise more your language on Quora etc ?

2017-03-03 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 03, 2017 at 07:49:06PM +, Jared Jeffries via Digitalmars-d wrote: > > Yeah. I am actually skeptical of the whole GUI koolaid. I'm pretty > > sure having a GUI is not a necessity to implementing the equivalent > > functionality of an IDE in a text-mode editor. > > Personally I'm

Re: Building a project with CMAKE

2017-03-03 Thread Ali Çehreli via Digitalmars-d-learn
On 03/03/2017 06:58 AM, berni wrote: > On Friday, 3 March 2017 at 13:21:56 UTC, Seb wrote: >> Is there any specific reason why you can't use DMD or LDC? > > gdc produces faster binaries. ;-) I've got installed the other two > compilers too and they work. I haven't compared them myself but I am

[Issue 17242] Specialized templates defined inside functions fail lookup, moving them outside makes them work

2017-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17242 Walter Bright changed: What|Removed |Added CC|

Re: [OT] Re: Why don't you advertise more your language on Quora etc ?

2017-03-03 Thread Jared Jeffries via Digitalmars-d
Yeah. I am actually skeptical of the whole GUI koolaid. I'm pretty sure having a GUI is not a necessity to implementing the equivalent functionality of an IDE in a text-mode editor. Personally I'm using a mix of Geany, Coedit and Code::Blocks for D development, depending on what I'm doing

Re: [NOTABLE PR] First step from traditional to generic runtime

2017-03-03 Thread Jacob Carlborg via Digitalmars-d
On 2017-03-03 16:16, Kagamin wrote: Nitpick: object.d is for symbols visible to user code, but it's not necessary to provide these helper functions to used code, so they should be in a different module known to the compiler. Exactly

Re: Why don't you advertise more your language on Quora etc ?

2017-03-03 Thread jmh530 via Digitalmars-d
On Thursday, 2 March 2017 at 15:32:26 UTC, bachmeier wrote: I spend my days working with graduate students in economics departments. They have to program for their research, but most of them have never taken a programming class. I use RStudio server. Students need only a browser to do fairly

Re: Split Real / Float into Mantissa, Exponent, and Base

2017-03-03 Thread pineapple via Digitalmars-d-learn
On Friday, 3 March 2017 at 18:09:02 UTC, Jonathan M. Wilbur wrote: I have tried to come up with a good way to get the mantissa, exponent, and base from a real number, and I just can't come up with a good cross-platform way of doing it. I know about std.math.frexp(), but that function only

Re: Independent Study at my university using D

2017-03-03 Thread H. S. Teoh via Digitalmars-d-announce
On Fri, Mar 03, 2017 at 07:00:00PM +, Jeremy DeHaan via Digitalmars-d-announce wrote: > Something pretty exciting happened yesterday: I registered for an > independent study to build a basic garbage collector in D at my > university. > > This is exciting for me because I really enjoyed the

[OT] Re: Why don't you advertise more your language on Quora etc ?

2017-03-03 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 03, 2017 at 01:45:50PM -0500, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: [...] > But I do really wish though, that the IDE devs would start > prioritizing efficiency, UI snappiness, and startup time. Yea, those > toold do more, but they don't do THAT much more that would >

Re: Why don't you advertise more your language on Quora etc ?

2017-03-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/03/2017 12:33 PM, H. S. Teoh via Digitalmars-d wrote: Call me a non-conformist or whatever, but every time I see too much hype surrounding something, my kneejerk reaction is to be skeptical of it. I eschew all bandwagons. Yea, I'm the same way. Not even a deliberate thing really, just

Independent Study at my university using D

2017-03-03 Thread Jeremy DeHaan via Digitalmars-d-announce
Something pretty exciting happened yesterday: I registered for an independent study to build a basic garbage collector in D at my university. This is exciting for me because I really enjoyed the work I did during the last GSoC, so I'm hoping to learn more about garbage collection and

Re: Nothing builds on debian anymore.

2017-03-03 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 03, 2017 at 10:32:34AM -0800, H. S. Teoh via Digitalmars-d wrote: > On Fri, Mar 03, 2017 at 06:11:29PM +, deadalnix via Digitalmars-d wrote: > > https://issues.dlang.org/show_bug.cgi?id=17236 > > > > Coming to you on ubuntu soon. > > I just built dmd/druntime/phobos on Debian,

Re: Why don't you advertise more your language on Quora etc ?

2017-03-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/03/2017 10:40 AM, Russel Winder via Digitalmars-d wrote: IDEs, vastly more supportive, useful software development functionality than editors, especially for debugging, yes. It's that last one, the one about getting working software developed faster, that is the one that has moved me

Re: Nothing builds on debian anymore.

2017-03-03 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 03, 2017 at 06:11:29PM +, deadalnix via Digitalmars-d wrote: > https://issues.dlang.org/show_bug.cgi?id=17236 > > Coming to you on ubuntu soon. I just built dmd/druntime/phobos on Debian, and it works fine. But then again, I'm using my -fPIC workaround, which has been officially

Re: Google is apparently now better at searching programming-related questions

2017-03-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/03/2017 04:50 AM, Andrej Mitrovic wrote: On Friday, 3 March 2017 at 07:51:06 UTC, Ola Fosheim Grøstad wrote: I get those same results when using my regular browser, but when using another browser I get "ad lib" etc, nothing about programming. You may be right. :) I mistakenly thought

Nothing builds on debian anymore.

2017-03-03 Thread deadalnix via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=17236 Coming to you on ubuntu soon.

Split Real / Float into Mantissa, Exponent, and Base

2017-03-03 Thread Jonathan M. Wilbur via Digitalmars-d-learn
I have tried to come up with a good way to get the mantissa, exponent, and base from a real number, and I just can't come up with a good cross-platform way of doing it. I know about std.math.frexp(), but that function only gives you another real as the mantissa. I need an integral mantissa,

Re: Typed D allocator based on jemalloc

2017-03-03 Thread Moritz Maxeiner via Digitalmars-d-announce
On Friday, 3 March 2017 at 12:00:05 UTC, Basile B. wrote: Nothing huge here. The package[0] provides the bindings, JEMallocator (like Mallocator) and JEAlignedAllocator (like AlignedAllocator). All of them use jeallocator[1], which is actually the default implementation of malloc in the

[OT] Re: Why don't you advertise more your language on Quora etc ?

2017-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 03/03/2017 12:33 PM, H. S. Teoh via Digitalmars-d wrote: Ahh, the memories! (Please keep memories marked with [OT]. Thanks! -- Andrei)

Re: What about this logo ":D" to advertise the D language ?

2017-03-03 Thread Moritz Maxeiner via Digitalmars-d
On Thursday, 2 March 2017 at 18:45:23 UTC, Ali Çehreli wrote: On 03/02/2017 07:46 AM, angel wrote: >> Isn't it :C => :C++ => :D >> >> Much better than :C# of course. > > > Your :C++ looks like someone throwing up. > Well ... maybe this is intentional. I like it more than "two band aids". :)

Re: WebAssembly design is done?

2017-03-03 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 03, 2017 at 08:06:00AM +, Ola Fosheim Grøstad via Digitalmars-d wrote: [...] > The general public has become more ignorant. I guess to a large extent > because of information overflow and the downfall of real journalism > (e.g. the old payment model is failing which means media

Re: Why don't you advertise more your language on Quora etc ?

2017-03-03 Thread H. S. Teoh via Digitalmars-d
On Thu, Mar 02, 2017 at 07:12:07PM -0500, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: > On 03/02/2017 10:32 AM, bachmeier wrote: > > > > I too learned to program using BASIC sometime in the mid-80's. The > > Ditto here (well, late 80's). AppleSoft Basic on Apple IIc. Ahh, the memories!

Re: Pegged v0.4: longest-match, left-recursion, and expandable parse trees

2017-03-03 Thread Moritz Maxeiner via Digitalmars-d-announce
On Thursday, 2 March 2017 at 20:42:56 UTC, Philippe Sigaud wrote: Hi, Pegged is a parser generator based on Parsing Expression Grammars (PEG) written in D, that aims to be both simple to use and work at compile-time. See: https://github.com/PhilippeSigaud/Pegged [...] Thank you very much

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 3 March 2017 at 16:43:05 UTC, Kagamin wrote: On Friday, 24 February 2017 at 19:19:57 UTC, Moritz Maxeiner wrote: *Then* you have to provide conclusive (or at the very least hard to refute) proof that the reason that no one could break them were the memory safety features; and then,

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 3 March 2017 at 16:38:52 UTC, Kagamin wrote: On Friday, 3 March 2017 at 02:11:38 UTC, Moritz Maxeiner wrote: My major gripe, though, is still that people tend to create "safe" wrappers around "unsafe" (mostly) C libraries, which (in the sense of safety) doesn't really help me as a

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 3 March 2017 at 02:48:46 UTC, Nick Sabalausky (Abscissa) wrote: On 03/02/2017 06:00 PM, Guillaume Piolat wrote: On Friday, 24 February 2017 at 13:38:57 UTC, Moritz Maxeiner wrote: On Friday, 24 February 2017 at 06:59:16 UTC, Jack Stouffer wrote:

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Kagamin via Digitalmars-d
On Friday, 24 February 2017 at 19:19:57 UTC, Moritz Maxeiner wrote: *Then* you have to provide conclusive (or at the very least hard to refute) proof that the reason that no one could break them were the memory safety features; and then, *finally*, you can point to all the people *still not

Re: I do not understand what the problem is in this code.

2017-03-03 Thread steven kladitis via Digitalmars-d-learn
On Friday, 3 March 2017 at 04:14:02 UTC, Jordan Wilson wrote: On Friday, 3 March 2017 at 03:11:24 UTC, steven kladitis wrote: [...] I saw this answer for a similar question from Adam D. Ruppe: Quote: "...it is anything that Phobos considers "bidirectional" and "swappable" - an array it can

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Kagamin via Digitalmars-d
On Friday, 3 March 2017 at 02:11:38 UTC, Moritz Maxeiner wrote: My major gripe, though, is still that people tend to create "safe" wrappers around "unsafe" (mostly) C libraries, which (in the sense of safety) doesn't really help me as a developer at all Wrappers are needed because C

Re: Floating point rounding

2017-03-03 Thread ag0aep6g via Digitalmars-d-learn
On 03/02/2017 10:49 PM, Guillaume Chatelet wrote: Thx for the investigation! Here is the code for FloatingPointControl https://github.com/dlang/phobos/blob/master/std/math.d#L4809 Other code (enableExceptions / disableExceptions) seems to have two code path depending on "version(X86_Any)",

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Kagamin via Digitalmars-d
On Friday, 24 February 2017 at 15:15:00 UTC, Ola Fosheim Grøstad wrote: If you don't want to max out performance you might as well consider Go, Java, C#, Swift etc. I don't really buy into the idea that a single language has to cover all bases. Ewww, java? Why not COBOL?

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Kagamin via Digitalmars-d
On Friday, 24 February 2017 at 21:22:10 UTC, Ola Fosheim Grøstad wrote: I don't really buy that bullet-proof and under-performing solutions is improving on system level programming. It is an improvement for application level programming and performant libraries. Maybe, but most personal user

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Guillaume Piolat via Digitalmars-d
On Friday, 3 March 2017 at 02:48:46 UTC, Nick Sabalausky (Abscissa) wrote: I think it's safe enough to just go ahead and interpret it as "...evidence that memory safety is important and SHOULD be the direction we take." In D you have less memory corruption than in C++, which in its modern

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Kagamin via Digitalmars-d
On Friday, 24 February 2017 at 20:16:28 UTC, Timon Gehr wrote: No. Worse. It turns failures into UB. On the other hand disabled bounds check can result in buffer overflow, which is already UB enough, so asserts turned into assumes won't add anything new.

[Issue 17242] New: Specialized templates defined inside functions fail lookup, moving them outside makes them work

2017-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17242 Issue ID: 17242 Summary: Specialized templates defined inside functions fail lookup, moving them outside makes them work Product: D Version: D2 Hardware: All OS:

Re: Why don't you advertise more your language on Quora etc ?

2017-03-03 Thread Russel Winder via Digitalmars-d
On Thu, 2017-03-02 at 15:02 -0500, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: > […] > I've used tools from JetBrains before. IMO, it should be easy for > both  > vim and emacs to catch up to tools like JetBrains, Xamarin and such. > All  > they need are a couple extensions to artificially

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 3 March 2017 at 09:22:31 UTC, Jacob Carlborg wrote: On 2017-03-03 03:11, Moritz Maxeiner wrote: [...] TL/DR: I wish people would write more native libraries in safe languages, but who has the time for that? So we need operating systems and the core libraries to be built from the

Re: [NOTABLE PR] First step from traditional to generic runtime

2017-03-03 Thread Kagamin via Digitalmars-d
Nitpick: object.d is for symbols visible to user code, but it's not necessary to provide these helper functions to used code, so they should be in a different module known to the compiler.

Re: Range with lookaround

2017-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/17 6:56 AM, Dukc wrote: On Thursday, 2 March 2017 at 01:44:19 UTC, Andrei Alexandrescu wrote: May be worth discussing in here: https://issues.dlang.org/show_bug.cgi?id=17238 -- Andrei Almost similar to this: https://github.com/dlang/phobos/pull/4027 Perhaps we should use that as base?

Re: Range with lookaround

2017-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/17 6:22 AM, Dukc wrote: iota(5).lookAhead(1, 2) should be iota(5).lookaround!(1, 2)

Re: Building a project with CMAKE

2017-03-03 Thread berni via Digitalmars-d-learn
On Friday, 3 March 2017 at 13:21:56 UTC, Seb wrote: Is there any specific reason why you can't use DMD or LDC? gdc produces faster binaries. ;-) I've got installed the other two compilers too and they work.

Problem with send / receive

2017-03-03 Thread crimaniak via Digitalmars-d-learn
Hi all! I make vibe-d based project and now I have problem passing messages between threads. First some words about architecture. Each event in the system has a corresponding class that validates and performs the required actions. Each class has a nested structure with the parameters that

Re: DConf 2017 Hotel - book now!

2017-03-03 Thread Mario Kröplin via Digitalmars-d-announce
On Thursday, 2 March 2017 at 19:39:55 UTC, Walter Bright wrote: Tegel Airport to Hotel: Bus 109 to Jakob-Kaiser-Platz Subway U 7 in the direction of Rudow to Grenzallee Cross the street at the traffic light and turn left. The next street on the right is Jahnstraße. On the left side you will

Re: Building a project with CMAKE

2017-03-03 Thread Seb via Digitalmars-d-learn
On Friday, 3 March 2017 at 10:21:51 UTC, berni wrote: On Thursday, 2 March 2017 at 09:13:40 UTC, berni wrote: Just a note: I now asked the same question on the cmake mailing list. Maybe, it's the better place to do so... After some help of cmake people and a morning of more investigations,

Re: DPaste using ancient LDC

2017-03-03 Thread Seb via Digitalmars-d
On Friday, 3 March 2017 at 11:22:52 UTC, kinke wrote: I'm slightly annoyed by DPaste providing a single ancient LDC version (0.12, 2.063 front-end...). I wouldn't mind as long as it wouldn't boldly state `We provide always up-to-date compilers collection!` and it wasn't the first result when

Re: Range with lookaround

2017-03-03 Thread Seb via Digitalmars-d
On Friday, 3 March 2017 at 11:56:26 UTC, Dukc wrote: On Thursday, 2 March 2017 at 01:44:19 UTC, Andrei Alexandrescu wrote: May be worth discussing in here: https://issues.dlang.org/show_bug.cgi?id=17238 -- Andrei Almost similar to this: https://github.com/dlang/phobos/pull/4027 Perhaps we

[Issue 5323] std.math: struct FloatingPointControl, duplicate code and assumes X86

2017-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5323 Guillaume Chatelet changed: What|Removed |Added CC|

Typed D allocator based on jemalloc

2017-03-03 Thread Basile B. via Digitalmars-d-announce
Nothing huge here. The package[0] provides the bindings, JEMallocator (like Mallocator) and JEAlignedAllocator (like AlignedAllocator). All of them use jeallocator[1], which is actually the default implementation of malloc in the FreeBSD system. In a future update I may add another D alloc

Re: Range with lookaround

2017-03-03 Thread Dukc via Digitalmars-d
On Thursday, 2 March 2017 at 01:44:19 UTC, Andrei Alexandrescu wrote: May be worth discussing in here: https://issues.dlang.org/show_bug.cgi?id=17238 -- Andrei Almost similar to this: https://github.com/dlang/phobos/pull/4027 Perhaps we should use that as base?

Re: DPaste using ancient LDC

2017-03-03 Thread Daniel Kozak via Digitalmars-d
For dmd you can try: http://asm.dlang.org/ Dne 3. 3. 2017 12:27 napsal uživatel "kinke via Digitalmars-d" < digitalmars-d@puremagic.com>: > I'm slightly annoyed by DPaste providing a single ancient LDC version > (0.12, 2.063 front-end...). I wouldn't mind as long as it wouldn't boldly > state

Re: DConf 2017 Hotel - book now!

2017-03-03 Thread Chris via Digitalmars-d-announce
On Thursday, 2 March 2017 at 18:21:31 UTC, Seb wrote: On Thursday, 2 March 2017 at 15:09:16 UTC, Chris wrote: On Thursday, 2 March 2017 at 14:44:17 UTC, Steven Schveighoffer wrote: On 3/2/17 4:33 AM, Chris wrote: [...] I used the bus + train, it was quite easy. Don't remember the exact

Re: Range with lookaround

2017-03-03 Thread Dukc via Digitalmars-d
On Friday, 3 March 2017 at 11:22:37 UTC, Dukc wrote: [snip] correction: assert(iota(5).lookAhead(1, 2).array == [ [0, 1], [0, 1, 2], [0, 1, 2, 3], [1, 2, 3, 4], [2, 3, 4] ]);

DPaste using ancient LDC

2017-03-03 Thread kinke via Digitalmars-d
I'm slightly annoyed by DPaste providing a single ancient LDC version (0.12, 2.063 front-end...). I wouldn't mind as long as it wouldn't boldly state `We provide always up-to-date compilers collection!` and it wasn't the first result when googling for "dlang online compiler" (I prefer

Re: Range with lookaround

2017-03-03 Thread Dukc via Digitalmars-d
On Thursday, 2 March 2017 at 01:44:19 UTC, Andrei Alexandrescu wrote: May be worth discussing in here: https://issues.dlang.org/show_bug.cgi?id=17238 -- Andrei //My understanding of the concept, is this correct? assert(iota(5).lookAhead(1, 2).array == [ [0, 1], [0, 1, 2], [0, 1, 2,

Re: Building a project with CMAKE

2017-03-03 Thread berni via Digitalmars-d-learn
On Thursday, 2 March 2017 at 09:13:40 UTC, berni wrote: Just a note: I now asked the same question on the cmake mailing list. Maybe, it's the better place to do so... After some help of cmake people and a morning of more investigations, I'm quite sure I found a bug in gdc. Meanwhile I've got

Re: Google is apparently now better at searching programming-related questions

2017-03-03 Thread Andrej Mitrovic via Digitalmars-d
On Friday, 3 March 2017 at 07:51:06 UTC, Ola Fosheim Grøstad wrote: I get those same results when using my regular browser, but when using another browser I get "ad lib" etc, nothing about programming. You may be right. :) I mistakenly thought the lack of cookies would be enough to get

Floating point constant folding

2017-03-03 Thread Guillaume Chatelet via Digitalmars-d
Context: http://forum.dlang.org/post/qybweycrifqgtcsse...@forum.dlang.org --- prints 1 --- void main(string[] args) { import std.stdio; import core.stdc.fenv; fesetround(FE_UPWARD); writefln("%.32g", 1.0f + float.min_normal); } --- --- prints 1.0011920928955078125 --- void

Re: [NOTABLE PR] First step from traditional to generic runtime

2017-03-03 Thread Walter Bright via Digitalmars-d
On 3/2/2017 11:04 PM, Dukc wrote: On Thursday, 2 March 2017 at 19:32:23 UTC, Andrei Alexandrescu wrote: Worth a look: https://github.com/dlang/druntime/pull/1781. This moves comparison code away from tedious runtime-introspected routines to nice templates. -- Andrei This means that if I don't

Re: If you needed any more evidence that memory safety is the future...

2017-03-03 Thread Jacob Carlborg via Digitalmars-d
On 2017-03-03 03:11, Moritz Maxeiner wrote: For what it's worth: I do hope memory safety becomes a common feature and what languages like D and Rust do on that front is great (even though both D's still heavily integrated GC as well as Rust's static analysis have their downsides). My major

Re: Why don't you advertise more your language on Quora etc ?

2017-03-03 Thread Rico Decho via Digitalmars-d
Slant does a pretty good job of providing a platform to these opinionated questions. https://www.slant.co/topics/25/viewpoints/11/~best-programming-language-to-learn-first~d That's right. Btw I've tested this simple "opinionated" search :

Re: WebAssembly design is done?

2017-03-03 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 2 March 2017 at 19:52:58 UTC, Nick Sabalausky (Abscissa) wrote: At some point there will be a resistance movement, forking one of the main browsers and building in collaborative blacklisting etc. I hope, but I'm skeptical. Big business is definitely headed very 1984, but that's