On Tuesday, 22 November 2016 at 16:57:28 UTC, kink wrote:
I hate this 'idiom' too (just a clumsy workaround for something
that should work out of the box), but the non-bindability of
rvalues to ref params and the associated dispute is veeery old,
nothing new, so I don't agree that the
On Monday, 21 November 2016 at 20:04:51 UTC, Ali Çehreli wrote:
Let me know if it's not the equivalent of the original.
Ali
I've changed the idiom, thanks. The place to discuss this is the
d-idioms bugtracker, else I would have skipped this message.
On Sunday, 20 November 2016 at 22:36:12 UTC, Chainingsolid wrote:
I'm making an rts so the client/server model would require very
unrealistic bandwidth, hence the lock step peer to peer system.
Indeed, peer to peer require determinism I guess.
On Sunday, 20 November 2016 at 19:12:06 UTC, Chainingsolid wrote:
I planning out a game that has to use a lock step, peer to peer
networking model to achieve multiplayer, and thus I need to
have any floating point used produce the exact same results, no
matter what, aka be completely
On Friday, 4 November 2016 at 14:55:27 UTC, Guillaume Piolat
wrote:
On Thursday, 3 November 2016 at 18:54:14 UTC, Gary Willoughby
wrote:
What is the simplest way of doing @nogc string concatenation?
I use sprintf + zero-terminated strings (or a RAII struct to
convert slices to ZT strings).
On Thursday, 3 November 2016 at 18:54:14 UTC, Gary Willoughby
wrote:
What is the simplest way of doing @nogc string concatenation?
I use sprintf + zero-terminated strings (or a RAII struct to
convert slices to ZT strings).
On Friday, 28 October 2016 at 13:37:55 UTC, Basile B. wrote:
I would need actually something like
https://github.com/CouscousPHP/Couscous but in D.
You can easily make a custom SSG with
https://github.com/kiith-sa/dmarkdown
On Friday, 28 October 2016 at 11:50:20 UTC, hardreset wrote:
On Thursday, 27 October 2016 at 07:52:09 UTC, Guillaume Piolat
wrote:
On Wednesday, 26 October 2016 at 08:18:07 UTC, hardreset wrote:
Is there a page somewhere on how to program D without using
the GC?
The information is scattered.
On Wednesday, 26 October 2016 at 08:18:07 UTC, hardreset wrote:
Is there a page somewhere on how to program D without using the
GC?
The information is scattered.
How do I allocate / free structs / classes on the heap manually?
Classes =>
On Monday, 10 October 2016 at 21:12:42 UTC, Martin Lundgren wrote:
So what's been happening in memory management land lately? Bad
GC seems like one of the Dlangs weak points, so showing
improvements here could definitely bring more people in.
It's not that the D GC is bad per se, but rather
On Friday, 30 September 2016 at 07:36:58 UTC, Jacob Carlborg
wrote:
Yeah, that would be nice. Would it be interesting to have "dmd"
point to "ldmd2" when LDC is selected as the current compiler?
Or is that just confusing.
Confusing. For me it's much more common to want a current DMD
On Thursday, 29 September 2016 at 06:24:08 UTC, Jacob Carlborg
wrote:
On 2016-09-29 03:43, David Nadlinger wrote:
Jacob is also the author of DVM, so he might be a bit biased.
;)
And you would never recommend LDC? ;)
More or less related: it would be nice if DVM supports LDC
fetching and
On Wednesday, 28 September 2016 at 09:34:23 UTC, Mike Parker
wrote:
Use the DMD installer instead on dlang.org
Any particular reason? I've been using homebrew for it. I like
the simple command line update.
Not really.
I didn't know it was up-to-date. Las time I tried it wasn't
up-to-date
On Wednesday, 28 September 2016 at 08:18:40 UTC, Joel wrote:
I'm thinking using home brew.
Use the DMD installer instead on dlang.org
On Sunday, 25 September 2016 at 16:23:11 UTC, Matthias Klumpp
wrote:
Hello!
I am working together with others on the D-based
appstream-generator[1] project, which is generating software
metadata for "software centers" and other package-manager
functionality on Linux distributions, and is used
Hi,
Interesting question, so I took your examples and made them do
the same thing with regards to allocation (using malloc instead
of new in both languages).
I removed the stopwatch to use "time" instead.
Now the programs should do the very same thing. Will they be as
fast too?
D code:
On Monday, 19 September 2016 at 17:42:51 UTC, A D dev wrote:
Hi list,
What blogs about D do you read?
Thanks in advance.
https://dlang.org/blog/
http://dblog.aldacron.net/
http://minas-mina.com/
http://nomad.so/tag/d/
http://blog.thecybershadow.net/
https://p0nce.github.io/d-idioms/
On Sunday, 18 September 2016 at 15:40:09 UTC, Basile B. wrote:
Hello, I'm sure it was working last time I've tried (I can't
say when, maybe > 6 months). I'm on linux x86_64, GDB 7.8
If I send to GDB "break _d_assert" it will break correctly on
"assert(false);" so I can jump over. But the
On Thursday, 15 September 2016 at 22:03:12 UTC, Patric Dexheimer
wrote:
LLVM D compiler (1a7070): based on DMD v2.071.2-b2 and LLVM
3.9.0git-fbbabf3
command: dub run --build=release --arch=x86_64
--compiler=D:/ldc/bin/ldc2.exe
Output:
Performing "release" build using D:/ldc/bin/ldc2.exe
On Wednesday, 14 September 2016 at 10:56:57 UTC, llaine wrote:
No PaaS service, but you can pretty simply use Heroku to deploy
any vibe.d application.
Check the tour.dlang.io
http://tour.dlang.io/tour/en/vibed/deploy-on-heroku where
everything is explained :)
Thanks!
On Wednesday, 14 September 2016 at 09:40:47 UTC, wobbles wrote:
On Wednesday, 14 September 2016 at 09:01:11 UTC, Guillaume
Piolat wrote:
Is there vibe.d hosting sold anywhere?
Not that I know, but any VPS you rent would be capable of
hosting it.
I guess you don't want to deal with all of
Is there vibe.d hosting sold anywhere?
On Monday, 5 September 2016 at 17:25:45 UTC, Tofu Ninja wrote:
I can build directly from dub with no problem, but building
from VS gives that error.
Building with dub uses the dmd settings in sc.ini
Building with VisualD can override those settings.
On Monday, 5 September 2016 at 05:14:56 UTC, Nicholas Wilson
wrote:
On Saturday, 3 September 2016 at 17:13:49 UTC, Darren wrote:
Now I wonder if I can load shaders from separate files (à la
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/).
see:
On Thursday, 1 September 2016 at 10:38:07 UTC, qznc wrote:
On Thursday, 1 September 2016 at 10:30:12 UTC, Guillaume Piolat
wrote:
On Thursday, 1 September 2016 at 07:46:04 UTC, qznc wrote:
I find the documentation on MemoryOrder lacking about the
semantics of rel. :(
[0]
On Thursday, 1 September 2016 at 07:46:04 UTC, qznc wrote:
I find the documentation on MemoryOrder lacking about the
semantics of rel. :(
[0] https://dlang.org/library/core/atomic/memory_order.html
What helped me was to read std::memory_order documentation
On Tuesday, 16 August 2016 at 16:40:30 UTC, Adam D. Ruppe wrote:
On Tuesday, 16 August 2016 at 16:29:18 UTC, Guillaume Piolat
wrote:
Hey, I also stumbled upon this with imageformats decoding PNG.
Image loading makes 10x the garbage it should.
Let's see what this threads unveils...
leet me
On Sunday, 21 August 2016 at 16:14:53 UTC, Zane wrote:
Hey all,
My knowledge of GCs is limited, but my faith in them (for most
applications) has greatly increased with advances (like with
Golang's recent updates). I am now trying to get a better sense
for the direction D is going regarding
On Tuesday, 16 August 2016 at 16:40:30 UTC, Adam D. Ruppe wrote:
On Tuesday, 16 August 2016 at 16:29:18 UTC, Guillaume Piolat
wrote:
Hey, I also stumbled upon this with imageformats decoding PNG.
Image loading makes 10x the garbage it should.
Let's see what this threads unveils...
leet me
On Wednesday, 17 August 2016 at 10:45:01 UTC, Saurabh Das wrote:
Is there any way I can log to a terminal or a file from inside
an @nogc function?
Thanks,
Saurabh
import core.stdc.stdio;
printf("am logging C-style\n");
On Friday, 17 June 2016 at 02:55:43 UTC, thedeemon wrote:
On Friday, 17 June 2016 at 01:51:41 UTC, Joerg Joergonson wrote:
Hi, so, do you have any idea why when I load an image with
png.d it takes a ton of memory?
I've bumped into this previously. It allocates a lot of
temporary arrays for
On Monday, 15 August 2016 at 08:45:07 UTC, Tofu Ninja wrote:
So this is kind of an open ended question, just looking for
advice on doing it in general, if it's possible, and doing it
specifically in D on windows. I am not super familiar with how
shared libraries work so I had some questions.
On Tuesday, 16 August 2016 at 15:46:23 UTC, WhatMeWorry wrote:
I've got a large Visual Studio Solution which contains lots of
Projects. Each project is a standalone D/OpenGL tutorial. I
want to make it OS and IDE agnostic so it can be easily played
with on Windows, Linux, and Mac OS so I
On Friday, 12 August 2016 at 18:59:35 UTC, Guillaume Piolat wrote:
- Callback case:
You may have problems if one of the registered thread is
destroyed outside of your program and then the GC tries to stop
it though. For this reason if you are in the callback case you
can try to detach it on
On Friday, 12 August 2016 at 10:45:22 UTC, Cauterite wrote:
- Would having an entry function other than
core.thread.thread_entryPoint() pose problems?
No.
What about during stack unwinding?
It doesn't need runtime or attachment.
Should I try to replicate the exception handling code of
On Tuesday, 26 July 2016 at 15:11:00 UTC, llaine wrote:
why it isn't the "big thing" already.
1. Less easy to explain
A big selling point is that D is good in all directions, and
stupidly easy to apply in many situations.
That is a lot harder to explain that a simple value proposal like
On Wednesday, 22 June 2016 at 05:04:42 UTC, Tofu Ninja wrote:
Is this intended behavior? I can't seem to find it documented
anywhere, I would think the loss in precision would atleast be
a warning.
real x = 10;
float y = x; // No error or warning
real to double and double to float also work.
On Sunday, 19 June 2016 at 07:25:29 UTC, Tofu Ninja wrote:
On Friday, 17 June 2016 at 08:49:47 UTC, Tofu Ninja wrote:
Is there a way to generate a single visuald project file for
all dub configurations, selecting the configuration from the
visual studio configuration manager? Or do I have to
On Tuesday, 27 August 2013 at 19:50:03 UTC, luminousone wrote:
I was under the impression that the atomic spinlock has a lower
latency for any waiters, then a mutex when its unlocked?
I am using this for a temporary or depending on performance, a
perminate replacement for std.concurrency
On Thursday, 2 June 2016 at 06:28:51 UTC, Pie? wrote:
On Thursday, 2 June 2016 at 04:52:50 UTC, Mithun Hunsur wrote:
On Thursday, 2 June 2016 at 04:02:36 UTC, Pie? wrote:
Does anyone know if there is any Asio bindings or direct D
available that allows for IO?
Check out vibe.d:
On Wednesday, 1 June 2016 at 08:53:01 UTC, Rene Zwanenburg wrote:
I was wondering: what's the preferred method for deterministic
memory management?
You can annotate your functions as @nogc. The compiler will
disallow any potential GC use, including calling other
functions that are not
On Friday, 27 May 2016 at 12:26:19 UTC, Andrew Edwards wrote:
OPTLINK (R) for Win32 Release 8.00.17
Copyright (C) Digital Mars 1989-2013 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
sound.obj(sound)
Error 42: Symbol Undefined _DirectSoundCreate@12
On Friday, 27 May 2016 at 10:00:40 UTC, Era Scarecrow wrote:
On Friday, 27 May 2016 at 09:51:56 UTC, rikki cattermole wrote:
This is good progress. Using the assembler doesn't have many
documentation examples of how to do things, guess the x[ESP]
example was totally useless on the iasm page.
On Friday, 27 May 2016 at 09:44:47 UTC, Era Scarecrow wrote:
On Friday, 27 May 2016 at 09:39:36 UTC, Era Scarecrow wrote:
I suppose there's the requirement to have a register pointing
to this, which then would be mov EAX, this, and then add
lo[EAX], 1...
Nope, still hangs...
We can't know
On Friday, 27 May 2016 at 09:11:01 UTC, Era Scarecrow wrote:
Hmmm it just occurs to me I made a big assumption. I assumed
that if the CPU supports 64bit operations, that it would be
compiled to use 64bit registers when possible. I'm assuming
this is not the case. As such the tests I was doing
On Tuesday, 24 May 2016 at 15:27:45 UTC, llaine wrote:
The only bad point here is that I can't find a "Effective D"
page. A document that gives tips for writing clear, idiomatic D
code. A must read for any new D programmer. It augments the
tour and the language specification, both of which
On Sunday, 22 May 2016 at 14:04:48 UTC, ixid wrote:
On Sunday, 22 May 2016 at 12:55:47 UTC, Guillaume Piolat wrote:
On Sunday, 22 May 2016 at 12:13:07 UTC, ixid wrote:
What is the best OpenGL tutorial with D to use? I've tried to
use d-gamedev-intro and opengl-tutorials and seem to get
On Sunday, 22 May 2016 at 12:13:07 UTC, ixid wrote:
What is the best OpenGL tutorial with D to use? I've tried to
use d-gamedev-intro and opengl-tutorials and seem to get
errors, files that are no longer included are needed (dgl)? and
deprecation messages.
Not a tutorial by any means but
On Sunday, 22 May 2016 at 09:47:54 UTC, Era Scarecrow wrote:
On Sunday, 22 May 2016 at 09:39:45 UTC, Saurabh Das wrote:
On Sunday, 22 May 2016 at 09:07:32 UTC, Guillaume Piolat wrote:
https://github.com/d-gamedev-team/gfm/blob/master/integers/gfm/integers/wideint.d
wideint was exactly what I
On Sunday, 22 May 2016 at 07:35:32 UTC, Rusty wrote:
I know it's possible to do [explicit object
allocation](http://wiki.dlang.org/Memory_Management#Explicit_Class_Instance_Allocation) on the heap, but I find that quite cumbersome.
So.. is it possible to overload 'new' and 'delete' to not use
On Sunday, 22 May 2016 at 07:40:08 UTC, Nicholas Wilson wrote:
On Saturday, 21 May 2016 at 09:43:38 UTC, Saurabh Das wrote:
I see that 'cent' and 'ucent' are reserved for future use but
not yet implemented. Does anyone have a working implementation
of these types?
Alternatively, is there an
On Tuesday, 26 April 2016 at 09:07:59 UTC, Begah wrote:
I am trying to create an asset manager for my textures. I had
the idea ( it may be a wrong idea ) to create a hashmap of my
textures with a string as the key. When the program request a
texture, it firts check if it is in the hashmap and
On Monday, 14 March 2016 at 11:50:38 UTC, Rene Zwanenburg wrote:
It shouldn't make a difference for the resulting executable,
but compilation itself may be faster. I did a little test just
to be sure. Two DUB packages, one with:
module m;
string foo() { return "asdf"; }
And the other:
I'm cargo-culting the use of --combined with DUB because I
somehow think inlining will be better in this way. (For thos who
don't use DUB, what it does is compiling the whole program with a
single compiler invokation instead of making one static library
by package.)
But I've never measured
On Tuesday, 8 March 2016 at 18:11:24 UTC, John wrote:
* For this kind of implementation, is the Algebraic type a good
choice ? Is a simple union perhaps better ?
You can go with Algebraic. I used to do that in scheme-d. Then I
switched to a tagged union by hand to avoid a compiler
On Wednesday, 9 March 2016 at 13:12:18 UTC, Jonathan M Davis
wrote:
In general though, you should use pure wherever possible.
- Jonathan M Davis
Thanks for the detailed answer and gotchas.
It thought compilers would use pure in alias analysis to ensure
everything did not mutate during a
On Wednesday, 9 March 2016 at 10:08:33 UTC, ag0aep6g wrote:
On 09.03.2016 10:56, Guillaume Piolat wrote:
If I understand purity correctly
(http://klickverbot.at/blog/2012/05/purity-in-d/), every
function out
there can be marked pure as long as it doesn't modify globals,
shared
variables or
On Wednesday, 9 March 2016 at 09:56:05 UTC, Guillaume Piolat
wrote:
If I understand purity correctly
(http://klickverbot.at/blog/2012/05/purity-in-d/), every
function out there can be marked pure as long as it doesn't
modify globals, shared variables or do I/O?
It seems more function can be
If I understand purity correctly
(http://klickverbot.at/blog/2012/05/purity-in-d/), every function
out there can be marked pure as long as it doesn't modify
globals, shared variables or do I/O?
It seems more function can be marked pure that I previously
thought.
On Thursday, 25 February 2016 at 07:02:24 UTC, Ola Fosheim
Grøstad wrote:
On Wednesday, 24 February 2016 at 17:52:39 UTC, Guillaume
Piolat wrote:
Though it isn't fantastic aliasing-wise on the last octave, I
should try something than power-of-2s next time I need it.
Why would it help to not
On Thursday, 25 February 2016 at 14:01:30 UTC, Thalamus wrote:
I don't control the EXE itself and the code I write to
interface with it must be either C# or JavaScript, but this
repros with a test C# driver EXE as well. The interfacing C#
code can only be aware of the exposed D DLL functions
On Wednesday, 24 February 2016 at 14:02:49 UTC, Ola Fosheim
Grøstad wrote:
On Wednesday, 24 February 2016 at 10:33:56 UTC, Tanel Tagaväli
wrote:
Hello!
I've been making some progress on the native D audio front:
https://github.com/clinei/daud/tree/28ac042a16ae6785605a9a501b5f867c8f962055
It's
On Thursday, 18 February 2016 at 07:52:11 UTC, Joel wrote:
On Thursday, 18 February 2016 at 07:11:23 UTC, Joel wrote:
I had dub installed in a folder that meant I had to put 'sudo
dub' to run it. I've tried to fix the problem, but where do
you put it (also I tried one place, but couldn't put
On Sunday, 14 February 2016 at 13:23:28 UTC, Guillaume Piolat
wrote:
On Sunday, 14 February 2016 at 12:56:51 UTC, Vladde Nordholm
wrote:
I'm not sure of how to use alias efficiently, so I want to
know if I could somehow do this (psuedo-code)
class Singleton
{
//So instead of calling
On Sunday, 14 February 2016 at 12:56:51 UTC, Vladde Nordholm
wrote:
I'm not sure of how to use alias efficiently, so I want to know
if I could somehow do this (psuedo-code)
class Singleton
{
//So instead of calling `Singleton.getSingleton()` you just
call `Singleton`
alias this =
1. Can vibe.d handle HTTPS connections?
2. Can vibe.d "rewrite" HTTP connections to HTTPS?
3. Can vibe.d be put behind a nginx reverse proxy?
4. Can vibe.d send mails?
Sorry if these questions are a bit basic, the implied subtext is
"and does it work well?".
On Friday, 12 February 2016 at 13:00:30 UTC, Charles wrote:
1. Yes. Example:
https://github.com/rejectedsoftware/vibe.d/tree/master/examples/https_server
2. I'd do this with nginx. Example:
http://serverfault.com/a/337893
3. Yes.
4. Yes. Example:
On Saturday, 30 January 2016 at 01:17:13 UTC, Mike Parker wrote:
On Friday, 29 January 2016 at 19:46:40 UTC, Johannes Pfau wrote:
Now on windows, things are more complicated. First of all, I
can't seem
to simply use "libs": ["foo"] as the linker won't find the C
import .lib file. Then
On Tuesday, 26 January 2016 at 13:56:39 UTC, Igor wrote:
//ubyte[__traits(classInstanceSize, App)] buffer;
auto buffer =
core.stdc.stdlib.malloc(__traits(classInstanceSize,
App))[0..__traits(classInstanceSize, App)];
works, so it is the ubyte line.
Make sure the buffer
Is there a fancy way to have some kind of string interpolation in
D?
On Monday, 4 January 2016 at 23:15:22 UTC, Guillaume Piolat wrote:
Can someone produce a _useful_ free function that uses inout?
There are useful getters using inout.
There are useless free functions using inout like
http://dpaste.dzfl.pl/d038012308ed
Adam D. Ruppe answered this on IRC:
Can someone produce a _useful_ free function that uses inout?
There are useful getters using inout.
There are useless free functions using inout like
http://dpaste.dzfl.pl/d038012308ed
On Wednesday, 23 December 2015 at 19:22:01 UTC, Taylor Hillegeist
wrote:
Shouldn't there be like a common (interface/abstract class)
that these back-ends can fulfill? maybe I am unaware of how
these things are done. And perhaps there are performance
reasons that many of these are baked in.
On Thursday, 17 December 2015 at 11:50:02 UTC, drug wrote:
I have two implementation of the same algorithm - D and C++
(that is port of D version). I assume that running these
implementations on the same data should give the same results
from both. But with some data the results differ (5th
On Monday, 7 December 2015 at 22:19:17 UTC, Enjoys Math wrote:
On Monday, 7 December 2015 at 22:01:15 UTC, BLM768 wrote:
On Monday, 7 December 2015 at 21:33:57 UTC, Enjoys Math wrote:
I've seen these:
https://github.com/DerelictOrg?page=1
BUt not sure how to use them, examples?
OpenGL
On Saturday, 28 November 2015 at 10:40:19 UTC, Mike McKee wrote:
Does anyone have a demo that shows how I can call the native
OSX API to draw a basic window that's minimizable and can be
closed?
I was thinking of making an installer for the Mac, you see. So
for instance, people would
201 - 276 of 276 matches
Mail list logo