On Friday, 24 November 2017 at 05:34:14 UTC, Adam Wilson wrote:
RAII+stack allocations make sense when I care about WHEN an
object is released and wish to provide some semblance of
control over deallocation (although as Andrei has pointed out
numerous time, you have no idea how many objects
On Thursday, 23 November 2017 at 20:11:01 UTC, singingbush wrote:
Hi all. A new release intellij-dlanguage plugin has been made
available for download from the Jetbrains repository this week.
There is also support for debugging with GDB (since v1.14 1st
Nov). We need to completely overhaul
On Friday, 24 November 2017 at 06:13:59 UTC, Mike Parker wrote:
On Friday, 24 November 2017 at 05:36:52 UTC, codephantom wrote:
btw. I read somewhere that this forum software can't delete
threads. That sounds pretty silly. Even sillier if it's true.
The forum software is a frontend for a
On Friday, 24 November 2017 at 05:36:52 UTC, codephantom wrote:
btw. I read somewhere that this forum software can't delete
threads. That sounds pretty silly. Even sillier if it's true.
The forum software is a frontend for a newsgroup server, which
also backs a mailing list. Although it
On Friday, 24 November 2017 at 05:34:14 UTC, Adam Wilson wrote:
On 11/23/17 13:40, Ola Fosheim Grøstad wrote:
On Thursday, 23 November 2017 at 20:13:31 UTC, Adam Wilson
wrote:
I would focus on a generational GC first for two reasons. The
But generational GC only makes sense if many of your
On Friday, 24 November 2017 at 04:33:52 UTC, Walter Bright wrote:
These posts have nothing to do with D, so please stop posting
them. This isn't a political forum.
Also, perhaps you could delegate the policing of off topic
threads to someone else..??
We could all use your attention
On 11/23/17 13:40, Ola Fosheim Grøstad wrote:
On Thursday, 23 November 2017 at 20:13:31 UTC, Adam Wilson wrote:
I would focus on a generational GC first for two reasons. The
But generational GC only makes sense if many of your GC objects have a
short life span. I don't think this fits well
On Thursday, 23 November 2017 at 20:11:01 UTC, singingbush wrote:
Hi all. A new release intellij-dlanguage plugin has been made
available for download from the Jetbrains repository this week.
The speed at which features and bug fixes are being done has
picked up recently. We've had 4 releases
On Friday, 24 November 2017 at 05:01:17 UTC, Basile B. wrote:
On Friday, 24 November 2017 at 00:17:31 UTC, codephantom wrote:
On Wednesday, 22 November 2017 at 15:10:40 UTC, Oleg B wrote:
If I add -noboundscheck flag all works fine.
dmd version is 2.076.1
Why -betterC flag not 'include'
bauss wrote:
On Thursday, 23 November 2017 at 12:18:38 UTC, ketmar wrote:
recently i worked on remake of DOS remake of Konami's Knightmare
game[0]. the game is playable now, it has music from original MSX
Knightmare, and sfx/gfx/levels from DOS remake. it is written in D, of
course, and it
On Friday, 24 November 2017 at 00:17:31 UTC, codephantom wrote:
On Wednesday, 22 November 2017 at 15:10:40 UTC, Oleg B wrote:
If I add -noboundscheck flag all works fine.
dmd version is 2.076.1
Why -betterC flag not 'include' -noboundscheck flag?
It's bug or in some cases it's useful?
On Thursday, 23 November 2017 at 12:18:38 UTC, ketmar wrote:
recently i worked on remake of DOS remake of Konami's
Knightmare game[0]. the game is playable now, it has music from
original MSX Knightmare, and sfx/gfx/levels from DOS remake. it
is written in D, of course, and it is FOSS. you can
On Friday, 24 November 2017 at 04:33:52 UTC, Walter Bright wrote:
These posts have nothing to do with D, so please stop posting
them. This isn't a political forum.
Are you going to go through every other thread, and post the same
comment?
This thread was off topic to begin with.
On Friday, 24 November 2017 at 03:07:57 UTC, Indigo wrote:
If you believe any of our "leaders" are actually leading this
country in the right direction(regardless of party) then you
are an imbecile. I hope you don't believe that. Those that
think Trump is president material are morons. Those
These posts have nothing to do with D, so please stop posting them. This isn't a
political forum.
On Friday, 24 November 2017 at 02:18:09 UTC, codephantom wrote:
On Friday, 24 November 2017 at 01:26:49 UTC, Indigo wrote:
Yes, there are good people, what you fail to realize is that
there are very few running the show.
So that's the purpose of having a democracy. You get to say who
runs
On Friday, 24 November 2017 at 01:26:49 UTC, Indigo wrote:
Yes, there are good people, what you fail to realize is that
there are very few running the show.
So that's the purpose of having a democracy. You get to say who
runs the show ;-)
If (majority) people wanted Trump running the
On Friday, 24 November 2017 at 01:26:49 UTC, Indigo wrote:
On Thursday, 23 November 2017 at 05:08:39 UTC, codephantom
wrote:
[...]
That's good, Australians are known for being hot headed! ;) j/k
[...]
I am working on draining the swamp. You seem like you are
already tired of winning.
On Thursday, 23 November 2017 at 05:08:39 UTC, codephantom wrote:
On Thursday, 23 November 2017 at 04:13:33 UTC, Indigo wrote:
Wow, no need to get offended
Actually, I was not at all offended.
And we always find it kind of humorous, how people around the
world view Australia. We don't
https://issues.dlang.org/show_bug.cgi?id=17997
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/bcae082b71508c1f661e71b8ccc7a0868ec24825
fix Issue 17997 - autotester's d_do_test has strange failures
https://issues.dlang.org/show_bug.cgi?id=17997
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
On Wednesday, 22 November 2017 at 15:10:40 UTC, Oleg B wrote:
If I add -noboundscheck flag all works fine.
dmd version is 2.076.1
Why -betterC flag not 'include' -noboundscheck flag?
It's bug or in some cases it's useful?
Interestingly, ldc2 will compile this ok, without the
-noboundscheck
On Wednesday, 22 November 2017 at 10:20:49 UTC, Jonathan M Davis
wrote:
LOL. I assumed that you were legitimately asking what the name
of his compiler was, because I knew that he was writing a D
compiler, whereas you were questioning his
knowledge/credentials. Timon is a very smart guy. He
On Wednesday, 22 November 2017 at 18:16:16 UTC, Wyatt wrote:
Perhaps that's why I've never considered nulls to be an issue.
I take proactive steps to protect my code, before the compiler
ever sees it. And actually, I cannot recall any null related
error in any code I've deployed. It's just
On Thursday, 23 November 2017 at 20:13:31 UTC, Adam Wilson wrote:
I would focus on a generational GC first for two reasons. The
But generational GC only makes sense if many of your GC objects
have a short life span. I don't think this fits well with
sensible use of a language like D where
https://issues.dlang.org/show_bug.cgi?id=15542
--- Comment #5 from Jonathan M Davis ---
(In reply to ag0aep6g from comment #4)
> Note that the test code still compiles even when you add `@safe`. Void
> initialization of value types is considered `@safe`.
Hmmm. I'm
On 11/23/17 02:47, Nordlöw wrote:
On Wednesday, 22 November 2017 at 13:44:22 UTC, Nicholas Wilson wrote:
Thats a linker(?) limitation for OMF (or whatever is the win32 object
file format).
Was just fixed!
What improvements to D's concurrency model is made possible with this
precise GC?
I
Hi all. A new release intellij-dlanguage plugin has been made
available for download from the Jetbrains repository this week.
The speed at which features and bug fixes are being done has
picked up recently. We've had 4 releases this month alone. It
would be really helpful if there are any
On Thursday, 23 November 2017 at 14:16:25 UTC, Andrea Fontana
wrote:
On Thursday, 23 November 2017 at 13:47:37 UTC, Adam D. Ruppe
wrote:
On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote:
for instance in kotlin it can be replace with this:
when {
c1 -> foo(),
c2 -> bar(),
On Thursday, 23 November 2017 at 14:16:25 UTC, Andrea Fontana
wrote:
On Thursday, 23 November 2017 at 13:47:37 UTC, Adam D. Ruppe
wrote:
On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote:
for instance in kotlin it can be replace with this:
when {
c1 -> foo(),
c2 -> bar(),
On 2017-11-23 17:06, Adam D. Ruppe wrote:
I know we have the extern(Objective-C) stuff from
https://wiki.dlang.org/DIP43 now, but do we have existing bindings
anywhere along the lines of the win32 ones we can just import and start
calling the operating system functions?
Not as far as I know.
https://issues.dlang.org/show_bug.cgi?id=15542
ag0ae...@gmail.com changed:
What|Removed |Added
CC||ag0ae...@gmail.com
--- Comment #4 from
23.11.2017 17:16, Andrea Fontana пишет:
On Thursday, 23 November 2017 at 13:47:37 UTC, Adam D. Ruppe wrote:
On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote:
for instance in kotlin it can be replace with this:
when {
c1 -> foo(),
c2 -> bar(),
c3 -> ...
else ->
https://issues.dlang.org/show_bug.cgi?id=15542
Jonathan M Davis changed:
What|Removed |Added
CC|
On Thursday, 23 November 2017 at 16:14:50 UTC, Guillaume Piolat
wrote:
Perhaps https://github.com/p0nce/DerelictCocoa
Well, that would be one option, though I was hoping to avoid the
extern(C) runtime stuff and dynamic loading - ideally, I want
something with the extern(Objective-C) stuff
On Thursday, 23 November 2017 at 13:31:23 UTC, Vadim Lopatin
wrote:
There is no such feature currently, but it can be added easy.
In the meantime I should call OpenGL (I think it's the backend in
my case) directly, correct?
On Thursday, 23 November 2017 at 16:06:28 UTC, Adam D. Ruppe
wrote:
I know we have the extern(Objective-C) stuff from
https://wiki.dlang.org/DIP43 now, but do we have existing
bindings anywhere along the lines of the win32 ones we can just
import and start calling the operating system
I know we have the extern(Objective-C) stuff from
https://wiki.dlang.org/DIP43 now, but do we have existing
bindings anywhere along the lines of the win32 ones we can just
import and start calling the operating system functions?
Moreover, I'm not a Mac dev; I've never actually done so much of
On Thursday, 23 November 2017 at 15:45:17 UTC, Rene Zwanenburg
wrote:
On Thursday, 23 November 2017 at 15:26:03 UTC, Timoses wrote:
A aaa = a;
That's initialization, not assignment, which is subtly
different. It will call the postblit on aaa instead of
opAssign. A postblit can be
On Thursday, 23 November 2017 at 15:26:03 UTC, Timoses wrote:
A aaa = a;
That's initialization, not assignment, which is subtly different.
It will call the postblit on aaa instead of opAssign. A postblit
can be defined this way:
this(this)
{
}
There is no way to access the original a
On Thursday, 23 November 2017 at 15:26:03 UTC, Timoses wrote:
A member;
this(A a)
{
this.member = a; // specifically aiming towards this
assignment...
That's not assignment, that's construction.
opAssign is only called when you assign over a struct object that
already
On Thursday, 23 November 2017 at 10:15:26 UTC, Nordlöw wrote:
I'm looking at
http://vibed.org/api/vibe.core.concurrency/makeIsolated
which is a great idea for safe inter-thread communication.
Are there any more usage examples for vibe's worker tasks that
show how to send instances of
What am I missing?
import std.stdio;
struct A
{
int value;
A opAssign(A a)
{
writeln(" Assigning");
return this; // I know this makes little
sense, just for illustration
}
}
class B
{
A member;
this(A a)
{
this.member = a; //
On Thursday, 23 November 2017 at 14:47:21 UTC, aberba wrote:
Some suggest working with the lowest currency denomination to
avoid decimal precision handling and only convert to the
highest denominations (decimal) when displaying. I've also seen
some use decimal value handling libraries.
I'm
On Thursday, 23 November 2017 at 08:47:43 UTC, codephantom wrote:
Many high level languages let you use 'unsafe' code, where you
can write erroneous operations - and then you're back in the
world of undefined behaviour.
Not many, but many allow interfacing with C, then it is up to
those user
Some suggest working with the lowest currency denomination to
avoid decimal precision handling and only convert to the highest
denominations (decimal) when displaying. I've also seen some use
decimal value handling libraries.
I'm thinking lowest denominations will result in extremely large
Martin Drašar wrote:
Neat! Instead of working, I was spamming shift like crazy...
glad that you liked it! this little thingy is very addictive. ;-)
Now, when you say a partial port, did you make some automated
translation or it is just a manual labor with lotta love?
fully manual work. ah,
On Thursday, 23 November 2017 at 13:47:37 UTC, Adam D. Ruppe
wrote:
On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote:
for instance in kotlin it can be replace with this:
when {
c1 -> foo(),
c2 -> bar(),
c3 -> ...
else -> someDefault()
}
The `switch` statement
https://issues.dlang.org/show_bug.cgi?id=17966
greenify changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Dne 23.11.2017 v 13:18 ketmar via Digitalmars-d-announce napsal(a):
> recently i worked on remake of DOS remake of Konami's Knightmare
> game[0]. the game is playable now, it has music from original MSX
> Knightmare, and sfx/gfx/levels from DOS remake. it is written in D, of
> course, and it is
On Thursday, 23 November 2017 at 11:35:18 UTC, Skuzzi wrote:
typedef void (__stdcall* _function) (const char *text);
I want to do this in D. I understand that D uses "extern (C)"
and does away with specifying calling conventions. However, how
does D know the calling convention required? What
On Thu, 23 Nov 2017 01:08:45 +, codephantom wrote:
> So yeah, you can change the language.. or you can change the way people
> think about their code. When they think differently, their code will
> change accordingly.
>
> My point about sophisticated IDE's and AI like compilers, is that they
https://issues.dlang.org/show_bug.cgi?id=5727
RazvanN changed:
What|Removed |Added
Status|NEW |RESOLVED
On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote:
for instance in kotlin it can be replace with this:
when {
c1 -> foo(),
c2 -> bar(),
c3 -> ...
else -> someDefault()
}
The `switch` statement covers some of these cases too.
Hi!
I need to send Publish struct from
https://github.com/tchaloupka/vibe-mqtt to another vibe.d task.
And there is the problem. First of all, I can't make it immutable
because send() wants to mutate it. I can't send local copy
because of "Aliases to mutable thread-local data not allowed.".
On Tuesday, 21 November 2017 at 13:45:31 UTC, Dukc wrote:
I am using the DrawRescaled method of DrawBuf[1] of DLangUI To
draw a PNG image to a CanvasWidget[2] subclass. It has a minor
issue of the box bounds showing in area that shoud be
transparent but otherwise works well.
My question is,
On Thursday, 23 November 2017 at 13:09:09 UTC, Petar Kirov
[ZombineDev] wrote:
On Thursday, 23 November 2017 at 13:06:14 UTC, Petar Kirov
[ZombineDev] wrote:
On Thursday, 23 November 2017 at 12:04:05 UTC, Nicholas Wilson
wrote:
On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak
wrote:
On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak wrote:
First beta for the 2.077.1 point release.
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.077.1.html
Please report any bugs at https://issues.dlang.org
- -Martin
FreeBSD binaries too. I love it!
On Thursday, 23 November 2017 at 12:05:53 UTC, aberba wrote:
When you analyse those points mentioned above you realise that
things are happening exactly. For a writing of almost 2000
years ago.
The writing you mention, can be said to be true for pretty much
any epoch in the evolution of
On Thursday, 23 November 2017 at 13:06:14 UTC, Petar Kirov
[ZombineDev] wrote:
On Thursday, 23 November 2017 at 12:04:05 UTC, Nicholas Wilson
wrote:
On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak
wrote:
First beta for the 2.077.1 point release.
On Thursday, 23 November 2017 at 12:04:05 UTC, Nicholas Wilson
wrote:
On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak
wrote:
First beta for the 2.077.1 point release.
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.077.1.html
Please report any bugs at
recently i worked on remake of DOS remake of Konami's Knightmare game[0].
the game is playable now, it has music from original MSX Knightmare, and
sfx/gfx/levels from DOS remake. it is written in D, of course, and it is
FOSS. you can find the sources here[1].
as usual, you'll need my IV
On Wednesday, 22 November 2017 at 10:24:52 UTC, Indigo wrote:
On Saturday, 18 November 2017 at 08:59:53 UTC, Satoshi wrote:
On Saturday, 18 November 2017 at 01:31:09 UTC, Indigo wrote:
On Wednesday, 15 November 2017 at 17:32:50 UTC, Satoshi wrote:
Hi,
as the title says, I'm looking for a job
On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak wrote:
First beta for the 2.077.1 point release.
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.077.1.html
Please report any bugs at https://issues.dlang.org
- -Martin
Issue 17966 is a phobos bug. Why are
On 11/02/2017 09:43 AM, Basile B. wrote:
> On Monday, 30 October 2017 at 11:12:29 UTC, Basile B. wrote:
>> On Saturday, 28 October 2017 at 23:21:56 UTC, Martin Nowak wrote:
>>> First release candidate for 2.077.0.
>>>
>>> The OMF Windows API import libraries were updated, a bug in
>>> std.bigint
On 23/11/2017 11:35 AM, Skuzzi wrote:
Hi, I am new to D and I want to use it to create some tools that call
certain functions from the process of a game, using an injected DLL
written in D. I have reverse engineered the addresses and arguments of
the function. Typically this kind of stuff is
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
First beta for the 2.077.1 point release.
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.077.1.html
Please report any bugs at https://issues.dlang.org
- -Martin
-BEGIN PGP SIGNATURE-
https://issues.dlang.org/show_bug.cgi?id=16347
RazvanN changed:
What|Removed |Added
Status|NEW |RESOLVED
Hi, I am new to D and I want to use it to create some tools that
call certain functions from the process of a game, using an
injected DLL written in D. I have reverse engineered the
addresses and arguments of the function. Typically this kind of
stuff is done with C++ and almost all the
On Thursday, 16 November 2017 at 02:36:34 UTC, JamesD wrote:
On Wednesday, 15 November 2017 at 07:19:17 UTC, Mike Parker
wrote:
On Tuesday, 14 November 2017 at 11:33:44 UTC, Mike James wrote:
Has there been any progress on this matter? The snippets
still don't compile with the latest
https://issues.dlang.org/show_bug.cgi?id=18005
radu.raca...@gmail.com changed:
What|Removed |Added
CC||radu.raca...@gmail.com
--- Comment
On Thursday, 23 November 2017 at 10:15:26 UTC, Nordlöw wrote:
I'm looking at
http://vibed.org/api/vibe.core.concurrency/makeIsolated
which is a great idea for safe inter-thread communication.
Are there any more usage examples for vibe's worker tasks that
show how to send instances of
On Wednesday, 22 November 2017 at 13:44:22 UTC, Nicholas Wilson
wrote:
Thats a linker(?) limitation for OMF (or whatever is the win32
object file format).
Was just fixed!
What improvements to D's concurrency model is made possible with
this precise GC?
I recall Martin Nowak saying at DConf
On Thursday, 23 November 2017 at 10:15:26 UTC, Nordlöw wrote:
I'm looking at
http://vibed.org/api/vibe.core.concurrency/makeIsolated
Further, what does "weakly isolated" mean here
http://vibed.org/api/vibe.core.core/runWorkerTask
?
https://issues.dlang.org/show_bug.cgi?id=16275
RazvanN changed:
What|Removed |Added
Status|NEW |RESOLVED
I'm looking at
http://vibed.org/api/vibe.core.concurrency/makeIsolated
which is a great idea for safe inter-thread communication.
Are there any more usage examples for vibe's worker tasks that
show how to send instances of `Isolated` to an existing such
worker task via some low-latency
https://issues.dlang.org/show_bug.cgi?id=16520
RazvanN changed:
What|Removed |Added
Status|NEW |RESOLVED
On 2017-11-23 01:35, Jonathan M Davis wrote:
It would make sense with something like the nodes of a linked list if they
needed access to the container for some reason. Pretty much any case where a
an instance of a nested class is going to be associated with a specific
instance of its parent
On 2017-11-22 22:41, Walter Bright wrote:
For another example, unreferenced virtual functions never get elided
because a reference to them does exist - they're in the virtual function
pointer table. And then, of course, everything that virtual function
references is never elided.
Yeah,
On Thursday, 23 November 2017 at 07:20:41 UTC, Ola Fosheim
Grostad wrote:
On Thursday, 23 November 2017 at 01:16:59 UTC, codephantom
wrote:
That's why we have the concept of 'undefined behaviour'.
Errr, no. High level programming languages don't have
undefined behaviour. That is a C concept
On Thursday, 23 November 2017 at 07:13:37 UTC, Ola Fosheim
Grostad wrote:
Heh, has the Goldbach conjecture been proven undecidable?
Not to my knowledge ;-)
At best, it's a possiblity - which can go either way.
No human or computer will ever make it anything more than that.
Ever.
Someone
On Thursday, 23 November 2017 at 08:27:54 UTC, Andrea Fontana
wrote:
On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote:
Hello, is there way to reduce this condition:
if (c1) {
foo();
} else {
if (c2) {
bar();
} else {
if (c3) {
...
}
}
23.11.2017 09:33, Tim Hsu пишет:
DCD and DMD says that the symbol is undefined!
However, I look into derelichtGLFW3. It has this symbol defined!
It looks like a bug for me!
DerelictGLFW3 has this symbol, but it does not define it, it should be
defined in shared/dynamic library you use. I
On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote:
Hello, is there way to reduce this condition:
if (c1) {
foo();
} else {
if (c2) {
bar();
} else {
if (c3) {
...
}
}
}
for instance in kotlin it can be replace with this:
when {
c1
https://issues.dlang.org/show_bug.cgi?id=18007
Saanvi Sharma changed:
What|Removed |Added
Keywords||C++
--
https://issues.dlang.org/show_bug.cgi?id=18007
Issue ID: 18007
Summary: Enforcing immutability
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
https://issues.dlang.org/show_bug.cgi?id=15542
RazvanN changed:
What|Removed |Added
CC|
87 matches
Mail list logo