Re: Discuss vulkan erupted, the other auto-generated vulkan binding

2016-05-17 Thread Manuel König via Digitalmars-d
Hi, Kalua here :) First, thanks again for fixing vulkanizeD, now I don't have to use my locally patched version anymore ;) Giving you some input for how your lib works on my posix sytem (arch linux): My simple triangle drawing program works with your lib, I only had to update the function

Re: Berlin D Meetup May 2016

2016-05-17 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 11:28:10 UTC, Ben Palmer wrote: Hi All, Apologies for the late notice but the May Berlin D Meetup will be happening at 19:30 on Friday the 20th at Berlin Co-Op (http://co-up.de/) on the fifth floor. The basic idea is to have a hackathon on improving the First 5

Re: unit-threaded v0.6.13 - tags, autotags and support for integration tests

2016-05-17 Thread Atila Neves via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 14:22:51 UTC, Meta wrote: On Tuesday, 17 May 2016 at 09:54:15 UTC, Marc Schütz wrote: You surely mean "used to be destroy", right? Good question... If I write this: struct Test { ~this() { writeln("destroying Test"); } } with (Test()) { //Do stuff } Will

[Issue 16035] Compiler crashes with inout, templates, and recursion

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16035 Steven Schveighoffer changed: What|Removed |Added Summary|Compiler error when |Compiler crashes

[Issue 16035] Compiler error when compiling specific union

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16035 Steven Schveighoffer changed: What|Removed |Added Keywords|ice

Re: Void pointers

2016-05-17 Thread Alex via Digitalmars-d-learn
On Tuesday, 17 May 2016 at 13:25:34 UTC, ag0aep6g wrote: On 05/17/2016 03:14 PM, Alex wrote: For a slice I surely need two numbers. But this should all be, what I need for a slice. For a iota, I need a maximum, which is not provided (at least at this moment) to the object containing the

[Issue 16035] Compiler error when compiling specific union

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16035 Steven Schveighoffer changed: What|Removed |Added Keywords||ice

[Issue 16035] Compiler error when compiling specific union

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16035 --- Comment #1 from Márcio Martins --- Are there any known workarounds? --

Re: PropertyType

2016-05-17 Thread Steven Schveighoffer via Digitalmars-d
On 5/17/16 10:50 AM, Edwin van Leeuwen wrote: On Tuesday, 17 May 2016 at 14:24:09 UTC, Steven Schveighoffer wrote: I have this little helper in my iopipe library: template PropertyType(alias x) { static if(is(typeof(x) == function)) alias PropertyType = typeof(x()); else

Re: D's Auto Decoding and You

2016-05-17 Thread Jack Stouffer via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 14:44:06 UTC, Steven Schveighoffer wrote: ... Thanks, fixed all issues. Like the article, pretty much sums up my thoughts too. Thanks!

[Issue 16035] New: Compiler error when compiling specific union

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16035 Issue ID: 16035 Summary: Compiler error when compiling specific union Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: critical

Re: Always false float comparisons

2016-05-17 Thread Ola Fosheim Grøstad via Digitalmars-d
On Monday, 16 May 2016 at 19:38:10 UTC, Joakim wrote: Regarding floating-point, I'll go farther than you and say that if an algorithm depends on lower-precision floating-point to be accurate, it's a bad algorithm. No. In system level programming a good algorithm is an effective and efficient

Re: Supporting musl libc

2016-05-17 Thread Jacob Carlborg via Digitalmars-d
On 2016-05-17 15:42, Wyatt wrote: It's worth noting that musl does support a lot of GNU-isms, but the debug stuff is probably not on the table. Here's some background on that from Rich Felker himself: http://www.openwall.com/lists/musl/2015/04/09/3 Yeah, I saw that post. -- /Jacob Carlborg

Re: PropertyType

2016-05-17 Thread Edwin van Leeuwen via Digitalmars-d
On Tuesday, 17 May 2016 at 14:24:09 UTC, Steven Schveighoffer wrote: I have this little helper in my iopipe library: template PropertyType(alias x) { static if(is(typeof(x) == function)) alias PropertyType = typeof(x()); else alias PropertyType = typeof(x); } FYI: In

Re: D's Auto Decoding and You

2016-05-17 Thread Steven Schveighoffer via Digitalmars-d-announce
Grammar: "This will tie in later because the string types front has special behavior" ...because for string types, front has... Content: "For C style strings, you can use ubyte[] and call std.string.assumeUTF where necessary" Actually, C style strings are ASCII, no? UTF8 includes ASCII. And

Re: 2DRPG - Small console game

2016-05-17 Thread extrawurst via Digitalmars-d-announce
On Thursday, 12 May 2016 at 18:30:04 UTC, Vladimirs Nordholm wrote: ... I have had lots of fun during the development of 2DRPG. There have been many difficulties, but I have learned much from making this game. Sadly this game is Windows only, meaning POSIX users cannot play it. This is due

Re: D's Auto Decoding and You

2016-05-17 Thread Jack Stouffer via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 14:16:48 UTC, Steven Schveighoffer wrote: Starting to read it, see errors in your examples: is(s[0] == immutable char) -> is(typeof(s[0]) == immutable(char)) is(s.front == dchar) -> is(typeof(s.front()) == dchar) Thanks, fixed.

PropertyType

2016-05-17 Thread Steven Schveighoffer via Digitalmars-d
I have this little helper in my iopipe library: template PropertyType(alias x) { static if(is(typeof(x) == function)) alias PropertyType = typeof(x()); else alias PropertyType = typeof(x); } This is because when you have code like this: x.foo And you are introspecting

Re: Github names & avatars

2016-05-17 Thread Manu via Digitalmars-d
On 17 May 2016 at 23:08, Steven Schveighoffer via Digitalmars-d wrote: > On 5/17/16 12:39 AM, Manu via Digitalmars-d wrote: >> >> On 14 May 2016 at 03:18, Steven Schveighoffer via Digitalmars-d >> wrote: >>> >>> On 5/13/16 1:02 PM, Walter

Re: unit-threaded v0.6.13 - tags, autotags and support for integration tests

2016-05-17 Thread Meta via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 09:54:15 UTC, Marc Schütz wrote: You surely mean "used to be destroy", right? Good question... If I write this: struct Test { ~this() { writeln("destroying Test"); } } with (Test()) { //Do stuff } Will Test's destructor be run once we exit the `with`

Re: Issue with casting types

2016-05-17 Thread Thorsten Sommer via Digitalmars-d-learn
On Tuesday, 17 May 2016 at 13:13:54 UTC, Steven Schveighoffer wrote: On 5/17/16 8:59 AM, Steven Schveighoffer wrote: I think you need to avoid it for now. Please file an issue. I see from ag0aep6g, that there is already an issue. I updated it. -Steve Thanks ag0aep6g and Steve for the

Re: D's Auto Decoding and You

2016-05-17 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/17/16 10:06 AM, Jack Stouffer wrote: http://jackstouffer.com/blog/d_auto_decoding_and_you.html Based on the recent thread in General, I wrote this blog post that's designed to be part beginner tutorial, part objective record of the debate over it, and finally my opinions on the matter.

D's Auto Decoding and You

2016-05-17 Thread Jack Stouffer via Digitalmars-d-announce
http://jackstouffer.com/blog/d_auto_decoding_and_you.html Based on the recent thread in General, I wrote this blog post that's designed to be part beginner tutorial, part objective record of the debate over it, and finally my opinions on the matter. When I first learned about auto-decoding,

Re: Always false float comparisons

2016-05-17 Thread Wyatt via Digitalmars-d
On Monday, 16 May 2016 at 12:37:58 UTC, Walter Bright wrote: 7. 80 bit reals are there and they work. The support is mature, and is rarely worked on, i.e. it does not consume resources. This may not be true for too much longer-- both Intel and AMD are slowly phasing the x86 FPU out. I

Re: Always false float comparisons

2016-05-17 Thread Matthias Bentrup via Digitalmars-d
If you try to make compile-time FP math behave exactly like run-time FP math, you'd not only have to use the same precision in the compiler, but also the same rounding mode, denormal handling etc., which can be changed at run time (http://dlang.org/phobos/core_stdc_fenv.html), so the exact

Re: Always false float comparisons

2016-05-17 Thread jmh530 via Digitalmars-d
On Tuesday, 17 May 2016 at 07:47:58 UTC, Ethan Watson wrote: Unless you're doing game/graphics work ;-) 4x3 or 4x4 matrices are commonly used to represent transforms in 3D space in every 3D polygon-based rendering pipeline I know of. It's even a requirement for fixed-function OpenGL 1.x.

DDT 1.0.0 released.

2016-05-17 Thread Bruno Medeiros via Digitalmars-d-announce
New DDT release out: dfmt support, performance improvements to semantic operations, more build command customization, fixes. Please see changelog for full list: https://github.com/DDT-IDE/DDT/releases/tag/v1.0.0 Since DDT has generally been quite stable, and since the current release is very

Re: Supporting musl libc

2016-05-17 Thread Wyatt via Digitalmars-d
On Tuesday, 17 May 2016 at 08:51:01 UTC, Jacob Carlborg wrote: The issue is that musl doesn't support the functions defined by execinfo.h: backtrace, backtrace_symbols_fd and backtrace_symbols, since these are glibc extensions. It's worth noting that musl does support a lot of GNU-isms, but

Re: Always false float comparisons

2016-05-17 Thread Ola Fosheim Grøstad via Digitalmars-d
On Monday, 16 May 2016 at 15:11:21 UTC, Daniel Murphy wrote: On 16/05/2016 10:37 PM, Walter Bright wrote: Some counter points: 1. Go uses 256 bit soft float for constant folding. Then we should use 257 bit soft float! Go uses at least 288 bits! (256 bits mantissa and 32 bits

Re: Void pointers

2016-05-17 Thread ag0aep6g via Digitalmars-d-learn
On 05/17/2016 03:14 PM, Alex wrote: For a slice I surely need two numbers. But this should all be, what I need for a slice. For a iota, I need a maximum, which is not provided (at least at this moment) to the object containing the pointer/iota thing. The slice's length is practically the same

Re: Interest in Boston area D meetups?

2016-05-17 Thread Andrea Fontana via Digitalmars-d
On Tuesday, 17 May 2016 at 13:17:35 UTC, Steven Schveighoffer wrote: Is anyone interested in having D meetups in Boston area? I'm not familiar with really any other locals (well, there is one person I know of :) -Steve We should build a page with a map of "registered d developers". It

Interest in Boston area D meetups?

2016-05-17 Thread Steven Schveighoffer via Digitalmars-d
Is anyone interested in having D meetups in Boston area? I'm not familiar with really any other locals (well, there is one person I know of :) -Steve

Re: Void pointers

2016-05-17 Thread Alex via Digitalmars-d-learn
On Tuesday, 17 May 2016 at 12:24:58 UTC, ag0aep6g wrote: On 05/17/2016 12:53 PM, Alex wrote: 2. If I want to be able to slice a iota, I have to initialize it with the last number. But the object, which stores the pointer does not need to know anything about this number. So, I rather would not

Re: Issue with casting types

2016-05-17 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/17/16 8:59 AM, Steven Schveighoffer wrote: I think you need to avoid it for now. Please file an issue. I see from ag0aep6g, that there is already an issue. I updated it. -Steve

[Issue 16033] std.algorithm.sorting.sort should be possible with const/immutable object

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16033 ag0ae...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: Github names & avatars

2016-05-17 Thread Steven Schveighoffer via Digitalmars-d
On 5/17/16 12:39 AM, Manu via Digitalmars-d wrote: On 14 May 2016 at 03:18, Steven Schveighoffer via Digitalmars-d wrote: On 5/13/16 1:02 PM, Walter Bright wrote: I'll ask again that the active Github users use their own name, and add to that if you could have a

[Issue 16033] std.algorithm.sorting.sort should be possible with const/immutable object

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16033 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #1 from

[Issue 6777] alias this + cast(void*) == bug

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6777 Steven Schveighoffer changed: What|Removed |Added CC|

[Issue 6777] alias this + cast(void*) == bug

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6777 Steven Schveighoffer changed: What|Removed |Added Hardware|Other |All

[Issue 6777] alias this disables casting for classes

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6777 Steven Schveighoffer changed: What|Removed |Added Summary|alias this + cast(void*) == |alias this

Re: mago-mi: GDB/MI compatible frontend for Mago debugger

2016-05-17 Thread Bruno Medeiros via Digitalmars-d-announce
On 17/05/2016 09:06, Vadim Lopatin wrote: Hello, I'm working on GDB/MI compatible interface for Mago debugger on Windows. GDB/MI is line based machine interface for debugger. IDEs are using GDB via this interface. GDB/MI docs: https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI.html Project

Re: Issue with casting types

2016-05-17 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/17/16 8:24 AM, Thorsten Sommer wrote: Dear all, I run into an issue with a simple cast: https://dpaste.dzfl.pl/8e7f7c545eb1 I have a base class and a class A with inherit from that base class: A <- BaseClass If the base class contains an "alias this", any casting attempt fails because

Re: D mentioned and criticized

2016-05-17 Thread Chris via Digitalmars-d
On Tuesday, 17 May 2016 at 12:02:02 UTC, Guillaume Piolat wrote: On Tuesday, 17 May 2016 at 12:00:53 UTC, Guillaume Piolat wrote: Nim is much more interesting as a D alternative, in the sense that it is a. I give up, kept pressing ENTER while typing a message. "... in the sense that it is

[Issue 16034] map should be possible with a reference only

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16034 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #1 from

Re: Issue with casting types

2016-05-17 Thread ag0aep6g via Digitalmars-d-learn
On 05/17/2016 02:24 PM, Thorsten Sommer wrote: Dear all, I run into an issue with a simple cast: https://dpaste.dzfl.pl/8e7f7c545eb1 I have a base class and a class A with inherit from that base class: A <- BaseClass If the base class contains an "alias this", any casting attempt fails

[Issue 16034] New: map should be possible with a reference only

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16034 Issue ID: 16034 Summary: map should be possible with a reference only Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

Re: Void pointers

2016-05-17 Thread ag0aep6g via Digitalmars-d-learn
On 05/17/2016 12:53 PM, Alex wrote: 2. If I want to be able to slice a iota, I have to initialize it with the last number. But the object, which stores the pointer does not need to know anything about this number. So, I rather would not like to pass this number only for being able to instantiate

Issue with casting types

2016-05-17 Thread Thorsten Sommer via Digitalmars-d-learn
Dear all, I run into an issue with a simple cast: https://dpaste.dzfl.pl/8e7f7c545eb1 I have a base class and a class A with inherit from that base class: A <- BaseClass If the base class contains an "alias this", any casting attempt fails because the "alias this" type gets considered.

Re: Void pointers

2016-05-17 Thread ag0aep6g via Digitalmars-d-learn
On 05/17/2016 10:16 AM, Rene Zwanenburg wrote: Additionally, some people recommend never using -release. It depends on that type of program you're writing, but the performance gain is often not worth the loss in safety. Think of the number of exploits enabled by C's lack of bounds checking.

Re: LDC 1.0.0-beta2 has been released!

2016-05-17 Thread Joakim via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 10:15:28 UTC, Vadim Lopatin wrote: On Tuesday, 17 May 2016 at 05:51:29 UTC, Kai Nacke wrote: Hi everyone, LDC 1.0.0-beta2, the LLVM-based D compiler, is available for download! This BETA release is based on the 2.070.2 frontend and standard library and supports

Re: Void pointers

2016-05-17 Thread ag0aep6g via Digitalmars-d-learn
On 05/17/2016 08:53 AM, Alex wrote: the elements of the slice are accessible just for reading, right, but with them I reference the data in other objects. If the slice's pointer is invalid, then its elements are not accessible at all.

Re: D mentioned and criticized

2016-05-17 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 17 May 2016 at 12:00:53 UTC, Guillaume Piolat wrote: Nim is much more interesting as a D alternative, in the sense that it is a. I give up, kept pressing ENTER while typing a message.

Re: D mentioned and criticized

2016-05-17 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 17 May 2016 at 11:58:57 UTC, Guillaume Piolat wrote: On Tuesday, 17 May 2016 at 01:29:15 UTC, Xinok wrote: It seems to me that Loci is not a very "inspired" language meaning that it doesn't take inspiration from many other languages. The docs only ever refer to some classic

Re: D mentioned and criticized

2016-05-17 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 17 May 2016 at 01:29:15 UTC, Xinok wrote: On Monday, 16 May 2016 at 18:25:23 UTC, Chris wrote: I had a look at Loci, more specifically the language goals[1]: ... I've been skimming through the docs and found one mention of D: http://loci-lang.org/Exceptions.html#scope-exit-block

Re: Battle-plan for CTFE

2016-05-17 Thread deadalnix via Digitalmars-d-announce
On Sunday, 15 May 2016 at 10:29:21 UTC, Martin Nowak wrote: On 05/10/2016 08:45 AM, Jacob Carlborg wrote: I was listening to a discussion Don and Daniel had about the current implementation of CTFE. They talked about using a byte code interpreter. Even implementing a really crappy byte code

[Issue 16033] New: std.algorithm.sorting.sort should be possible with const/immutable object

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16033 Issue ID: 16033 Summary: std.algorithm.sorting.sort should be possible with const/immutable object Product: D Version: D2 Hardware: x86_64 OS: Linux

Re: D mentioned and criticized

2016-05-17 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 17 May 2016 at 11:42:45 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 17 May 2016 at 08:29:22 UTC, Chris wrote: Ola first mentioned Loci in a recent thread. I'm always in favor of new PLs and / or ways of thinking. But I don't think it's good style to mention D in this way while not

Re: Supporting musl libc

2016-05-17 Thread Jacob Carlborg via Digitalmars-d
On 2016-05-17 11:27, Joakim wrote: It is a runtime option on Windows, when choosing between the Digital Mars C runtime and the MSVC runtime, which is why those are also predefined version identifiers. The one for Glibc was added as an afterthought in that Windows PR, and Bionic was also

[Issue 15966] [REG 2.071] {public,protected} imports in base class ignored on symbol lookup

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15966 --- Comment #11 from Mathias Lang --- (In reply to Walter Bright from comment #8) > (In reply to Mathias Lang from comment #6) > > A base class in another module can > > already override global imports by introducing

Re: Supporting musl libc

2016-05-17 Thread Jacob Carlborg via Digitalmars-d
On 2016-05-17 11:32, Joakim wrote: Jacob, when you said "runtime option," you meant when running the compiler, right? Exactly. That's how I took it: the C library is chosen either when building the compiler or running the compiler. On Windows, it's when running the compiler. We

Berlin D Meetup May 2016

2016-05-17 Thread Ben Palmer via Digitalmars-d-announce
Hi All, Apologies for the late notice but the May Berlin D Meetup will be happening at 19:30 on Friday the 20th at Berlin Co-Op (http://co-up.de/) on the fifth floor. The basic idea is to have a hackathon on improving the First 5 Minutes as was discussed at the conference. This will be the

Re: Supporting musl libc

2016-05-17 Thread Jacob Carlborg via Digitalmars-d
On 2016-05-17 11:26, Martin Nowak wrote: Shouldn't be runtime detected, but a linktime/compile option. We introduced CRuntime_Glibc specifically to separate libc from kernel differences, e.g. to support android. Have a look at how -mscoff32 and Android are implememted in dmd. At best defining

Re: Does DUB create .dll files?

2016-05-17 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 17 May 2016 at 05:30:33 UTC, WhatMeWorry wrote: I just incorporated DerelictALURE into a project and it compiled and linked fine, but when I ran the executable, it aborted with:

Re: Battle-plan for CTFE

2016-05-17 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 10:42:30 UTC, Don Clugston wrote: TL;DR: CTFE is actually a backend, so don't be afraid of creating a glue layer for it. My point exactly. The AST is not something I want to handle while inside the interpreter. It introduces too much complexity. There needs to

Re: Void pointers

2016-05-17 Thread Alex via Digitalmars-d-learn
On Tuesday, 17 May 2016 at 08:45:44 UTC, Alex wrote: so... besides void*, ubyte*, a pointer to a strange, not constructible struct, I could take a iota too... a comment on my own: even every type of the above mentioned is possible, there are slightly differences between them: 1. As I don't

Re: Battle-plan for CTFE

2016-05-17 Thread Don Clugston via Digitalmars-d-announce
On Sunday, 15 May 2016 at 12:17:30 UTC, Daniel Murphy wrote: On 15/05/2016 9:57 PM, Martin Nowak wrote: On 05/15/2016 01:58 PM, Daniel Murphy wrote: The biggest advantage of bytecode is not the interpreter speed, it's that by lowering you can substitute VarExps etc with actual references to

Re: SDLang-D on Github

2016-05-17 Thread Sönke Ludwig via Digitalmars-d
Am 17.05.2016 um 11:45 schrieb Chris: @Nick, fyi, when I compile the library with dmd v2.071.0, I get the following warning: sdlang-d 0.9.5: building configuration "library"... src/sdlang/lexer.d(13,8): Deprecation: module std.stream is deprecated - It will be removed from Phobos in October

Re: LDC 1.0.0-beta2 has been released!

2016-05-17 Thread Vadim Lopatin via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 05:51:29 UTC, Kai Nacke wrote: Hi everyone, LDC 1.0.0-beta2, the LLVM-based D compiler, is available for download! This BETA release is based on the 2.070.2 frontend and standard library and supports LLVM 3.5-3.8. The 1.0 release will be a major milestone. Please

Re: The Case Against Autodecode

2016-05-17 Thread Kagamin via Digitalmars-d
On Friday, 13 May 2016 at 21:46:28 UTC, Jonathan M Davis wrote: The history of why UTF-16 was chosen isn't really relevant to my point (Win32 has the same problem as Java and for similar reasons). My point was that if you use UTF-8, then it's obvious _really_ fast when you screwed up

Re: Should core.stdc.signal.signal be nothrow @nogc??

2016-05-17 Thread Joakim via Digitalmars-d
On Tuesday, 17 May 2016 at 09:24:50 UTC, Bottled Genie wrote: Can someone help me? How can I call core.sys.linux.execinfo:backtrace from a core.stdc.signal: signal handler? The problem is that signal has been declared with @nogc in druntime and backtrace does not have that attribute. There

Re: unit-threaded v0.6.13 - tags, autotags and support for integration tests

2016-05-17 Thread Marc Schütz via Digitalmars-d-announce
On Monday, 16 May 2016 at 14:39:22 UTC, Meta wrote: On Monday, 16 May 2016 at 08:37:48 UTC, Atila Neves wrote: with(immutable Sandbox()) { writeFile("foo.txt", "foobarbaz\ntoto"); // can also pass string[] for lines shouldExist("foo.txt"); shouldNotExist("bar.txt");

SDLang-D on Github

2016-05-17 Thread Chris via Digitalmars-d
@Nick, fyi, when I compile the library with dmd v2.071.0, I get the following warning: sdlang-d 0.9.5: building configuration "library"... src/sdlang/lexer.d(13,8): Deprecation: module std.stream is deprecated - It will be removed from Phobos in October 2016. If you still need it, go to

Re: My ACCU 2016 keynote video available online

2016-05-17 Thread Rory McGuire via Digitalmars-d-announce
On Tue, May 17, 2016 at 10:42 AM, Bill Hicks via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Monday, 16 May 2016 at 13:46:11 UTC, Andrei Alexandrescu wrote: > >> Uses D for examples, showcases Design by Introspection, and rediscovers a >> fast partition routine. It

Re: Supporting musl libc

2016-05-17 Thread Joakim via Digitalmars-d
On Tuesday, 17 May 2016 at 08:51:01 UTC, Jacob Carlborg wrote: As an alternative to glibc there's a C standard library called musl [1]. This is the C standard library used by ELLCC [2], a cross-compiler based on Clang. This cross-compiler makes it very easy to target other platforms and can be

Re: Supporting musl libc

2016-05-17 Thread Martin Nowak via Digitalmars-d
On Tuesday, 17 May 2016 at 08:51:01 UTC, Jacob Carlborg wrote: I'm not sure how to best handle different C standard libraries when it comes to choosing which one to use. Is it best to choose that when building the compiler or when building druntime? Or can it be a runtime option? Shouldn't

[Issue 16032] New: extern(Windows) missing from core.sys.windows.wingdi

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16032 Issue ID: 16032 Summary: extern(Windows) missing from core.sys.windows.wingdi Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal

Re: Should core.stdc.signal.signal be nothrow @nogc??

2016-05-17 Thread Bottled Genie via Digitalmars-d
Can someone help me? How can I call core.sys.linux.execinfo:backtrace from a core.stdc.signal: signal handler? The problem is that signal has been declared with @nogc in druntime and backtrace does not have that attribute.

Re: The D language online tour - tour.dlang.org

2016-05-17 Thread André via Digitalmars-d-announce
On Monday, 16 May 2016 at 20:39:26 UTC, Jack Stouffer wrote: On Monday, 16 May 2016 at 18:02:29 UTC, Andrei Alexandrescu wrote: This is great work, thanks! Please announce in social media as well! -- Andrei Reddit:

Re: The D language online tour - tour.dlang.org

2016-05-17 Thread André via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 08:52:57 UTC, Vadim Lopatin wrote: It would be great to have translations of this tour to other languages. Is it hard to add language selection? I could help with Russian translation... It shouldn't be hard, because the technical basis is there; it just needs to

Supporting musl libc

2016-05-17 Thread Jacob Carlborg via Digitalmars-d
As an alternative to glibc there's a C standard library called musl [1]. This is the C standard library used by ELLCC [2], a cross-compiler based on Clang. This cross-compiler makes it very easy to target other platforms and can be used as the C compiler when building with LDC. The issue is

Re: Void pointers

2016-05-17 Thread Alex via Digitalmars-d-learn
On Tuesday, 17 May 2016 at 08:16:15 UTC, Rene Zwanenburg wrote: On Tuesday, 17 May 2016 at 06:55:35 UTC, Alex wrote: with dmd test44.d -release the results are: You may want to pass '-O -inline' as well. -O enables general optimizations, -inline enables function inlining. -release is for

Re: D mentioned and criticized

2016-05-17 Thread Chris via Digitalmars-d
On Tuesday, 17 May 2016 at 01:20:16 UTC, Jonathan M Davis wrote: On Monday, May 16, 2016 18:25:23 Chris via Digitalmars-d wrote: Well, it's pretty easy to lump in C++ with D given that out of all of the successors to C++, D is the most similar to it. And while D is definitely simpler than

Re: Does DUB create .dll files?

2016-05-17 Thread Rene Zwanenburg via Digitalmars-d-learn
On Tuesday, 17 May 2016 at 05:30:33 UTC, WhatMeWorry wrote: Am I supposed to get ALURE32.DLL from somewhere outside of DUB, or did I miss a step or command when I built derelict-alure-master? thanks. You'll need to get the dll somewhere else and set up DUB to copy it to your output

[Issue 16031] [REG2.071] dmd internal error when compiling druntime with PIC=1

2016-05-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16031 Martin Krejcirik changed: What|Removed |Added Summary|[REG2.071.1] dmd internal |[REG2.071] dmd internal

Re: Always false float comparisons

2016-05-17 Thread Ethan Watson via Digitalmars-d
On Tuesday, 17 May 2016 at 02:00:24 UTC, Manu wrote: If Ethan and Remedy want to expand their use of D, the compiler CAN NOT emit x87 code. It's just a matter of time before a loop is in a hot path. I really need to see what the codegen for the latest DMD looks like, I have no idea what the

Re: Always false float comparisons

2016-05-17 Thread Ethan Watson via Digitalmars-d
On Monday, 16 May 2016 at 14:32:55 UTC, Andrei Alexandrescu wrote: It is rare to need to actually compute the inverse of a matrix. Unless you're doing game/graphics work ;-) 4x3 or 4x4 matrices are commonly used to represent transforms in 3D space in every 3D polygon-based rendering pipeline

Re: ISO/IEC standard?

2016-05-17 Thread Russel Winder via Digitalmars-d
On Mon, 2016-05-16 at 21:18 +, Rusty via Digitalmars-d wrote: > […] > > Why do people feel it is risky to develop a large project in D  > but not in C++? > Risk aversion and avoidance, conservatism, size of extant installed base of application in the programming language, lack of programmer

Re: Always false float comparisons

2016-05-17 Thread Marco Leise via Digitalmars-d
Am Tue, 17 May 2016 04:12:09 + schrieb Era Scarecrow : > I understand fixed floating point Quote of the day :D -- Marco

Re: How to find the content of core.sys.* ?

2016-05-17 Thread rikki cattermole via Digitalmars-d-learn
On 17/05/2016 6:55 PM, chmike wrote: Hello, The nice and handy documentation of dlang doesn't provide any info on the core.sys. How can I find out all the things that are in there ? https://github.com/dlang/druntime/tree/master/src/core/sys

Re: Void pointers

2016-05-17 Thread Alex via Digitalmars-d-learn
On Monday, 16 May 2016 at 23:01:44 UTC, ag0aep6g wrote: On 05/17/2016 12:53 AM, Alex wrote: Just as the reality (in my head) is: you can count something without having written the natural numbers before you start to count... iota does that, too. A iota struct doesn't store all the numbers

How to find the content of core.sys.* ?

2016-05-17 Thread chmike via Digitalmars-d-learn
Hello, The nice and handy documentation of dlang doesn't provide any info on the core.sys. How can I find out all the things that are in there ?

Re: Void pointers

2016-05-17 Thread Alex via Digitalmars-d-learn
On Monday, 16 May 2016 at 22:54:31 UTC, ag0aep6g wrote: On 05/17/2016 12:43 AM, Alex wrote: The point is, that in my model the slice has a meaning itself. So, the language provides one of a needed constructs... Huh? As far as I understand, the pointer of the slice is invalid, and you never

Re: D equivalent of C++ bind ?

2016-05-17 Thread chmike via Digitalmars-d-learn
On Monday, 16 May 2016 at 15:57:52 UTC, Dsby wrote: you can remove "auto ref". and I remove the "auto ref" in my use. if used the "alias T", It can not handle all while when the T is a delegate. in C++ std::bind, the arguments order you can sort by used. in D I do not find how to

Re: The D language online tour - tour.dlang.org

2016-05-17 Thread Saurabh Das via Digitalmars-d-announce
On Monday, 16 May 2016 at 17:32:06 UTC, André wrote: Hi, after another round of polishing, bug fixing, very useful user contributions and suggestions, I'd like to present the new home of the D language online tour: http://tour.dlang.org/ Thank you very much to the D foundation for hosting

Re: D mentioned but Rust wins

2016-05-17 Thread Joakim via Digitalmars-d
On Tuesday, 17 May 2016 at 05:54:29 UTC, Nick B wrote: On Tuesday, 17 May 2016 at 05:39:41 UTC, Nick B wrote: source: http://www.wired.com/2016/03/epic-story-dropboxs-exodus-amazon-cloud-empire/ also But Go’s “memory footprint”—the amount of computer memory it demands while running Magic

Re: [OT] A Rust tool for Cross-compilation

2016-05-17 Thread Jacob Carlborg via Digitalmars-d
On 2016-05-16 13:31, w0rp wrote: I'd love to have a tool for this which used either GCC or LLVM. I tried compiling for arm-none-eabi a while ago, and you could get it working, but it was a bit of a pain getting all of the right tools in place for it. I'd love to be able to juts type a command

<    1   2