Re: GSOC 2020 projects

2020-02-23 Thread RazvanN via Digitalmars-d-announce

On Tuesday, 18 February 2020 at 05:59:47 UTC, RazvanN wrote:

Hello everyone!

In a couple of days we should find out if The Dlang Foundation 
was accepted as a mentoring organization for Google Summer of 
Code 2020. If we get accepted, I think that we should have a 
list of priority projects that we should propose to students. I 
have started tagging what I find the most useful projects with 
the gsoc2020 tag [1]. If you want to help in this process you 
can:


[...]


Unfortunately, Dlang has not been accepted this year as a GSOC 
mentoring organization. Maybe we will have better luck next year,


Cheers,
RazvanN


Re: DIP 1027---String Interpolation---Format Assessment

2020-02-23 Thread Adam D. Ruppe via Digitalmars-d-announce

On Sunday, 23 February 2020 at 18:57:55 UTC, Adam D. Ruppe wrote:
As the DIP author, Walter also rejected the suggestion to go 
with an implementation that resolves to a library template. He 
sees that as equivalent to AST macros, a feature which he has 
previously rejected.


How is `foo!str, args...` a macro when `str, args...` is not?



The one thing that MIGHT motivate this mistaken belief is if you 
think `foo` is defined in and looked up from random libraries.


That is NOT the case. `foo` here is a placeholder name for a 
template defined once and only once, in druntime. It is a normal 
lowering, just like is done very successfully in several places 
throughout the D language.


Re: DIP 1027---String Interpolation---Format Assessment

2020-02-23 Thread Adam D. Ruppe via Digitalmars-d-announce

On Sunday, 23 February 2020 at 16:22:46 UTC, Mike Parker wrote:
The decision was primarily influenced by the lack of consensus 
over the implementation and the syntax demonstrated in the two 
review threads.


That's not true, we had consensus minus one - the community 
rallied around just one small tweak to the proposal.


https://forum.dlang.org/post/r1emt0$2rpk$1...@digitalmars.com "Now 
that is something I could use."


https://forum.dlang.org/post/gvckofpbecslxwlle...@forum.dlang.org 
"This looks really good."


https://forum.dlang.org/post/bawaaxojdtvsguade...@forum.dlang.org 
"A different beast is Adam / Steven proposal ."


https://forum.dlang.org/post/mailman.1029.1580903463.31109.digitalmar...@puremagic.com 
"Adam/Steven's proposal is *so* much better,"

https://forum.dlang.org/post/vhhumlsdimntzxnkx...@forum.dlang.org 
"hope we can get instead the proposal from Adam / Steven."


https://forum.dlang.org/post/oswkdwpocuvcvdrxp...@forum.dlang.org 
"The implementation specified here is, more or less, what I would 
actually want out of string interpolation in D."


Each of those posts are from different people. And if you go 
through the thread, there's even more.


Sure, there's some people who would prefer % over $, or {} over 
(), or implicit over explicit toString/idup, but at the end of 
the day, we were all willing to put aside our remaining 
differences and accept that not 100% of people will be 100% happy 
to get a solution that 90% of people can be 90% happy with.


There's just one person who didn't appear to even engage with the 
idea. Guess who.


As the DIP author, Walter also rejected the suggestion to go 
with an implementation that resolves to a library template. He 
sees that as equivalent to AST macros, a feature which he has 
previously rejected.


How is `foo!str, args...` a macro when `str, args...` is not? 
Obviously, to the objective reader, neither is a macro - both are 
simply argument lists. Just one is (potentially) type-safe and 
the other isn't.


Re: Earcut polygon triangulation

2020-02-23 Thread Ferhat Kurtulmuş via Digitalmars-d-announce

On Sunday, 23 February 2020 at 16:20:09 UTC, Ahmet Sait wrote:
On Sunday, 23 February 2020 at 10:07:44 UTC, Ferhat Kurtulmuş 
wrote:
For those who are interested in game programming, geospatial 
things, 2D graphics etc. Earcut is a polygon triangulation 
library originally written in js and ported to almost every 
popular language (except D). I was playing around with my 
hobby sdl game and needed to draw some concave polygons. So, I 
have just ported the lib (suitable for betterC). My initial 
tests showed that it is fast that can be used for real-time 
rendering. If you have a function that can draw triangles, you 
can draw concave/convex any polygon which can also have holes.


https://github.com/mapbox/earcut.hpp
https://github.com/aferust/earcut-d


Out of curiosity, why would you need to triangulate polygons 
instead of using stencil buffer? I'm assuming you're using 
OpenGL (or something similar) since you talked about your hobby 
game. Any advantage of triangulating shapes? (anti-aliasing 
maybe?)
I am not using opengl, but just sdl for no reason. I am trying to 
make a clone of a particular type of game namely wolfied, qix, or 
gals panic. Actually, I did it using cocos2dx (clipping node does 
the trick) in js few years ago. But this time I am trying to 
reclone it using just d and sdl by going bare metal. The ultimate 
target is running it on the browser maybe using dscripten.




DIP 1027---String Interpolation---Format Assessment

2020-02-23 Thread Mike Parker via Digitalmars-d-announce
DIP 1027, "String Interpolation", has been rejected. The decision 
was primarily influenced by the lack of consensus over the 
implementation and the syntax demonstrated in the two review 
threads. As the DIP author, Walter also rejected the suggestion 
to go with an implementation that resolves to a library template. 
He sees that as equivalent to AST macros, a feature which he has 
previously rejected.


https://github.com/dlang/DIPs/blob/4be15bd40381667c0ab1c0aef360d0daa4b8c82c/DIPs/rejected/DIP1027.md


Re: Earcut polygon triangulation

2020-02-23 Thread Ahmet Sait via Digitalmars-d-announce
On Sunday, 23 February 2020 at 10:07:44 UTC, Ferhat Kurtulmuş 
wrote:
For those who are interested in game programming, geospatial 
things, 2D graphics etc. Earcut is a polygon triangulation 
library originally written in js and ported to almost every 
popular language (except D). I was playing around with my hobby 
sdl game and needed to draw some concave polygons. So, I have 
just ported the lib (suitable for betterC). My initial tests 
showed that it is fast that can be used for real-time 
rendering. If you have a function that can draw triangles, you 
can draw concave/convex any polygon which can also have holes.


https://github.com/mapbox/earcut.hpp
https://github.com/aferust/earcut-d


Out of curiosity, why would you need to triangulate polygons 
instead of using stencil buffer? I'm assuming you're using OpenGL 
(or something similar) since you talked about your hobby game. 
Any advantage of triangulating shapes? (anti-aliasing maybe?)


Earcut polygon triangulation

2020-02-23 Thread Ferhat Kurtulmuş via Digitalmars-d-announce
For those who are interested in game programming, geospatial 
things, 2D graphics etc. Earcut is a polygon triangulation 
library originally written in js and ported to almost every 
popular language (except D). I was playing around with my hobby 
sdl game and needed to draw some concave polygons. So, I have 
just ported the lib (suitable for betterC). My initial tests 
showed that it is fast that can be used for real-time rendering. 
If you have a function that can draw triangles, you can draw 
concave/convex any polygon which can also have holes.


https://github.com/mapbox/earcut.hpp
https://github.com/aferust/earcut-d