Re: Why are we not using libbacktrace for backtrace?

2018-06-13 Thread Joakim via Digitalmars-d
On Thursday, 14 June 2018 at 01:19:30 UTC, Yuxuan Shui wrote: Just ran into a problem where program will crash during stack trace. Turns out not only does druntime not support compressed debug info, it cannot handle it at all. So I was thinking why don't we use a existing and proven library

[Issue 18984] New: Debugging stack struct's which are returned causes incorrect debuginfo.

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18984 Issue ID: 18984 Summary: Debugging stack struct's which are returned causes incorrect debuginfo. Product: D Version: D2 Hardware: x86_64 OS: Windows

Re: D only has Advantages

2018-06-13 Thread Bugsy via Digitalmars-d-announce
On Thursday, 14 June 2018 at 04:11:37 UTC, Anton Fediushin wrote: they have bugs and features D only has features that's because in D, bugs are actually features.

[Issue 18983] New: DCompiler option seems to have disappeared from project settings

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18983 Issue ID: 18983 Summary: DCompiler option seems to have disappeared from project settings Product: D Version: D2 Hardware: All OS: Windows Status:

[Issue 18982] New: Source files are invisible in the project explorer when creating a new project

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18982 Issue ID: 18982 Summary: Source files are invisible in the project explorer when creating a new project Product: D Version: D2 Hardware: All OS: Windows

Re: D code obfuscator

2018-06-13 Thread DigitalDesigns via Digitalmars-d
On Thursday, 14 June 2018 at 02:13:58 UTC, Shachar Shemesh wrote: On 14/06/18 03:01, DigitalDesigns wrote: Is there an obfuscator for D that at least renames identifiers? This is because sometimes they leak from various processes and could be potential sources of attack. It would be a tool

[Issue 18952] std.experimental.checkedint.Saturate prints integral promotion deprecation message

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18952 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18952] std.experimental.checkedint.Saturate prints integral promotion deprecation message

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18952 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/7a8ff39cbb0630547bfd85f939cd0207a09418b5 Fix Issue 18952 - std.experimental.checkedint.Saturate

Re: Passing struct to function

2018-06-13 Thread Michał via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 17:37:44 UTC, Steven Schveighoffer wrote: Hm... the only way to do it in D is to provide a function that checks whether the small vector optimization is in play, and return a pointer/slice to itself. With D it is possible to alias the getter function that

Re: Docs for subpackages?

2018-06-13 Thread 9il via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 14:56:10 UTC, 9il wrote: Hi, I am trying to build a large project that is split into dozen of sub-packages. How I can do it using dub without writing my own doc scripts? --combined does not help here. Best regards, Ilya UPDATE: --combined works, but DDOX fails

Re: D only has Advantages

2018-06-13 Thread Anton Fediushin via Digitalmars-d-announce
they have bugs and features D only has features

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Cym13 via Digitalmars-d-announce
On Thursday, 14 June 2018 at 02:32:51 UTC, errExit wrote: Tor is our last line of defence against an Orson Wells future, where everyones actions are scrutinized by big brother, so that big brother can use that knowledge to put fear into, control and manipulate, those that don't conform.

Re: Arrogant - HTML5 dom with CSS selectors

2018-06-13 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
On 06/13/2018 02:25 PM, Andrea Fontana wrote: On Wednesday, 13 June 2018 at 18:06:02 UTC, Nick Sabalausky (Abscissa) wrote: Does this mean that it requires the raw HTML input to already be fully conformant HTML5 or simply that it supports and outputs valid HTML5? The second one. If you parse

How To Make an RSS Feed from a Forum Thread

2018-06-13 Thread nathanjame via Digitalmars-d
We spend a lot of our online time in an RSS reader, but not everything we want to follow has an RSS feed. There are web apps to monitor pages for changes, but forum threads spill over onto many pages – how can you get an RSS feed for a specific thread?

Re: D code obfuscator

2018-06-13 Thread Norm via Digitalmars-d
On Thursday, 14 June 2018 at 00:01:31 UTC, DigitalDesigns wrote: Is there an obfuscator for D that at least renames identifiers? This is because sometimes they leak from various processes and could be potential sources of attack. It would be a tool that probably just replaces their values

Re: D code obfuscator

2018-06-13 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 14 June 2018 at 00:01:31 UTC, DigitalDesigns wrote: Is there an obfuscator for D that at least renames identifiers? This is because sometimes they leak from various processes and could be potential sources of attack. Yes, DustMite has an obfuscation mode. You will need to give

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread errExit via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 17:04:11 UTC, Ali Çehreli wrote: I am part of the D community. I haven't discriminated against anyone. I don't know what a Tor user is. I've just searched: So Tor is an old idea of mine, implemented. :o) Ali Tor is our last line of defence against an Orson

Re: D code obfuscator

2018-06-13 Thread Shachar Shemesh via Digitalmars-d
On 14/06/18 03:01, DigitalDesigns wrote: Is there an obfuscator for D that at least renames identifiers? This is because sometimes they leak from various processes and could be potential sources of attack. It would be a tool that probably just replaces their values with, say their hash +

Why are we not using libbacktrace for backtrace?

2018-06-13 Thread Yuxuan Shui via Digitalmars-d
Just ran into a problem where program will crash during stack trace. Turns out not only does druntime not support compressed debug info, it cannot handle it at all. So I was thinking why don't we use a existing and proven library for this, instead of roll our own?

[Issue 18981] New: SIGSEGV during backtrace when debug info is compressed

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18981 Issue ID: 18981 Summary: SIGSEGV during backtrace when debug info is compressed Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity:

InputRange help: (1) repeated dtor calls and (2) managing resources needing free()

2018-06-13 Thread James Blachly via Digitalmars-d-learn
Hi all, I now really appreciate the power Ranges provide and am an avid consumer, but am only slowly becoming accustomed to implementing my own. In the present problem, I am writing a binding to a C library (htslib) that provides many functions related to high-throughput sequencing files.

D code obfuscator

2018-06-13 Thread DigitalDesigns via Digitalmars-d
Is there an obfuscator for D that at least renames identifiers? This is because sometimes they leak from various processes and could be potential sources of attack. It would be a tool that probably just replaces their values with, say their hash + something else and done pre release build.

[Issue 18980] New: Typesafe variadic array functions cause memory corruption

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18980 Issue ID: 18980 Summary: Typesafe variadic array functions cause memory corruption Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: Which character set does D use?

2018-06-13 Thread Uknown via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 23:34:02 UTC, Murilo wrote: Does D use ASCII or UNICODE? It seems to use ASCII since it causes error whenever I use a non-ASCII character. Your system might be misconfigured. D can use UTF-8 (Unicode) too. See https://dlang.org/spec/lex.html#source_text

Which character set does D use?

2018-06-13 Thread Murilo via Digitalmars-d-learn
Does D use ASCII or UNICODE? It seems to use ASCII since it causes error whenever I use a non-ASCII character.

[Issue 18979] New: Template constructor bypasses private

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18979 Issue ID: 18979 Summary: Template constructor bypasses private Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

[Issue 18978] New: Cannot create new projects in 0.47.0-beta1

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18978 Issue ID: 18978 Summary: Cannot create new projects in 0.47.0-beta1 Product: D Version: D2 Hardware: All OS: Windows Status: NEW Severity: regression

D only has Advantages

2018-06-13 Thread Walter Bright via Digitalmars-d-announce
https://news.ycombinator.com/item?id=17306761

[Issue 18977] New: struct and class declarations are inconsistent about what happens when they're marked with immutable

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18977 Issue ID: 18977 Summary: struct and class declarations are inconsistent about what happens when they're marked with immutable Product: D Version: D2 Hardware: All

Re: Class qualifier vs struct qualifier

2018-06-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, June 13, 2018 14:33:48 Jonathan M Davis via Digitalmars-d- learn wrote: > On Wednesday, June 13, 2018 07:35:25 RazvanN via Digitalmars-d-learn wrote: > > Hello, > > > > I'm having a hard time understanding whether this inconsistency > > is a bug or intended behavior: > > > >

Re: Class qualifier vs struct qualifier

2018-06-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, June 13, 2018 07:35:25 RazvanN via Digitalmars-d-learn wrote: > Hello, > > I'm having a hard time understanding whether this inconsistency > is a bug or intended behavior: > > immutable class Foo {} > immutable struct Bar {} > > void main() > { > import std.stdio : writeln; >

Re: Runtime introspection, or how to get class members at runtime Fin D

2018-06-13 Thread concepthf via Digitalmars-d-learn
On Friday, 8 June 2018 at 08:21:39 UTC, evilrat wrote: On Friday, 8 June 2018 at 08:06:27 UTC, Arafel wrote: On Thursday, 7 June 2018 at 13:07:21 UTC, evilrat wrote: I don't think so. It clearly states that children must mixin too, which can mean it just grabs symbols in scope only, and

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Cym13 via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 16:21:53 UTC, Steven Schveighoffer wrote: I won't add much, since I'm using a Mac, and those numbers have already been posted. Reproduction is an important part of the scientific process, please post away ;) Also: memcpyD commit

Re: What is the point of nothrow?

2018-06-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, June 13, 2018 10:56:41 wjoe via Digitalmars-d-learn wrote: > On Wednesday, 13 June 2018 at 03:14:33 UTC, Jonathan M Davis > > wrote: > > Most programs do not handle the case where they run out of > > memory and cannot continue at that point. For better or worse, > > D's GC was

Re: Arrogant - HTML5 dom with CSS selectors

2018-06-13 Thread Andrea Fontana via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 18:06:02 UTC, Nick Sabalausky (Abscissa) wrote: Does this mean that it requires the raw HTML input to already be fully conformant HTML5 or simply that it supports and outputs valid HTML5? The second one. If you parse invalid html it tries to fix it and output

Re: Arrogant - HTML5 dom with CSS selectors

2018-06-13 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
On 06/13/2018 09:23 AM, Andrea Fontana wrote: > On behalf of the company I work for [1] today I released a new library: > arrogant. > Nice! It is a fully conformant HTML5 dom library with CSS selectors. Does this mean that it requires the raw HTML input to already be fully conformant HTML5

[Issue 18593] std.datetime.stopwatch.benchmark shouldn't optimize away its functions

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18593 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18593] std.datetime.stopwatch.benchmark shouldn't optimize away its functions

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18593 --- Comment #1 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/25c3ef46aff92363f50e1f7dc74e62ed368d94c1 Fix Issue 18593 - std.datetime.stopwatch.benchmark

Re: Has anyone been successful using 64-bit release dmd on Windows?

2018-06-13 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 13 June 2018 at 17:54:29 UTC, Atila Neves wrote: Reviewing the dustmite documentation, I'm not sure how the reduction would work when the build that's broken is a dub one that uses local packages. You will need to either reduce the test to a command which does not involve dub

Re: Has anyone been successful using 64-bit release dmd on Windows?

2018-06-13 Thread Atila Neves via Digitalmars-d
On Wednesday, 13 June 2018 at 17:30:34 UTC, Vladimir Panteleev wrote: On Wednesday, 13 June 2018 at 17:13:09 UTC, Atila Neves wrote: [...] I've used 64-bit DMD exclusively while Windows was my primary OS, but that was a few years ago. [...] Reviewing the dustmite documentation, I'm not

[Issue 12507] SysTime.init.toString should not segfault

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12507 Nathan S. changed: What|Removed |Added CC||n8sh.second...@hotmail.com --- Comment #11 from

Re: Has anyone been successful using 64-bit release dmd on Windows?

2018-06-13 Thread Atila Neves via Digitalmars-d
On Wednesday, 13 June 2018 at 17:30:34 UTC, Vladimir Panteleev wrote: On Wednesday, 13 June 2018 at 17:13:09 UTC, Atila Neves wrote: After too many days of frustration to be able to count, I finally discovered what works for our builds: the debug build of 64-bit dmd on Windows. When I build

Re: Passing struct to function

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/13/18 1:08 PM, Michał wrote: On Wednesday, 13 June 2018 at 16:40:51 UTC, Steven Schveighoffer wrote: On 6/13/18 10:43 AM, Michał wrote: When I pass my struct to function something is going wrong. I don't know how to fix it. Code: import std.stdio; void print(ref Vector v, string s){   

Re: Has anyone been successful using 64-bit release dmd on Windows?

2018-06-13 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 13 June 2018 at 17:13:09 UTC, Atila Neves wrote: After too many days of frustration to be able to count, I finally discovered what works for our builds: the debug build of 64-bit dmd on Windows. When I build the release version from the Makefile or use digger, it produces a dmd

Re: Has anyone been successful using 64-bit release dmd on Windows?

2018-06-13 Thread Ethan via Digitalmars-d
On Wednesday, 13 June 2018 at 17:13:09 UTC, Atila Neves wrote: This post is both a warning to the intrepid D programmers out there who'd rather not hit a 4GB RAM limit for no reason on Windows and also a question to see if anybody has been able to use 64-bit dmd on Windows like intended.

Has anyone been successful using 64-bit release dmd on Windows?

2018-06-13 Thread Atila Neves via Digitalmars-d
After too many days of frustration to be able to count, I finally discovered what works for our builds: the debug build of 64-bit dmd on Windows. When I build the release version from the Makefile or use digger, it produces a dmd binary that crashes randomly (bad enough) or compiles

Re: Passing struct to function

2018-06-13 Thread Michał via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 16:40:51 UTC, Steven Schveighoffer wrote: On 6/13/18 10:43 AM, Michał wrote: When I pass my struct to function something is going wrong. I don't know how to fix it. Code: import std.stdio; void print(ref Vector v, string s){     writefln("%s==%s    %s", ,

Re: What is the point of nothrow?

2018-06-13 Thread wjoe via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 13:05:44 UTC, Kagamin wrote: On Wednesday, 13 June 2018 at 10:56:41 UTC, wjoe wrote: I understand the idea that an Error is not supposed to be caught but why would such a 'feature' be desirable? Where's the benefit if nothing can be relied upon ? It's a

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Ali Çehreli via Digitalmars-d-announce
On 06/13/2018 02:07 AM, ToRuSer wrote: > So well done to the D community, for discriminating against all the Tor > users out there. You've done yourself proud. I am part of the D community. I haven't discriminated against anyone. I don't know what a Tor user is. I've just searched: So Tor is

Re: What is the point of nothrow?

2018-06-13 Thread wjoe via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 12:59:27 UTC, Kagamin wrote: On Wednesday, 13 June 2018 at 02:02:54 UTC, wjoe wrote: it is possible to install a signal handler for almost every signal on POSIX, including segfault. The only signal you can't catch is signal 9 - sigkill if memory serves. So I could

[Issue 18864] Building 64-bit dmd on Windows results in a binary that crashes

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18864 --- Comment #9 from Atila Neves --- After some experiments, it seems that the release build of 64-bit dmd is the one with problems. The debug build seems to work ok. --

Re: Passing struct to function

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/13/18 10:43 AM, Michał wrote: When I pass my struct to function something is going wrong. I don't know how to fix it. Code: import std.stdio; void print(ref Vector v, string s){     writefln("%s==%s    %s", , v.ptr, s); } struct Vector { int x; int* ptr; this(this)

Re: What is the point of nothrow?

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/13/18 8:44 AM, Kagamin wrote: On Tuesday, 12 June 2018 at 14:15:42 UTC, Steven Schveighoffer wrote: I predict at some point when Errors actually don't do proper cleanup, it is going to be a really difficult time for D. Looks like it already doesn't: https://run.dlang.io/is/OhDwtW Damn,

Re: implicit or module-wide @nogc

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/13/18 3:24 AM, Mike Franklin wrote: Because D is more evolution then intelligent design, unfortunately. I had to LOL on this, nice :) -Steve

Re: Class qualifier vs struct qualifier

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/13/18 3:35 AM, RazvanN wrote: Hello, I'm having a hard time understanding whether this inconsistency is a bug or intended behavior: immutable class Foo {} immutable struct Bar {} void main() {     import std.stdio : writeln;     Foo a;     Bar b;     writeln("typeof(a): ",

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/13/18 2:46 AM, Mike Franklin wrote: I had a little fun today kicking the crap out of C's memcpy with a D implementation. https://github.com/JinShil/memcpyD Request for help: I don't have a Linux system running on real hardware at this time, nor do I have a wide range of platforms and

Re: remove not callable for char[]

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/13/18 1:18 AM, Flaze07 wrote: I see, so it means that only char is affected, gotcha Well, char[] and wchar[]. dchar[] is treated as an array by Phobos. But calling byCodeUnit on a dchar array should work just like an array as well, so using it is the most generic solution. -Steve

Re: iopipe v0.1.0 - now with Windows support!

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/13/18 12:03 PM, Steven Schveighoffer wrote: I'm going to push this (I'll do some tests for the other widths to make sure it works for all UTF), but if you have any more things you want to work at CTFE, submit some issues on the github project. v0.1.2 released -Steve

Re: is(T t == U!n, U, int n)

2018-06-13 Thread Luís Marques via Digitalmars-d
On Wednesday, 13 June 2018 at 10:34:48 UTC, Simen Kjærås wrote: Also, you might want to consider the Learn forum for these kinds of questions in the future. :) You're right. What happened is that I went to check the syntax in the "D Templates: A Tutorial" PDF, and it has some material on how

[Issue 18925] core.internal.hash auto-hash for structs of scalar fields should be `@safe`

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18925 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/436a706ddf088bd751d2aad9bbddc2c803c5a4da Fix Issue 18925 - core.internal.hash auto-hash for

Re: iopipe v0.1.0 - now with Windows support!

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/13/18 8:35 AM, bauss wrote: Does iopipe work with CTFE? It may work in some cases. Some of the things it does are not conducive to CTFE working well -- like using a buffer. But generally at compile time, you don't want to use a buffer. But I would expect, for instance, using

[Issue 12086] std.algorithm.remove + range of indices produces wrong results

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12086 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/622c5d209820194651a8acb01fabc03041cd8e9e Fix Issue 12086 - std.algorithm.remove + range of

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread UnpaidTester via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 06:46:43 UTC, Mike Franklin wrote: I had a little fun today kicking the crap out of C's memcpy with a D implementation. https://github.com/JinShil/memcpyD Request for help: I don't have a Linux system running on real hardware at this time, nor do I have a wide

Docs for subpackages?

2018-06-13 Thread 9il via Digitalmars-d-learn
Hi, I am trying to build a large project that is split into dozen of sub-packages. How I can do it using dub without writing my own doc scripts? --combined does not help here. Best regards, Ilya

Passing struct to function

2018-06-13 Thread Michał via Digitalmars-d-learn
When I pass my struct to function something is going wrong. I don't know how to fix it. Code: import std.stdio; void print(ref Vector v, string s){ writefln("%s==%s%s", , v.ptr, s); } struct Vector { int x; int* ptr; this(this) {

Re: Safe and performant actor model in D

2018-06-13 Thread jmh530 via Digitalmars-d
On Wednesday, 13 June 2018 at 13:50:54 UTC, Russel Winder wrote: [snip] Does D have move semantics at the program level or does the use of a garbage collector abrogate the ability of a programmer to have unique references to heap objects. Rust does this by default and Pony allows this and

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Uknown via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 06:46:43 UTC, Mike Franklin wrote: I had a little fun today kicking the crap out of C's memcpy with a D implementation. https://github.com/JinShil/memcpyD Request for help: I don't have a Linux system running on real hardware at this time, nor do I have a wide

[Issue 11451] import statements don't work when compiling several files at once

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11451 --- Comment #12 from Atila Neves --- I've edited the title because the more pressing concern is that 64-bit dmd on Windows currently (from version 2.080.0 at least) doesn't work. It crashes frequently and/or produces binaries that crash themselves.

[Issue 17167] dmd fails to write to file or create directory with more than 248 characters in the path

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17167 Atila Neves changed: What|Removed |Added Severity|major |blocker --

[Issue 18864] Building 64-bit dmd on Windows results in a binary that crashes

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18864 Atila Neves changed: What|Removed |Added Summary|Building 64-bit dmd on |Building 64-bit dmd on

Re: Safe and performant actor model in D

2018-06-13 Thread Russel Winder via Digitalmars-d
And yes,I do know that Pony uses a garbage collector. One with quite interesting properties because at the top level there are only actors. -- Russel. === Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN,

Re: Safe and performant actor model in D

2018-06-13 Thread Russel Winder via Digitalmars-d
On Wed, 2018-06-13 at 09:45 +, Per Nordlöw via Digitalmars-d wrote: > I've read up on Pony [1] and realized that it currently has a > superior implementation of the actor model when it comes to > combining safety, efficiency and memory management determinism > (thread-local

Arrogant - HTML5 dom with CSS selectors

2018-06-13 Thread Andrea Fontana via Digitalmars-d-announce
On behalf of the company I work for [1] today I released a new library: arrogant. It is a fully conformant HTML5 dom library with CSS selectors. It wraps Modest library [2] by Alexander Borisov that is a quite bigger library/framework. As pointed out promptly by rikkimax [3] it doesn't rely

Re: What is the point of nothrow?

2018-06-13 Thread Kagamin via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 10:56:41 UTC, wjoe wrote: I understand the idea that an Error is not supposed to be caught but why would such a 'feature' be desirable? Where's the benefit if nothing can be relied upon ? It's a debugging facility for development stage that allows to print the

Re: What is the point of nothrow?

2018-06-13 Thread Kagamin via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 02:02:54 UTC, wjoe wrote: it is possible to install a signal handler for almost every signal on POSIX, including segfault. The only signal you can't catch is signal 9 - sigkill if memory serves. So I could for instance install a clean up handler on a segfault via

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Mike Franklin via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 12:45:26 UTC, Fra Mecca wrote: I get this on Linux 4.16.3-gentoo, AMD FX(tm)-6100 Six-Core Processor, 8GiB ram, using ldc2 -O3L: size memcpyC memcpyD 1 5 0 2 0 0 4 0 0 8 0 0 16 1519 0 32 1833 0 64 3816 0 128 7543 0 256 146500 0 512 194818 0 1024 329593 846142 2048

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Fra Mecca via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 06:46:43 UTC, Mike Franklin wrote: I had a little fun today kicking the crap out of C's memcpy with a D implementation. https://github.com/JinShil/memcpyD Request for help: I don't have a Linux system running on real hardware at this time, nor do I have a wide

Re: What is the point of nothrow?

2018-06-13 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 12 June 2018 at 14:15:42 UTC, Steven Schveighoffer wrote: I predict at some point when Errors actually don't do proper cleanup, it is going to be a really difficult time for D. Looks like it already doesn't: https://run.dlang.io/is/OhDwtW

Re: Aalborg D meetup

2018-06-13 Thread bauss via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 12:12:11 UTC, bauss wrote: I'll be there since I live there and would be nice to see monthly meetups! :) I forgot to ask. Is it free entry? :)

Re: iopipe v0.1.0 - now with Windows support!

2018-06-13 Thread bauss via Digitalmars-d-announce
On Sunday, 10 June 2018 at 20:10:31 UTC, Steven Schveighoffer wrote: -Steve Does iopipe work with CTFE?

Re: Safe and performant actor model in D

2018-06-13 Thread rikki cattermole via Digitalmars-d
On 14/06/2018 12:13 AM, Kagamin wrote: AFAIK, vibe has thread-local GC. No.

Re: Pass arguments at compile time

2018-06-13 Thread bauss via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 10:57:27 UTC, Malte wrote: I want to import a config file at compile time, but also need a way to have multiple configurations. With gcc you could do something like -DIMPORTFROM='"MyConfigFile.txt"'. Is there any equivalent in D? Hardcoding the config files for

Re: Safe and performant actor model in D

2018-06-13 Thread Kagamin via Digitalmars-d
On Wednesday, 13 June 2018 at 09:45:04 UTC, Per Nordlöw wrote: I've read up on Pony [1] and realized that it currently has a superior implementation of the actor model when it comes to combining safety, efficiency and memory management determinism (thread-local reference-counting GC with

Re: Aalborg D meetup

2018-06-13 Thread bauss via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 11:17:15 UTC, biocyberman wrote: Reminded by Mike with Seoul D meetup (https://forum.dlang.org/thread/fvswwfcbuuqkaqpmp...@forum.dlang.org) I will unleash my excitement to tell you that we are going to have first D meetup at Aalborg, Denmark 21st June:

Re: Any comments about the new Ruby JIT Compiler

2018-06-13 Thread bauss via Digitalmars-d
On Wednesday, 13 June 2018 at 10:07:03 UTC, Anton Fediushin wrote: Too bad they released it now and not, you know, five to seven years ago when ruby was really popular. Partially agrees, BUT it's still somewhat popular with rails.

[Issue 16088] Parse error for import expression in statement

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16088 --- Comment #3 from RazvanN --- (In reply to timon.gehr from comment #2) > https://dlang.org/spec/grammar.html#ImportExpression You are are right. Thank you. PR: https://github.com/dlang/dmd/pull/8356 --

[Issue 18582] C++ namespace mangling from multiple modules doesn't use sequence ids

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18582 --- Comment #2 from Markus --- (In reply to Mathias LANG from comment #1) > Oh I missed this when I opened 18922. It's fixed now, so marking this as > duplicate. > > *** This issue has been marked as a duplicate of issue 18922 *** You are awesome!

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Mike Franklin via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 08:55:40 UTC, drug wrote: Ubuntu 18.04 Linux 4.15.0-23-generic AMD® Fx(tm)-8350 eight-core processor × 8 size memcpyC memcpyD 1 51089 36921 2 45896 35733 4 46079 36200 8 48443 37509 16 48669 24925 32 52917 27787 64 55631 44928 128 84282 47795 256 107350 66009 512

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Arredondo via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 10:17:10 UTC, Mike Franklin wrote: Well, actually, I probably should divide that time by 10,000,000 to make a more accurate representation. For rigorous benchmarking, check out the first part of Andrei's Writing Fast Code:

Aalborg D meetup

2018-06-13 Thread biocyberman via Digitalmars-d-announce
Reminded by Mike with Seoul D meetup (https://forum.dlang.org/thread/fvswwfcbuuqkaqpmp...@forum.dlang.org) I will unleash my excitement to tell you that we are going to have first D meetup at Aalborg, Denmark 21st June: https://www.meetup.com/AalborgD-Programming-Language/events/251102967/ Ali

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Basile B. via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 09:07:21 UTC, ToRuSer wrote: On Wednesday, 13 June 2018 at 06:46:43 UTC, Mike Franklin wrote: I had a little fun today kicking the crap out of C's memcpy with a D implementation. https://github.com/JinShil/memcpyD Request for help: I don't have a Linux system

Pass arguments at compile time

2018-06-13 Thread Malte via Digitalmars-d-learn
I want to import a config file at compile time, but also need a way to have multiple configurations. With gcc you could do something like -DIMPORTFROM='"MyConfigFile.txt"'. Is there any equivalent in D? Hardcoding the config files for different versions and using that is not an option.

Re: What is the point of nothrow?

2018-06-13 Thread wjoe via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 03:14:33 UTC, Jonathan M Davis wrote: Most programs do not handle the case where they run out of memory and cannot continue at that point. For better or worse, D's GC was designed with that in mind, and it treats failed allocations as an Error. In the vast

Re: is(T t == U!n, U, int n)

2018-06-13 Thread Simen Kjærås via Digitalmars-d
On Wednesday, 13 June 2018 at 09:41:45 UTC, Luís Marques wrote: ...why can't I generalize it to match U!n, for some U, int n? template X(T) { static if(is(T t == U!n, U, int n)) U needs to be alias U, since S is not a type, but a template. This works: template X(T) {

[Issue 16088] Parse error for import expression in statement

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16088 --- Comment #2 from timon.g...@gmx.ch --- https://dlang.org/spec/grammar.html#ImportExpression --

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Mike Franklin via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 10:13:13 UTC, Dukc wrote: On Wednesday, 13 June 2018 at 09:59:52 UTC, Mike Franklin wrote: The benchmark doesn't allocate any data; it's just copying data. Mike Ah of course. I was thinking other stuff while writing. Well, actually, I probably should divide

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Dukc via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 09:59:52 UTC, Mike Franklin wrote: The benchmark doesn't allocate any data; it's just copying data. Mike Ah of course. I was thinking other stuff while writing.

[Issue 15329] __traits(isPOD, S) incorrectly returns true for structs with disabled S.init

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15329 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #1 from

Re: Any comments about the new Ruby JIT Compiler

2018-06-13 Thread Anton Fediushin via Digitalmars-d
On Wednesday, 13 June 2018 at 08:21:45 UTC, Martin Tschierschke wrote: The compilation is done by using the C compiler in the background. https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-preview2-released/ Could D be an better choice for that purpose? Any comment? Good news for

[Issue 16118] ICE on double import erroneous file

2018-06-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16118 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED CC|

  1   2   >