Re: A ready to use Vulkan triangle example for D

2016-05-27 Thread WhatMeWorry via Digitalmars-d-announce

On Friday, 27 May 2016 at 18:40:24 UTC, maik klein wrote:

https://github.com/MaikKlein/VulkanTriangleD





Another dependency is ErupteD which I have forked myself 
because there is currently an issue with xlib-d and xcb-d with 
their versioning.




Nice work. As a person still trying to understand modern OpenGL, 
I admire your jump into Vulkan. Just a quick question if I may; 
Why did you use ErupteD over say d-vulkan or derelict-vulcan?  
From my brief perusal of all three, they all seem kind of the 
same.


Thanks.



Re: foo => "bar" key/value literals in D!

2016-05-27 Thread Taylor Hillegeist via Digitalmars-d-announce

On Friday, 27 May 2016 at 18:10:59 UTC, Vladimir Panteleev wrote:

On Monday, 23 May 2016 at 19:00:40 UTC, Adam D. Ruppe wrote:

Have I gone completely mad?!?!


Yes, though what does it have to do with this thread? :D

This is by far the most appealing way to implement named 
arguments that I've seen so far:


https://github.com/CyberShadow/ae/blob/master/utils/meta/args.d


This is very nice... way more clean than I imagined possible.


Re: Dynamic Bindings to libui (x-platform GUI)

2016-05-27 Thread ketmar via Digitalmars-d-announce
you probably misunderstood my post. ;-) i absolutely don't want 
to install gtk+3, it's not "native" for my system, no other app 
is using it. that means "no GNU/Linux support" for me.


SR3C -- small sompression library

2016-05-27 Thread ketmar via Digitalmars-d-announce
SR3C[1] is a small and simple MIT-licensed compression library 
(~28KB of source code, no external dependencies), which 
nevertheless can compress data with the quality of gzip -7.


the drawbacks are:
• it requires ~4.5MB of RAM for compression or decompression;
• decompression speed is much slower than gzip's;
• compression speed is slower too (yet this case can be improved 
by using gdc/ldc to build the code).


usage sample can be seen here[2].


[1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/sr3c.d
[2] 
http://repo.or.cz/iv.d.git/blob_plain/HEAD:/sr3csample/sr3ctest.d


Re: Battle-plan for CTFE

2016-05-27 Thread Stefan Koch via Digitalmars-d-announce

On Monday, 9 May 2016 at 16:57:39 UTC, Stefan Koch wrote:

Hi Guys,

I have been looking into the DMD now to see what I can do about 
CTFE.



I will post more details as soon as I dive deeper into the code.


Update :
int bug6498(int x)
{
int n = 0;
while (n < x)
++n;
return n;
}
static assert(bug6498(10_000_000)==10_000_000);
This compiles now for me. Although it still takes 10 seconds ;)


Re: Battle-plan for CTFE

2016-05-27 Thread Stefan Koch via Digitalmars-d-announce

On Saturday, 21 May 2016 at 21:20:54 UTC, Martin Nowak wrote:

On 05/21/2016 11:18 PM, Martin Nowak wrote:
The debugging metaphor would be comparing a program that only 
uses pointer arithmetic against one that is memory safe, the 
former can randomly write everywhere from anywhere, the latter 
could use the wrong reference.


It's also similar to comparing assembly code to C.


I am just working on a change that introduces a temporary-Stack 
to the memory management of dmd.

So far it crashes :)


Re: First Boston D language meetup

2016-05-27 Thread Andrei Alexandrescu via Digitalmars-d-announce

On 5/27/16 1:35 PM, Steven Schveighoffer wrote:

I added a meetup date for next Thursday. If any one is interested:

http://www.meetup.com/Boston-area-D-Programming-Language-Meetup/events/231443603/


I'll be there. Thanks! -- Andrei



Re: The D language online tour - tour.dlang.org

2016-05-27 Thread Seb via Digitalmars-d-announce

On Friday, 27 May 2016 at 19:18:11 UTC, Andrew Edwards wrote:

On Monday, 16 May 2016 at 17:32:06 UTC, André wrote:

[...]


Hello André,

Congratulations. Job well done on a much need resource for the 
community. I sent you an email almost two weeks ago via your 
website. Not sure if you received it since I did not receive a 
response. Please contact me via email. My address is plastered 
all around the forum.


Thanks,
Andrew


Hi Andrew,

have you tried to open a Github issue for it? [1]
It's quite active over there.

[1] https://github.com/stonemaster/dlang-tour


Re: The D language online tour - tour.dlang.org

2016-05-27 Thread Andrew Edwards via Digitalmars-d-announce

On Monday, 16 May 2016 at 17:32:06 UTC, André wrote:

Hi,

after another round of polishing, bug fixing, very useful user 
contributions and suggestions, I'd like to present the new home 
of the D language online tour:


http://tour.dlang.org/

Thank you very much to the D foundation for hosting this 
service!


If you would like to report errors or have suggestions, please 
use GitHub:


https://github.com/stonemaster/dlang-tour

Thanks & regards,
André


Hello André,

Congratulations. Job well done on a much need resource for the 
community. I sent you an email almost two weeks ago via your 
website. Not sure if you received it since I did not receive a 
response. Please contact me via email. My address is plastered 
all around the forum.


Thanks,
Andrew


Re: Sociomantic's short DConf2016 video

2016-05-27 Thread Corey via Digitalmars-d-announce
On Wednesday, 25 May 2016 at 12:17:13 UTC, Steven Schveighoffer 
wrote:

On 5/24/16 7:51 PM, Walter Bright wrote:
On 5/24/2016 4:04 PM, Jonathan M Davis via 
Digitalmars-d-announce wrote:
Well, I guess that that answers the question of what they 
were going

to do
with the interviews they were doing. :)


You should be pleased with your spot, well done!



Yes, "recharge the D batteries" :) I liked that one.

-Steve


That one tickled me also. Well, that, and I also liked Andrei's 
Andrei-shirt ;]


Overall, a surprisingly awesomely presented video. How many 
attended?


-Corey


A ready to use Vulkan triangle example for D

2016-05-27 Thread maik klein via Digitalmars-d-announce

https://github.com/MaikKlein/VulkanTriangleD

Currently only Linux is supported but it should be fairly easy to 
also add Windows support. Only the surface extensions have to be 
changed.


The example requires Vulkan ready hardware + driver + LunarG sdk 
with validation layer + sdl2.


Another dependency is ErupteD which I have forked myself because 
there is currently an issue with xlib-d and xcb-d with their 
versioning.


The example is also not currently completely 100% correct but it 
should run on most hardware.


I don't get any validation errors but I am sure I have made a few 
mistakes along the way.


It took me around 15 hours to get to a working triangle and I 
hope this might help someone who is interested in Vulkan.


Re: foo => "bar" key/value literals in D!

2016-05-27 Thread Vladimir Panteleev via Digitalmars-d-announce

On Monday, 23 May 2016 at 19:00:40 UTC, Adam D. Ruppe wrote:

Have I gone completely mad?!?!


Yes, though what does it have to do with this thread? :D

This is by far the most appealing way to implement named 
arguments that I've seen so far:


https://github.com/CyberShadow/ae/blob/master/utils/meta/args.d



Re: IDE - Coedit 2, update 6 released

2016-05-27 Thread Bauss via Digitalmars-d-announce

On Thursday, 26 May 2016 at 23:44:21 UTC, Basile B. wrote:
Mostly because an important feature of the library manager was 
not compatible with DUB > v0.9.24. Otherwise almost nothing.


See https://github.com/BBasile/Coedit/releases/tag/2_update_6 
for the changelog and the binaries.


Is there anyway to get dark theme?


First Boston D language meetup

2016-05-27 Thread Steven Schveighoffer via Digitalmars-d-announce

I added a meetup date for next Thursday. If any one is interested:

http://www.meetup.com/Boston-area-D-Programming-Language-Meetup/events/231443603/

-Steve


Re: SQLite-D alpha is here [did it mention it works at CTFE]

2016-05-27 Thread Stefan Koch via Digitalmars-d-announce

On Friday, 27 May 2016 at 07:08:30 UTC, Stefan Koch wrote:

On Friday, 27 May 2016 at 05:12:33 UTC, Stefan Koch wrote:

There is a locking mechanism in SQLite-proper.
However SQLite-D currently makes no attempt in looking for the 
lock-page.


Opps I was wrong :)
The Lock-page has nothing todo with threading :)


Maybe the thread in general got lost :)
SQLite-D works at compile-time.


Re: SQLite-D alpha is here

2016-05-27 Thread Stefan Koch via Digitalmars-d-announce

On Friday, 27 May 2016 at 05:12:33 UTC, Stefan Koch wrote:

There is a locking mechanism in SQLite-proper.
However SQLite-D currently makes no attempt in looking for the 
lock-page.


Opps I was wrong :)
The Lock-page has nothing todo with threading :)