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 i

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, granted

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 w

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. I'

Poor man's Result 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, in

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 t

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 1.000

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 it's

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 magician

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 ht

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: 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

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: [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 on

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 https://github.com/dlang/druntime/pull/1781#issuecomment-28390

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

[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 > tec

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 m

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, and

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 awa

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 th

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.

[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 is

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: 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 de

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: https://bugs.chromium.org/p/project-z

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 usi

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 libraries

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 inc

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.

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 g

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: 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 g

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 s

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 `We

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 d.godbolt

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, 3]

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 clean

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 gripe

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 : https://www.google.be/search?q=best+programming+langu

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 h