Re: Microsoft now giving away VS 2013

2014-11-15 Thread Max Samukha via Digitalmars-d
On Friday, 14 November 2014 at 20:29:26 UTC, Dmitry Olshansky wrote: Classics! :) I love these kinds of statements with heavy lifting and great scalability and huge amounts of data. And things like e.g. Python web frameworks claiming to be super fast at request routing because they compile

Shared library packaging issues

2014-11-15 Thread GreatEmerald via Digitalmars-d
I'm currently attempting to package my D project (https://github.com/GreatEmerald/libarcomage/) as a shared library for openSUSE and whatnot, but I'm running into some policy problems. First, in order to build a shared library, it has to link against libphobos2.so. libphobos2.so is provided

Re: Shared library packaging issues

2014-11-15 Thread tcak via Digitalmars-d
Well, because of this reason, I completely left D and started writing my shared library in pure C. As much as I miss the syntax of D, I needed to do this (Where are you betterC? Are you there yet?). Since it is not a big library, that wouldn't be a big problem. Anyway, I think instead of

Re: Microsoft now giving away VS 2013

2014-11-15 Thread Paulo Pinto via Digitalmars-d
On Friday, 14 November 2014 at 20:22:30 UTC, Dmitry Olshansky wrote: ... Good point and it also answers the main question about D - to become popular there need to be tools written in D. In fact I wrote a couple at work, simple beasts that do one thing and do it well. Problem is we need

Re: On heap segregation, GC optimization and @nogc relaxing

2014-11-15 Thread via Digitalmars-d
On Saturday, 15 November 2014 at 00:16:22 UTC, deadalnix wrote: The idea is based on Doligez-Leroy's GC, but using TL heap as the small object and immutable heap as the shared. Note that this GC is done for ML, where most things are immutable and this is why it works well (only require write

Writing malformed it?

2014-11-15 Thread sdvcn via Digitalmars-d
[code] import core.sys.windows.windows; import std.concurrency; import core.sync.semaphore; import core.thread; //struct sPool(T){ //--- it good shared struct sPool(T){ T[] _buff; Semaphore _sp ; auto pfReadAny() { _sp.wait();

Re: shared libraries on OS X

2014-11-15 Thread Jacob Carlborg via Digitalmars-d
On 2014-11-14 17:40, Sean Kelly wrote: We're two releases into having native support for TLS in OSX now, so it probably is time to switch over. There have been four releases of OS X which support TLS, 10.7-10.10. -- /Jacob Carlborg

Re: shared libraries on OS X

2014-11-15 Thread Jacob Carlborg via Digitalmars-d
On 2014-11-14 17:18, David Nadlinger wrote: 10.7. And IMHO the most useful documentation for actually getting stuff done is the ld source code (opensource.apple.com). There's also the source code for the compiler (Clang, LLVM) and the dynamic linker (dyld). -- /Jacob Carlborg

Re: shared libraries on OS X

2014-11-15 Thread Jacob Carlborg via Digitalmars-d
On 2014-11-14 16:26, Martin Nowak wrote: There is some Mach-O support to be notified (via a callback) when a new shared library is loaded. It wasn't possible to unset that callback though, meaning it would segfault when druntime itself is unloaded. Right, I keep forgetting that. -- /Jacob

Re: X86 COFF format static libraries is very important for d, how to use them? -ms32coff?

2014-11-15 Thread FrankLike via Digitalmars-d
Maybe you forgot to clean up the object files from the win64/win32-dmc build? This is extracted from my build batch: set dm_make=c:\l\dmc\bin\make set DMD=../windows/bin/dmd.exe set cl32=%VCINSTALLDIR%/bin/cl.exe set ar32=%VCINSTALLDIR%/bin/lib.exe cd druntime del /q errno_c.obj complex.obj

Re: Shared library packaging issues

2014-11-15 Thread Jordi Sayol via Digitalmars-d
El 15/11/14 a les 12:21, GreatEmerald via Digitalmars-d ha escrit: Ideally, this problem would be solved by splitting libphobos2.so into its own package. Since dmd v2.064.0, a shared phobos2 library package already exist for Debian based systems:

Re: Why is `scope` planned for deprecation?

2014-11-15 Thread Jacob Carlborg via Digitalmars-d
On 2014-11-14 15:28, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: I don't know yet, but the 5.1 simulator will probably have to run on OS-X 10.6.8 from what I've found on the net. Maybe it is possible to do as you said with clang… Hm. The simulator bundled

Re: Shared library packaging issues

2014-11-15 Thread GreatEmerald via Digitalmars-d
On Saturday, 15 November 2014 at 14:49:23 UTC, Jordi Sayol via Digitalmars-d wrote: Since dmd v2.064.0, a shared phobos2 library package already exist for Debian based systems: http://downloads.dlang.org/releases/2014/libphobos2-66_2.066.1-0_i386.deb

Re: Shared library packaging issues

2014-11-15 Thread Jordi Sayol via Digitalmars-d
El 15/11/14 a les 18:29, GreatEmerald via Digitalmars-d ha escrit: Nice. Now if only there were RPMs as well... If only as a template. Meanwhile there is not an RPM package for phobos 2 shared library, I think you can spread it together with your library:

Re: Linux 64bit Calling Convention

2014-11-15 Thread Iain Buclaw via Digitalmars-d
On 14 November 2014 20:27, David Nadlinger via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 14 November 2014 at 20:19:56 UTC, Iain Buclaw via Digitalmars-d wrote: Really? I say this all the time. (OK, maybe not so much over the last 5 or so months :) Yeah, and if I remember

Higgs repo link on the HN front page

2014-11-15 Thread David Nadlinger via Digitalmars-d
As always, no direct link. The entry just points to the GitHub repository with its README. No discussion yet, except for a reference to Maxime's blog. David

Re: On heap segregation, GC optimization and @nogc relaxing

2014-11-15 Thread deadalnix via Digitalmars-d
On Saturday, 15 November 2014 at 12:52:33 UTC, Ola Fosheim Grøstad wrote: Thanks for the link! I agree ML has some interesting work done for it, but they make some assumptions: 1. low portion of mutable objects 2. small heap fits in per-core-cache (256KiB on Haswell). So the small heap is

Re: Shared library packaging issues

2014-11-15 Thread GreatEmerald via Digitalmars-d
On Saturday, 15 November 2014 at 18:36:28 UTC, Jordi Sayol via Digitalmars-d wrote: Meanwhile there is not an RPM package for phobos 2 shared library, I think you can spread it together with your library: /usr/lib/i386-linux-gnu/libphobos2.so.0.66.1 (for 32-bit)

Re: Shared library packaging issues

2014-11-15 Thread Iain Buclaw via Digitalmars-d
On 15 Nov 2014 21:05, GreatEmerald via Digitalmars-d digitalmars-d@puremagic.com wrote: On Saturday, 15 November 2014 at 18:36:28 UTC, Jordi Sayol via Digitalmars-d wrote: Meanwhile there is not an RPM package for phobos 2 shared library, I think you can spread it together with your library:

Re: Dynamic array as stack and GC.BlkAttr.APPENDABLE

2014-11-15 Thread IgorStepanov via Digitalmars-d
On Saturday, 15 November 2014 at 03:41:56 UTC, Steven Schveighoffer wrote: On 11/14/14 8:56 PM, IgorStepanov wrote: On Friday, 14 November 2014 at 23:49:00 UTC, ketmar via Digitalmars-d wrote: On Fri, 14 Nov 2014 23:23:17 + IgorStepanov via Digitalmars-d digitalmars-d@puremagic.com

Re: Shared library packaging issues

2014-11-15 Thread David Nadlinger via Digitalmars-d
On Saturday, 15 November 2014 at 21:01:49 UTC, GreatEmerald wrote: Though it does make me wonder, how do GDC and LDC handle this issue? Do they also include libphobos2 as part of the compiler? That's something entirely up to the distro packagers to get right in the case of LDC. We don't

Re: Shared library packaging issues

2014-11-15 Thread GreatEmerald via Digitalmars-d
On Saturday, 15 November 2014 at 22:19:07 UTC, Iain Buclaw via Digitalmars-d wrote: It's a libgphobos-dev package for gdc. Ah, so they repackage it as well. Same with LDC. Not that it helps much, given that there's also no GDC on openSUSE. Oh well.

Re: Why is `scope` planned for deprecation?

2014-11-15 Thread Walter Bright via Digitalmars-d
On 11/14/2014 4:32 PM, deadalnix wrote: To quote the guy from the PL for video games video serie, a 85% solution often is preferable. Spoken like a true engineer!

Re: Why is `scope` planned for deprecation?

2014-11-15 Thread Walter Bright via Digitalmars-d
On 11/13/2014 5:55 AM, Manu via Digitalmars-d wrote: I realised within minutes that it's almost impossible to live without slices. On the plus side, I've already made lots of converts in my new office from my constant ranting :P You should submit a presentation proposal to the O'Reilly

Re: Why is `scope` planned for deprecation?

2014-11-15 Thread Walter Bright via Digitalmars-d
On 11/13/2014 3:44 AM, Manu via Digitalmars-d wrote: After having adapted to D and distancing from C++, trying to go back is like some form of inhuman torture! I really don't remember it being as bad as it is... the time away has given me new perspective on how terrible C++ is, and I can say

Re: Why is `scope` planned for deprecation?

2014-11-15 Thread Paulo Pinto via Digitalmars-d
Am 16.11.2014 um 05:51 schrieb Walter Bright: On 11/13/2014 3:44 AM, Manu via Digitalmars-d wrote: After having adapted to D and distancing from C++, trying to go back is like some form of inhuman torture! I really don't remember it being as bad as it is... the time away has given me new

Re: Why is `scope` planned for deprecation?

2014-11-15 Thread Walter Bright via Digitalmars-d
On 11/15/2014 11:14 PM, Paulo Pinto wrote: Am 16.11.2014 um 05:51 schrieb Walter Bright: What I find odd about the progress of C++ (11, 14, 17, ...) is that there has been no concerted effort to make the preprocesser obsolete. What about templates, compile time reflection, modules and compile

Re: Functional Sort

2014-11-15 Thread Meta via Digitalmars-d-learn
On Saturday, 15 November 2014 at 03:47:25 UTC, Steven Schveighoffer wrote: err... this isn't what you want. That will sort the range, and then make a copy of the sorted range as an array. Yes, I didn't see the the second constraint to not sort the original range. Sort before .array -

Re: How to use Linux message queues?

2014-11-15 Thread Gary Willoughby via Digitalmars-d-learn
On Saturday, 15 November 2014 at 00:33:02 UTC, Neven wrote: On Friday, 14 November 2014 at 16:45:45 UTC, Sean Kelly wrote: Sounds like a module that should be in core.sys.linux. Care to submit a pull request? Ok, I've tried to make a module, though since I'm a D beginner (also a student who

Re: How to use Linux message queues?

2014-11-15 Thread Gary Willoughby via Digitalmars-d-learn
On Saturday, 15 November 2014 at 00:33:02 UTC, Neven wrote: Ok, I've tried to make a module, though since I'm a D beginner (also a student who fiddles with D for Operating system classes) Incidentally, where are you studying? It would be nice to know where D is being taught.

Re: Functional Sort

2014-11-15 Thread Nordlöw
On Saturday, 15 November 2014 at 03:47:25 UTC, Steven Schveighoffer wrote: Note, there isn't any generic way to say give me a copy of this range, as the same type. array is probably the best you will get. Just make sure you call it *before* you sort, unless you want both ranges sorted :)

dfl2 GUI Builder

2014-11-15 Thread Suliman via Digitalmars-d-learn
I have got few questions about DFL2. 1: What is dco and in which situation I should prefer it's to dub? 2: Old DFL had easy to use GUI Builder. Does dfl2 have such tool?

Re: Functional Sort

2014-11-15 Thread Nordlöw
On Saturday, 15 November 2014 at 08:52:45 UTC, Meta wrote: On Saturday, 15 November 2014 at 03:47:25 UTC, Steven Schveighoffer wrote: err... this isn't what you want. That will sort the range, and then make a copy of the sorted range as an array. Yes, I didn't see the the second constraint to

Multi-Prefix Version of skipOver()

2014-11-15 Thread Nordlöw
What's currently the fastest way of removing the largest matching prefix from an array of prefix arrays from an array in D like auto x = first_second; x.skipOverLargestMatch([fir, first]); assert( == _second); auto x = first_second; x.skipOverLargestMatch([fir]);

Re: Multi-Prefix Version of skipOver()

2014-11-15 Thread Nordlöw
On Saturday, 15 November 2014 at 14:41:29 UTC, Nordlöw wrote: What's currently the fastest way of removing the largest matching prefix from an array of prefix arrays from an array in D like auto x = first_second; x.skipOverLargestMatch([fir, first]); assert( == _second); auto

Re: Functional Sort

2014-11-15 Thread Nordlöw
On Saturday, 15 November 2014 at 14:34:07 UTC, Nordlöw wrote: What's wrong with my isArray-overload of sorted? I solved it by replacing R s = r.dup; with auto s = r.dup; As a follow up I know wonder if it is ok for isArray-overload of sorted() to have return type ubyte[] if input

Recursive template

2014-11-15 Thread Eric via Digitalmars-d-learn
Hi - I've never designed a recursive template before, but I think that would solve my problem. What I would like is someting like this: class X(V, K...) { // I want to declare a type based on K and V such // that for X!(V, int, string, double) the resulting // declaration would be:

Re: Recursive template

2014-11-15 Thread anonymous via Digitalmars-d-learn
On Saturday, 15 November 2014 at 18:30:00 UTC, Eric wrote: Hi - I've never designed a recursive template before, but I think that would solve my problem. What I would like is someting like this: class X(V, K...) { // I want to declare a type based on K and V such // that for X!(V,

Re: Recursive template

2014-11-15 Thread Eric via Digitalmars-d-learn
Thanks! -Eric On Saturday, 15 November 2014 at 18:49:32 UTC, anonymous wrote: On Saturday, 15 November 2014 at 18:30:00 UTC, Eric wrote: Hi - I've never designed a recursive template before, but I think that would solve my problem. What I would like is someting like this: class X(V,

Mixed Language Programming - e**x crashes

2014-11-15 Thread R**3 via Digitalmars-d-learn
Programming old-timer (but D newbie) with an interesting problem. Have been doing some playing around with D (DMD v2.066.0) calling FORTRAN. Asked at the SilverFrost FTN95 Support Forum, kicked some ideas around, no differences. I realize that a definitive answer will be difficult since I

Howto use an alternative Linker with DUB?

2014-11-15 Thread univacc via Digitalmars-d-learn
Hi, I am sitting in front of this problems for hours now and I need help: I need the a linker that is capable of delayed DLL loading and apparently, OPTLINK does not provide this option. unilink and Microsofts incremental linker support it so I would like to use one of them but I cannot

Calling to!string with null std.typecons.Rebindable results in segfault

2014-11-15 Thread ZombineDev via Digitalmars-d-learn
Hi guys! I'm implementing a mixin for sinking the values of all class members which can be used like this: class MyFancyClassWithAlotOfMembers { // Many members here... void toString(scope void delegate(const(char)[]) sink) const { import utils.prettyPrint;

Re: How to use Linux message queues?

2014-11-15 Thread Neven via Digitalmars-d-learn
On Saturday, 15 November 2014 at 12:04:45 UTC, Gary Willoughby wrote: On Saturday, 15 November 2014 at 00:33:02 UTC, Neven wrote: Ok, I've tried to make a module, though since I'm a D beginner (also a student who fiddles with D for Operating system classes) Incidentally, where are you

How do I disable implicit struct constructor calls (and is that a good idea)?

2014-11-15 Thread Max Marrone via Digitalmars-d-learn
I was surprised to find that single-parameter struct constructors can be called implicitly: struct Foo { string s; this(string s) { this.s = s; } } void main() { Foo foo = bar; // Here. assert(foo.s == bar); } I don't believe this syntax makes sense for my

Re: Recursive template

2014-11-15 Thread Chris Nicholson-Sauls via Digitalmars-d-learn
Slightly simpler: struct SomeType(K, V) {} alias X(V) = V; alias X(V, K...) = SomeType!(K[0], X!(V, K[1 .. $])); That's a recurring pattern to get used to: aliasing away to one of the parameters in a terminal and/or degenerate case. Also: that an empty tuple matches no parameter

[Issue 4113] std.typetuple, std.typecons, TypeTuple, Tuple, tuple names

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4113 --- Comment #5 from Nick Treleaven ntrel-...@mybtinternet.com --- https://github.com/D-Programming-Language/phobos/pull/2687 (WIP) --

[Issue 13736] New: Spellchecker should prefer symbols from inner scopes

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13736 Issue ID: 13736 Summary: Spellchecker should prefer symbols from inner scopes Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Keywords:

[Issue 13736] Spellchecker should prefer symbols from inner scopes

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13736 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added Keywords||pull --- Comment #1

[Issue 5621] speller.c: implement type inference in speller suggestion

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5621 Iain Buclaw ibuc...@gdcproject.org changed: What|Removed |Added Summary|speller.c: enhancement |speller.c: implement type

[Issue 13736] Spellchecker should prefer symbols from inner scopes

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13736 Iain Buclaw ibuc...@gdcproject.org changed: What|Removed |Added CC||ibuc...@gdcproject.org

[Issue 13735] Tests for dmd#3998 start fails after 2014-11-09 on FreeBSD without obvious reasons.

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13735 Igor Stepanov wazar.leoll...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 13737] New: Scope import in template do not work with function parameters.

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13737 Issue ID: 13737 Summary: Scope import in template do not work with function parameters. Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 13737] Scope import do not work with function parameters in template.

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13737 Илья Ярошенко ilyayaroshe...@gmail.com changed: What|Removed |Added Summary|Scope import in template do |Scope import do not

[Issue 13737] Scope import do not work with function parameters in template.

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13737 --- Comment #1 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/eec74c83a29ed6f4b8ca30527e18bf31e68f124e std.numeric: clean

[Issue 4421] Union propagates copy constructors and destructors over all members

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4421 --- Comment #6 from Walter Bright bugzi...@digitalmars.com --- https://github.com/D-Programming-Language/dmd/pull/4144 --

[Issue 4421] Union propagates copy constructors and destructors over all members

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4421 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Keywords||spec --- Comment #7

[Issue 13694] Typesafe variadic function template overload fails to match to any template

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13694 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, rejects-valid

[Issue 13675] enum type used with template causes compiler to segfault

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13675 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 13675] enum type used with template causes compiler to segfault

2014-11-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13675 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/161c7980d4605e2bd0937f7cb7b9470029f5a843 fix Issue 13675 - enum type