Re: Plan for Exceptions and @nogc?

2015-02-18 Thread via Digitalmars-d
On Wednesday, 18 February 2015 at 00:54:37 UTC, Chris Williams wrote: I didn't mean it as a solution. As said, I was just looking for an intro to the topic, so that I (and others) could meaningfully contribute or at least understand the options. I'll look up libunwind and, if that has enough

Need help to understand how to work with tkd

2015-02-18 Thread Suliman via Digitalmars-d-learn
Now I am trying to learn how to build GUI apps in D. But I have some troubles. http://code.dlang.org/packages/tkd 1. I can't understand how to set window size in example on page above. I looked at docs and found only how to create new window. But here I do not see any procedure that create

Re: contiguous ranges

2015-02-18 Thread Vlad Levenfeld via Digitalmars-d
On Tuesday, 17 February 2015 at 15:50:17 UTC, Andrei Alexandrescu wrote: for an array r, is r.retro contiguous or not? I would argue that the only operations which preserve contiguity are slicing, concatenating and appending; r.retro, r.stride, r.map!f, etc should yield a RandomAccessRange.

Re: Need help to understand how to work with tkd

2015-02-18 Thread Kagamin via Digitalmars-d-learn
Yeah, the docs navigation sucks http://htmlpreview.github.io/?https://github.com/nomad-software/tkd/master/docs/tkd/tkdapplication.html

Re: Calypso: Direct and full interfacing to C++

2015-02-18 Thread Kelly via Digitalmars-d-announce
Hello Elie, I just pushed a small pull request for fromTypeTemplateSpecialization. I forgot to mention in the request that the changes allow bitset.d to be compiled and run again. With those changes all the examples compile and run again. There are still two errors when compiling vector.d.

Re: DlangIDE

2015-02-18 Thread Rainer Schuetze via Digitalmars-d-announce
On 17.02.2015 20:41, Vadim Lopatin wrote: It looks like we need to develop some universal debugger library. For linux, it can use gdb as a backend. For windows - I'm not sure. Is there any console debugger which can debug dmd generated executables? I've checked windbg shipped with dmd, but it

Re: Botan Crypto and TLS for D

2015-02-18 Thread Mathias Lang via Digitalmars-d
That's awesome ! Thanks for all the work you put in it, and more generally, in Vibe.d. 2015-02-17 22:00 GMT+01:00 Etienne via Digitalmars-d digitalmars-d@puremagic.com: I'd like to announce the first release of Botan, which implements all features of v1.11.10 in the C++ library. I gave

Re: Mimicking C++'s indexing behavior in D associative arrays

2015-02-18 Thread bearophile via Digitalmars-d-learn
Rikki Cattermole: Foo*[string] bar; Foo v = *bar.grab(mykey); Is this the setdefault of Python dicts? If this need is strong a new function could be added to Phobos (or even druntime if you want to reduce the number of hash computations). Bye, bearophile

Re: Mimicking C++'s indexing behavior in D associative arrays

2015-02-18 Thread FG via Digitalmars-d-learn
// Assume bar is some associative array of type Foo[string] Foo* value = key in bar; if (!value) { bar[key] = Foo.init; value = bar[key]; } This seems sub-optimal, given that in involves three hashes (two lookups and one insertion). Is there a more efficient or cleaner way to do so?

Re: DlangIDE

2015-02-18 Thread Vadim Lopatin via Digitalmars-d-announce
On Wednesday, 18 February 2015 at 08:21:19 UTC, Rainer Schuetze wrote: On 17.02.2015 20:41, Vadim Lopatin wrote: It looks like we need to develop some universal debugger library. For linux, it can use gdb as a backend. For windows - I'm not sure. Is there any console debugger which can

Re: Packt is looking for someone to author a Learning D

2015-02-18 Thread Russel Winder via Digitalmars-d-announce
On Wed, 2015-02-18 at 09:56 +, Kagamin via Digitalmars-d-announce wrote: […] Isn't latex for document restyling? What you would use it for? There's little time to only write the text, let alone fiddling with styles and typesetting. Word is better in this sense that it gets the end

quick-and-dirty minimalistic LISP engine

2015-02-18 Thread ketmar via Digitalmars-d-announce
here is my little contribution to the everlasting how you shouldn't write the code contest. this is very simple (yet fully working) LISP 1 implementation. it is slow like a dead snail, it trashing memory faster than you can say WTF?!, but it does it's job. this code was ripped out of

Re: Problem with coupling shared object symbol visibility with protection

2015-02-18 Thread Andre via Digitalmars-d
Hi, I also want to say a big thank you to all of you involved in this topic and especially to Benjamin. Proper DLL handling in D I would really appreciate. I think this topic is the break through. Kind regards André On Tuesday, 17 February 2015 at 18:03:06 UTC, Benjamin Thaut wrote: So i

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread Matthias Bentrup via Digitalmars-d
On Wednesday, 18 February 2015 at 08:13:35 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 18 February 2015 at 00:54:37 UTC, Chris Williams wrote: I didn't mean it as a solution. As said, I was just looking for an intro to the topic, so that I (and others) could meaningfully contribute or at

Re: Need help to understand how to work with tkd

2015-02-18 Thread Suliman via Digitalmars-d-learn
For my regret I need example to understand how to work with шею Could you show me at last passing fileToOpen to another instance?

Re: Botan Crypto and TLS for D

2015-02-18 Thread ketmar via Digitalmars-d
On Tue, 17 Feb 2015 20:14:50 -0500, Etienne Cimon wrote: So many nice projects :D We have such sights to show you! signature.asc Description: PGP signature

Re: Botan Crypto and TLS for D

2015-02-18 Thread ketmar via Digitalmars-d
On Wed, 18 Feb 2015 06:35:08 +, Joakim wrote: accompanied by benchmarks of the C++ and D code it's better to keep silence. dmd was never very good in optimising code. ;-) signature.asc Description: PGP signature

Re: Botan Crypto and TLS for D

2015-02-18 Thread ketmar via Digitalmars-d
On Tue, 17 Feb 2015 20:14:50 -0500, Etienne Cimon wrote: I'll be working on HTTP/2 with websocket-style full duplex communications once this is done, and then a CMS that has a windows explorer-like desktop front-end with a redis filesystem and distributed node management. So many nice

Re: Undefined symbol?

2015-02-18 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 18 February 2015 at 08:55:51 UTC, Tofu Ninja wrote: When I compile my project in release dmd suddenly starts complains about missing symbols that look like they are from phobos. Symbol Undefined

Undefined symbol?

2015-02-18 Thread Tofu Ninja via Digitalmars-d-learn
When I compile my project in release dmd suddenly starts complains about missing symbols that look like they are from phobos. Symbol Undefined _D3std9exception134__T12errnoEnforceTbVAyaa50_433a5c445c646d64325c77696e646f77735c62696e5c2e2e5cA7E6C89DF0A958C3336C905AF5DE Any idea what is

Re: Dividing D Module between multiple files

2015-02-18 Thread Ali Çehreli via Digitalmars-d-learn
On 02/17/2015 11:23 PM, Muahmmad Adel wrote: I have searched online and I found no way for dividing D Module between multiple files. As always, documentation can be better. :) There is the relatively new package module: http://dlang.org/module.html#package-module

Re: Packt is looking for someone to author a Learning D

2015-02-18 Thread Kagamin via Digitalmars-d-announce
On Sunday, 15 February 2015 at 04:38:08 UTC, Craig Dillabaugh wrote: Just my personal opinion as one who recently finished a 200 page thesis in Latex, and is now working for a company where we do all our internal documents in Word. Latex certainly has its ugly warts, but it is so nice for

Re: Botan Crypto and TLS for D

2015-02-18 Thread Etienne Cimon via Digitalmars-d
On 2015-02-18 11:41, Andrei Alexandrescu wrote: I'd love to add libasync to Phobos! -- Andrei Even as I add this as a dependency? : https://github.com/etcimon/memutils Instead of a single ScopedFiberPool, I intend to have ScopedPools with one stack in fiber, another in thread, and using the

Re: D and GPGPU

2015-02-18 Thread ponce via Digitalmars-d
On Wednesday, 18 February 2015 at 16:03:20 UTC, Laeeth Isharc wrote: On Wednesday, 18 February 2015 at 15:15:21 UTC, Russel Winder wrote: It strikes me that D really ought to be able to work with GPGPU – is there already something and I just failed to notice. This is data parallelism but of a

deliberately failing compilation when errors are in embedded DSL

2015-02-18 Thread Dmitri Makarov via Digitalmars-d-learn
I'm developing an embedded DSL using CTFE. The DSL code is translated into D code and mixin-ed into the D code of user's application. In order to provide meaningful error messages the DSL compiler always intercepts all errors in the DSL code and reports them at compile-time using pragma(msg,

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread deadalnix via Digitalmars-d
On Wednesday, 18 February 2015 at 08:13:35 UTC, Ola Fosheim Grøstad wrote: It is a horrible solution developed for the Itanium VLIW architecture which is very sensitive to branching. IRRC it basically works by looking at the return address on the stack, then picking up stack frame information

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 18 February 2015 at 14:46:30 UTC, Dicebot wrote: From my POV best proposal from last lengthy discussion was to enable reference-counted non-gc-heap Exceptions. But that needs a language change because RefCounted!T is a struct and thus neither can be thrown nor can be part of

Re: [NEEDING HELP] Translation of Ali Cehreli's book in French

2015-02-18 Thread Olivier Pisano via Digitalmars-d
On Tuesday, 17 February 2015 at 22:46:01 UTC, Raphaël Jakse wrote: To begin the translation of a chapter, I suggest you tell it here so two people are not translating the same chapter at the same time. Ok, I am gonna start with the Variable number of parameters chapter, then. I am thinking

Re: Issue with rendering dlang.org/library

2015-02-18 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 14 February 2015 at 10:25:52 UTC, Vladimir Panteleev wrote: make it stop using its own templating language and use the one we already use for everything else - HTML, PDF, Mobi, CHM - DDoc. DDoc isn't a good tool to generate webpages. For the simple reason that a webpage needs to

Re: D and GPGPU

2015-02-18 Thread luminousone via Digitalmars-d
On Wednesday, 18 February 2015 at 15:15:21 UTC, Russel Winder wrote: It strikes me that D really ought to be able to work with GPGPU – is there already something and I just failed to notice. This is data parallelism but of a slightly different sort to that in std.parallelism. std.concurrent,

Re: deliberately failing compilation when errors are in embedded DSL

2015-02-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/18/15 12:43 PM, Dmitri Makarov wrote: I'm developing an embedded DSL using CTFE. The DSL code is translated into D code and mixin-ed into the D code of user's application. In order to provide meaningful error messages the DSL compiler always intercepts all errors in the DSL code and

Re: Alias delegates and @nogc

2015-02-18 Thread ketmar via Digitalmars-d-learn
On Wed, 18 Feb 2015 18:13:58 +, ketmar wrote: it doesn't really cost *that* much (especially if you'll remember that DMD optimiser is far from... well, optimal ;-) i mean that there are alot of other code that isn't optimal for speed, so delegate call is rarely an issue. signature.asc

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread via Digitalmars-d
On Wednesday, 18 February 2015 at 17:55:49 UTC, deadalnix wrote: Which is true, but would be as true without the horrible mention. Adjective do not constitute arguments. And your nonsensical point is?

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread deadalnix via Digitalmars-d
On Wednesday, 18 February 2015 at 09:04:38 UTC, Matthias Bentrup wrote: Windows SEH maintains a per-thread linked list of exception handlers, but the C++ runtime seems to install only one handler at the start of every function and resorts to lookup tables if there are multiply try{}s in the

Re: Thanks to p0nce for a nicer DConf logo!

2015-02-18 Thread Israel via Digitalmars-d
On Sunday, 18 January 2015 at 19:39:38 UTC, Andrei Alexandrescu wrote: Take a look: http://dconf.org/2015/index.html. PR: https://github.com/D-Programming-Language/dconf.org/pull/37. -- Andrei Is thhere a higher res version out there?

Re: D and GPGPU

2015-02-18 Thread ponce via Digitalmars-d
On Wednesday, 18 February 2015 at 15:15:21 UTC, Russel Winder wrote: The issue is to create a GPGPU kernel (usually C code with bizarre data structures and calling conventions) set it running and then pipe data in and collect data out – currently very slow but the next generation of Intel

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread deadalnix via Digitalmars-d
On Wednesday, 18 February 2015 at 14:46:30 UTC, Dicebot wrote: From my POV best proposal from last lengthy discussion was to enable reference-counted non-gc-heap Exceptions. But that needs a language change because RefCounted!T is a struct and thus neither can be thrown nor can be part of

Re: Botan Crypto and TLS for D

2015-02-18 Thread Andrei Alexandrescu via Digitalmars-d
On 2/18/15 9:32 AM, Etienne Cimon wrote: On 2015-02-18 11:41, Andrei Alexandrescu wrote: I'd love to add libasync to Phobos! -- Andrei Even as I add this as a dependency? : https://github.com/etcimon/memutils Instead of a single ScopedFiberPool, I intend to have ScopedPools with one stack

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread deadalnix via Digitalmars-d
On Wednesday, 18 February 2015 at 18:43:49 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 18 February 2015 at 17:55:49 UTC, deadalnix wrote: Which is true, but would be as true without the horrible mention. Adjective do not constitute arguments. And your nonsensical point is? That you have

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread via Digitalmars-d
On Wednesday, 18 February 2015 at 18:59:03 UTC, deadalnix wrote: That's the last answer you'll get from me until you make any valuable argument. Excellent! I hope you keep your promise.

Re: Alias delegates and @nogc

2015-02-18 Thread Ivan Timokhin via Digitalmars-d-learn
ketmar wrote: On Wed, 18 Feb 2015 19:09:50 +0300, Ivan Timokhin wrote: Is there any way to pass a delegate that: 1. avoids indirect calls (like alias); 2. does not allocate (like scope delegate); 3. captures local variables? i don't think that you can do it. but what is wrong with

Re: Alias delegates and @nogc

2015-02-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/18/15 11:09 AM, Ivan Timokhin wrote: With dmd 2.066.1, this compiles: void bar(scope int delegate() a) @nogc {} void foo(int x) @nogc { bar(() = x); } but this doesn't: void bar(alias a)() {} void foo(int x) @nogc { bar!(() = x)(); } Fails with Error: function test.foo @nogc

Re: Botan Crypto and TLS for D

2015-02-18 Thread Etienne via Digitalmars-d
On Windows, both x64 and x86 builds return a corrupt symbol table when building with debug symbols, and x64 doesn't work in release. For now I can build release/x86 only (although I get some unrelated bugs). I'm not sure but it seems like a problem with DMD for which I could use some help :-p

GC deadlocks on linux

2015-02-18 Thread Byron Heads via Digitalmars-d-learn
I have a medium size daemon application that uses several threads, libasync, and daemonize. On windows it runs correctly with GC enabled, but on linux the GC causes a deadlock while allocating memory. Adding core.memory.GC.disable; to main causes the application to work correctly (and quickly

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread Dicebot via Digitalmars-d
On Wednesday, 18 February 2015 at 18:02:14 UTC, Jonathan Marler wrote: On Wednesday, 18 February 2015 at 14:46:30 UTC, Dicebot wrote: From my POV best proposal from last lengthy discussion was to enable reference-counted non-gc-heap Exceptions. But that needs a language change because

Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread MattCoder via Digitalmars-d-announce
http://ketmar.no-ip.org/milf_for_the_masses.zip I'd like to see the source but on the other hand I'm so afraid to download this zip. :) Matheus.

Re: GC deadlocks on linux

2015-02-18 Thread Byron Heads via Digitalmars-d-learn
On Wednesday, 18 February 2015 at 21:05:10 UTC, Byron Heads wrote: On Wednesday, 18 February 2015 at 20:55:56 UTC, ketmar wrote: On Wed, 18 Feb 2015 20:35:44 +, Byron Heads wrote: On Wednesday, 18 February 2015 at 20:33:40 UTC, ketmar wrote: On Wed, 18 Feb 2015 20:27:07 +, Byron

Re: Writing game engine in C++, considering switching to D

2015-02-18 Thread Iain Buclaw via Digitalmars-d
On 18 February 2015 at 20:48, ketmar via Digitalmars-d digitalmars-d@puremagic.com wrote: GDC compiler is able to produce ARM code (and maybe LDC too, i don't know), GDC and LDC are able to produce any code. It's the runtime that may just need extra porting love. :) Iain.

Re: GC deadlocks on linux

2015-02-18 Thread Byron Heads via Digitalmars-d-learn
On Wednesday, 18 February 2015 at 21:21:11 UTC, Byron Heads wrote: On Wednesday, 18 February 2015 at 21:05:10 UTC, Byron Heads wrote: On Wednesday, 18 February 2015 at 20:55:56 UTC, ketmar wrote: On Wed, 18 Feb 2015 20:35:44 +, Byron Heads wrote: On Wednesday, 18 February 2015 at

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread via Digitalmars-d
On Wednesday, 18 February 2015 at 09:04:38 UTC, Matthias Bentrup wrote: If you want to avoid lookup tables, you can of course add/remove catchers dynamically whenever you enter/leave a try block, that would add a small cost to every try, but avoids the (larger) table lookup cost on the catch.

Writing game engine in C++, considering switching to D

2015-02-18 Thread Will Cassella via Digitalmars-d
Hi, I have been working on a neat little game engine in C++ for the past year or so, and while C++ has served me well in the past, there are some points where its just awful to write. While I certainly can't call myself a master of C++, there's very little about the language that I am not

Re: GC deadlocks on linux

2015-02-18 Thread Byron Heads via Digitalmars-d-learn
On Wednesday, 18 February 2015 at 20:33:40 UTC, ketmar wrote: On Wed, 18 Feb 2015 20:27:07 +, Byron Heads wrote: are you forking? ;-) I am in the daemonize library https://github.com/NCrashed/daemonize

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread deadalnix via Digitalmars-d
On Wednesday, 18 February 2015 at 20:25:07 UTC, Dicebot wrote: Right now I don't care for full memory safety or type safety of any proposed solution. I will be glad to have any that actually works - and I have not heard of any idea that allows to do that without language changes. Your push for

Re: GC deadlocks on linux

2015-02-18 Thread Byron Heads via Digitalmars-d-learn
On Wednesday, 18 February 2015 at 20:41:12 UTC, Dicebot wrote: Any chance you are using gdm-3.12.x? I was so mad when I have encountered this: https://issues.dlang.org/show_bug.cgi?id=4890 Dont think so $dpkg --get-selections | grep gdm doesn't return anything also running via ssh

Re: Writing game engine in C++, considering switching to D

2015-02-18 Thread via Digitalmars-d
On Wednesday, 18 February 2015 at 20:29:34 UTC, Will Cassella wrote: Hi, I have been working on a neat little game engine in C++ for the past year or so, and while C++ has served me well in the past, there are some points where its just awful to write. Maybe you should consider creating

Re: GC deadlocks on linux

2015-02-18 Thread ketmar via Digitalmars-d-learn
On Wed, 18 Feb 2015 20:27:07 +, Byron Heads wrote: are you forking? ;-) signature.asc Description: PGP signature

Re: Writing game engine in C++, considering switching to D

2015-02-18 Thread ketmar via Digitalmars-d
On Wed, 18 Feb 2015 20:29:33 +, Will Cassella wrote: Anyway, if anyone here can give me advice on whether I should transition or not, I'd appreciate it. do you really expecting the answer no, stay with C++ in newsgroup that is dedicated to D language? ;-) as for some of your answer...

Re: GC deadlocks on linux

2015-02-18 Thread Dicebot via Digitalmars-d-learn
Any chance you are using gdm-3.12.x? I was so mad when I have encountered this: https://issues.dlang.org/show_bug.cgi?id=4890

Re: GC deadlocks on linux

2015-02-18 Thread ketmar via Digitalmars-d-learn
On Wed, 18 Feb 2015 20:35:44 +, Byron Heads wrote: On Wednesday, 18 February 2015 at 20:33:40 UTC, ketmar wrote: On Wed, 18 Feb 2015 20:27:07 +, Byron Heads wrote: are you forking? ;-) I am in the daemonize library https://github.com/NCrashed/daemonize can you drop that and

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread Dicebot via Digitalmars-d
On Wednesday, 18 February 2015 at 18:26:34 UTC, deadalnix wrote: On Wednesday, 18 February 2015 at 14:46:30 UTC, Dicebot wrote: From my POV best proposal from last lengthy discussion was to enable reference-counted non-gc-heap Exceptions. But that needs a language change because RefCounted!T

Re: Dividing D Module between multiple files

2015-02-18 Thread rumbu via Digitalmars-d-learn
On Wednesday, 18 February 2015 at 07:34:13 UTC, Daniel Kozák wrote: On Wed, 18 Feb 2015 07:23:24 + Muahmmad Adel via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: I have searched online and I found no way for dividing D Module between multiple files. You are not force

Re: GC deadlocks on linux

2015-02-18 Thread ketmar via Digitalmars-d-learn
On Wed, 18 Feb 2015 20:35:44 +, Byron Heads wrote: On Wednesday, 18 February 2015 at 20:33:40 UTC, ketmar wrote: On Wed, 18 Feb 2015 20:27:07 +, Byron Heads wrote: are you forking? ;-) I am in the daemonize library https://github.com/NCrashed/daemonize p.s. and check if you

Re: GC deadlocks on linux

2015-02-18 Thread Byron Heads via Digitalmars-d-learn
On Wednesday, 18 February 2015 at 20:55:56 UTC, ketmar wrote: On Wed, 18 Feb 2015 20:35:44 +, Byron Heads wrote: On Wednesday, 18 February 2015 at 20:33:40 UTC, ketmar wrote: On Wed, 18 Feb 2015 20:27:07 +, Byron Heads wrote: are you forking? ;-) I am in the daemonize library

Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread via Digitalmars-d-announce
On Wednesday, 18 February 2015 at 21:22:56 UTC, MattCoder wrote: http://ketmar.no-ip.org/milf_for_the_masses.zip I'd like to see the source but on the other hand I'm so afraid to download this zip. Yep, I got aliced on the first line...

Re: Writing game engine in C++, considering switching to D

2015-02-18 Thread ketmar via Digitalmars-d
On Wed, 18 Feb 2015 21:24:42 +, Iain Buclaw via Digitalmars-d wrote: On 18 February 2015 at 20:48, ketmar via Digitalmars-d digitalmars-d@puremagic.com wrote: GDC compiler is able to produce ARM code (and maybe LDC too, i don't know), GDC and LDC are able to produce any code. It's the

Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread ketmar via Digitalmars-d-announce
On Wed, 18 Feb 2015 22:31:00 +, Ola Fosheim Grøstad wrote: On Wednesday, 18 February 2015 at 21:22:56 UTC, MattCoder wrote: http://ketmar.no-ip.org/milf_for_the_masses.zip I'd like to see the source but on the other hand I'm so afraid to download this zip. Yep, I got aliced on the

[Issue 13167] Link errors with std.variant

2015-02-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13167 growler...@gmail.com changed: What|Removed |Added CC||growler...@gmail.com --- Comment #1

[Issue 13167] Link errors with std.variant

2015-02-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13167 --- Comment #2 from growler...@gmail.com --- Sorry, I just noticed the date on this bug. I am using DMD 2.67-b2 on Arch linux x86-64 DMD 2.066.1 works DMD 2.067-b2 fails with the linker error. (In reply to growlercab from comment #1) I have the

Re: Is this a bug in dmd 2.067 for struct initializers?

2015-02-18 Thread Ali Çehreli via Digitalmars-d-learn
On 02/18/2015 10:39 PM, stewarth wrote: This works under dmd 2066.1 but fails under dmd 2.067-b2. I don't know whether it is a bug. struct B { A* a; In any case, that must be immutable(A)*. } static immutable B[] someB = [{a:someA[0]}, {a:someA[1]}]; I want it to initialize at

Is this a bug in dmd 2.067 for struct initializers?

2015-02-18 Thread stewarth via Digitalmars-d-learn
Hi All, This works under dmd 2066.1 but fails under dmd 2.067-b2. --- struct A { int val; } static immutable A[] someA = [{val:1}, {val:2}]; struct B { A* a; } static immutable B[] someB = [{a:someA[0]}, {a:someA[1]}]; void main() { writefln(a:%s, someA); writefln(b:%s,

let (x,y) = ...

2015-02-18 Thread thedeemon via Digitalmars-d-announce
Creating tuples and returning them from functions is trivial in D: auto getTuple() { return tuple(Bob, 42); } but using them afterwards can be confusing and error prone auto t = getTuple(); writeln(name is , t[0], age is , t[1]); I really missed the ML syntax to write let (name, age) =

Re: Writing game engine in C++, considering switching to D

2015-02-18 Thread Manu via Digitalmars-d
On 19 February 2015 at 12:08, Will Cassella via Digitalmars-d digitalmars-d@puremagic.com wrote: Thanks for the replies, everyone! I think I'll try my hand at writing bindings for my existing game engine, as Grøstad suggested - that way I can gradually transition the codebase to D if I like

Re: Google Summer of Code - Again

2015-02-18 Thread Craig Dillabaugh via Digitalmars-d
On Tuesday, 17 February 2015 at 11:52:15 UTC, Russel Winder wrote: On Mon, 2015-02-16 at 21:20 +, CraigDillabaugh via Digitalmars-d wrote: […] I haven't yet heard from Martin on his Melange name. Do you mind me putting your name down as assistant administrator if by submission time I

Re: Thanks to p0nce for a nicer DConf logo!

2015-02-18 Thread Israel via Digitalmars-d
On Wednesday, 18 February 2015 at 23:44:34 UTC, ponce wrote: On Wednesday, 18 February 2015 at 19:12:27 UTC, Israel wrote: On Sunday, 18 January 2015 at 19:39:38 UTC, Andrei Alexandrescu wrote: Take a look: http://dconf.org/2015/index.html. PR:

Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread via Digitalmars-d-announce
On Wednesday, 18 February 2015 at 22:37:34 UTC, ketmar wrote: yet you're still alive, so at least it's not fatal I became one year older, but I feel invigorated after this Alice encounter! and again, so let's consider code cleanup as an exercise for the reader. That's quite ok. I enjoy

Re: Google Summer of Code - Again

2015-02-18 Thread Craig Dillabaugh via Digitalmars-d
On Thursday, 19 February 2015 at 04:28:35 UTC, Craig Dillabaugh wrote: On Tuesday, 17 February 2015 at 11:52:15 UTC, Russel Winder wrote: On Mon, 2015-02-16 at 21:20 +, CraigDillabaugh via Digitalmars-d wrote: […] I haven't yet heard from Martin on his Melange name. Do you mind me

Alias delegates and @nogc

2015-02-18 Thread Ivan Timokhin via Digitalmars-d-learn
With dmd 2.066.1, this compiles: void bar(scope int delegate() a) @nogc {} void foo(int x) @nogc { bar(() = x); } but this doesn't: void bar(alias a)() {} void foo(int x) @nogc { bar!(() = x)(); } Fails with Error: function test.foo @nogc function allocates a closure with the GC Is

Re: contiguous ranges

2015-02-18 Thread Pasqui23 via Digitalmars-d
On Wednesday, 18 February 2015 at 08:34:49 UTC, Vlad Levenfeld wrote: I would argue that the only operations which preserve contiguity are slicing, concatenating and appending; r.retro, r.stride, r.map!f, etc should yield a RandomAccessRange. I don't think this is a deal breaker, as

Re: Calypso: Direct and full interfacing to C++

2015-02-18 Thread Elie Morisse via Digitalmars-d-announce
On Wednesday, 18 February 2015 at 08:52:33 UTC, Kelly wrote: Hello Elie, I just pushed a small pull request for fromTypeTemplateSpecialization. I forgot to mention in the request that the changes allow bitset.d to be compiled and run again. Thanks for looking into this, I'll check your PR.

Re: Packt is looking for someone to author a Learning D

2015-02-18 Thread Kagamin via Digitalmars-d-announce
Well, Word can diff and merge documents, though, it works with sharepoint, not vcs.

Re: Botan Crypto and TLS for D

2015-02-18 Thread Paolo Invernizzi via Digitalmars-d
On Wednesday, 18 February 2015 at 12:28:11 UTC, Etienne Cimon wrote: On 2015-02-18 07:17, Jacob Carlborg wrote: On 2015-02-18 02:14, Etienne Cimon wrote: My favorite part is: vibe.d projects now compiles the entire software stack into a fully-featured standalone executable without any

Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread Stefan Koch via Digitalmars-d-announce
Oh boy. the source is messy ...

Re: Botan Crypto and TLS for D

2015-02-18 Thread Etienne Cimon via Digitalmars-d
On 2015-02-18 07:17, Jacob Carlborg wrote: On 2015-02-18 02:14, Etienne Cimon wrote: My favorite part is: vibe.d projects now compiles the entire software stack into a fully-featured standalone executable without any license issues. Isn't libevent required? Not anymore. I also wrote

Re: Type-Strict Indexes: IndexedBy

2015-02-18 Thread anonymous via Digitalmars-d-learn
On Tuesday, 17 February 2015 at 19:46:09 UTC, Nordlöw wrote: Superb! I'd like to see this getting into std.typecons. Having this in the language will attract (more) Ada programmers to D. Should I do PR for std.typecons.[iI]ndexedBy? I'm not familiar with Ada, and I don't immediately see

Re: Reference or Value Semantics for Graph Traversal Range

2015-02-18 Thread Tobias Pankrath via Digitalmars-d-learn
On Wednesday, 18 February 2015 at 13:59:43 UTC, Nordlöw wrote: On Wednesday, 18 February 2015 at 13:53:17 UTC, Tobias Pankrath wrote: All the data members except distMap have reference semantics. I thought AAs had reference semantics. Me too, but the indeed have value semantics. See for

Re: Problem with coupling shared object symbol visibility with protection

2015-02-18 Thread Dicebot via Digitalmars-d
On Monday, 16 February 2015 at 20:19:27 UTC, Jacob Carlborg wrote: On 2015-02-16 10:40, Benjamin Thaut wrote: This is in fact not a breaking change because export is broken anyway. Due to bug 922 export can't be used in cross platform libraries. I haven't seen a single library on dub that

Re: Plan for Exceptions and @nogc?

2015-02-18 Thread Dicebot via Digitalmars-d
On Monday, 16 February 2015 at 23:17:03 UTC, Jonathan Marler wrote: Is there a proposal for how D will support throwing Exceptions in @nogc code in the future? I've searched the forums and found different proposals that involve things like pre-allocated exceptions, non-gc heap allocated

Re: Botan Crypto and TLS for D

2015-02-18 Thread Martin Nowak via Digitalmars-d
On 02/18/2015 02:14 AM, Etienne Cimon wrote: I'll be working on HTTP/2 with websocket-style full duplex communications Glad to hear that.

Re: Reference or Value Semantics for Graph Traversal Range

2015-02-18 Thread Nordlöw
On Wednesday, 18 February 2015 at 14:07:01 UTC, Steven Schveighoffer wrote: But once initialized, it DOES have reference semantics: string[int] x; x[0] = zero; auto y = x; x[1] = one; assert(x == y); Ok, great! I always initialize distMap with firstNd in the DijkstraWalk.this so that avoids

Re: Reference or Value Semantics for Graph Traversal Range

2015-02-18 Thread Nordlöw
On Wednesday, 18 February 2015 at 14:07:01 UTC, Steven Schveighoffer wrote: An UNINITIALIZED AA has not yet been allocated, and so it's reference is null. What's reason for uninitialized AA not behaving in the same way as arrays do?

Re: Botan Crypto and TLS for D

2015-02-18 Thread Craig Dillabaugh via Digitalmars-d
On Wednesday, 18 February 2015 at 04:17:16 UTC, Rikki Cattermole wrote: On 18/02/2015 5:01 p.m., Etienne Cimon wrote: On 2015-02-17 20:54, Rikki Cattermole wrote: On 18/02/2015 10:00 a.m., Etienne wrote: I'd like to announce the first release of Botan, which implements all features of

Re: Botan Crypto and TLS for D

2015-02-18 Thread Craig Dillabaugh via Digitalmars-d
On Wednesday, 18 February 2015 at 04:17:16 UTC, Rikki Cattermole wrote: On 18/02/2015 5:01 p.m., Etienne Cimon wrote: On 2015-02-17 20:54, Rikki Cattermole wrote: On 18/02/2015 10:00 a.m., Etienne wrote: I'd like to announce the first release of Botan, which implements all features of

Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread ketmar via Digitalmars-d-announce
On Wed, 18 Feb 2015 11:56:51 +, Stefan Koch wrote: Oh boy. the source is messy ... you have been warned! ;-) it was actually created within several hours to add simple scripting to another project, and i have no plans to improve it. so i decided to make it public, in a hope that it might

Re: Botan Crypto and TLS for D

2015-02-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-02-18 02:14, Etienne Cimon wrote: My favorite part is: vibe.d projects now compiles the entire software stack into a fully-featured standalone executable without any license issues. Isn't libevent required? -- /Jacob Carlborg

Re: Botan Crypto and TLS for D

2015-02-18 Thread Etienne Cimon via Digitalmars-d
On 2015-02-18 05:22, ketmar wrote: On Wed, 18 Feb 2015 06:35:08 +, Joakim wrote: accompanied by benchmarks of the C++ and D code it's better to keep silence. dmd was never very good in optimising code. ;-) Not really, most of the sensitive code is optimized via native instructions,

Re: Type-Strict Indexes: IndexedBy

2015-02-18 Thread Nordlöw
On Wednesday, 18 February 2015 at 12:44:22 UTC, anonymous wrote: Should I do PR for std.typecons.[iI]ndexedBy? I'm not familiar with Ada, and I don't immediately see what indexedBy is good for. So maybe gather some examples where it's beneficial, before going for Phobos. Ok, I have a use

Re: Reference or Value Semantics for Graph Traversal Range

2015-02-18 Thread Tobias Pankrath via Digitalmars-d-learn
On Wednesday, 18 February 2015 at 13:37:57 UTC, Nordlöw wrote: I've written a Dijkstra-style graph traversal range at https://github.com/nordlow/justd/blob/master/knet/traversal.d#L105 that needs to internally store the AA distance map in member variable distMap. 1. All the data members

Bugzilla email queue jammed?

2015-02-18 Thread anonymous via Digitalmars-d
I just saw that an issue I'm subscribed to was commented on hours ago, but no email from Bugzilla yet. They usually arrive instantly. Maybe some gears got stuck on the server?

Re: Reference or Value Semantics for Graph Traversal Range

2015-02-18 Thread Nordlöw
On Wednesday, 18 February 2015 at 13:53:17 UTC, Tobias Pankrath wrote: All the data members except distMap have reference semantics. I thought AAs had reference semantics. Me too, but the indeed have value semantics. See for example: unittest { string[int] x; auto y = x; x[0] =

Re: Reference or Value Semantics for Graph Traversal Range

2015-02-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/18/15 8:59 AM, Nordlöw wrote: On Wednesday, 18 February 2015 at 13:53:17 UTC, Tobias Pankrath wrote: All the data members except distMap have reference semantics. I thought AAs had reference semantics. Me too, but the indeed have value semantics. See for example: unittest {

  1   2   3   4   5   >