Re: Inochi2D - Realtime 2D Animation written in D

2022-09-17 Thread Dmitry via Digitalmars-d-announce

On Sunday, 11 September 2022 at 23:00:24 UTC, Luna wrote:
Hey folks, I have for the (almost) past 2 years been working on 
a real-time 2D animation library called 
[Inochi2D](https://github.com/Inochi2D/inochi2d) and tooling 
for it. Recently I went full time on the project due to 
generous donations on GitHub Sponsors and Patreon.


Great job!


Re: Sublime Text Syntax Definition Rewrite

2019-02-27 Thread Dmitry via Digitalmars-d-announce
On Thursday, 28 February 2019 at 00:30:24 UTC, Benjamin Schaaf 
wrote:

I've recently gotten a massive rewrite of the D syntax

...

Hope you enjoy!
---
Thank you! Looking forward to try it (right now it shows 'no 
update available', build 3176)



Though I'd love to, we don't use D internally for anything.

Is this the reason why it works extremely slow with big files? :D



Re: SDL2 texture blend help

2017-12-13 Thread Dmitry via Digitalmars-d
On Wednesday, 13 December 2017 at 03:03:09 UTC, Ivan Trombley 
wrote:

Foreground image:
http://a4.pbase.com/o10/09/605909/1/166706860.c1yD4VWp.image.png


Okay, I see. With this image it's obvious that it's not a just 
blending problem. But previous was look exactly as blending 
problem. Sorry that took your time.




Re: SDL2 texture blend help

2017-12-12 Thread Dmitry via Digitalmars-d

On Tuesday, 12 December 2017 at 23:28:23 UTC, Ivan Trombley wrote:
Here's the code that produces the correct results (exactly the 
same as GIMP):

Share images you used, please.


Re: SDL2 texture blend help

2017-12-11 Thread Dmitry via Digitalmars-d

On Tuesday, 12 December 2017 at 06:27:30 UTC, Ivan Trombley wrote:

This isn't a scaling problem (which is totally solved by

Scaling is not a prerequisite for this problem.


pre-multiplying the alpha with the colors BTW). This is a gamma
How did you this? Using editor or using shader? If shder, show 
the code.

Can you share both images? I want to check.

correction problem which is solved only by converting the color 
values to linear color space before compositing and then 
converting the final pixel back to sRGB.


Are you sure in that? Because what I see is typical alpha 
blending problem.




Re: SDL2 texture blend help

2017-12-11 Thread Dmitry via Digitalmars-d

On Tuesday, 12 December 2017 at 03:32:05 UTC, Ivan Trombley wrote:
It turns out that it's an issue with the color channels being 
in sRGB color space and the alpha channel being linear. I 
verified this by doing a software blend of the images and then 
doing another software blend using gamma corrected values.


There's a setting in opengl to correct for it, 
glEnable(GL_FRAMEBUFFER_SRGB), but I haven't tried this yet.


BTW, also you could use bleeding (for example, 
https://github.com/dmi7ry/alpha-bleeding-d )


Re: SDL2 texture blend help

2017-12-11 Thread Dmitry via Digitalmars-d

On Monday, 11 December 2017 at 04:57:44 UTC, Ivan Trombley wrote:
Experimenting with compositing images in SDL2, I get a dark 
edge around my textures. In the image below, you can see the 
top example where I composite the cyan image on top of the 
blue/magenta image looks correct but the bottom example, which 
is done using SDL_RenderCopy is not correct.


Won't this help?
https://stackoverflow.com/questions/45781683/how-to-get-correct-sourceover-alpha-compositing-in-sdl-with-opengl



Re: Email validation

2017-11-28 Thread Dmitry via Digitalmars-d-learn

On Wednesday, 29 November 2017 at 03:49:56 UTC, codephantom wrote:

string domainRequired = "@hotmail.com";

string emailAddress = "vino.bhee...@hotmail.com";

emailAddress.endsWith(domainRequired) ? writeln("domain ok")
 : writeln("invalid domain");

Also you need check that only one @ used.


Re: Tried C++ to D. Wrong result.

2017-11-28 Thread Dmitry via Digitalmars-d-learn

On Tuesday, 28 November 2017 at 09:01:47 UTC, Temtaime wrote:

https://pastebin.com/xJXPBh0n
Converted it and it works as expected.

What did you use for it?
In future I'll be needed to convert some more C++ code.

P.S. /And it works wrong, because uses unsafe pointer (ubyte 
*image). So, it takes wrong values (Blue of the next pixel 
instead of Alpha of the current pixel). Same with original code./


P.P.S. Anyway, I already found all things I did wrong. But also I 
found in your code that there is `swap` function, didn't know it. 
Thank you!





Re: Tried C++ to D. Wrong result.

2017-11-27 Thread Dmitry via Digitalmars-d-learn

On Monday, 27 November 2017 at 19:01:28 UTC, Ali Çehreli wrote:
P.S. I think you have an unnecessary 'ref' on the D version 
because a slice is already a reference to elements:

Fixed, thank you.



Re: Tried C++ to D. Wrong result.

2017-11-27 Thread Dmitry via Digitalmars-d-learn

On Monday, 27 November 2017 at 18:40:41 UTC, Ali Çehreli wrote:

So, it looks like the original code was accessing out of bounds 
and probably that's why you inserted the ((index + 3) < N) 
check in the D version because D was catching that error at 
runtime.

Yes, it is.

Which of course would skip the body of the if block, causing a 
difference from the original result.
Yes. I fixed it in C++ version also and now both versions works 
same.




Re: Tried C++ to D. Wrong result.

2017-11-27 Thread Dmitry via Digitalmars-d-learn

On Monday, 27 November 2017 at 17:21:05 UTC, Dmitry wrote:
It fixed a delay (you can see it on video I posted before), but 
result is same.


It seems I found the problem.

C++ version (line 93):
if (image[index + 3] != 0)

I changed to
if (image[index] != 0)

and it works.

I don't understand why there was used "+ 3" (and why it works in 
C++ version).


Thank you all for help.


Re: Tried C++ to D. Wrong result.

2017-11-27 Thread Dmitry via Digitalmars-d-learn

On Monday, 27 November 2017 at 17:01:29 UTC, Adam D. Ruppe wrote:

In the C++ version they are declared

std::vector pending;
std::vector pendingNext;

Ah, indeed. I thought that

pending.reserve(N);
pendingNext.reserve(N);

initializes them (last time I used C++ about 17 years ago...)


I suspect you will get better results by just making the D decls
and leave the rest of the code the same and see what happens.
It fixed a delay (you can see it on video I posted before), but 
result is same.


Re: Tried C++ to D. Wrong result.

2017-11-27 Thread Dmitry via Digitalmars-d-learn

On Monday, 27 November 2017 at 14:35:39 UTC, Stefan Koch wrote:
First I'd make sure that what you get out of dlib load is the 
same as the c++ version gets.

Just use standard debugging techniques.


Yes, it's same. As you can see, the top-middle area of the result 
is same.


I wrote a video of process (D version, every 100-th frame)
https://www.dropbox.com/s/hcw1x4cwjou69su/video.mpg

C++ version:
https://www.dropbox.com/s/i7xpa5mzddpz6nu/video_orig.mpg



Re: Tried C++ to D. Wrong result.

2017-11-27 Thread Dmitry via Digitalmars-d-learn
On Monday, 27 November 2017 at 14:14:12 UTC, rikki cattermole 
wrote:

Did you confirm that the image was loaded originally correctly?


Yes.

This image was used:
https://github.com/urraka/alpha-bleeding/blob/master/media/original.png




Tried C++ to D. Wrong result.

2017-11-27 Thread Dmitry via Digitalmars-d-learn

I tried translate C++ programm to D, but result is different.

original:
https://github.com/urraka/alpha-bleeding/blob/master/src/alpha-bleeding.cpp
result (with removed alpha):
https://github.com/urraka/alpha-bleeding/blob/master/media/alpha-bleeding-opaque.png

my:
https://pastebin.com/GzZQ7WHt
result (with removed alpha):
https://www.dropbox.com/s/xbjphlievboslv2/original-2.png

What did I wrong?

P.S. Also on an one image it was crashed at line 63 (range 
violation)

https://pastebin.com/TenGusw0
so I added ((index + 3) < N) into condition.



Re: Back to SDL question

2017-10-19 Thread Dmitry via Digitalmars-d

On Thursday, 19 October 2017 at 13:34:31 UTC, Suliman wrote:

Only some time later I understand that it was big error.

Why do you think so?

So I would like to ask community about if all agree to make 
.sdl format to dub by default?

Personally, I prefer JSON.



Re: debugging in vs code on Windows

2017-10-18 Thread Dmitry via Digitalmars-d-learn

On Tuesday, 17 October 2017 at 10:09:12 UTC, Dmitry wrote:

On Tuesday, 17 October 2017 at 08:38:20 UTC, Arjan wrote:
Before this will work, one must install the Microsoft C/C++ 
Addin i.e. ms-vscode.cpptools.

Start debugging and select the C++ debugger.


Yep 
https://forum.dlang.org/post/xwsvxphjtzgwjyrgd...@forum.dlang.org


Yesterday I found that C/C++ debugger is not very usable for D. 
For example, it doesn't show some structs and associative arrays 
(shows it just as pointer), pointer+length+chunk of memory 
instead of string, etc. So, I had to use VisualStudio + Mago for 
debugging.


Re: debugging in vs code on Windows

2017-10-17 Thread Dmitry via Digitalmars-d-learn

On Tuesday, 17 October 2017 at 08:38:20 UTC, Arjan wrote:
Before this will work, one must install the Microsoft C/C++ 
Addin i.e. ms-vscode.cpptools.

Start debugging and select the C++ debugger.


Yep 
https://forum.dlang.org/post/xwsvxphjtzgwjyrgd...@forum.dlang.org




Re: debugging in vs code on Windows

2017-10-16 Thread Dmitry via Digitalmars-d-learn

On Tuesday, 17 October 2017 at 02:32:49 UTC, Domain wrote:

Can you share your tasks.json and launch.json?


tasks.json - I don't have this file.
launch.json:
{
"version": "0.2.0",
"configurations": [

{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceRoot}\\parser.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true
}
]
}

Also I have changed preferences:
"debug.allowBreakpointsEverywhere": true,

Status bar:
x86_64 debug dmd



Re: debugging in vs code on Windows

2017-10-15 Thread Dmitry via Digitalmars-d-learn

On Friday, 13 October 2017 at 12:55:09 UTC, piotrklos wrote:
Has anyone been able to debug in VS code on Windows? What am I 
doing wrong?


Yep, it work for me.
How do you start debugging?
I noticed that the bottom button (small bug) at status bar 
doesn't work for me. But when I use Debug → Start Debugging (F5), 
it works.


Re: CSV crash: "Quote located in unquoted token"

2017-10-13 Thread Dmitry via Digitalmars-d-learn

On Friday, 13 October 2017 at 18:53:37 UTC, Jesse Phillips wrote:
You can use Malformed.ignore[1], but your data will come out 
like:


You are about to remove ""{0}"" from view ""{1}""

This would leave you needing to modify the "".

1. https://dlang.org/phobos/std_csv.html#.Malformed


I'll look into it. Thank you!


Re: CSV crash: "Quote located in unquoted token"

2017-10-13 Thread Dmitry via Digitalmars-d-learn
On Friday, 13 October 2017 at 10:11:39 UTC, rikki cattermole 
wrote:

Something along the lines of:
.byLine.map!(a => a.fixQuotes).joiner("\n").csvReader!...

Yep, it works.


Either way, you're using ranges!
Its even the same amount of code, if not less.

I see. Thank you!


Re: CSV crash: "Quote located in unquoted token"

2017-10-13 Thread Dmitry via Digitalmars-d-learn
On Friday, 13 October 2017 at 09:00:52 UTC, rikki cattermole 
wrote:
Write a purpose built csv parser using ranges. It should take 
only about half an hour.
I know, I know not very helpful. But a custom built parser will 
work better for you I think.
Yep, I can parse it myself, but I want to try to avoid this 
(reduce amount of source code).


Maybe there is posiible something like this:
foreach(record; file.byLine.fixQuotes.joiner("\n").csvReader!...
?

What types should get/return the function (fixQuotes) if I want 
change the line after .byLine?

When compiler says:
"candidates are:
src\phobos\std\array.d(2534,5): std.array.replaceFirst(E, R1, 
R2)(E[] subject, R1 from, R2 to) if (isDynamicArray!(E[]) && 
isForwardRange!R1 && is(typeof(appender!(E[])().put(from[0..1]))) 
&& isForwardRange!R2 && 
is(typeof(appender!(E[])().put(to[0..1]"


it's scares me and I hiding under the table.

I thought about something like
auto fixQuotes(string text)
{
if (text.canFind("\"\""))
{
// some magic
}

return text;
}

but obviously, it won't compiled


CSV crash: "Quote located in unquoted token"

2017-10-13 Thread Dmitry via Digitalmars-d-learn

Hi there.
When I load csv, it crashes ("Quote located in unquoted token") 
on lines with quotes, like this:


ResourceNode_RemoveFromView_Confirm,You are about to remove 
""{0}"" from view ""{1}"". Continue?,You are about to remove 
""{0}"" from view ""{1}"". Continue?,,Resource Tree - 
confirmation of removal from the current view


There are 5 records:
ResourceNode_RemoveFromView_Confirm,
You are about to remove ""{0}"" from view ""{1}"". Continue?,
You are about to remove ""{0}"" from view ""{1}"". Continue?,
,
Resource Tree - confirmation of removal from the current view

If I add quotes at begin and end of the 2 and 3 records, then it 
works. But I can't change original file.


How I can avoid the error?

I read file using this code:
foreach(record; 
file.byLine.joiner("\n").csvReader!(Tuple!(string, string, 
string, string, string)))

{
...
}



Re: My first experience as a D Newbie

2017-10-12 Thread Dmitry via Digitalmars-d
On Thursday, 12 October 2017 at 08:20:45 UTC, Jonathan M Davis 
wrote:
I think that he meant that most of the developers for dmd and 
the standard library run *nix systems

Ah, you're right. I have misunderstood a bit.



Re: My first experience as a D Newbie

2017-10-12 Thread Dmitry via Digitalmars-d

On Wednesday, 11 October 2017 at 22:20:01 UTC, Rion wrote:
Its probably more the fact that most of the developers use Unix 
based system for development, be it OSx or Linux. As a result 
Windows is the overlooked system what results in a lack of 
testing.

I already posted some statistic:

A survey of developers (about 15K people) from Russian IT site. 
Windows ~67%, Linux ~20%, MacOS ~11% (biggest part of these 
Linux/MacOS developers uses it for web developing)


So, no.

P.S. In other countries it may differ.


Re: My first experience as a D Newbie

2017-10-11 Thread Dmitry via Digitalmars-d

On Wednesday, 11 October 2017 at 11:57:18 UTC, jmh530 wrote:
I just put in writeln statements to try and figure out what's 
going on.


It depends on what programs you are doing. There are a huge 
number of cases when this way takes lot more time/efforts than 
using debugger.


Re: DlangIDE v0.8.0 released

2017-09-27 Thread Dmitry via Digitalmars-d-announce
On Wednesday, 27 September 2017 at 08:00:21 UTC, Traktor Toni 
wrote:
The shortcuts should be identical to Visual Studio, anything 
else is a waste of time to learn and configure.
Visual Studio? Why not Vim? Why not Xamarin Studio? Why not IDEA? 
Why not Sublime or tons of other popular configurations? If you 
want Visual Studio, then just use Visual Studio.



The IDE should contain the compiler for convenience

No.


Re: D on Tiobe Index

2017-09-06 Thread Dmitry via Digitalmars-d-announce

On Wednesday, 6 September 2017 at 10:45:48 UTC, Basile B. wrote:

And now ?

Just tried. Last version (3 update 4) works well.


Re: D on Tiobe Index

2017-09-06 Thread Dmitry via Digitalmars-d-announce

On Wednesday, 6 September 2017 at 10:45:48 UTC, Basile B. wrote:

And now ?

I'll check later today.


Re: D on Tiobe Index

2017-09-06 Thread Dmitry via Digitalmars-d-announce

On Tuesday, 5 September 2017 at 19:31:07 UTC, dukc wrote:
Other good canditate is BBasile's CoEdit. It's very much like 
DLangIDE in that it has roughly the same feature set, at least 
according to readme. It is also very actively maintained like 
your project. But it has the disadvantage of being written in 
Pascal.
Tried Coedit some times. It just doesn't start on my old laptop 
with Linux Mint.


Re: Promoting TutorialsPoint's D tutorial

2017-08-27 Thread Dmitry via Digitalmars-d

On Sunday, 27 August 2017 at 23:22:06 UTC, Ecstatic Coder wrote:

Done !

https://issues.dlang.org/show_bug.cgi?id=17789

Thanks for the advice :)


Also you could fork the site (main page), make changes and share 
result. Then will be possible see changes, how it'll look "live". 
And people can vote - like/dislike. For example, 
https://forum.dlang.org/thread/odbtivxmrggaywcbe...@forum.dlang.org


Re: What's the best D programming book

2017-08-25 Thread Dmitry via Digitalmars-d

On Friday, 25 August 2017 at 21:08:59 UTC, Macdonal wrote:

What is the best D-Programming Book?


You should read all of them :D


Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-10 Thread Dmitry via Digitalmars-d

On Thursday, 10 August 2017 at 19:44:35 UTC, 12345swordy wrote:

On Thursday, 10 August 2017 at 05:55:59 UTC, Dmitry wrote:

On Wednesday, 9 August 2017 at 20:29:07 UTC, 12345swordy wrote:
You edit the json file of course. That how DUB generates 
solution files for visual D and other IDE's.


This breaks changes that was done in the VS project.


What changes are talking about? You typically make changes in 
the json file.


https://forum.dlang.org/thread/olfrkycsfukvipeoh...@forum.dlang.org



Re: Visual Studio Code code-d serve-d beta release

2017-08-10 Thread Dmitry via Digitalmars-d-announce

On Wednesday, 9 August 2017 at 14:39:12 UTC, WebFreak001 wrote:
try using the C/C++ Extension in vscode which uses the visual 
studio debugger, that one works great on windows for D


OMG, it's really works. Thank you alot!
I'll try to use VSCode as main IDE for D code.


Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-10 Thread Dmitry via Digitalmars-d

On Wednesday, 9 August 2017 at 20:29:07 UTC, 12345swordy wrote:
You edit the json file of course. That how DUB generates 
solution files for visual D and other IDE's.


This breaks changes that was done in the VS project.



Re: Visual Studio Code code-d serve-d beta release

2017-08-09 Thread Dmitry via Digitalmars-d-announce

On Wednesday, 9 August 2017 at 07:22:36 UTC, Arjan wrote:

You mean the code-debug?

Any debugging in Visual Studio Code on Windows.
Because I tried some times, but it just didn't work.



Re: Visual Studio Code code-d serve-d beta release

2017-08-08 Thread Dmitry via Digitalmars-d-announce

On Tuesday, 8 August 2017 at 17:13:18 UTC, WebFreak001 wrote:

Use my other extension `code-debug` (or `Native Debug`) for that


Is there somebody who used it successfully on Windows?



Re: new russian Dlang book

2017-08-07 Thread Dmitry via Digitalmars-d-announce

On Monday, 7 August 2017 at 14:58:49 UTC, Suliman wrote:

http://dlang.ru
https://github.com/bubnenkoff/dlang.ru (book is placed there)
url /book now do not work outside from site. You need to go on 
site and than go to the /book


If anybody can/want to help improve book you are welcome.

P.S. I hope that it will work. I did not tested server. It's 
also done not very good.


Add repository link to the site, pls.

As I see, there is used a bit wrong markdown.

For example, first lines of the book:
```
#Глава 1
##Введение
Если вам интересно системное программирование, и вы планируете 
заниматься разработкой высокопроизводительных и масштабируемых 
приложений, то вполне возможно, что в настоящий момент одним из 
лучших, если не единственным выбором, будет язык программирования 
D.

```

There are missed spaces after # and blank lines. Must be:
```
# Глава 1

## Введение

Если вам интересно системное программирование, и вы планируете 
заниматься разработкой высокопроизводительных и масштабируемых 
приложений, то вполне возможно, что в настоящий момент одним из 
лучших, если не единственным выбором, будет язык программирования 
D.

```

Also will be good to split different parts/chapters into 
different files. Now it too much for one file.


And why don't you used something like this 
https://github.com/kiith-sa/dmarkdown ?




Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Dmitry via Digitalmars-d

On Sunday, 6 August 2017 at 14:30:48 UTC, Ryion wrote:
On my work half the developers are on Mac, the other half are 
on Windows. There is not a single Linux system. From the 
windows developers 2 use "bash" on Windows regularly.
Moreover, Macs' popularity may differ a lot in different 
countries.


Most firms i have been its always a mix of Windows and Macs. 
The few Linux guy are die hard fresh from school guys, that are 
insisted on there Linux system. What some may consider "Ultra 
Geeks". :-)


It all depends on how you define development. For web 
development the target is Linux but the development environment 
is often Windows. So what is the correct a statistical target?


The best view is to see what is going on around one self and 
its mostly Windows/Mac with Linux deployment/testing for both 
systems. Windows Bash making that task more easy for the 
Windows guys.
I see same situation around. But Mac very expensive in my 
country, so many people often works only on Windows (with Linux 
environment, like Bash on Windows, etc).


I make games for Windows, iOS, Android and HTML5. And all this I 
make on Windows, which takes about 99.9% of all time (MacOS used 
remotely and very rare - for make build for test on real device; 
etc)


Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Dmitry via Digitalmars-d

On Sunday, 6 August 2017 at 14:05:31 UTC, bachmeier wrote:
Then Windows users need to start contributing. Good or bad, 
this is not a company deciding how to allocate developer time, 
it is a volunteer organization. I see a lot of posts of the 
form "this isn't what group X expects". The response will never 
be "okay, we'll put a couple of guys on it".


anwered few posts above
https://forum.dlang.org/post/jzoqudtirjrjdutla...@forum.dlang.org


Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Dmitry via Digitalmars-d

On Sunday, 6 August 2017 at 13:54:43 UTC, 12345swordy wrote:

On Sunday, 6 August 2017 at 07:04:34 UTC, Dmitry wrote:
Visual D also has some problems that sensitive for newbies. 
For example, no DUB support.


What are you talking about? dub generates solution files for 
visual d. Of course visual d has DUB support, you just have to 
generate the solution files via command line.


And what then? Later I need add 10 libraries more - what I should 
to do?




Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Dmitry via Digitalmars-d-announce

On Sunday, 6 August 2017 at 08:50:38 UTC, WebFreak001 wrote:

Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d
and then try the following commands in this order and tell me 
if one of them worked:


dub build --compiler=ldc --build=release --combined
dub build --compiler=ldc --combined
dub build --compiler=ldc --build=release
dub build --compiler=ldc


Sure.
https://pastebin.com/FN7EezJV


Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Dmitry via Digitalmars-d

On Sunday, 6 August 2017 at 10:24:42 UTC, Russel Winder wrote:
I am sure Microsoft would declare that figure accurate for 
computers in general. I suspect though that it is totally
It's not Microsoft's statistic. StatCounter, Net Market Share, 
etc.


inaccurate for software developers, in that group I'd bet 40% 
use MacOS and 20% use Linux.
Are you told it as Linux/MacOS developer who always contacts with 
Linux/MacOS developers? Looks like "A survey on the Internet 
showed that 100% of people use the Internet" :)


I don't think so.
Why developer should use MacOS/Linux if the target platform is 
Windows in most of cases?


Just for example. I'm a game developer and almost all game 
developers who I know works on Windows (MacOS and Linux used by 
less than 1% of them). BTW, Steam statistic: 96% - Windows.


Another example. A survey of developers (about 15K people) from 
Russian IT site. Windows ~67%, Linux ~20%, MacOS ~11% (biggest 
part of these Linux/MacOS developers uses it for web developing).


In any case, the result is same: the biggest platform supported 
worse than others.


Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Dmitry via Digitalmars-d

On Saturday, 5 August 2017 at 16:22:18 UTC, Russel Winder wrote:
As far as I can tell there are no good D development 
environments in the way there are C++, Go, Rust ones. I have no 
idea about Visual D since that involves Visual Studio which I 
think involves Windows and possibly money – though paying for a 
good development environment does usually imply better quality, 
support and maintenance.


About 90% of computers uses Windows, but D on Linux supported 
better (for example, VS Code and Mono-D has debugging support).


Visual D also has some problems that sensitive for newbies. For 
example, no DUB support.


P.S. I don't meant all possible features for IDE (like available 
for Visual Studio + C# + Resharper, etc). Personally for me it 
is: debugger, base refactoring, definition goto.


Re: Visual Studio Code code-d serve-d beta release

2017-08-05 Thread Dmitry via Digitalmars-d-announce

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
try out the new version please uninstall code-d and install 
code-d-beta 
(https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, it's version 0.16.1) and just try to use it.


Failed to install serve-d (Error code 2)
https://pastebin.com/EMgV1tR2



Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-05 Thread Dmitry via Digitalmars-d

On Saturday, 5 August 2017 at 11:26:57 UTC, Russel Winder wrote:
If more people in the D community had the attitude "I can help 
with that" rather than "I wish they would so something", D 
tooling based on mainstream infrastructure would be a lot 
better than it currently is.


Don't wait from a new people that they're skilled for it. Use D 
and make D (including ecosystem) - it's absolutely different, and 
requires a different level of skills.


I'm an one who needed a good IDE (+debugger) support. But 
unfortunately I'm not found a good one for D.
I have small skills in D, so my abilities is very limited 
(translate something to another language, etc). And I'm not sure 
that I'll be able grow it well without a good IDE, because

then I'd prefer other solid ecosystems for any serious projects.



Re: newCTFE Status July 2017

2017-07-15 Thread Dmitry via Digitalmars-d

On Thursday, 13 July 2017 at 12:45:19 UTC, Stefan Koch wrote:

...


Hi. Have you any public roadmap (or somethilng like this) of 
newCTFE?

Will be useful to see what planned, what finished, etc.


Re: The DLang Tour translated into Russian

2017-06-15 Thread Dmitry via Digitalmars-d-announce

On Wednesday, 14 June 2017 at 06:54:23 UTC, Vadim Lopatin wrote:

Кто-нибудь из переводчиков хочет написать статью на Хабре?


В принципе, я мог бы заняться, но не раньше следующей недели. 
Если кто-то хочет раньше - пишите.


Re: The DLang Tour translated into Russian

2017-06-15 Thread Dmitry via Digitalmars-d-announce

On Thursday, 15 June 2017 at 03:54:53 UTC, Murzistor wrote:

Спасибо за поддержку такого замечательного языка!
И спасибо его создателям!

Я ошибку нашёл в коде:
https://tour.dlang.org/tour/ru/basics/interfaces

auto dog = new Animal; // "создание" экземпляра интерфейса
Animal animal = dog;
dog.makeNoise();


Причём в на английской версии тоже неправильно:
https://tour.dlang.org/tour/en/basics/interfaces

auto dog = new Dog;
Animal animal = dog;
dog.makeNoise(); // про интерфейс забыли


А надо так:

auto dog = new Dog;
Animal animal = dog; // неявное преобразование к интерфейсу
animal.makeNoise();


Создайте pull request'ы к английской и русскоязычной версии, 
пожалуйста.


Re: The DLang Tour translated into Russian

2017-06-10 Thread Dmitry via Digitalmars-d-announce

On Saturday, 10 June 2017 at 17:50:52 UTC, Eugene Wissner wrote:
Может быть: "В стандартной поставке D есть компилятор dmd, 
инструмент для запуска D программ "на лету", rdmd, и пакетный 
менеджер dub.

?


Лично мне "на лету" не говорит ничего, только куча вопросов 
появляется.


P.S. Точку добавил


Re: DCOnf 2017 videos online

2017-05-13 Thread Dmitry via Digitalmars-d-announce

https://wiki.dlang.org/Videos#Talks_and_presentations

also added.


Re: hidden passing of __FILE__ and __LINE__ into function

2017-04-18 Thread Dmitry via Digitalmars-d-learn

On Tuesday, 18 April 2017 at 13:48:57 UTC, Stanislav Blinov wrote:
There's a much more concise workaround, both in code written 
and generated ;)


import std.stdio;

template func(string file = __FILE__, int line = __LINE__)
{
auto func(T...)(auto ref T args)
{
writeln("called func with ", T.length, " args at ",
file, ":", line);
}
}

void main()
{
func();
func(1, 2, 3);
}


Very nice. Thank you!


Re: hidden passing of __FILE__ and __LINE__ into function

2017-04-17 Thread Dmitry via Digitalmars-d-learn

On Monday, 17 April 2017 at 14:23:50 UTC, Jonathan M Davis wrote:
So, if you're okay with explicitly instantiating your variadic 
function template instead of having the types inferred, then it
Yes, it's my case. That's a game engine, so some kilobytes isn't 
a problem.

Moreover, possible that function will be used only in debug mode.

Thank you for explaining, I appreciate it.


Re: hidden passing of __FILE__ and __LINE__ into function

2017-04-17 Thread Dmitry via Digitalmars-d-learn

On Monday, 17 April 2017 at 10:55:30 UTC, Jonathan M Davis wrote:
They works, but it results in a new template being instantiated 
for every call, so you really shouldn't use __FILE__ or 
__LINE__ as template arguments if you can avoid it.

Does it matter if I anyway use template (S...) ?
And what problem with that new templates for every call? 
Increases .exe size? Needs more memory (runtime? compile-time?)? 
Something else?


Usually, the better way to handle it is to use runtime 
arguments, e.g.
void error(string msg, string file = __FILE__, size_t line = 
__LINE__)
Is possible use this with (S...)? In some cases I use many 
arguments (5-10, mixed strings and numbers) and I tried to avoid 
the concatenation them into string.


What will be better? Concatenation or templates? Or maybe an 
another way?


hidden passing of __FILE__ and __LINE__ into function

2017-04-17 Thread Dmitry via Digitalmars-d-learn

Hi there.

Currently for messages about errors I use code like this:

void add(string name, ref Scene scene)
{
if (name in listOfScenes)
{
EError(__FILE__, __LINE__, "scene already exists".L, 
quoted(name));

}
...
}

Is there way for avoid using (avoid writing) `__FILE__` and 
`__LINE__` in each call? I.e. I want use simple


EError("scene already exists".L, quoted(name));

but function `EError` must print info (file and line) of where 
was called.


P.S. `EError` just prints info into console, result for this 
example is:


[Error] (source\core\EScene.d, 35) Scene already exists: "Scene 
1"


and code is:

void EError(S...)(S args)
{
write("[Error] (", args[0], ", ", args[1], ") ", 
args[2..$], '\n');}

}



Re: Natural sorted list of files

2017-02-07 Thread Dmitry via Digitalmars-d-learn

On Wednesday, 8 February 2017 at 07:41:29 UTC, Ali Çehreli wrote:
test.naturalSort would sort the array in place before calling 
writeln and 'test' would appear naturally sorted as well. I've 
fixed it like this:


Great! Thank you!



Re: Natural sorted list of files

2017-02-06 Thread Dmitry via Digitalmars-d-learn

On Monday, 6 February 2017 at 18:57:17 UTC, Ali Çehreli wrote:

I think  it's now std.algorithm.chunkBy. Please fix Rosetta


Thank you!
I fixed, but anyway it works incorrect (it doesn't any changes):

Code: https://rosettacode.org/wiki/Natural_sorting#D
Result: http://pastebin.com/hhSB4Vpn

like this:
["foo1000bar99baz10.txt", "foo1000bar99baz9.txt", 
"foo100bar10baz0.txt", "foo100bar99baz0.txt"]
["foo1000bar99baz10.txt", "foo1000bar99baz9.txt", 
"foo100bar10baz0.txt", "foo100bar99baz0.txt"]


but must be this:
["foo100bar99baz0.txt", "foo100bar10baz0.txt", 
"foo1000bar99baz10.txt", "foo1000bar99baz9.txt"]
["foo100bar10baz0.txt", "foo100bar99baz0.txt", 
"foo1000bar99baz9.txt", "foo1000bar99baz10.txt"]


Re: Natural sorted list of files

2017-02-06 Thread Dmitry via Digitalmars-d-learn
On Monday, 6 February 2017 at 17:35:02 UTC, Jonathan M Davis 
wrote:

You have to import std.range to use groupBy.

Of course, "import std.range" already done.

I tested it also with full rosetta's code:

import std.stdio, std.string, std.algorithm, std.array, std.conv, 
std.ascii, std.range;


string[] naturalSort(string[] arr) /*pure @safe*/ {
static struct Part {
string s;

int opCmp(in ref Part other) const pure {
return (s[0].isDigit && other.s[0].isDigit) ?
   cmp([s.to!ulong], [other.s.to!ulong]) :
   cmp(s, other.s);
}
}

static mapper(in string txt) /*pure nothrow @safe*/ {
auto r = txt
 .strip
 .tr(whitespace, " ", "s")
 .toLower
 .groupBy!isDigit
 .map!(p => Part(p.text))
 .array;
return (r.length > 1 && r[0].s == "the") ? r.dropOne : r;
}

return arr.schwartzSort!mapper.release;
}

void main() /*@safe*/ {
auto tests = [
// Ignoring leading spaces.
["ignore leading spaces: 2-2", " ignore leading spaces: 2-1", 
"

 ignore leading spaces: 2+1", "  ignore leading spaces: 2+0"],

// Ignoring multiple adjacent spaces (m.a.s).
["ignore m.a.s spaces: 2-2", "ignore m.a.s  spaces: 2-1",
 "ignore m.a.s   spaces: 2+0", "ignore m.a.sspaces: 2+1"],

// Equivalent whitespace characters.
["Equiv. spaces: 3-3", "Equiv.\rspaces: 3-2",
 "Equiv.\x0cspaces: 3-1", "Equiv.\x0bspaces: 3+0",
 "Equiv.\nspaces: 3+1", "Equiv.\tspaces: 3+2"],

// Case Indepenent sort.
["cASE INDEPENENT: 3-2", "caSE INDEPENENT: 3-1",
 "casE INDEPENENT: 3+0", "case INDEPENENT: 3+1"],

// Numeric fields as numerics.
["foo100bar99baz0.txt", "foo100bar10baz0.txt",
 "foo1000bar99baz10.txt", "foo1000bar99baz9.txt"],

// Title sorts.
["The Wind in the Willows", "The 40th step more",
 "The 39 steps", "Wanda"]];

foreach (test; tests)
writeln(test, "\n", test.naturalSort, "\n");
}

result:
$ dub
Performing "debug" build using dmd for x86_64.
sort_test ~master: building configuration "application"...
source/app.d(19,18): Error: no property 'groupBy' for type 
'string'

dmd failed with exit code 1.



Natural sorted list of files

2017-02-06 Thread Dmitry via Digitalmars-d-learn
Hi. I'm need get list of files in the directory, with natural 
sort, like:

file_2
file_8
file_10
file_11
file_20
file_100
etc.

Found this https://rosettacode.org/wiki/Natural_sorting#D
but there is error on ".groupBy!isDigit" (Error: no property 
'groupBy' for type 'string').


with deleted line it works, but order is incorrect, like:
file_1
file_10
file_11
file_100
file_2
file_20
etc.

How can I do this?


Re: Pixel Perfect Engine (formerly known as VDP-Engine) version 0.9.1-rc1 released

2017-01-21 Thread Dmitry via Digitalmars-d-announce

On Friday, 20 January 2017 at 23:15:51 UTC, solidstate1991 wrote:

Github: https://github.com/ZILtoid1991/pixelperfectengine


Any documentation?


Re: To use a scripting language or not to use a scripting language?

2017-01-06 Thread Dmitry via Digitalmars-d

On Thursday, 5 January 2017 at 22:37:21 UTC, solidstate1991 wrote:
I'm thinking on possibly implementing a scripting language for 
my game engine for general purpose and AI. At one point I was 
thinking on making a scripting language based on D with 
ECMAScript and Prolog/Planner influences.
As a game developer I can recommend to use Lua. This language is 
tradtionally used in many games/game engines.


Re: D IDE - Coedit 3 first beta

2016-11-24 Thread Dmitry via Digitalmars-d-announce

On Tuesday, 22 November 2016 at 23:38:53 UTC, Basile B. wrote:

https://github.com/BBasile/Coedit/releases/tag/3_beta_1


Menu always flickering
https://dl.dropboxusercontent.com/u/78963719/D/other/coedit.gif

Win7 x64

(I din't remember this problem in previous versions)


Re: code-d 0.12.0 - The user friendly release (code-d for noobs)

2016-10-09 Thread Dmitry via Digitalmars-d-announce

On Sunday, 9 October 2016 at 15:42:51 UTC, WebFreak001 wrote:

On Sunday, 9 October 2016 at 15:41:17 UTC, Dmitry wrote:

On Sunday, 9 October 2016 at 10:19:06 UTC, Wild wrote:

After all Atom and Vscode are open source clones of Sublime.


Sublime is fast, unlike Atom and VSCode.


Yeah I noticed that too when I started making sublime-d 
yesterday. Like instant startup time and no lags


So sublime plugin using workspace-d in progress: 
https://github.com/Pure-D/sublime-d


Oh, great! Thank you!


Re: code-d 0.12.0 - The user friendly release (code-d for noobs)

2016-10-09 Thread Dmitry via Digitalmars-d-announce

On Sunday, 9 October 2016 at 10:19:06 UTC, Wild wrote:

After all Atom and Vscode are open source clones of Sublime.


Sublime is fast, unlike Atom and VSCode.


Re: code-d 0.12.0 - The user friendly release (code-d for noobs)

2016-10-05 Thread Dmitry via Digitalmars-d-announce

On Tuesday, 4 October 2016 at 19:28:27 UTC, WebFreak001 wrote:
I've been working a lot on the new features for code-d to 
improve the user experience for new users and lower the barrier 
of creating D projects.


Thank you!

Windows 7 x64

I'm trying:
1. Create new project (empty console application)

Sometime within this step I got one of these errors (or both):

a) 
std.exception.ErrnoException@C:\D\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(2543):  (Bad file descriptor)


reproduce: create the project, close IDE (and don't do "close 
folder"). Delete all files from project's directory. Run IDE and 
try create project again.


b) std.socket.SocketOSException@std\socket.d(2777): Unable to 
connect socket: No connection could be made because the target 
machine actively refused it.

(problem with dcd-client or dcd-server as I understand)

Sometime second error also appears after IDE closed (also once I 
had "dcd-server.exe has stopped working" error)



2. Run created project using "code-d: run project",
result is:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
Not enough storage is available to process this command.

f:\projects\dlang\coded_test>


Sometime if I trying run "Empty DlangUI Application" then I have 
this error:

command 'code-d.run' not found
(for example, when try to run immediately after creation).




Re: DConf Videos

2016-07-23 Thread Dmitry via Digitalmars-d

On Saturday, 23 July 2016 at 02:32:49 UTC, Walter Bright wrote:

http://wiki.dlang.org/Videos
(though it needs updating)


I added DConf 2016


Re: DConf Videos

2016-07-21 Thread Dmitry via Digitalmars-d
On Thursday, 21 July 2016 at 13:45:28 UTC, Steven Schveighoffer 
wrote:
They are starting to arrive! 
https://twitter.com/sociomantic/status/756101557163270144


https://www.youtube.com/watch?v=DwoFb34bxAk

Video looks awesome, nice job!

-Steve


Playlist:
https://www.youtube.com/watch?v=4oDK91E3VKs=PL3jwVPmk_PRyTWWtTAZyvmjDF4pm6EX6z


Re: StackOverflow D Documentation tag

2016-07-21 Thread Dmitry via Digitalmars-d
On Thursday, 21 July 2016 at 12:08:26 UTC, Lodovico Giaretta 
wrote:

Great idea! 1/5 now.


5/5


Re: NanoSVG port

2016-07-09 Thread Dmitry via Digitalmars-d-announce

On Saturday, 9 July 2016 at 11:06:34 UTC, ketmar wrote:
i also made NanoSVG[1] port[2]: simple SVG parser and 
rasterizer. it is using `malloc()` to allocate memory, but 
otherwise was rewritten to use `const(char)[]` input for svg, 
and do not use `sscanf()` from libc.


the port lives in NanoVG package, but it is actually completely 
independent.



[1] https://github.com/memononen/nanosvg
[2] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/nanovg/svg.d


I will definitely try it (but not very soon).
Thank you!


Re: Using electron for IDE development

2016-07-04 Thread Dmitry via Digitalmars-d

On Monday, 4 July 2016 at 18:55:57 UTC, Gerald wrote:
Visual Studio Code is based on electron and works very well for 
me with D when using the code-d plugin for it:

Yes, it works prefect
https://dl.dropboxusercontent.com/u/78963719/D/forum/vscode.png



Re: Release DUB 0.9.25, new logo and updated website design

2016-05-22 Thread Dmitry via Digitalmars-d-announce

On Sunday, 22 May 2016 at 19:36:39 UTC, Sönke Ludwig wrote:
registry, and the site style has been adjusted to fit the 
general dlang.org design (thanks to Sebastian Wilzbach!).


Hi. Is possible change font to something more readable?
For example, like font on http://dlang.org



Re: D plugin for Visual Studio Code

2016-05-22 Thread Dmitry via Digitalmars-d

On Sunday, 22 May 2016 at 18:07:55 UTC, WebFreak001 wrote:

Actually, I can use my mother's laptop. Gonna try to fix it now

Check debugger also, please, because it also doesn't work.


Re: How are you enjoying DConf? And where to go next?

2016-05-06 Thread Dmitry via Digitalmars-d

On Friday, 6 May 2016 at 14:13:35 UTC, Andrei Alexandrescu wrote:
The atmosphere here is great, and I'm curious how it feels for 
those who are watching remotely. Is the experience good? What 
can we do better?


Without subtites I understand maybe 30% maximum, but I watched 
all. It was interesting.


Stream resolution was very low (maximum 400). I very hope that 
later will be available HQ records and very hope for subtitles 
(or just text versions. If no, then... So, I will make more 
effort to learn English faster).


Huge thanks for all, who made DConf2016.


Re: Live streaming of DConf 2016: confirmed

2016-04-26 Thread Dmitry via Digitalmars-d-announce

On Tuesday, 26 April 2016 at 14:44:42 UTC, Dicebot wrote:
For high quality recordings publishes later shouldn't be a 
problem.

Very good!


Re: DlangUI on Android

2016-04-21 Thread Dmitry via Digitalmars-d-announce

On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:

I've implemented initial support of Android in DlangUI.


It's great! Thank you!
And congrats with it!


Re: code-d 0.10.1 released (D support for vscode)

2016-03-12 Thread Dmitry via Digitalmars-d-announce

On Saturday, 12 March 2016 at 18:44:23 UTC, WebFreak001 wrote:

Is it work only with GDC and LDC? Because with DMD it doesn't.
Then where I can get GDC and LDC for Windows (of course, I'm 
about binaries)?


P.S. Windows 7 x64


the debugger extension is using GDB or LLDB, just install one 
of those programs. Both GDB and LLDB work with gdc, ldc and dmd

I have installed GDB, and debugging doesn't start.
In previous version of code-d I saw something like "not in 
executable format: File format not recognized" in the console 
output (current version has no any messages).


LLDB - I didn't found binaries for Widnows.


Re: code-d 0.10.1 released (D support for vscode)

2016-03-12 Thread Dmitry via Digitalmars-d-announce

On Friday, 11 March 2016 at 20:03:47 UTC, WebFreak001 wrote:
I just released a new version of code-d, it now supports 
projects without any dub.json file which some people probably 
will like. This is really useful for standalone projects with a 
custom build system like writing an OS/Kernel or other projects 
that don't want to use dub.
After last update I have an exeption when close VSCode: 
https://dl.dropboxusercontent.com/u/78963719/D/forum/error.png


If you want to give it a try just install the most recent 
workspace-d build using the workspace-d CLI installer:


https://github.com/Pure-D/workspace-d-installer

Error: http://pastebin.com/wqmkMw7c

If you need a debugger frontend (currently GDB and LLDB) for 
vscode, try my debugging extension. It supports most features 
and D is working like a charm in there: 
https://github.com/WebFreak001/code-debug (install using 'ext 
install gdb')

Is it work only with GDC and LDC? Because with DMD it doesn't.
Then where I can get GDC and LDC for Windows (of course, I'm 
about binaries)?


P.S. Windows 7 x64



Re: GSoC Project Feedback - iOS and Android versions of DSFML

2016-03-07 Thread Dmitry via Digitalmars-d

On Monday, 7 March 2016 at 02:34:41 UTC, Jeremy DeHaan wrote:
Please let me know if you think this is worth the effort and 
would make a good GSoF project.


I don't know, is it good project for GSoC or not, but I will be 
happy if it will be done.

(and yep, I really use DSFML in my projects)

P.S. Thank you for DSFML.


Re: std.xml2 (collecting features)

2016-02-23 Thread Dmitry via Digitalmars-d

On Tuesday, 23 February 2016 at 11:22:23 UTC, Joakim wrote:
Then write a good XML extraction-only library and dub it. I see 
no reason to include this in Phobos

You won't be able to sleep if it will be in Phobos?

I use XML and I don't like check tons of side libraries for see 
which will be good for me, which have support (bugfixes), which 
will have support in some years, etc.
Lot of systems already using XML and any serious language _must_ 
have official support for it.


If data formats are your thing, you could help get Ludwig's 
JSON stuff in, or better yet, enable some nice binary data 
format.
If it better for you, it not mean that it will better for 
everyone.




Re: [dlang.org] new forum design - preview

2016-01-14 Thread Dmitry via Digitalmars-d

On Thursday, 14 January 2016 at 12:31:51 UTC, w0rp wrote:
Anyone who complains about not taking up the full width of the 
screen is wrong. If lines stretch on eternally, they become 
harder to scan with your eyes. It's a well known effect which 
has been studied and documented. There is some difference of 
opinion on what the maximum should be, but the hard limit seems 
to be 110 CPL. 80 CPL or 90 CPL are commonly used. You have to 
stop expanding elements at some point.

At any moment user can reduce the window, if want.

I want read full headers and posts, not
"Re: D extensions to python, inline in..."
"[Bug 119] GDC needs friendlier com..."
"[Issue 14699] ICE: segfaults on array..."
"[D-runtime] [D-Programming-Langu..."
etc



Re: [dlang.org] new forum design - preview

2016-01-13 Thread Dmitry via Digitalmars-d

On Wednesday, 13 January 2016 at 06:44:31 UTC, Suliman wrote:

I dislike it :( old one is better.

+1

Probably you need make content up to 100% of windows size and 
make forum part bigger.

+1

And «Roboto Slab» is very difficult to read for me :`(


Re: [dlang.org] new forum design - preview

2016-01-13 Thread Dmitry via Digitalmars-d
On Wednesday, 13 January 2016 at 14:51:12 UTC, Andrei 
Alexandrescu wrote:
Could you please post a screenshot and also your particulars 
(OS, browser)? Thx! -- Andrei


I don't meant that this is a technical problem. Problem is for 
peoples, who knows English not very good.
That font has many small parts (serifs) and some chars is very 
narrow. For example, «r» has very small tail (? sorry, my English 
is bad, I mean top part which looks like «^») and it some similar 
with «i», «t» is narrow and little simialr with «l», etc, + space 
between characters is very small. Therefore I need read it very 
slow. Of course, after some time I will read it more fast, but 
currently no.
Here can be different solutions - maybe add one-two themes with 
different fonts, or I can just use external css (as example, via 
browser's plugins) for redefine the font.


https://dl.dropboxusercontent.com/u/78963719/D/forum/dlang.png
Windows 7 x64, Opera/Chrome/Firefox



Re: Redesign of dlang.org

2015-12-22 Thread Dmitry via Digitalmars-d

On Tuesday, 22 December 2015 at 13:38:48 UTC, Charles wrote:
That's silliness, and not how percentages work at all. To 
suggest that 95% of people that go to dlang.org have 
widescreens because 95% of some other user base is nonsense.

1) Do you have statistics of dlang.org?
2) Do you think that dlang.org statisitcs will be very different 
with world statistics? I don't think so.
3) Do you think that % of 4:3 displays will not drop? In all 
world it decrease each month.


I used statistics from my professional sphere, but ok, lets try 
google any other.
For example, 
http://www.w3schools.com/browsers/browsers_display.asp

1024x768  Jan 2015: 4%
1280x1024 Jan 2015: 7%
1366x768 33%
1920x1080 16%

Other way. Check any shop. How many new monitors 4:3 (or 5:4) it 
have, and how many widescreen?
Check, how many new 4:3 models have, for example, LG? One. Asus? 
No one. Any other company? Only a few, right? Trend is that % of 
4:3 displays goes to be 0 soon.


Opinion. I agree with you, but why alienate anyone? It's not 
like narrow websites are unusable. They're just not your 
preference. For people like Ola, wide websites are legitimately 
unusable.
I did not say that site must be only for widescreen. Keywords: 
Responsive Web Design.


To be fair, D's documentation uses a left-side menu, but it 
removes the top level navigation (you have to press the logo).

Yep, new design has _same_ solution.


I'd call that more of a design flaw than a feature.

Do you have more good ideas?



Re: Redesign of dlang.org

2015-12-22 Thread Dmitry via Digitalmars-d

On Tuesday, 22 December 2015 at 15:17:57 UTC, Adam D. Ruppe wrote:

and a good web design should work in all these cases.
I agree. My message was that current design supports any size, 
but new design does not support widescreens.


Re: Redesign of dlang.org

2015-12-22 Thread Dmitry via Digitalmars-d
On Tuesday, 22 December 2015 at 08:04:29 UTC, Ola Fosheim Grøstad 
wrote:
I use exclusively 4:3 and 3:4, 1600*1280, 1280*1024, 1024*1280, 
1024*768 and 768*1024.

Yep, you are one of that 5%.


Widescreen is for movies...

No.

Besides, many programmers with wide screen does not have 
multiple monitors,

Many programmers do not have. But other many programmers have.
I use multiple monitors, 16:9 and 4:3. All studios, where I 
worked, uses multiple monitors. Most part of professional 
developers, who I personally know, uses multiple monitors.

So, this is not an argument.


so they need space both for website and editor on same screen.
Firstly, in most cases it will be D documentation. And it anyway 
will use left-side menu.

And second - current design already support small width.




Re: Redesign of dlang.org

2015-12-21 Thread Dmitry via Digitalmars-d
On Saturday, 19 December 2015 at 14:33:35 UTC, Jacob Carlborg 
wrote:

Here's another thread about redesign of dlang.org. I'm creating


I want say that there are also people who most like the current 
design.




Re: We need a good code font for the function signatures on dlang.org

2015-12-19 Thread Dmitry via Digitalmars-d

Some fonts examples
http://www.slant.co/topics/67/~programming-fonts




Re: Release D 2.069.0

2015-11-04 Thread Dmitry via Digitalmars-d-announce

On Wednesday, 4 November 2015 at 08:29:22 UTC, Mike James wrote:
There seems to be an install problem with the .exe version for 
Windows. The installer removes the old DMD then doesn't install 
the 2.069.0 version. In the task manager it's still running at 
50% CPU time. It fails on Windows Vista and Windows 7.

I don't have this problem - installed without any problems.
(Windows 7 x64)



Re: Please vote for the DConf logo

2015-11-04 Thread Dmitry via Digitalmars-d-announce
On Wednesday, 4 November 2015 at 09:30:30 UTC, Andrei 
Alexandrescu wrote:

3) by anonymous:

PNG: http://imgur.com/GX0HUFI
SVG: https://gist.github.com/anonymous/4ef7282dfec9ab327084


3, but with changed font.




Re: D 2.068.2 test runner for Android ARM, please test and report results from your Android device

2015-11-02 Thread Dmitry via Digitalmars-d-announce

On Sunday, 1 November 2015 at 09:50:16 UTC, Joakim wrote:
 Please report your results in this thread in the ldc forum, 
which requires no registration, with the info and format 
requested there:

Samsung Galaxy Tab 2, all tests passed


Re: D 2.068.2 test runner for Android ARM, please test and report results from your Android device

2015-11-02 Thread Dmitry via Digitalmars-d-announce

On Monday, 2 November 2015 at 13:41:32 UTC, Dmitry wrote:

Samsung Galaxy Tab 2, all tests passed

(Android 4.2.2)


Re: DSFML reaches version 2.1

2015-10-07 Thread Dmitry via Digitalmars-d-announce

Thank you!




Re: New D tool releases

2015-06-30 Thread Dmitry via Digitalmars-d-announce

On Monday, 8 June 2015 at 19:18:03 UTC, Brian Schott wrote:

Dfmt 0.4.0-beta1 and 0.3.6
https://github.com/Hackerpilot/dfmt/releases/tag/v0.3.6


Integration with Sublime Text (I use Sublime Text 2 and Windows)
https://github.com/dmi7ry/dfmt-sublime
can anyone check?



Re: New D tool releases

2015-06-30 Thread Dmitry via Digitalmars-d-announce

On Sunday, 28 June 2015 at 14:13:06 UTC, Namespace wrote:


Why not Sublime Text 3?
I think it will be work on ST 3 also, bacause it very simple. But 
can't check.


Reasons to use ST 2, and not 3 can be different. For example: 
free version of ST 2, or some plugins which is not ported to ST 3.





Re: New D tool releases

2015-06-30 Thread Dmitry via Digitalmars-d-announce

On Sunday, 28 June 2015 at 14:13:06 UTC, Namespace wrote:


Why not Sublime Text 3?


Added small fix for ST 3.


Re: New D tool releases

2015-06-30 Thread Dmitry via Digitalmars-d-announce

Added to Package Control
https://packagecontrol.io/packages/DFormat

Tested on ST2 and ST3 (but only on Windows)



Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Dmitry via Digitalmars-d-announce
On Thursday, 4 June 2015 at 15:04:05 UTC, Vladimir Panteleev 
wrote:

http://beta.forum.dlang.org/

Many major and minor improvements.

Very nice! Thank you!
Please, add buttons 'Mark as readed'. For posts in one thread, 
for all threads in one section and for all forum.


Re: DTiled: Tiled map loader

2015-05-03 Thread Dmitry via Digitalmars-d-announce

On Saturday, 2 May 2015 at 19:16:03 UTC, rcorre wrote:
Any D game developers out there looking to create a tile-based 
game?


DTiled aims to provide a quick and easy way to load maps 
created with Tiled

Good! Thank you!


  1   2   >