On 2/23/2015 4:01 PM, Namespace wrote:
On OSX you can load either legacy version of OpenGL so 1.x/2.x or
3.x+. Not both. I found this out for Devisualization.Window. Most
likely dgame by default is loading it in legacy mode.
Derelict GL is loading in legacy mode. You have to call 'reload'
https://issues.dlang.org/show_bug.cgi?id=12422
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Summary|Templated nested function |[REG2.055] Templated nested
On 23 February 2015 at 20:24, Jakob Ovrum via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On Monday, 23 February 2015 at 01:38:35 UTC, Manu wrote:
On 23 February 2015 at 07:47, Walter Bright via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 2/22/2015 8:36 AM, Manu via
On Monday, 23 February 2015 at 01:38:35 UTC, Manu wrote:
On 23 February 2015 at 07:47, Walter Bright via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 2/22/2015 8:36 AM, Manu via Digitalmars-d wrote:
I have no idea where to start.
Start by making a ref counted type and see what the
On 2/23/2015 1:50 AM, Manu via Digitalmars-d wrote:
1. Increment and decrement, ESPECIALLY DECREMENT, is EXPENSIVE in time and
bloat because of exceptions. Swift does it by NOT HAVING EXCEPTIONS. This is
not an option for D.
This is going to sound really stupid... but do people actually use
On 23 February 2015 at 01:30, Adam D. Ruppe via Digitalmars-d
digitalmars-d@puremagic.com wrote:
I could prolly do two talks... especially if someone else wants to suggest a
topic. Heck, I could improvise in a round table or something too.
I'd happily be on a panel talk. :)
https://issues.dlang.org/show_bug.cgi?id=13729
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Hardware|x86 |All
Summary|One
On Mon, 23 Feb 2015 09:12:33 +, rumbu wrote:
On Saturday, 21 February 2015 at 15:26:28 UTC, ketmar wrote:
On Sat, 21 Feb 2015 08:27:13 +, rumbu wrote:
My question was not how I do this, I know already. My question was if
there is another way to safely call a non-const instance
sorry - i cant find where i can post this.
bugtracker have no dlang.org product.
when i click to left menu Standart Library - std - windows -
charset
then i have error The requested URL
/phobos/std_windows_charset.html was not found on this server.
https://issues.dlang.org/show_bug.cgi?id=14216
Issue ID: 14216
Summary: Missing /phobos/std_windows_charset.html
Product: D
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
On Monday, 23 February 2015 at 12:30:55 UTC, Russel Winder wrote:
On Mon, 2015-02-23 at 19:50 +1000, Manu via Digitalmars-d wrote:
O[…]
This is going to sound really stupid... but do people actually
use
exceptions regularly?
I've never used one. When I encounter code that does, I just
find
On Monday, 23 February 2015 at 01:14:29 UTC, Adam D. Ruppe wrote:
Here's the newest This Week in D, the big news being ddmd and
the dmd beta.
http://arsdnet.net/this-week-in-d/feb-22.html
The tip of this week has to do with installation: as a
Slackware user, the new download page made me
On Monday, 23 February 2015 at 10:10:17 UTC, Mike Parker wrote:
On 2/23/2015 4:01 PM, Namespace wrote:
On OSX you can load either legacy version of OpenGL so
1.x/2.x or
3.x+. Not both. I found this out for Devisualization.Window.
Most
likely dgame by default is loading it in legacy mode.
On 24/02/2015 1:58 a.m., novice2 wrote:
sorry - i cant find where i can post this.
bugtracker have no dlang.org product.
when i click to left menu Standart Library - std - windows - charset
then i have error The requested URL /phobos/std_windows_charset.html
was not found on this server.
Bump !
I'd be interested in helping out with the translation. I call
dibs on the 50th chapter (Member Functions), unless of course
someone is already working on it.
https://issues.dlang.org/show_bug.cgi?id=11746
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull
--- Comment #1 from
On Mon, 2015-02-23 at 19:50 +1000, Manu via Digitalmars-d wrote:
O[…]
This is going to sound really stupid... but do people actually use
exceptions regularly?
I've never used one. When I encounter code that does, I just find it
really annoying to debug. I've never 'gotten' exceptions. I'm not
On Monday, 23 February 2015 at 12:30:55 UTC, Russel Winder wrote:
value and error code. C got this fairly wrong, Go gets it
fairly right.
It's the one feature about Go that makes Go code look really
ugly... So I guess this is a very subjective issue. Posix is
actually pretty consistent by
https://issues.dlang.org/show_bug.cgi?id=6810
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull, rejects-valid
On Monday, 23 February 2015 at 14:56:11 UTC, Marc Schütz wrote:
violation of the principle of separation of concerns: a
consumer shouldn't need to have information about the
management strategy, it should work equally with
`RefCounted!C`, `Unique!C` and bare (GC) `C`, as long as it
doesn't
On Monday, 23 February 2015 at 00:03:17 UTC, Andrei Alexandrescu
wrote:
At this point we don't have enough submissions to make DConf
2015 viable. Those we have are of good quality, but simply put
more are needed.
We're counting on our core community (i.e. frequent
contributors to this forum)
On Sunday, 22 February 2015 at 17:01:45 UTC, Andrei Alexandrescu
wrote:
On 2/22/15 6:49 AM, Marc =?UTF-8?B?U2Now7x0eiI=?=
schue...@gmx.net wrote:
No. There's also returning the reference from a member
function, storing
it in a passed-in reference (pointer, ref, out or slice), and
passing it
https://issues.dlang.org/show_bug.cgi?id=13516
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||alphaglosi...@gmail.com
--- Comment
https://issues.dlang.org/show_bug.cgi?id=14216
hst...@quickfur.ath.cx changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=14216
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
--- Comment
https://issues.dlang.org/show_bug.cgi?id=12422
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull
--- Comment #2 from
https://issues.dlang.org/show_bug.cgi?id=13064
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull
--- Comment #1 from
On Monday, 23 February 2015 at 05:41:51 UTC, Rikki Cattermole
wrote:
Perhaps we could get some UTU students involved with it?
UVU. But will students will be attending too? I think they should
be able to, it would be good exposure to them and give us some
fresh people too.
load will pull in 1.1 functions only, nothing more. reload
will load in whatever is supported by the current context. So
if your context only supports 2.1, only functions up to 2.1
will be loaded. One of the earlier posts showed what needs to
be done on Mac to get a 3.x context. In SDL, that
Hi,
Curl has some issues with passwords containing special characters
like the hash key (#).
The password will not be accepted although it is correctly
set with the method setAuthencication(user, pass1234#);
I know this is more a Curl issue than a DLang issue but it
is very frustrating and for
https://issues.dlang.org/show_bug.cgi?id=14217
Issue ID: 14217
Summary: Misleading error message: Cannot deduce function
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: normal
On Monday, 23 February 2015 at 15:35:52 UTC, Ola Fosheim Grøstad
wrote:
On Monday, 23 February 2015 at 14:56:11 UTC, Marc Schütz wrote:
violation of the principle of separation of concerns: a
consumer shouldn't need to have information about the
management strategy, it should work equally with
How hard would it be to modify D's GC to do the following two
things:
1. Scan the heap in the BG on another thread/cpu for
compactification.
2. Move blocks of memory in predictable(timewise) chunks that
prevents locking the main thread for any period of time.
e.g., in the first step the
Seems like there are some local meetups starting across the
globe, but no Dutch one so far. Are there any D users from the
Netherlands that would want to meetup and share their D stories?
Cheers.
On Mon, 23 Feb 2015 20:21:19 +, Charles wrote:
My solution (150 characters, 15 points):
void main(){import std.stdio;int t,n;readf(
%d,t);while(t--){readf( %d,n);real
a=0,i=0;for(;in;i++)a+=(i%2?-1:1)/(i+i+1);writefln(%.15f,a);}}
Link to problem site:
Basically, I am simply wondering if the GC can throttle itself
as to reduce the *maximum* time the program has to wait.
On 2/23/15 3:16 PM, Nordlöw wrote:
On Monday, 23 February 2015 at 19:24:32 UTC, Steven Schveighoffer wrote:
In answer to your question, RBNode should not be accessible direction
outside of RedBlackTree. But we don't have allocators inside of
Phobos, so I used the easiest thing I could for
On 2/23/15 3:21 PM, Charles wrote:
For the uninitiated, Code Golf is producing the correct answer to a
question with minimal syntax (whitespace included). I found a couple
questions on HackerRank, which allows D compilation. So far there's only
two entries for D (mine and another) for the first
On 2/23/15 3:27 AM, Walter Bright wrote:
On 2/23/2015 1:50 AM, Manu via Digitalmars-d wrote:
1. Increment and decrement, ESPECIALLY DECREMENT, is EXPENSIVE in
time and
bloat because of exceptions. Swift does it by NOT HAVING EXCEPTIONS.
This is
not an option for D.
This is going to sound
On 2/23/15 10:27 AM, Adam D. Ruppe wrote:
On Monday, 23 February 2015 at 18:16:38 UTC, Andrei Alexandrescu wrote:
The typechecker must WHILE COMPILING WIDGET, NOT ITS CLIENT know
whether getName() is okay or not.
Aye, I haven't been following this thread closely, but I thought of this
case a
On Monday, 23 February 2015 at 17:47:54 UTC, Andre wrote:
Until now I didn't found out how to solve the issue excepting
changing
the password;)
In case I find the solution I will make a pull request.
Kind regards
André
On Monday, 23 February 2015 at 16:58:16 UTC, Marc Schütz wrote:
On
On Mon, 2015-02-23 at 10:29 -0800, Andrei Alexandrescu via Digitalmars-d
wrote:
DConf 2015 got a couple of lightning talk proposals. We obviously need a
few of those to consolidate them into a session. Any more takers? -- Andrei
Let people sign up to do them at the conference. This management
On 2/22/15 8:50 PM, deadalnix wrote:
On Sunday, 22 February 2015 at 20:48:58 UTC, Andrei Alexandrescu wrote:
What ??? That mean writing all library code twice, for client that want
GC and for these who don't.
I'm not 100% convinced but it seems to me RC vs. GC is a class design
time decision.
On 2/23/15 6:56 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net
wrote:
On Sunday, 22 February 2015 at 17:01:45 UTC, Andrei Alexandrescu wrote:
On 2/22/15 6:49 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net
wrote:
No. There's also returning the reference from a member function, storing
Urgh. Product types masquerading as sum types. Give me a break
will ya. -- Andrei
1. The product solution is more pleasant to work with, if you
have no sugar for sum types like pattern matching.
2. It's the same as with exception specifications: Product types
make ignoring the error path
On Monday, 23 February 2015 at 18:16:38 UTC, Andrei Alexandrescu
wrote:
The typechecker must WHILE COMPILING WIDGET, NOT ITS CLIENT
know whether getName() is okay or not.
Aye, I haven't been following this thread closely, but I thought
of this case a while ago myself and it actually led me to
On 02/23/2015 09:47 AM, Andre wrote:
In case I find the solution I will make a pull request.
I think Marc Schütz meant a pull request improving or fixing the
documentation.
Ali
Le 23/02/2015 07:13, Olivier Pisano a écrit :
On Sunday, 22 February 2015 at 22:27:42 UTC, Raphaël Jakse wrote:
Le 22/02/2015 14:00, Olivier Pisano a écrit :
I did send you a first draft of the variable number of parameters
chapter on Friday, on your gmail address. Did you get it ?
Yes, I
On 2/21/15 9:27 PM, Peter Alexander wrote:
On Sunday, 22 February 2015 at 01:24:09 UTC, Almighty Bob wrote:
a += b; // Compiles with no ERROR!
Please tell me that's a bug?
Not a bug. From spec:
http://dlang.org/expression.html#AssignExpression
Assignment operator expressions, such as:
a
On 2/20/15 4:26 PM, Nordlöw wrote:
What's the policy on using GC or not in std.container.* ?
- std.container.Array uses malloc for its allocation but
- RedBlackTree.allocate() returns a: new RBNode!Elem*
Is this because RBNode* should be reachable outside of RedBlackTree or
is this a todo?
https://issues.dlang.org/show_bug.cgi?id=14219
Issue ID: 14219
Summary: missing documentation std.traits
Product: D
Version: unspecified
Hardware: x86_64
OS: Windows
Status: NEW
Severity: enhancement
For the uninitiated, Code Golf is producing the correct answer to
a question with minimal syntax (whitespace included). I found a
couple questions on HackerRank, which allows D compilation. So
far there's only two entries for D (mine and another) for the
first problem.
Here's the problem:
On 2/22/2015 3:25 AM, Jacob Carlborg wrote:
* Most good GC implementations need some kind of barrier (read or write, don't
remember which). If I recall there are several people against this in the
community
Count me among those.
In Java, write barriers make sense because Java uses the GC for
On Monday, 23 February 2015 at 19:24:32 UTC, Steven Schveighoffer
wrote:
In answer to your question, RBNode should not be accessible
direction outside of RedBlackTree. But we don't have allocators
inside of Phobos, so I used the easiest thing I could for
portability.
-Steve
Does this mean
On 2/23/15 1:30 PM, Steven Schveighoffer wrote:
foreach(x; stdin.byLine)
writefln(%0.15f, map!(a =
(a1?-1:1)/(2.0*a+1))(iota(x.to!int)).sum);
Wonder why didn't you lead with the iota? -- Andrei
On Monday, 23 February 2015 at 21:11:23 UTC, Sativa wrote:
How hard would it be to modify D's GC to do the following two
things:
1. Scan the heap in the BG on another thread/cpu for
compactification.
2. Move blocks of memory in predictable(timewise) chunks that
prevents locking the main
On 2/23/15 5:04 PM, Andrei Alexandrescu wrote:
On 2/23/15 1:30 PM, Steven Schveighoffer wrote:
foreach(x; stdin.byLine)
writefln(%0.15f, map!(a =
(a1?-1:1)/(2.0*a+1))(iota(x.to!int)).sum);
Wonder why didn't you lead with the iota? -- Andrei
Cuz that's how it came out my brain ;)
On Monday, 23 February 2015 at 21:07:04 UTC, George Sapkin wrote:
Seems like there are some local meetups starting across the
globe, but no Dutch one so far. Are there any D users from the
Netherlands that would want to meetup and share their D
stories? Cheers.
I would surely come. Though
On Monday, 23 February 2015 at 21:30:51 UTC, Steven Schveighoffer
wrote:
On 2/23/15 3:21 PM, Charles wrote:
For the uninitiated, Code Golf is producing the correct answer
to a
question with minimal syntax (whitespace included). I found a
couple
questions on HackerRank, which allows D
I didn't beat your score, but I did it with ranges (full
character count was 174):
stdin.readln();
foreach(x; stdin.byLine)
writefln(%0.15f, map!(a =
(a1?-1:1)/(2.0*a+1))(iota(x.to!int)).sum);
I think if I didn't have to import so many things, I would have
done much better :)
-Steve
This is pretty straightforward. More could be done:
1. small array optimization
2. support for ranges as constructor args
3. present a range interface
4. support for malloc/free instead of GC
5. bounds checking
6. the array[] and the count could be allocated together
7. array[] could be just a
On Monday, 23 February 2015 at 06:51:21 UTC, Walter Bright wrote:
4. DIP25, now implemented, is a way to address memory safety in
D while using reference counting. Any proposal for ARC needs
to, at least, understand that proposal.
I asked further up in the thread if coroutines can hold onto
On Saturday, 21 February 2015 at 15:26:28 UTC, ketmar wrote:
On Sat, 21 Feb 2015 08:27:13 +, rumbu wrote:
My question was not how I do this, I know already. My question
was if
there is another way to safely call a non-const instance
function on a
const object.
is there a way to been
On Monday, 23 February 2015 at 07:19:56 UTC, Paulo Pinto wrote:
Personally I think what matters is getting D's situation
regarding memory management sorted out, regardless out it will
look like in the end.
This is exactly right, either
1. The compiler takes care of allocation/deallocations
On Monday, 23 February 2015 at 01:41:17 UTC, Adam D. Ruppe wrote:
On Monday, 23 February 2015 at 01:38:35 UTC, Manu wrote:
All my ref counting types fiddle with the ref in every
assignment, or every function call and return.
Hmm, the optimizer could potentially tell inc X; dec X; is
useless
On 2/23/2015 12:33 AM, Tobias Pankrath wrote:
On Monday, 23 February 2015 at 08:27:52 UTC, Ola Fosheim Grøstad wrote:
Thanks to the messed up modular arithmetics that D has chosen you cannot
assume the a non-shared live object does not have a rc==0 due to wrapping
integers, in the general case.
On Monday, 23 February 2015 at 08:33:59 UTC, Tobias Pankrath
wrote:
You mean when there are more than 2^64 references to the object?
I mean that the optimizer does not know what _rc is. The
optimizer can only elide what it can prove, by sound logic, not
by assumptions.
On Monday, 23 February 2015 at 08:27:52 UTC, Ola Fosheim Grøstad
wrote:
On Monday, 23 February 2015 at 01:41:17 UTC, Adam D. Ruppe
wrote:
On Monday, 23 February 2015 at 01:38:35 UTC, Manu wrote:
All my ref counting types fiddle with the ref in every
assignment, or every function call and
On Monday, 23 February 2015 at 08:50:28 UTC, Walter Bright wrote:
On 2/23/2015 12:33 AM, Tobias Pankrath wrote:
On Monday, 23 February 2015 at 08:27:52 UTC, Ola Fosheim
Grøstad wrote:
Thanks to the messed up modular arithmetics that D has chosen
you cannot
assume the a non-shared live object
On Monday, 23 February 2015 at 09:01:23 UTC, Daniel Murphy wrote:
Ola Fosheim Grøstad wrote in message
news:hwwotfmkjvwsempqi...@forum.dlang.org...
I mean that the optimizer does not know what _rc is. The
optimizer can only elide what it can prove, by sound logic,
not by assumptions.
The
Ola Fosheim Grøstad wrote in message
news:hwwotfmkjvwsempqi...@forum.dlang.org...
I mean that the optimizer does not know what _rc is. The optimizer can
only elide what it can prove, by sound logic, not by assumptions.
The whole point of compiler-supported RC is that the optimizer can make
On 23 February 2015 at 16:50, Walter Bright via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 2/22/2015 9:53 PM, Manu via Digitalmars-d wrote:
It's got nothing to do with doing work. ARC (or something like it) is
almost religiously opposed. We can't even have a reasonable
conversation
On Mon, 23 Feb 2015 23:10:28 +, bitwise wrote:
you don't need to. if you really need to do that, you're doing
something
This makes no sense to me. A usage example may be helpful.
you still thinking in terms of generators. generator is a high-level
construct, resumable routine is a
On 2/23/2015 5:01 PM, Max Klyga wrote:
I thought that delete is deprecated, yet here Walter himself promotes a solution
that uses it.
Can we *PLEASE* finally deprecate things that are supposed to be deprecated and
remove things that are supposed to be removed?
That isn't the point. I could
On 2/23/2015 4:13 PM, bearophile wrote:
5. bounds checking
When you go past bounds of a built-in array you get an error located in the user
code, while if you put a pre-condition in your Array struct to detect the same
errors, you get a run-time error message located in that pre-condition
On Tuesday, 24 February 2015 at 00:20:45 UTC, Martin Nowak wrote:
On Monday, 23 February 2015 at 16:10:42 UTC, Andre wrote:
Curl has some issues with passwords containing special
characters
like the hash key (#).
I don't found any reference for this issue in curl and the D
wrapper hardly
On Tuesday, 24 February 2015 at 01:43:11 UTC, Andrei Alexandrescu
wrote:
This is a free world. Walter and I are working on a DIP. Please
work on yours. I can't promise we'll choose to your liking, but
this is the one way you can make your point heard and
understood. What doesn't work is trash
https://issues.dlang.org/show_bug.cgi?id=1983
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
CC||ma...@maxim-fomin.ru
---
https://issues.dlang.org/show_bug.cgi?id=9462
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
On Tuesday, 24 February 2015 at 00:48:34 UTC, ketmar wrote:
On Mon, 23 Feb 2015 23:10:28 +, bitwise wrote:
you still thinking in terms of generators. Generator is a
high-level construct, resumable routine is a low-level
construct. latter is used to build the former.
I think you're
On Mon, 23 Feb 2015 21:11:22 +, Sativa wrote:
How hard would it be to modify D's GC to do the following two things:
1. Scan the heap in the BG on another thread/cpu for compactification.
needs read/write barriers added to generated code. a major slowdown for
ALL memory access.
2. Move
I thought that delete is deprecated, yet here Walter himself promotes a
solution that uses it.
Can we *PLEASE* finally deprecate things that are supposed to be
deprecated and remove things that are supposed to be removed?
On 2015-02-23 22:15:46 +, Walter Bright said:
This is pretty
On 2/23/15 5:23 PM, deadalnix wrote:
So far, what I feel from you and Walter is the will to not go into that
direction and instead created a myriad of hacks for various special
cases. I do think this is wrong headed and generally not the way
forward. Languages should provide the most generic and
On Monday, 23 February 2015 at 22:15:54 UTC, Walter Bright wrote:
ref E opIndex(size_t i) return // here's the magic
exactly what is this doing? I don't see this explained in DIP25
at all.
Steve Sobel:
It can get down to 155 using ranges, but those imports really
are killer.
You usually don't want to design a language for code golfing (but
several exist, like http://esolangs.org/wiki/GolfScript ).
void main(){import
Walter Bright:
5. bounds checking
When you go past bounds of a built-in array you get an error
located in the user code, while if you put a pre-condition in
your Array struct to detect the same errors, you get a run-time
error message located in that pre-condition instead. I'd like
some
On 2/23/2015 5:41 PM, weaselcat wrote:
On Monday, 23 February 2015 at 22:15:54 UTC, Walter Bright wrote:
ref E opIndex(size_t i) return // here's the magic
exactly what is this doing? I don't see this explained in DIP25 at all.
The 'this' is passed by reference. So the 'return' is
On Tue, 24 Feb 2015 06:29:33 +, Rory wrote:
Is there a way I can stop current from being optimized out without
using volatile?
but why do you need this? just use `atomicLoad` to get shared variable
value, it will do the right caching.
signature.asc
Description: PGP signature
On Monday, 23 February 2015 at 16:10:42 UTC, Andre wrote:
Curl has some issues with passwords containing special
characters
like the hash key (#).
I don't found any reference for this issue in curl and the D
wrapper hardly adds anything. You're sure it isn't an issue with
your program or
On Monday, 23 February 2015 at 23:10:32 UTC, anonymous wrote:
On Monday, 23 February 2015 at 20:21:20 UTC, Charles wrote:
My solution (150 characters, 15 points):
void main(){import std.stdio;int t,n;readf(
%d,t);while(t--){readf( %d,n);real
On Monday, 23 February 2015 at 17:48:27 UTC, Andrei Alexandrescu
wrote:
I used to think the same. But then I considered typechecking
things like:
class Widget
{
private char name[1024];
char[] getName() { return name[]; }
...
}
Such code is safe if Widget is a GC class but not if
On 24/02/2015 4:33 a.m., Adam D. Ruppe wrote:
On Monday, 23 February 2015 at 05:41:51 UTC, Rikki Cattermole wrote:
Perhaps we could get some UTU students involved with it?
UVU. But will students will be attending too? I think they should be
able to, it would be good exposure to them and give
On 2/23/2015 9:59 PM, Jonathan M Davis via Digitalmars-d wrote:
And delete is supposed to have been deprecated ages ago, but yeah, it
_definitely_ shouldn't be considered @safe.
Managing memory always is going to be unsafe. The idea is to encapsulate that,
which RCArray shows how to do.
On Monday, 23 February 2015 at 23:24:02 UTC, Namespace wrote:
Doesn't work. Still gives the same OpenGL too low error. I
think you need to place the lines
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
On 02/23/15 21:21, Charles via Digitalmars-d wrote:
My solution (150 characters, 15 points):
void main(){import std.stdio;int t,n;readf( %d,t);while(t--){readf(
%d,n);real a=0,i=0;for(;in;i++)a+=(i%2?-1:1)/(i+i+1);writefln(%.15f,a);}}
void main(){import std.stdio;int t,n;for(readf(
On Monday, 23 February 2015 at 22:11:48 UTC, weaselcat wrote:
On Monday, 23 February 2015 at 21:11:23 UTC, Sativa wrote:
How hard would it be to modify D's GC to do the following two
things:
1. Scan the heap in the BG on another thread/cpu for
compactification.
2. Move blocks of memory in
On 2/23/15 5:43 PM, Andrei Alexandrescu wrote:
But please don't consider me an idiot because I don't like what you
propose.
Hmmm... actually I take that back :o). You are totally free to consider
me such (or at least of intellect inferior to yours etc). What I mean is
please don't consider
Hi,
Is there a way I can stop current from being optimized out
without using volatile?
The compiler is suggesting I replace volatile with
synchronized but I don't want it synchronized?
Would a memory barrier work?
shared n = new int(value);
for (;;) {
volatile auto current = payload; //
On Tuesday, 24 February 2015 at 00:53:49 UTC, Mike Parker wrote:
On 2/24/2015 8:18 AM, Gan wrote:
Doesn't work. Still gives the same OpenGL too low error. I
think you
need to place the lines
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
On Tuesday, 24 February 2015 at 02:06:07 UTC, Walter Bright wrote:
On 2/23/2015 5:41 PM, weaselcat wrote:
On Monday, 23 February 2015 at 22:15:54 UTC, Walter Bright
wrote:
ref E opIndex(size_t i) return // here's the magic
exactly what is this doing? I don't see this explained in
DIP25
1 - 100 of 119 matches
Mail list logo