update: with @nogc @trusted pure this becomes even uglier:
@nogc @trusted pure
void test(int a){
if(!(a==3)){
debug{
char[100]buf; //TODO:make sure big enough
// would like to use 'auto s=sformat(buf, "a = %s", a);' but not nogc:
https://issues.dlang.org/show_bug.cgi?id=13055
au
this would make error handling trivial and solve issues such as this:
FORUM:formatted assert error messages inside nogc functions
http://forum.dlang.org/thread/CANri+EyNyrhMWGCSqZHx_vXDJFSrwhOrV=j2katz6t9-upt...@mail.gmail.com
usage:
during development:
dmd -debug -ignore_nogc other_flags foo.d
On Sunday, 10 January 2016 at 09:17:20 UTC, Timothee Cour wrote:
this would make error handling trivial and solve issues such as
this:
FORUM:formatted assert error messages inside nogc functions
http://forum.dlang.org/thread/CANri+EyNyrhMWGCSqZHx_vXDJFSrwhOrV=j2katz6t9-upt...@mail.gmail.com
On Saturday, 9 January 2016 at 21:40:02 UTC, jmh530 wrote:
On Saturday, 9 January 2016 at 19:39:44 UTC, Jakob Jenkov wrote:
The communication is the easy part. The time consuming part
is converting R objects to D objects and vice versa. I've had
to learn the internals of R at the same time that
just more fine-grained control ... but either way.
having an escape away from nogc would be needed.
On Sun, Jan 10, 2016 at 1:56 AM, rsw0x via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
> On Sunday, 10 January 2016 at 09:17:20 UTC, Timothee Cour wrote:
>
>> this would make error handlin
On Sunday, 10 January 2016 at 12:33:19 UTC, Timothee Cour wrote:
just more fine-grained control ... but either way.
having an escape away from nogc would be needed.
Is it a bit annoying to use, but have you aware of:
http://p0nce.github.io/d-idioms/#Bypassing-@nogc ?
On 09.01.2016 23:36, Jack Stouffer wrote:
On Friday, 8 January 2016 at 22:32:59 UTC, anonymous wrote:
[...]
4) Fonts
[...]
One nitpick here: can you change the function signatures to use a
monospace font (any will do really)?
Done.
Also, can you institute this change
to the function signa
On 09.01.2016 22:43, Andrei Alexandrescu wrote:
On 1/8/16 5:32 PM, anonymous wrote:
[...]
5) Justified Text
[...]
Justified font only looks good in conjunction with hyphenation. I'd say
make text justified on browsers that support css hyphenation (all but
Chrome I recall?) and left align on t
On 09.01.2016 23:24, Vladimir Panteleev wrote:
On Friday, 8 January 2016 at 22:32:59 UTC, anonymous wrote:
[...]
Once this is merged, would you be OK with working together on updating
the forum to the new design?
Sure.
3) New Pages
[...]
Perhaps also link to (or even replace with) the wik
On 09.01.2016 11:35, Jacob Carlborg wrote:
I'm not sure that I like that some of the headers (learn, packages) are
clickable on the main page. This also causes some icons to be black
(gray?) and some to be red. How about a link at the end of the section
with the title "Read more", or similar?
A
On Saturday, 9 January 2016 at 19:43:03 UTC, Jakob Jenkov wrote:
What is the status of cross compiling D to multiple platforms?
I know it is possible, but how easy is it? How many issues do
you have to mess with on different platforms?
The desktop ones are easy. ARM linux isn't to bad (use gdc
On Sunday, 10 January 2016 at 14:04:44 UTC, anonymous wrote:
Example:
http://d-ag0aep6g.rhcloud.com/phobos-prerelease/std_algorithm_searching.html#.commonPrefix
Can I ask not to use dotted frames? It may be my eyes, but I get
dizzy reading the tables.
Maybe format tables like the cheat sheet a
On 1/10/16 9:05 AM, anonymous wrote:
On 09.01.2016 22:43, Andrei Alexandrescu wrote:
On 1/8/16 5:32 PM, anonymous wrote:
[...]
5) Justified Text
[...]
Justified font only looks good in conjunction with hyphenation. I'd say
make text justified on browsers that support css hyphenation (all but
On Saturday, 9 January 2016 at 22:44:53 UTC, Ola Fosheim Grøstad
wrote:
Yes. But my experience from writing custom multi-single queues
is that it can end up harder than it looks to get it working
and efficient. […] (Intuition is often wrong in this area...)
I wholeheartedly agree with that sta
On 10.01.2016 15:27, Bastiaan Veelo wrote:
Can I ask not to use dotted frames?
I agree that they're ugly, but they've been ugly before the redesign,
too. Let's do such stuff in separate pull requests.
On 08.01.2016 23:32, anonymous wrote:
My implementation of the redesign is pretty much complete.
Check it out: http://d-ag0aep6g.rhcloud.com/
No blocking issues in sight so far. Time to make a pull request:
https://github.com/D-Programming-Language/dlang.org/pull/1187
On 10.01.2016 16:11, Andrei Alexandrescu wrote:
Do you have a PR in place yet?
Here we go:
https://github.com/D-Programming-Language/dlang.org/pull/1187
Iain,
Playing with the SCons tests, I am heading to the hypothesis that, at
least on Debian Sid, if both gdc and ldc packages are installed, then
gdc picks up the D source files from the ldc package in preference to
the ones from the gdc package.
scons: Building targets ...
gdc -I. -c -o foo.o f
On Sunday, 10 January 2016 at 16:23:24 UTC, Russel Winder wrote:
Iain,
Playing with the SCons tests, I am heading to the hypothesis
that, at least on Debian Sid, if both gdc and ldc packages are
installed, then gdc picks up the D source files from the ldc
package in preference to the ones fro
On Friday, 8 January 2016 at 22:32:59 UTC, anonymous wrote:
My implementation of the redesign is pretty much complete.
Check it out: http://d-ag0aep6g.rhcloud.com/
This is an implementation of a design done by one Ivan Smirnov,
brought forward by Jacob Carlborg [1].
The dark forum widgets on
On Sunday, 10 January 2016 at 17:02:59 UTC, Saurabh Das wrote:
[...]
The grayed out header colour looks funny.
I meant it looks funny when it spans half the height of the page
when the example code is long. It looks fine otherwise :)
I've implemented native TLS in DMD on OS X for 64bit. Now the question
is, does it need to work for 32bit as well?
The easiest would be to drop the 32bit support all together. Other
options would be to continue to use emulate TLS on 32bit or implement
native TLS for 32bit as well. I would pref
On 1/10/16 10:23 AM, anonymous wrote:
On 10.01.2016 16:11, Andrei Alexandrescu wrote:
Do you have a PR in place yet?
Here we go:
https://github.com/D-Programming-Language/dlang.org/pull/1187
...aand we're live. Congratulations and many thanks to the folks who
worked on this! -- Andrei
On Friday, 8 January 2016 at 22:32:59 UTC, anonymous wrote:
My implementation of the redesign is pretty much complete.
Check it out: http://d-ag0aep6g.rhcloud.com/
Congratulations on getting this merged!
congratulations
On Sunday, 10 January 2016 at 17:17:44 UTC, Andrei Alexandrescu
wrote:
On 1/10/16 10:23 AM, anonymous wrote:
On 10.01.2016 16:11, Andrei Alexandrescu wrote:
Do you have a PR in place yet?
Here we go:
https://github.com/D-Programming-Language/dlang.org/pull/1187
...aand we're live. Congr
On Sunday, 10 January 2016 at 17:17:44 UTC, Andrei Alexandrescu
wrote:
On 1/10/16 10:23 AM, anonymous wrote:
On 10.01.2016 16:11, Andrei Alexandrescu wrote:
Do you have a PR in place yet?
Here we go:
https://github.com/D-Programming-Language/dlang.org/pull/1187
...aand we're live. Congr
On Sunday, 10 January 2016 at 17:12:40 UTC, Jacob Carlborg wrote:
The easiest would be to drop the 32bit support all together.
Other options would be to continue to use emulate TLS on 32bit
or implement native TLS for 32bit as well. I would prefer to
not have to do this for 32bit as well.
I w
Looks like a packaging issue. In Archlinux there is one extra directory
level for the compiler (e.g. `/usr/include/dlang//`) to prevent
such things.
Looking at the file list for both libraries:
- GDC: https://packages.debian.org/sid/amd64/libphobos-4.9-dev/filelist
- LDC: https://packages.debian.o
On Saturday, 9 January 2016 at 21:09:05 UTC, Jason Jeffory wrote:
It might, which is why I asked, seems like it would be
something trivial to do if the address of the function and
relative address of the "variable" can be gotten at "compile
time"(not sure it is possible by maybe one could write
On Sunday, 10 January 2016 at 17:12:40 UTC, Jacob Carlborg wrote:
I've implemented native TLS in DMD on OS X for 64bit. Now the
question is, does it need to work for 32bit as well?
The easiest would be to drop the 32bit support all together.
Other options would be to continue to use emulate TL
On Sunday, 10 January 2016 at 17:17:44 UTC, Andrei Alexandrescu
wrote:
On 1/10/16 10:23 AM, anonymous wrote:
On 10.01.2016 16:11, Andrei Alexandrescu wrote:
Do you have a PR in place yet?
Here we go:
https://github.com/D-Programming-Language/dlang.org/pull/1187
...aand we're live. Congr
On Sunday, 10 January 2016 at 19:50:40 UTC, cym13 wrote:
On Sunday, 10 January 2016 at 17:17:44 UTC, Andrei Alexandrescu
wrote:
On 1/10/16 10:23 AM, anonymous wrote:
On 10.01.2016 16:11, Andrei Alexandrescu wrote:
Do you have a PR in place yet?
Here we go:
https://github.com/D-Programming-La
On 2016-01-10 20:42, John Colvin wrote:
I definitely don't care about 32 bit on OS X. However, I see no need to
drop it if the current TLS emulation works.
It's easier to remove it than supporting both :)
--
/Jacob Carlborg
On 1/10/16 1:05 PM, Vladimir Panteleev wrote:
@Andrei, I am once again disappointed and frustrated at your attitude
towards your fellow dlang.org maintainers. Please allow proper time for
code review for pull requests, but at this point I feel like talking to
a wall.
You're right, sorry about g
Thanks and congrats!
I have one issue with icons display on my laptop, although they
display well on my phone:
http://imgur.com/lZWgWI4
http://imgur.com/KZWBiVr
Usually this kind of issues is due to my use of script blocker,
but disabling it and reloading the page does not seem to fix it.
A
On Sunday, 10 January 2016 at 17:12:40 UTC, Jacob Carlborg wrote:
I've implemented native TLS in DMD on OS X for 64bit. Now the
question is, does it need to work for 32bit as well?
The easiest would be to drop the 32bit support all together.
Other options would be to continue to use emulate TL
On Sunday, 10 January 2016 at 17:17:44 UTC, Andrei Alexandrescu
wrote:
On 1/10/16 10:23 AM, anonymous wrote:
On 10.01.2016 16:11, Andrei Alexandrescu wrote:
Do you have a PR in place yet?
Here we go:
https://github.com/D-Programming-Language/dlang.org/pull/1187
...aand we're live. Congr
On 10 January 2016 at 22:14, deadalnix via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
> On Sunday, 10 January 2016 at 17:17:44 UTC, Andrei Alexandrescu wrote:
>
>> On 1/10/16 10:23 AM, anonymous wrote:
>>
>>> On 10.01.2016 16:11, Andrei Alexandrescu wrote:
>>>
Do you have a PR in pla
On 01/08/2016 05:58 PM, Jin wrote:
> Idea: no mutex, no CAS, only one direction queues without any locks.
>
> My prototype (https://github.com/nin-jin/go.d) is up to 10x faster than
> std.concurrency.send/receive
Yes single-reader single-writer queue are the fastest way for
inter-thread communica
On 01/09/2016 04:51 PM, Jin wrote:
> I just add atomic fence for push and take:
>
> this.messages[ this.tail ] = value;
> atomicFence;
> this.tail = ( this.tail + 1 ) % this.size;
Don't do this, memory fences are expensive.
This is what you need for a spsc queue.
https://
On 01/10/2016 03:05 PM, anonymous wrote:
> On 09.01.2016 22:43, Andrei Alexandrescu wrote:
>> On 1/8/16 5:32 PM, anonymous wrote:
> [...]
>>> 5) Justified Text
> [...]
>> Justified font only looks good in conjunction with hyphenation. I'd say
>> make text justified on browsers that support css hyph
On Sunday, 10 January 2016 at 21:18:46 UTC, Iain Buclaw wrote:
I echo this, and would add a further point that you should have
tested all sub-domains before uploading. Release archive is
not looking well.
http://downloads.dlang.org/
Wow. Man I don't want to be too harsh, but that was pretty
On 10.01.2016 21:50, mate wrote:
I have one issue with icons display on my laptop, although they display
well on my phone:
http://imgur.com/lZWgWI4
http://imgur.com/KZWBiVr
Usually this kind of issues is due to my use of script blocker, but
disabling it and reloading the page does not seem to fi
On Saturday, 9 January 2016 at 10:09:12 UTC, Jeremie Pelletier
wrote:
Hello, I'm trying to see if I can write a full Cocoa app in D,
and I'm having trouble creating D classes when the underlying
Objective-C interfaces have methods.
It works for the app delegate because it needs to override
th
On 10.01.2016 18:02, Saurabh Das wrote:
On the font used, Roboto Slab: I feel that the serif nature of the font
makes it clash with the clean design. A sans serif font would look much
better.
At first I felt so, too, but the font grew on me. I think it works well.
"Your Code Here" widget
The icons are done using FontAwesome. Do the icons work on
their examples page?
https://fortawesome.github.io/Font-Awesome/examples/#basic
Yes.
Also, what browser are you using, and what operating system?
Firefox 43.0.3, on linux (Fedora).
On Sunday, 10 January 2016 at 21:46:03 UTC, JohnCK wrote:
On Sunday, 10 January 2016 at 21:18:46 UTC, Iain Buclaw wrote:
I echo this, and would add a further point that you should
have tested all sub-domains before uploading. Release archive
is not looking well.
http://downloads.dlang.org/
On Sunday, 10 January 2016 at 15:23:53 UTC, anonymous wrote:
On 10.01.2016 16:11, Andrei Alexandrescu wrote:
Do you have a PR in place yet?
Here we go:
https://github.com/D-Programming-Language/dlang.org/pull/1187
This looks gorgeous. Congratulation to our @anonymous contributor!
On 10.01.2016 19:04, Saurabh Das wrote:
What is the canonical way to report bugs on the website?
Website bugs go into the same bug tracker as compiler and library bugs:
https://issues.dlang.org/
Select "dlang.org" for component.
On mobile, the red "your code here" merges with the code itsel
On 10.01.2016 23:03, cym13 wrote:
Note that this url shouldn't even exist: the link on the main page for
the download section points to http://dlang.org/download.html . I
believe it is a left-over from a previous version.
downloads.dlang.org is linked from download.html ("Release Archive"). So
On Sunday, 10 January 2016 at 18:06:11 UTC, Jack Stouffer wrote:
Mountain Lion, which was released in 2012, was the last version
to ship a 32bit version.
But 32-bit programs still work on latest OSX, and are sometimes
needed.
On Sunday, 10 January 2016 at 17:12:40 UTC, Jacob Carlborg wrote:
I've implemented native TLS in DMD on OS X for 64bit. Now the
question is, does it need to work for 32bit as well?
The easiest would be to drop the 32bit support all together.
Other options would be to continue to use emulate TL
On Sunday, 10 January 2016 at 21:58:19 UTC, mate wrote:
The icons are done using FontAwesome. Do the icons work on
their examples page?
https://fortawesome.github.io/Font-Awesome/examples/#basic
Yes.
Also, what browser are you using, and what operating system?
Firefox 43.0.3, on linux (Fe
On 10.01.2016 22:18, Iain Buclaw via Digitalmars-d wrote:
I echo this, and would add a further point that you should have tested all
sub-domains before uploading. Release archive is not looking well.
http://downloads.dlang.org/
Uhm, where can I fix that? downloads.dlang.org isn't part of the
First of all, the site looks better than the old version.
Congratulations and now the criticism:
I don't want to hurt anybody's feelings. But look the DMD's Image
compared to GDC and LDC: http://i.imgur.com/TrnuxcB.jpg
Really looks like a joke. I would say this seems more like 90's
but I hav
On Sunday, 10 January 2016 at 22:46:34 UTC, JohnCK wrote:
First of all, the site looks better than the old version.
Congratulations and now the criticism:
I don't want to hurt anybody's feelings. But look the DMD's
Image compared to GDC and LDC: http://i.imgur.com/TrnuxcB.jpg
Really looks li
On 10 January 2016 at 23:46, JohnCK via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
> First of all, the site looks better than the old version. Congratulations
> and now the criticism:
>
> I don't want to hurt anybody's feelings. But look the DMD's Image compared
> to GDC and LDC: http://i
On 10 January 2016 at 23:33, anonymous via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
> On 10.01.2016 22:18, Iain Buclaw via Digitalmars-d wrote:
>
>> I echo this, and would add a further point that you should have tested all
>> sub-domains before uploading. Release archive is not lookin
On Sunday, 10 January 2016 at 22:46:34 UTC, JohnCK wrote:
First of all, the site looks better than the old version.
Congratulations and now the criticism:
I don't want to hurt anybody's feelings. But look the DMD's
Image compared to GDC and LDC: http://i.imgur.com/TrnuxcB.jpg
Really looks li
On 1/10/16 4:44 PM, Martin Nowak wrote:
On 01/10/2016 03:05 PM, anonymous wrote:
On 09.01.2016 22:43, Andrei Alexandrescu wrote:
On 1/8/16 5:32 PM, anonymous wrote:
[...]
5) Justified Text
[...]
Justified font only looks good in conjunction with hyphenation. I'd say
make text justified on b
On 1/10/16 4:46 PM, JohnCK wrote:
On Sunday, 10 January 2016 at 21:18:46 UTC, Iain Buclaw wrote:
I echo this, and would add a further point that you should have tested
all sub-domains before uploading. Release archive is not looking well.
http://downloads.dlang.org/
Wow. Man I don't want to
On 10.01.2016 22:14, deadalnix wrote:
- Learn barely make the cut on my 15' monitor. That's way too low. If
one doesn't know D, one doesn't care about news, community or whatever.
We can shuffle things around, of course. One alternative:
Learn News
Documentation Community
Packages Contribute
On Sunday, 10 January 2016 at 22:25:50 UTC, rsw0x wrote:
On Sunday, 10 January 2016 at 21:58:19 UTC, mate wrote:
The icons are done using FontAwesome. Do the icons work on
their examples page?
https://fortawesome.github.io/Font-Awesome/examples/#basic
Yes.
Also, what browser are you using,
On 8 January 2016 at 23:40, Walter Bright via Digitalmars-d
wrote:
> On 1/7/2016 9:14 PM, Manu via Digitalmars-d wrote:
>>
>> The namespace offers nothing, and introduces problems. We don't want it.
>
>
> The problems you were having were due to two bugs, since corrected, and one
> misunderstandin
On Sunday, 10 January 2016 at 22:11:51 UTC, anonymous wrote:
On 10.01.2016 19:04, Saurabh Das wrote:
What is the canonical way to report bugs on the website?
Website bugs go into the same bug tracker as compiler and
library bugs:
https://issues.dlang.org/
Select "dlang.org" for component.
On 1/10/2016 5:20 PM, Manu via Digitalmars-d wrote:
This design doesn't give us anything, and you seem to be resisting
making an argument for its existence. We don't need to do this, we
don't need to waste any more time.
I appreciate that, but without knowing exactly what your issue is, I can't
On 1/10/16 8:20 PM, Manu via Digitalmars-d wrote:
I'll continue to try and reduce the structure of the problem, but I
still just wish you'd remove the namespace scope. Everything would be
fixed instantly, I am certain of this.
Do you have other examples that should work but don't? Thx! -- Andre
I am writing a split-liked tool, and want to write some large
data (>4GB) to a single file. But this is not possible while
using std.file.write, at least on windows. And I need dig into
the source code to find out the reason (Windows API WriteFile
uses DWORD as the input size). So why not call
On Friday, 8 January 2016 at 13:50:56 UTC, Walter Bright wrote:
On 1/8/2016 12:11 AM, Jacob Carlborg wrote:
Walter, should "ns.a()" work in the above example?
No:
1. first "ns.a" looks up "ns". Finds it in the current module,
"main.ns".
2. Looks "a" up in "main.ns". "a" is not there. Error.
On 11 January 2016 at 11:59, Walter Bright via Digitalmars-d
wrote:
> On 1/10/2016 5:20 PM, Manu via Digitalmars-d wrote:
>>
>> This design doesn't give us anything, and you seem to be resisting
>> making an argument for its existence. We don't need to do this, we
>> don't need to waste any more t
On 1/10/2016 3:09 PM, Iain Buclaw via Digitalmars-d wrote:
On 10 January 2016 at 23:33, anonymous via Digitalmars-d
mailto:digitalmars-d@puremagic.com>> wrote:
On 10.01.2016 22:18, Iain Buclaw via Digitalmars-d wrote:
I echo this, and would add a further point that you should have
On 11 January 2016 at 12:38, Andrei Alexandrescu via Digitalmars-d
wrote:
> On 1/10/16 8:20 PM, Manu via Digitalmars-d wrote:
>>
>> I'll continue to try and reduce the structure of the problem, but I
>> still just wish you'd remove the namespace scope. Everything would be
>> fixed instantly, I am
On 1/10/2016 6:54 PM, Manu via Digitalmars-d wrote:
It would seem that name resolution is more complex than normal, and it
gets complicated or breaks in edge cases. Then I need to spend time
trying to understand how it is that my case is complex, and trying to
workaround it (or produce sufficient
On 1/10/2016 7:05 PM, Manu via Digitalmars-d wrote:
I'll do another pass over my code as I am able, since bugs have been
fixes the situation has changed, and I effectively need to repeat all
the experiments I've done.
Thank you. I also suggest that you come here for help sooner so you don't sp
On 11/01/16 4:05 PM, Manu via Digitalmars-d wrote:
On 11 January 2016 at 12:38, Andrei Alexandrescu via Digitalmars-d
wrote:
On 1/10/16 8:20 PM, Manu via Digitalmars-d wrote:
I'll continue to try and reduce the structure of the problem, but I
still just wish you'd remove the namespace scope.
The D code part on the front page has only 2 examples currently.
I thought we should add to that. As per the instructions, I'm
posting one sample here for approval:
// Find anagrams of words
void main()
{
import std.stdio, std.algorithm;
string[][string] anagram_info;
File("/usr/sha
On 2016-01-10 21:58, bitwise wrote:
Awesome!
Is there a way I can have a look at the code? I'd like to start looking
into how this will fit together with shared library support.
https://github.com/D-Programming-Language/dmd/pull/5346
--
/Jacob Carlborg
On 2016-01-10 23:15, Guillaume Piolat wrote:
I'm using 32-bit support of DMD and I would strongly prefer if it wasn't
removed. At least staying the same as today.
The problem is that I don't control what bitness users want, because of
network effects some users still use 32-bit software. Every
On 2016-01-10 21:23, Andrei Alexandrescu wrote:
You're right, sorry about getting too enthusiastic. Should we undo? --
Andrei
That depends on how many new issues have appeared, how much trouble they
cause and how much trouble it is do a rollback. It might be easier to
roll forward.
--
/Jac
80 matches
Mail list logo