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
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
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
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
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
[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();
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
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
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
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
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:
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
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
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:
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
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
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
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)
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:
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
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
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.
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!
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
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
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
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
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 -
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
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.
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 :)
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?
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
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]);
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
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
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:
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,
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,
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
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
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;
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
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
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
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)
--
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:
https://issues.dlang.org/show_bug.cgi?id=13736
Rainer Schuetze r.sagita...@gmx.de changed:
What|Removed |Added
Keywords||pull
--- Comment #1
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
https://issues.dlang.org/show_bug.cgi?id=13736
Iain Buclaw ibuc...@gdcproject.org changed:
What|Removed |Added
CC||ibuc...@gdcproject.org
https://issues.dlang.org/show_bug.cgi?id=13735
Igor Stepanov wazar.leoll...@yahoo.com changed:
What|Removed |Added
Status|NEW |RESOLVED
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
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
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
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
--
https://issues.dlang.org/show_bug.cgi?id=4421
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Keywords||spec
--- Comment #7
https://issues.dlang.org/show_bug.cgi?id=13694
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull, rejects-valid
https://issues.dlang.org/show_bug.cgi?id=13675
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
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
59 matches
Mail list logo