[Issue 19305] New: In symbol lookup, with statement becomes stronger than an inner scope import statement

2018-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19305 Issue ID: 19305 Summary: In symbol lookup, with statement becomes stronger than an inner scope import statement Product: D Version: D2 Hardware: All OS: All

Re: Spasm - webassembly libary for single page applications

2018-10-12 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
Nifty, I'll have to look into this. Any idea what it would take to get this doing some WebGL? (Or playing audio?) Or is this more for HTML-ish sorts of stuff? What are the main current limitations?

[Issue 19304] [Reg 2.081.0] Linker arguments order changed in issue 15574 hinders using --whole-archive linker directive

2018-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19304 Ludovit Lucenic changed: What|Removed |Added Keywords||link-failure --

Re: You don't like GC? Do you?

2018-10-12 Thread Stanislav Blinov via Digitalmars-d
On Friday, 12 October 2018 at 23:32:34 UTC, Nicholas Wilson wrote: On Friday, 12 October 2018 at 20:12:26 UTC, Stanislav Blinov That's done first and foremost by stripping out unnecessary allocations, not by writing "new" every other line and closing your eyes. If you need perf in your

Re: You don't like GC? Do you?

2018-10-12 Thread Stanislav Blinov via Digitalmars-d
On Friday, 12 October 2018 at 21:39:13 UTC, Atila Neves wrote: D isn't Java. If you can, put your data on the stack. If you can't, `new` away and don't think about it. Then five years later, try and hunt down that mysterious heap corruption. Caused by some destructor calling into buggy

Re: You don't like GC? Do you?

2018-10-12 Thread Nicholas Wilson via Digitalmars-d
On Friday, 12 October 2018 at 20:12:26 UTC, Stanislav Blinov wrote: On Friday, 12 October 2018 at 19:55:02 UTC, Nicholas Wilson wrote: Freeing your mind and the codebase of having to deal with memory leaves it in an easier place to deal with the less common higher impact leaks: file

Re: You don't like GC? Do you?

2018-10-12 Thread Stanislav Blinov via Digitalmars-d
On Friday, 12 October 2018 at 21:34:35 UTC, Atila Neves wrote: --- When writing a throwaway script... ...there's absolutely no need for a GC. True. There's also absolutely no need for computer languages either, machine code is sufficient. Funny. Now for real,

[Issue 15956] Incorrect value inside enum using simd vectors, weird tym errors, and weird if(true) {} partial solution.

2018-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15956 jo...@mail.de changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 15956] Incorrect value inside enum using simd vectors, weird tym errors, and weird if(true) {} partial solution.

2018-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15956 jo...@mail.de changed: What|Removed |Added Severity|critical|normal --- Comment #3 from jo...@mail.de ---

Re: You don't like GC? Do you?

2018-10-12 Thread Adam Wilson via Digitalmars-d
On 10/11/18 11:20 PM, JN wrote: On Thursday, 11 October 2018 at 21:22:19 UTC, aberba wrote: [snip] That is fine, if you want to position yourself as competition to languages like Go, Java or C#. D wants to be a viable competition to languages like C, C++ and Rust, as a result, there are

Re: You don't like GC? Do you?

2018-10-12 Thread Stanislav Blinov via Digitalmars-d
On Friday, 12 October 2018 at 21:15:04 UTC, welkam wrote: People in this thread mostly said that for some things GC is just awesome. When you need to get shit done fast and dirty GC saves time and mental capacity. Not all code deals with sockets, DB, bank transactions, multithreading, etc.

Re: You don't like GC? Do you?

2018-10-12 Thread Atila Neves via Digitalmars-d
On Friday, 12 October 2018 at 20:12:26 UTC, Stanislav Blinov wrote: On Friday, 12 October 2018 at 19:55:02 UTC, Nicholas Wilson wrote: Freeing your mind and the codebase of having to deal with memory leaves it in an easier place to deal with the less common higher impact leaks: file

Re: You don't like GC? Do you?

2018-10-12 Thread Atila Neves via Digitalmars-d
On Friday, 12 October 2018 at 16:26:49 UTC, Stanislav Blinov wrote: On Thursday, 11 October 2018 at 21:22:19 UTC, aberba wrote: "It takes care of itself --- When writing a throwaway script... ...there's absolutely no need for a GC. True. There's also absolutely

Re: Spasm - webassembly libary for single page applications

2018-10-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 10/12/18 3:43 PM, Sebastiaan Koppe wrote: I like to announce Spasm https://github.com/skoppe/spasm It is a webassembly library to develop single page applications and builds on my previous work (https://forum.dlang.org/post/eqneqstmwfzugymfe...@forum.dlang.org). It generates fast and

Re: custom sorting of lists ?

2018-10-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/12/18 4:59 PM, Codifies wrote: On Friday, 12 October 2018 at 20:29:27 UTC, Steven Schveighoffer wrote: On 10/12/18 3:40 PM, Codifies wrote: [...] Unfortunately, I can't find a way to sort a doubly linked list in phobos, so comparisons are somewhat moot. However, if there *were* a

Re: You don't like GC? Do you?

2018-10-12 Thread welkam via Digitalmars-d
On Friday, 12 October 2018 at 20:12:26 UTC, Stanislav Blinov wrote: Saying stuff like "do more with GC" is just outright harmful. Kids are reading, for crying out loud. People in this thread mostly said that for some things GC is just awesome. When you need to get shit done fast and dirty GC

Re: A Friendly Challenge for D

2018-10-12 Thread Jabari Zakiya via Digitalmars-d
On Friday, 12 October 2018 at 20:05:29 UTC, welkam wrote: On Friday, 12 October 2018 at 16:19:59 UTC, Jabari Zakiya wrote: The real point of the challenge is too see what idiomatic code... There is no idiomatic D code. There is only better implementations. D doesnt tell you how to write

Re: custom sorting of lists ?

2018-10-12 Thread Codifies via Digitalmars-d-learn
On Friday, 12 October 2018 at 20:29:27 UTC, Steven Schveighoffer wrote: On 10/12/18 3:40 PM, Codifies wrote: [...] Unfortunately, I can't find a way to sort a doubly linked list in phobos, so comparisons are somewhat moot. However, if there *were* a sorting routine, generally the

Re: custom sorting of lists ?

2018-10-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/12/18 3:40 PM, Codifies wrote: a while ago I wrote a doubly linked list (in C), which has a compare callback to allow custom sorting for example int cmpNodes(cnode_t* n1, cnode_t* n2) {   mapNode_t* rn1 = (mapNode_t*)(n1->data);   mapNode_t* rn2 = (mapNode_t*)(n2->data);   if (rn1->G

Re: You don't like GC? Do you?

2018-10-12 Thread Stanislav Blinov via Digitalmars-d
On Friday, 12 October 2018 at 19:55:02 UTC, Nicholas Wilson wrote: Freeing your mind and the codebase of having to deal with memory leaves it in an easier place to deal with the less common higher impact leaks: file descriptors, sockets, database handles ect. (this is like chopping down the

Re: A Friendly Challenge for D

2018-10-12 Thread welkam via Digitalmars-d
On Friday, 12 October 2018 at 16:19:59 UTC, Jabari Zakiya wrote: The real point of the challenge is too see what idiomatic code... There is no idiomatic D code. There is only better implementations. D doesnt tell you how to write your code. It gives you many tools and you choose which

Re: You don't like GC? Do you?

2018-10-12 Thread Nicholas Wilson via Digitalmars-d
On Friday, 12 October 2018 at 19:43:02 UTC, Stanislav Blinov wrote: On Friday, 12 October 2018 at 18:50:26 UTC, Neia Neutuladh wrote: Over the lifetime of the script, it processed more memory than my computer had. That means I needed a memory management strategy other than "allocate

Re: A Friendly Challenge for D

2018-10-12 Thread welkam via Digitalmars-d
On Friday, 12 October 2018 at 16:19:59 UTC, Jabari Zakiya wrote: Hmm,I don't think what you're saying about similar output|performance with other languages is empirically correct, but it's really not the point of the challenge. Thats why godbolt exists. c++ and Rust

Re: You don't like GC? Do you?

2018-10-12 Thread Stanislav Blinov via Digitalmars-d
On Friday, 12 October 2018 at 19:06:36 UTC, Dejan Lekic wrote: What a bunch of nonsense! I used to talk like this some 20 years ago when all I saw in the computing world was C and C++... Sure garbage collection is not for every project, depends what industry you are in I guess... In my case

Re: You don't like GC? Do you?

2018-10-12 Thread bachmeier via Digitalmars-d
On Friday, 12 October 2018 at 16:26:49 UTC, Stanislav Blinov wrote: On Thursday, 11 October 2018 at 21:22:19 UTC, aberba wrote: "It takes care of itself --- When writing a throwaway script... ...there's absolutely no need for a GC. In fact, the GC runtime will

Re: You don't like GC? Do you?

2018-10-12 Thread Stanislav Blinov via Digitalmars-d
On Friday, 12 October 2018 at 18:50:26 UTC, Neia Neutuladh wrote: Over the lifetime of the script, it processed more memory than my computer had. That means I needed a memory management strategy other than "allocate everything". The GC made that quite easy. Now *that* is a good point. Then

Spasm - webassembly libary for single page applications

2018-10-12 Thread Sebastiaan Koppe via Digitalmars-d-announce
I like to announce Spasm https://github.com/skoppe/spasm It is a webassembly library to develop single page applications and builds on my previous work (https://forum.dlang.org/post/eqneqstmwfzugymfe...@forum.dlang.org). It generates fast and small webassembly binaries. The example todo-mvc

custom sorting of lists ?

2018-10-12 Thread Codifies via Digitalmars-d-learn
a while ago I wrote a doubly linked list (in C), which has a compare callback to allow custom sorting for example int cmpNodes(cnode_t* n1, cnode_t* n2) { mapNode_t* rn1 = (mapNode_t*)(n1->data); mapNode_t* rn2 = (mapNode_t*)(n2->data); if (rn1->G + rn1->H > rn2->G + rn2->H) return 1;

Re: You don't like GC? Do you?

2018-10-12 Thread Dejan Lekic via Digitalmars-d
On Friday, 12 October 2018 at 16:26:49 UTC, Stanislav Blinov wrote: On Thursday, 11 October 2018 at 21:22:19 UTC, aberba wrote: "It takes care of itself --- When writing a throwaway script... ...there's absolutely no need for a GC. In fact, the GC runtime will

Re: You don't like GC? Do you?

2018-10-12 Thread Neia Neutuladh via Digitalmars-d
On 10/12/2018 11:14 AM, Stanislav Blinov wrote: On Friday, 12 October 2018 at 17:31:30 UTC, Neia Neutuladh wrote: Throwaway scripts can allocate a lot of memory and have nontrivial running times. It's less common for scripts than for long-running processes, granted, but I've written scripts

Re: You don't like GC? Do you?

2018-10-12 Thread Stanislav Blinov via Digitalmars-d
On Friday, 12 October 2018 at 17:31:30 UTC, Neia Neutuladh wrote: Throwaway scripts can allocate a lot of memory and have nontrivial running times. It's less common for scripts than for long-running processes, granted, but I've written scripts to go through gigabytes of data. Your point

Re: You don't like GC? Do you?

2018-10-12 Thread Neia Neutuladh via Digitalmars-d
On 10/12/2018 09:26 AM, Stanislav Blinov wrote: On Thursday, 11 October 2018 at 21:22:19 UTC, aberba wrote: "It takes care of itself --- When writing a throwaway script... ...there's absolutely no need for a GC. In fact, the GC runtime will only detract from

Re: You don't like GC? Do you?

2018-10-12 Thread Stanislav Blinov via Digitalmars-d
On Thursday, 11 October 2018 at 21:22:19 UTC, aberba wrote: "It takes care of itself --- When writing a throwaway script... ...there's absolutely no need for a GC. In fact, the GC runtime will only detract from performance. What this means is that whenever I have

Re: A Friendly Challenge for D

2018-10-12 Thread Jabari Zakiya via Digitalmars-d
On Friday, 12 October 2018 at 15:11:17 UTC, welkam wrote: On Wednesday, 10 October 2018 at 16:15:56 UTC, Jabari Zakiya wrote: What I am requesting here is for a person(s) who is an "expert" (very good) to create a very fast D version, using whatever tricks it has to maximize performance. I

Re: LDC2 -I option results in unresolved externals

2018-10-12 Thread Stanislav Blinov via Digitalmars-d-learn
On Friday, 12 October 2018 at 07:32:26 UTC, Mike Parker wrote: DMD has the -i option which tells the compiler to automatically compile all imported modules. I don't know if LDC has anything similar. It does, same option.

Re: Release D 2.082.1

2018-10-12 Thread Nicholas Wilson via Digitalmars-d-announce
On Thursday, 11 October 2018 at 23:02:19 UTC, Martin Nowak wrote: Glad to announce D 2.082.1. http://dlang.org/download.html This point release fixes a few issues over 2.082.1 Ummm... Anyway, thanks for the release!

Re: D Logic bug

2018-10-12 Thread Patrick Schluter via Digitalmars-d
On Friday, 12 October 2018 at 13:15:22 UTC, Steven Schveighoffer wrote: On 10/12/18 6:06 AM, Kagamin wrote: On Thursday, 11 October 2018 at 23:17:15 UTC, Jonathan Marler wrote: [...] That's https://issues.dlang.org/show_bug.cgi?id=14186 Wow, interesting that C precedence is different from

Re: D Logic bug

2018-10-12 Thread Patrick Schluter via Digitalmars-d
On Thursday, 11 October 2018 at 23:17:57 UTC, Jonathan M Davis wrote: On Thursday, October 11, 2018 8:35:34 AM MDT James Japherson via Digitalmars-d wrote: Certainly, major languages like C, C++, Java, and C# all do it the way that D does, and they all have the same kind of precedence for

Re: What's going on with the DMD nightlies releases ?

2018-10-12 Thread Basile B. via Digitalmars-d
On Wednesday, 19 September 2018 at 12:51:25 UTC, Basile B. wrote: The downloads of nightlies is broken since at least 2 weeks now. What's going on ? I've started using this script from today : https://github.com/BBasile/dmdm/blob/master/dmdm.sh Instead of downloading the nightly release it

Re: D Logic bug

2018-10-12 Thread Patrick Schluter via Digitalmars-d
On Thursday, 11 October 2018 at 23:17:15 UTC, Jonathan Marler wrote: On Thursday, 11 October 2018 at 21:57:00 UTC, Jonathan M Davis wrote: On Thursday, October 11, 2018 1:09:14 PM MDT Jonathan Marler via Digitalmars-d wrote: On Thursday, 11 October 2018 at 14:35:34 UTC, James Japherson wrote:

Re: Has Anyone has this same Issue Please?

2018-10-12 Thread Basile B. via Digitalmars-d-learn
On Thursday, 11 October 2018 at 18:20:56 UTC, Ephrahim wrote: Using this dub.json configuration 0.8.36\eventcore\source\eventcore\drivers\posix\driver.d(145,14): Error: safe function 'eventcore.drivers.posix.driver.PosixEventDriverCore!(SelectEventLoop, LoopTimeoutTimerDriver,

Re: A Friendly Challenge for D

2018-10-12 Thread welkam via Digitalmars-d
On Wednesday, 10 October 2018 at 16:15:56 UTC, Jabari Zakiya wrote: What I am requesting here is for a person(s) who is an "expert" (very good) to create a very fast D version, using whatever tricks it has to maximize performance. I would like to include in my paper a good comparison of

[Issue 19303] hasMember fails to recognize member (interaction with mixin template)

2018-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19303 Luís Marques changed: What|Removed |Added Hardware|x86 |All OS|Mac OS X

[Issue 19303] New: hasMember fails to recognize member (interaction with mixin template)

2018-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19303 Issue ID: 19303 Summary: hasMember fails to recognize member (interaction with mixin template) Product: D Version: D2 Hardware: x86 OS: Mac OS X

Re: std.regex is fat

2018-10-12 Thread Alex via Digitalmars-d-learn
On Friday, 12 October 2018 at 13:25:33 UTC, Chris Katko wrote: Like, insanely fat. All I wanted was a simple regex. The second include a regex function, my program would no longer compile "out of memory for fork". /usr/bin/time -v reports it went from 150MB of RAM for D, DAllegro, and

std.regex is fat

2018-10-12 Thread Chris Katko via Digitalmars-d-learn
Like, insanely fat. All I wanted was a simple regex. The second include a regex function, my program would no longer compile "out of memory for fork". /usr/bin/time -v reports it went from 150MB of RAM for D, DAllegro, and Allegro5. To over 650MB of RAM, and from 1.5 seconds to >5.5

Re: Using . notation abstractly

2018-10-12 Thread Simen Kjærås via Digitalmars-d-learn
On Friday, 12 October 2018 at 12:43:53 UTC, Paul Backus wrote: On Wednesday, 10 October 2018 at 22:56:14 UTC, James Japherson wrote: The point of all this is because D does not allow nesting of enums which allows for nice use of . to separate hiearchies: enum A { enum B { X, }

Re: D Logic bug

2018-10-12 Thread Steven Schveighoffer via Digitalmars-d
On 10/12/18 6:06 AM, Kagamin wrote: On Thursday, 11 October 2018 at 23:17:15 UTC, Jonathan Marler wrote: I had a look at the table again, looks like the ternary operator is on there, just called the "conditional operator". And to clarify, D's operator precedence is close to C/C++ but doesn't

Re: Using . notation abstractly

2018-10-12 Thread Paul Backus via Digitalmars-d-learn
On Wednesday, 10 October 2018 at 22:56:14 UTC, James Japherson wrote: The point of all this is because D does not allow nesting of enums which allows for nice use of . to separate hiearchies: enum A { enum B { X, } } A.B.X, rather than having to have one large flat enum and do

[Issue 19302] New: statement not reachable in std.regex.internal.parser.Parser.parseAtom, only in -inline -profile builds

2018-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19302 Issue ID: 19302 Summary: statement not reachable in std.regex.internal.parser.Parser.parseAtom, only in -inline -profile builds Product: D Version: D2

Re: Interesting Observation from JAXLondon

2018-10-12 Thread Peter Alexander via Digitalmars-d
On Friday, 12 October 2018 at 07:13:33 UTC, Russel Winder wrote: On Thu, 2018-10-11 at 13:00 +, bachmeier via Digitalmars-d wrote: […] Suggestions? My guess is that the reason they've heard of those languages is because their developers were writing small projects using Go and Rust, but

Re: D Logic bug

2018-10-12 Thread Kagamin via Digitalmars-d
On Thursday, 11 October 2018 at 23:17:15 UTC, Jonathan Marler wrote: I had a look at the table again, looks like the ternary operator is on there, just called the "conditional operator". And to clarify, D's operator precedence is close to C/C++ but doesn't match exactly. This is likely a

Re: gRPC for D is released.

2018-10-12 Thread Brian via Digitalmars-d-announce
On Thursday, 11 October 2018 at 16:19:07 UTC, April Nassi wrote: Hi! I'm the community manager for gRPC and this is awesome! Would love to add this to our ecosystem repo. Would also be great to have you talk about this on an upcoming community call! Thanks, e-mail: zoujiaq...@gmail.com

Re: Interesting Observation from JAXLondon

2018-10-12 Thread Vijay Nayar via Digitalmars-d
On Friday, 12 October 2018 at 07:13:33 UTC, Russel Winder wrote: On Thu, 2018-10-11 at 13:00 +, bachmeier via Digitalmars-d wrote: […] Suggestions? My guess is that the reason they've heard of those languages is because their developers were writing small projects using Go and Rust, but

Re: Interesting Observation from JAXLondon

2018-10-12 Thread Joakim via Digitalmars-d
On Friday, 12 October 2018 at 07:13:33 UTC, Russel Winder wrote: On Thu, 2018-10-11 at 13:00 +, bachmeier via Digitalmars-d wrote: […] Suggestions? My guess is that the reason they've heard of those languages is because their developers were writing small projects using Go and Rust, but

Re: LDC2 -I option results in unresolved externals

2018-10-12 Thread Mike Parker via Digitalmars-d-learn
On Friday, 12 October 2018 at 06:01:12 UTC, spikespaz wrote: I'm using the latest LDC2 beta, and when running the compiler with -I (Look for imports also in ) it fails with unresolved externals. These are my commands. = $ ldc2

Re: Visual D issues

2018-10-12 Thread Rainer Schuetze via Digitalmars-d-debugger
On 11/10/2018 06:34, James Japherson wrote: > I've been having a lot of issues with visual D. I'm not sure if it's > just dysfunctional, has a few bugs, new bugs were introduced, or what > has happened. Some things have always been like then. I have a potential > solution though. > > I will

Re: Interesting Observation from JAXLondon

2018-10-12 Thread Russel Winder via Digitalmars-d
On Thu, 2018-10-11 at 13:00 +, bachmeier via Digitalmars-d wrote: […] > Suggestions? > > My guess is that the reason they've heard of those languages is > because their developers were writing small projects using Go and > Rust, but not D. I fear it may already be too late. Go, and now

[Issue 19301] [DIP1000] missing overload abilities

2018-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19301 Илья Ярошенко changed: What|Removed |Added Keywords||rejects-valid --

[Issue 19301] New: [DIP1000] missing overload abilities

2018-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19301 Issue ID: 19301 Summary: [DIP1000] missing overload abilities Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: You don't like GC? Do you?

2018-10-12 Thread JN via Digitalmars-d
On Thursday, 11 October 2018 at 21:22:19 UTC, aberba wrote: When writing a throwaway script that I will only use a handful of times, optimising that code isn’t necessarily high on my priority list. The priority is to get it written, and get it running. That’s where the V8 (C++) engine that

LDC2 -I option results in unresolved externals

2018-10-12 Thread spikespaz via Digitalmars-d-learn
I'm using the latest LDC2 beta, and when running the compiler with -I (Look for imports also in ) it fails with unresolved externals. These are my commands. = $ ldc2 "source\setup.d" -I "source" -J "build\vars" -of "build\bin\setup.exe"