Re: Mixin and map

2015-04-05 Thread Gary Willoughby via Digitalmars-d-learn
On Sunday, 5 April 2015 at 21:23:14 UTC, Dennis Ritchie wrote: Hi, Can you please tell how to make map worked correctly. I want to program published [2, 3, 4, 5, 6]. - import std.stdio; import std.algorithm; string print(string s) { return `writeln(` ~ s ~ `);`; } void main() {

[Issue 14384] speed up Base64 decoding

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14384 --- Comment #2 from Martin Nowak c...@dawg.eu --- Sure, the 2 things I named are still valid ideas to speed up the function. --

Re: What's the deal with -boundscheck?

2015-04-05 Thread Walter Bright via Digitalmars-d
On 4/5/2015 7:42 PM, deadalnix wrote: I don't even this is the way? We have a .ptr property. One cause use it to disable bound checking. I can't parse the first and third sentences.

Re: bug report system going mad ?

2015-04-05 Thread deadalnix via Digitalmars-d
On Monday, 6 April 2015 at 04:46:55 UTC, Vladimir Panteleev wrote: On Monday, 6 April 2015 at 04:29:22 UTC, deadalnix wrote: I made some edit to https://issues.dlang.org/show_bug.cgi?id=14364 Every single time, I get redirect to https://issues.dlang.org/show_bug.cgi?id=14346 after I make an

Re: What's the deal with -boundscheck?

2015-04-05 Thread Walter Bright via Digitalmars-d
On 4/5/2015 7:13 PM, Andrei Alexandrescu wrote: I've spent the better part of yesterday and today debugging a complex matter involving pointers, reduced to this: ../dmd/src/dmd -conf= -I../druntime/import -w -dip25 -m64 -O -release -main -unittest generated/osx/release/64/libphobos2.a

Re: CURL to get/set cookies

2015-04-05 Thread Benjamin via Digitalmars-d-learn
Im still not able to set the cookie. Would it be possible to provide a few sample lines - to ensure I'm on the right path. I appreciate any additional help!! Thanks! Benjamin On Wednesday, 1 April 2015 at 14:33:55 UTC, Adam D. Ruppe wrote: There's two ways, you can let curl handle it by

Re: What's the deal with -boundscheck?

2015-04-05 Thread deadalnix via Digitalmars-d
On Monday, 6 April 2015 at 05:16:21 UTC, Walter Bright wrote: On 4/5/2015 7:42 PM, deadalnix wrote: I don't even this is the way? We have a .ptr property. One cause use it to disable bound checking. I can't parse the first and third sentences. WTF did I wrote ?!? Ok let's make it in

Re: I submitted my container library to code.dlang.org

2015-04-05 Thread Martin Nowak via Digitalmars-d
On 04/04/2015 05:12 PM, Kagamin wrote: I think, leave the seed zero and only provide a function to change it: extern(C) void _d_setHashSeed(int seed); Sounds good, accepting patches :). https://issues.dlang.org/show_bug.cgi?id=14414

Re: What's the deal with -boundscheck?

2015-04-05 Thread weaselcat via Digitalmars-d
On Monday, 6 April 2015 at 02:13:42 UTC, Andrei Alexandrescu wrote: I've spent the better part of yesterday and today debugging a complex matter involving pointers, reduced to this: ../dmd/src/dmd -conf= -I../druntime/import -w -dip25 -m64 -O -release -main -unittest

Re: std.reflection prototype

2015-04-05 Thread Rikki Cattermole via Digitalmars-d
On 6/04/2015 6:08 a.m., bitwise wrote: I'm pretty sure this function here is converting the typeinfo to a linked list of data that gets outputted to the object file: .. Scratch that, I think this is what I'm looking for:

bug report system going mad ?

2015-04-05 Thread deadalnix via Digitalmars-d
I made some edit to https://issues.dlang.org/show_bug.cgi?id=14364 Every single time, I get redirect to https://issues.dlang.org/show_bug.cgi?id=14346 after I make an edit. What is going on here ?

Re: Speed of horizontal flip

2015-04-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Wednesday, 1 April 2015 at 13:52:06 UTC, tchaloupka wrote: C#: PNG load - 90ms PNG flip - 10ms PNG save - 380ms D using dlib (http://code.dlang.org/packages/dlib): PNG load - 500ms PNG flip - 30ms PNG save - 950ms D using imageformats (http://code.dlang.org/packages/imageformats): PNG load

[Issue 14402] std.conv.emplace segfaults for nested class

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14402 --- Comment #1 from Matt Kline mkline.o...@gmail.com --- I just noticed that if you try to `new` a context-aware class or struct outside that context, you get a nice compiler warning indicating that you cannot do so. Can we, via template magic or

Binary search in structs

2015-04-05 Thread FreeSlave via Digitalmars-d-learn
I have array of structs sorted by specific field. How can I perform binary search using this field as a key? Currently I ended up with this, but it gives error: struct S { int i; string s; } import std.range; void main(string [] args) { S[] structs = [{1,hello}, {2,world}, {3,

[Issue 14415] New: globMatch should support recursive matching (**)

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14415 Issue ID: 14415 Summary: globMatch should support recursive matching (**) Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: Binary search in structs

2015-04-05 Thread w0rp via Digitalmars-d-learn
On Sunday, 5 April 2015 at 23:06:27 UTC, FreeSlave wrote: I have array of structs sorted by specific field. How can I perform binary search using this field as a key? Currently I ended up with this, but it gives error: struct S { int i; string s; } import std.range; void main(string

[Issue 13996] Function for returning a temporary file with a randomly generated name where the name can be accessed

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13996 Martin Nowak c...@dawg.eu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: Questions about phobos additions mentioned in 2015H1 vision document

2015-04-05 Thread Rikki Cattermole via Digitalmars-d
On 6/04/2015 6:31 a.m., Andrei Alexandrescu wrote: On 4/5/15 10:48 AM, Gary Willoughby wrote: In the 2015H1 vision document[1] it states the following: quote *Foster additions to the standard library and third-party libraries* We prefer adding new components to the standard library over

[Issue 14364] Spec is incorrect for opAssign operators.

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14364 deadalnix deadal...@gmail.com changed: What|Removed |Added Summary|DMD should compile |Spec is incorrect for

[Issue 14364] DMD should compile (correctly) SDC test0167.d

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14364 --- Comment #9 from deadalnix deadal...@gmail.com --- Update : It turns out DMD has the intended behavior. However, the spec need to be fixed. a += b do not decay as a = cast(typeof(a)) (a + b) but as : ((ref i, auto ref j) = i = cast(typeof(i))

[Issue 14364] DMD should compile (correctly) SDC test0167.d

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14364 deadalnix deadal...@gmail.com changed: What|Removed |Added Component|DMD |websites --

Re: CURL to get/set cookies

2015-04-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 5 April 2015 at 23:55:15 UTC, Benjamin wrote: Im still not able to set the cookie. Would it be possible to provide a few sample lines - to ensure I'm on the right path. I appreciate any additional help!! Thanks! Benjamin This should work: auto cookiesFile = cookies.txt; auto

Re: Mid-term vision review

2015-04-05 Thread Iain Buclaw via Digitalmars-d
On 5 April 2015 at 21:37, Benjamin Thaut via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sunday, 5 April 2015 at 18:30:16 UTC, Andrei Alexandrescu wrote: On 4/5/15 10:32 AM, Benjamin Thaut wrote: Am 03.04.2015 00:44, schrieb Andrei Alexandrescu: switching to ddmd, hopefully with

Re: Mixin and map

2015-04-05 Thread Dennis Ritchie via Digitalmars-d-learn
On Sunday, 5 April 2015 at 21:28:27 UTC, Gary Willoughby wrote: Post incrementing t is not storing the increments value. http://ideone.com/1gGnvP Thanks.

What's the deal with -boundscheck?

2015-04-05 Thread Andrei Alexandrescu via Digitalmars-d
I've spent the better part of yesterday and today debugging a complex matter involving pointers, reduced to this: ../dmd/src/dmd -conf= -I../druntime/import -w -dip25 -m64 -O -release -main -unittest generated/osx/release/64/libphobos2.a -defaultlib= -debuglib= -L-lcurl -run

Re: Mid-term vision review

2015-04-05 Thread Daniel Murphy via Digitalmars-d
Benjamin Thaut wrote in message news:nkhhmscwnjcrdbihk...@forum.dlang.org... Daniel, any thoughts? Can we help with tooling? -- Andrei Shouldn't it be possible to tag the last C++ version of dmd? Then rebase the pull-reuqest on top of that and run it through the C++ to D conversion tool.

[Issue 14416] .sizeof yields 1 for uninstantiated struct templates

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14416 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Keywords||accepts-invalid --

[Issue 13946] ddox should rebuild documentation incrementally

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13946 Sönke Ludwig slud...@outerproduct.org changed: What|Removed |Added CC|

[Issue 14414] New: allow to set hash seed

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14414 Issue ID: 14414 Summary: allow to set hash seed Product: D Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1

[Issue 12891] add atomicFetchAdd and atomicFetchSub to core.atomic

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12891 --- Comment #8 from Jonathan Dunlap jad...@gmail.com --- Thanks Martin for the gist sample, I've started to integrate in this branch: https://github.com/jadbox/druntime/tree/fetchmod Currently I'm having an issue where a static if check against

Re: bug report system going mad ?

2015-04-05 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 6 April 2015 at 04:29:22 UTC, deadalnix wrote: I made some edit to https://issues.dlang.org/show_bug.cgi?id=14364 Every single time, I get redirect to https://issues.dlang.org/show_bug.cgi?id=14346 after I make an edit. What is going on here ? This is the default Bugzilla

[Issue 14416] New: .sizeof yields 1 for uninstantiated struct templates

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14416 Issue ID: 14416 Summary: .sizeof yields 1 for uninstantiated struct templates Product: D Version: D2 Hardware: x86 OS: All Status: NEW Severity: normal

Re: Questions about phobos additions mentioned in 2015H1 vision document

2015-04-05 Thread Andrei Alexandrescu via Digitalmars-d
On 4/5/15 12:02 PM, bearophile wrote: Andrei Alexandrescu: 1. Are you wanting a large batteries included standard library a'la Python[2] or only focused around the aspects mentioned? Batteries included. This is a quite significant decision. It has both advantages and disadvantages. (I

Mixin and map

2015-04-05 Thread Dennis Ritchie via Digitalmars-d-learn
Hi, Can you please tell how to make map worked correctly. I want to program published [2, 3, 4, 5, 6]. - import std.stdio; import std.algorithm; string print(string s) { return `writeln(` ~ s ~ `);`; } void main() { auto arr = [1, 2, 3, 4, 5];

Re: What's the deal with -boundscheck?

2015-04-05 Thread Walter Bright via Digitalmars-d
On 4/5/2015 10:15 PM, Walter Bright wrote: A new switch was added, -boundscheck=[on|safeonly|off]. It took me a while to find it at: http://dlang.org/dmd-linux.html because whoever added it didn't realize that the list was alphabetized and stuck it in there after -map.

Re: Binary search in structs

2015-04-05 Thread FreeSlave via Digitalmars-d-learn
On Sunday, 5 April 2015 at 23:15:04 UTC, w0rp wrote: On Sunday, 5 April 2015 at 23:06:27 UTC, FreeSlave wrote: I have array of structs sorted by specific field. How can I perform binary search using this field as a key? Currently I ended up with this, but it gives error: struct S { int i;

Re: What's the deal with -boundscheck?

2015-04-05 Thread Meta via Digitalmars-d
On Monday, 6 April 2015 at 05:15:43 UTC, Walter Bright wrote: I read the code to figure out what was happening. At some point, -release was changed so that bounds checking was turned off for all but @safe code. A new switch was added, -boundscheck=[on|safeonly|off]. It took me a while to find

Re: Mid-term vision review

2015-04-05 Thread Dennis Ritchie via Digitalmars-d
On Friday, 3 April 2015 at 17:51:00 UTC, Andrei Alexandrescu wrote: On 4/3/15 4:04 AM, Dennis Ritchie wrote: On Thursday, 2 April 2015 at 22:44:56 UTC, Andrei Alexandrescu wrote: It's the end of Q1. Walter and I reviewed our vision document. We're staying the course with one important

Re: What's the deal with -boundscheck?

2015-04-05 Thread deadalnix via Digitalmars-d
On Monday, 6 April 2015 at 02:13:42 UTC, Andrei Alexandrescu wrote: I've spent the better part of yesterday and today debugging a complex matter involving pointers, reduced to this: ../dmd/src/dmd -conf= -I../druntime/import -w -dip25 -m64 -O -release -main -unittest

Re: [dimgui] building results in 16 warnings, no error BUT: Building .dub\lib\imgui_d.lib failed!

2015-04-05 Thread ParticlePeter via Digitalmars-d-learn
On Saturday, 4 April 2015 at 21:29:57 UTC, Jacques Müller wrote: On Saturday, 4 April 2015 at 18:11:32 UTC, ParticlePeter wrote: Hi, am still searching for the right place to ask library related questions, and was advised to ask them here. The dimgui library looks interesting for my projects

[Issue 14406] [REG2.068a] GIT HEAD ignores forward reference and generates wrong code

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14406 --- Comment #4 from Puneet Goel pun...@coverify.org --- Thanks Kanji.. Works for me. --

Re: More Libraries - sub-forum request

2015-04-05 Thread ParticlePeter via Digitalmars-d
On Saturday, 4 April 2015 at 20:34:47 UTC, Kapps wrote: On Saturday, 4 April 2015 at 16:43:45 UTC, ParticlePeter wrote: Hi, there is this nice new link to More libraries link, but there is no place to discuss usage, exchange experiences or ask questions regarding these libraries ( unless I am

Re: Mid-term vision review

2015-04-05 Thread Iain Buclaw via Digitalmars-d
On 4 April 2015 at 22:48, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sat, Apr 04, 2015 at 01:10:43PM -0700, Walter Bright via Digitalmars-d wrote: On 4/3/2015 9:41 AM, David Nadlinger wrote: On Friday, 3 April 2015 at 15:07:57 UTC, Andrei Alexandrescu wrote: On 4/3/15

Re: Mid-term vision review

2015-04-05 Thread Iain Buclaw via Digitalmars-d
On 5 April 2015 at 13:49, David Nadlinger via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sunday, 5 April 2015 at 01:59:21 UTC, Daniel Murphy wrote: weaselcat wrote in message news:rspoyryeklgjychqf...@forum.dlang.org... Out of curiosity, what was the communication level between the

Re: Mid-term vision review

2015-04-05 Thread David Nadlinger via Digitalmars-d
On Sunday, 5 April 2015 at 01:59:21 UTC, Daniel Murphy wrote: weaselcat wrote in message news:rspoyryeklgjychqf...@forum.dlang.org... Out of curiosity, what was the communication level between the decision to switch to ddmd frontend and the ldc/gdc team? The ldc and gdc teams have been

[OT] Yes, you can help std.allocator!

2015-04-05 Thread Kagamin via Digitalmars-d
On Sunday, 5 April 2015 at 03:16:32 UTC, Andrei Alexandrescu wrote: Things are going well with std.allocator. I broke the code into a package with modules, which makes it quite nice to deal with. Also I just implemented a simple heterogeneous freelist allocator akin to the Kernighan-Ritchie

Re: Reggae v0.0.5 super alpha: A build system in D

2015-04-05 Thread Kagamin via Digitalmars-d-announce
On Saturday, 4 April 2015 at 19:59:46 UTC, Dicebot wrote: We need solutions that can be reasonably implemented with existing resources, not perfect solutions. Storing IR in object files and using custom linker is correct approach for WPO but it is currently unaffordable. Works for me with

Re: Standardpaths library

2015-04-05 Thread FreeSlave via Digitalmars-d-announce
On Sunday, 5 April 2015 at 11:42:42 UTC, Marco Leise wrote: On another note when I ran your 'printdirs' it didn't list a user Fonts or Applications directory. The Applications directory is ok, but I do have a ~/.fonts/ directory and /etc/fonts/fonts.conf says: !-- the following element will be

Re: Standardpaths library

2015-04-05 Thread Kagamin via Digitalmars-d-announce
On Sunday, 5 April 2015 at 09:08:14 UTC, FreeSlave wrote: And github repo https://github.com/MyLittleRobo/standardpaths If I understand meaning of PublicShare correctly, it's CSIDL_COMMON_APPDATA on Windows.

Re: Standardpaths library

2015-04-05 Thread FreeSlave via Digitalmars-d-announce
On Sunday, 5 April 2015 at 11:42:42 UTC, Marco Leise wrote: is this Windows? return executable_path That depends on what do you understand by data. Are game's saves data too? Or content downloaded while playing (server-specific assets or new levels). In the past it was ok to write configs

[Issue 14410] New: core.demangle doesn't handle typeof(null) correctly

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14410 Issue ID: 14410 Summary: core.demangle doesn't handle typeof(null) correctly Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

Re: Reggae v0.0.5 super alpha: A build system in D

2015-04-05 Thread Kagamin via Digitalmars-d-announce
On Sunday, 5 April 2015 at 12:22:15 UTC, Dicebot wrote: Unless LDC does some D specific WPO magic I am not aware of this is not what your original statement was about. llvm does normal WPO in a sense that compiled code is not opaque. Erm. Either it is coding style issue or a language issue.

Re: What's the current status of GC in phobos?

2015-04-05 Thread MarisaLovesUsAll via Digitalmars-d
Thanks for the answers!

[Issue 14411] New: switch statement: docs/behavior differ

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14411 Issue ID: 14411 Summary: switch statement: docs/behavior differ Product: D Version: D2 Hardware: All OS: Mac OS X Status: NEW Severity: enhancement

[Issue 14411] switch statement: docs/behavior differ

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14411 --- Comment #1 from Cody Casterline cody.casterline+dl...@gmail.com --- Aw. You have to download the example to see it. To save some time: $ cat switch.d #!/usr/bin/env rdmd import std.stdio; void main() { foreach (i; 1..7) {

Re: Standardpaths library

2015-04-05 Thread Marco Leise via Digitalmars-d-announce
Am Sun, 05 Apr 2015 09:08:12 + schrieb FreeSlave freeslav...@gmail.com: I wrote small library for getting standard paths (like Pictures, Music) Here's dub package http://code.dlang.org/packages/standardpaths And github repo https://github.com/MyLittleRobo/standardpaths You can see

Re: Reggae v0.0.5 super alpha: A build system in D

2015-04-05 Thread Dicebot via Digitalmars-d-announce
On Sunday, 5 April 2015 at 12:17:09 UTC, Kagamin wrote: On Saturday, 4 April 2015 at 19:59:46 UTC, Dicebot wrote: We need solutions that can be reasonably implemented with existing resources, not perfect solutions. Storing IR in object files and using custom linker is correct approach for WPO

Re: Yes, you can help std.allocator!

2015-04-05 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 5 April 2015 at 03:16:32 UTC, Andrei Alexandrescu wrote: Things are going well with std.allocator. I broke the code into a package with modules, which makes it quite nice to deal with. Also I just implemented a simple heterogeneous freelist allocator akin to the Kernighan-Ritchie

Re: Standardpaths library

2015-04-05 Thread FreeSlave via Digitalmars-d-announce
On Sunday, 5 April 2015 at 12:35:46 UTC, Kagamin wrote: On Sunday, 5 April 2015 at 09:08:14 UTC, FreeSlave wrote: And github repo https://github.com/MyLittleRobo/standardpaths If I understand meaning of PublicShare correctly, it's CSIDL_COMMON_APPDATA on Windows. Although I did not find if

Re: Placing variable/array in a particular section

2015-04-05 Thread Jens Bauer via Digitalmars-d-learn
On Sunday, 5 April 2015 at 10:16:10 UTC, Johannes Pfau wrote: I'll push support for the section attribute in 1~2 hours. (waiting for the testsuite ;-) [1] https://github.com/D-Programming-GDC/GDC/blob/master/libphobos/libdruntime/gcc/attribute.d I've made a couple of tests and it all works

Dgame RC #2

2015-04-05 Thread Namespace via Digitalmars-d-announce
Instead of opening a new post I announce here the release of the RC #2. Besides some minor bug fixes and some API changes (mostly to improve the Event handling) I've added also support for Joysticks and GameControllers. That should be the last big changes. If no more bugs appear (and the

Re: std.reflection prototype

2015-04-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-04 21:49, bitwise wrote: One more question: Does anyone know why TypeInfo_class.getMembers() was removed? [1] I found an old post saying that it never worked and returned an empty array, so that is most likely the answer Yes. but although getMembers was removed, Walter seems to

Re: Mid-term vision review

2015-04-05 Thread deadalnix via Digitalmars-d
On Sunday, 5 April 2015 at 05:04:52 UTC, H. S. Teoh wrote: On Sat, Apr 04, 2015 at 04:31:06PM -0700, Walter Bright via Digitalmars-d wrote: On 4/4/2015 1:48 PM, H. S. Teoh via Digitalmars-d wrote: Besides, even if you could, you're just one person, whereas gdc/ldc have a much larger number of

Re: What's the current status of GC in phobos?

2015-04-05 Thread Kapps via Digitalmars-d
On Sunday, 5 April 2015 at 05:10:21 UTC, weaselcat wrote: On Sunday, 5 April 2015 at 02:23:47 UTC, MarisaLovesUsAll wrote: Hi! Today I met one guy on the internet, he said that he will use D only if standard library will not require Garbage Collector (in case of total GC disabling). So

Re: std.reflection prototype

2015-04-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-04 18:16, bitwise wrote: Ok, I think I understand what you're suggesting now, which is that you want a library to be able to override RTInfo in order to add it's own metadata to all types, which raises the question, what if more than one library wants to add metadata? And I think

Re: C++ to D - recursion with std.variant

2015-04-05 Thread thedeemon via Digitalmars-d-learn
On Friday, 3 April 2015 at 16:46:08 UTC, Dennis Ritchie wrote: Hi, Is it possible to write on D recursion using std.variant? Using Algebraic from std.variant and some additional templates: http://dpaste.dzfl.pl/65afd3a7ce52 (taken from this thread:

Re: Placing variable/array in a particular section

2015-04-05 Thread Jens Bauer via Digitalmars-d-learn
On Sunday, 5 April 2015 at 10:16:10 UTC, Johannes Pfau wrote: On 4/04/2015 3:08 a.m., Jens Bauer wrote: It's possible to use gcc.attribute with custom mini-runtimes. You need the gcc/attribute.d file but you can simply copy/paste it from druntime[1], there are no dependencies. After

Re: Placing variable/array in a particular section

2015-04-05 Thread Johannes Pfau via Digitalmars-d-learn
Am Sat, 04 Apr 2015 10:38:44 + schrieb Jens Bauer doc...@who.no: On Saturday, 4 April 2015 at 02:57:22 UTC, Rikki Cattermole wrote: On 4/04/2015 3:08 a.m., Jens Bauer wrote: src/start.d:7:10: error: module attribute is in file 'gcc/attribute.d' which cannot be read import

Re: What's the current status of GC in phobos?

2015-04-05 Thread weaselcat via Digitalmars-d
On Sunday, 5 April 2015 at 08:08:26 UTC, Kapps wrote: On Sunday, 5 April 2015 at 05:10:21 UTC, weaselcat wrote: On Sunday, 5 April 2015 at 02:23:47 UTC, MarisaLovesUsAll wrote: Hi! Today I met one guy on the internet, he said that he will use D only if standard library will not require

Standardpaths library

2015-04-05 Thread FreeSlave via Digitalmars-d-announce
I wrote small library for getting standard paths (like Pictures, Music) Here's dub package http://code.dlang.org/packages/standardpaths And github repo https://github.com/MyLittleRobo/standardpaths You can see open issues on github. Please, participate in discussions if you're interested. The

Re: unittests are really part of the build, not a special run

2015-04-05 Thread Nordlöw
On Saturday, 4 April 2015 at 19:00:01 UTC, Andrei Alexandrescu wrote: On 4/4/15 10:38 AM, Nordlöw wrote: Please also think about how such a builtin feature would promote establishment and usage of D from a robustness and productivity point of view. I do think it's a great idea. Sadly I also

Re: Making regex replace CTFE by removing malloc

2015-04-05 Thread ketmar via Digitalmars-d
On Sat, 04 Apr 2015 01:50:00 +, Jakob Ovrum wrote: On Friday, 3 April 2015 at 03:58:33 UTC, ketmar wrote: p.s. i don't think that this is the only problem, though. but i never read std.regexp source. it's bad, 'cause i want to make it work with any range, not only with strings. this will

[Issue 14411] switch statement: docs/behavior differ

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14411 --- Comment #3 from Cody Casterline cody.casterline+dl...@gmail.com --- specs says nothing about other cases. Well, it says that ScopeStatementList must be empty, or be ended [...]. Which I read to mean there are no other cases. This is to set

[Issue 5770] Template constructor bypass access check

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5770 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||accepts-invalid, pull ---

Questions about phobos additions mentioned in 2015H1 vision document

2015-04-05 Thread Gary Willoughby via Digitalmars-d
In the 2015H1 vision document[1] it states the following: quote *Foster additions to the standard library and third-party libraries* We prefer adding new components to the standard library over refactorings and reorganizations of those that work (barring bug fixes). Our vision is to foster a

Re: std.reflection prototype

2015-04-05 Thread bitwise via Digitalmars-d
I'm pretty sure this function here is converting the typeinfo to a linked list of data that gets outputted to the object file: .. Scratch that, I think this is what I'm looking for: https://github.com/D-Programming-Language/dmd/blob/master/src/toobj.c#L308

Re: Dgame RC #2

2015-04-05 Thread Namespace via Digitalmars-d-announce
On Sunday, 5 April 2015 at 16:39:34 UTC, Suliman wrote: Is it's possible to use Dgame for iOS game developing? AFAIK iOS LDC now support building iOS Apps. https://github.com/smolt/ldc-iphone-dev No. But because I also have no iOS device, I could not test well in this respect. My next step

Re: [OT] Yes, you can help std.allocator!

2015-04-05 Thread Andrei Alexandrescu via Digitalmars-d
On 4/5/15 4:50 AM, Kagamin wrote: On Sunday, 5 April 2015 at 03:16:32 UTC, Andrei Alexandrescu wrote: Things are going well with std.allocator. I broke the code into a package with modules, which makes it quite nice to deal with. Also I just implemented a simple heterogeneous freelist allocator

Re: unittests are really part of the build, not a special run

2015-04-05 Thread Andrei Alexandrescu via Digitalmars-d
On 4/5/15 4:04 AM, Nordlöw wrote: On Saturday, 4 April 2015 at 19:00:01 UTC, Andrei Alexandrescu wrote: On 4/4/15 10:38 AM, Nordlöw wrote: Please also think about how such a builtin feature would promote establishment and usage of D from a robustness and productivity point of view. I do

Re: Mid-term vision review

2015-04-05 Thread Andrei Alexandrescu via Digitalmars-d
On 4/5/15 10:32 AM, Benjamin Thaut wrote: Am 03.04.2015 00:44, schrieb Andrei Alexandrescu: switching to ddmd, hopefully with 2.068. Andrei That sounds nice, I just hope that there is going to be some nice migration path for people currently working on Pull-Requests for the C++ Version of

Re: Questions about phobos additions mentioned in 2015H1 vision document

2015-04-05 Thread Andrei Alexandrescu via Digitalmars-d
On 4/5/15 10:48 AM, Gary Willoughby wrote: In the 2015H1 vision document[1] it states the following: quote *Foster additions to the standard library and third-party libraries* We prefer adding new components to the standard library over refactorings and reorganizations of those that work

[Issue 13948] Ddox should not generate documentation for std.c.*

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13948 Sönke Ludwig slud...@outerproduct.org changed: What|Removed |Added Status|NEW |RESOLVED

Re: Reggae v0.0.5 super alpha: A build system in D

2015-04-05 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 4/4/15 12:56 PM, Dicebot wrote: Even if you consistently work with the same project it is incredibly rare to have a changeset contained in a single module. And if there are at least 5 changed modules (including inter-dependencies) it becomes long enough already. That's my experience as

Re: Dgame RC #2

2015-04-05 Thread Suliman via Digitalmars-d-announce
Is it's possible to use Dgame for iOS game developing? AFAIK iOS LDC now support building iOS Apps. https://github.com/smolt/ldc-iphone-dev

Re: Making regex replace CTFE by removing malloc

2015-04-05 Thread ketmar via Digitalmars-d
On Fri, 03 Apr 2015 15:04:38 +, Pierre Krafft wrote: It seems like I have treaded into something which is outside my knowledge domain. The malloc is indeed one of the least problems with that code. The code makes use of completely unsafe code with pointer casts that are disallowed in CTFE

[Issue 14412] New: Include template specializations in DMD's JSON output

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14412 Issue ID: 14412 Summary: Include template specializations in DMD's JSON output Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 14411] switch statement: docs/behavior differ

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14411 --- Comment #2 from Ketmar Dark ket...@ketmar.no-ip.org --- specs says nothing about other cases. turn on compiler warnings and you will see something like this: z00.d(25): Warning: switch case fallthrough - use 'goto case;' if intended z00.d(28):

[Issue 14413] New: Spurious newline in ddoc JSON output for multiple successive line doc comments

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14413 Issue ID: 14413 Summary: Spurious newline in ddoc JSON output for multiple successive line doc comments Product: D Version: D2 Hardware: All OS: All

Re: Mid-term vision review

2015-04-05 Thread Benjamin Thaut via Digitalmars-d
Am 03.04.2015 00:44, schrieb Andrei Alexandrescu: switching to ddmd, hopefully with 2.068. Andrei That sounds nice, I just hope that there is going to be some nice migration path for people currently working on Pull-Requests for the C++ Version of dmd. I would prefer to not redo all the

Re: Questions about phobos additions mentioned in 2015H1 vision document

2015-04-05 Thread bearophile via Digitalmars-d
Andrei Alexandrescu: 1. Are you wanting a large batteries included standard library a'la Python[2] or only focused around the aspects mentioned? Batteries included. This is a quite significant decision. It has both advantages and disadvantages. (I think Rust has chosen to have a lighter

[Issue 14411] switch statement: docs/behavior differ

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14411 --- Comment #4 from Ketmar Dark ket...@ketmar.no-ip.org --- (In reply to Cody Casterline from comment #3) specs says nothing about other cases. Well, it says that ScopeStatementList must be empty, or be ended [...]. Which I read to mean there

Re: Mid-term vision review

2015-04-05 Thread Benjamin Thaut via Digitalmars-d
On Sunday, 5 April 2015 at 18:30:16 UTC, Andrei Alexandrescu wrote: On 4/5/15 10:32 AM, Benjamin Thaut wrote: Am 03.04.2015 00:44, schrieb Andrei Alexandrescu: switching to ddmd, hopefully with 2.068. Andrei That sounds nice, I just hope that there is going to be some nice migration path

Re: C++ to D - recursion with std.variant

2015-04-05 Thread Dennis Ritchie via Digitalmars-d-learn
On Sunday, 5 April 2015 at 09:48:01 UTC, thedeemon wrote: On Friday, 3 April 2015 at 16:46:08 UTC, Dennis Ritchie wrote: Hi, Is it possible to write on D recursion using std.variant? Using Algebraic from std.variant and some additional templates: http://dpaste.dzfl.pl/65afd3a7ce52 (taken

[Issue 12891] add atomicFetchAdd and atomicFetchSub to core.atomic

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12891 --- Comment #5 from Martin Nowak c...@dawg.eu --- (In reply to Jonathan Dunlap from comment #4) Depending on the size of mod you need to use a smaller register. static if (V1.sizeof == 1) asm { mov AL, mod; } static if (V1.sizeof == 2) asm { mov AX,

[Issue 12891] add atomicFetchAdd and atomicFetchSub to core.atomic

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12891 --- Comment #6 from Martin Nowak c...@dawg.eu --- Created attachment 1508 -- https://issues.dlang.org/attachment.cgi?id=1508action=edit atomic fetch add for x64 Implementation of atomicOp!+= (fetch_add) for X86_64. --

[Issue 12891] add atomicFetchAdd and atomicFetchSub to core.atomic

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12891 --- Comment #7 from Martin Nowak c...@dawg.eu --- See attachment above or this gist https://gist.github.com/MartinNowak/5111611ddc476eb49298 for a fetch_add implementation on X86_64. --

[Issue 13961] enum values appear as variables in ddox

2015-04-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13961 Sönke Ludwig slud...@outerproduct.org changed: What|Removed |Added CC|