Re: Beta 2.088.0

2019-08-16 Thread Suliman via Digitalmars-d-announce
On Friday, 16 August 2019 at 11:04:07 UTC, Martin Nowak wrote: Glad to announce the first beta for the 2.088.0 release, ♥ to the 58 contributors. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.088.0.html As usual please report any bugs at https://issues.dlang.org

Re: D GUI Framework (responsive grid teaser)

2019-05-20 Thread Suliman via Digitalmars-d-announce
On Sunday, 19 May 2019 at 21:01:33 UTC, Robert M. Münch wrote: Hi, we are currently build up our new technology stack and for this create a 2D GUI framework. https://www.dropbox.com/s/iu988snx2lqockb/Bildschirmaufnahme%202019-05-19%20um%2022.32.46.mov?dl=0 The screencast shows a responsive

Re: dlang.ru is updated

2019-05-18 Thread Suliman via Digitalmars-d-announce
On Saturday, 18 May 2019 at 03:01:33 UTC, 9il wrote: On Thursday, 16 May 2019 at 12:25:52 UTC, Suliman wrote: After 2 years dlang.ru was update. Content did not change. Main improves was is technology stack and design (still not perfect, but better than was). http://dlang.ru P.S. site is

Re: dlang.ru is updated

2019-05-17 Thread Suliman via Digitalmars-d-announce
Try to solve your problems by yourself How?

Re: dlang.ru is updated

2019-05-17 Thread Suliman via Digitalmars-d-announce
On Friday, 17 May 2019 at 06:46:06 UTC, DanielG wrote: On Thursday, 16 May 2019 at 12:25:52 UTC, Suliman wrote: P.S. site is blocked by most of russian internet-providers by RKN Why is that? This organization is created by Putin's friends. It's purpose to block all opposition, but they do

Re: dlang.ru is updated

2019-05-17 Thread Suliman via Digitalmars-d-announce
Waterfox 56.2.9 Oh! I used on my site new js future. It will work after updating browser.

Re: dlang.ru is updated

2019-05-16 Thread Suliman via Digitalmars-d-announce
On Thursday, 16 May 2019 at 17:02:07 UTC, Vladimir Panteleev wrote: On Thursday, 16 May 2019 at 12:25:52 UTC, Suliman wrote: After 2 years dlang.ru was update. Content did not change. Main improves was is technology stack and design (still not perfect, but better than was). http://dlang.ru

dlang.ru is updated

2019-05-16 Thread Suliman via Digitalmars-d-announce
After 2 years dlang.ru was update. Content did not change. Main improves was is technology stack and design (still not perfect, but better than was). http://dlang.ru P.S. site is blocked by most of russian internet-providers by RKN

Re: Beta 2.085.0

2019-02-16 Thread Suliman via Digitalmars-d-announce
-verrors=context Why this is not default behavior?

Re: Vibed + OpenSSL on Windows 10?

2019-01-29 Thread Suliman via Digitalmars-d-learn
On Tuesday, 29 January 2019 at 10:06:43 UTC, Suliman wrote: On Tuesday, 29 January 2019 at 10:01:04 UTC, Suliman wrote: Always compile vibe.d with mscoff Could you show command to compile with mscoff? I am not sure that all works fine, but at last I do not have linking error. I have add to

Re: Vibed + OpenSSL on Windows 10?

2019-01-29 Thread Suliman via Digitalmars-d-learn
On Tuesday, 29 January 2019 at 10:01:04 UTC, Suliman wrote: Always compile vibe.d with mscoff Could you show command to compile with mscoff? I am not sure that all works fine, but at last I do not have linking error. I have add to dub.sdl ext string: "dflags-windows-x86": ["-m32mscoff"]

Re: Vibed + OpenSSL on Windows 10?

2019-01-29 Thread Suliman via Digitalmars-d-learn
Always compile vibe.d with mscoff Could you show command to compile with mscoff?

Vibed + OpenSSL on Windows 10?

2019-01-28 Thread Suliman via Digitalmars-d-learn
Does anybody have success with using vibed 0.8.4 with OpenSSL 1.0/1.1 on Windows? I tried all possible solutions without any result. I am getting linking error: Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html

Can't build vibed:tls project

2019-01-28 Thread Suliman via Digitalmars-d-learn
If I am specifying (sic! TLS): dependency "vibe-d:tls" version="0.8.4" in my dub.sdl I am getting error when building simple project: module `vibe` is in file 'vibe\vibe.d' which cannot be read But I need to get vibed build with OpenSSL support

Re: Am I missing with ref in this code?

2019-01-25 Thread Suliman via Digitalmars-d-learn
Do I need in my code `ref`s ? https://run.dlang.io/is/8dtkC7 Or if vibed doing copy under the hood `ref`s useless?

Re: Am I missing with ref in this code?

2019-01-24 Thread Suliman via Digitalmars-d-learn
On Thursday, 24 January 2019 at 22:02:36 UTC, bauss wrote: On Thursday, 24 January 2019 at 21:25:45 UTC, Paul Backus wrote: So, I'm not sure what the best solution here is. The best solution is just to pass a copy since there's no absolute need for a reference to be passed. But if I will

Re: Am I missing with ref in this code?

2019-01-24 Thread Suliman via Digitalmars-d-learn
It's because runWorkerTask internally passes its arguments along to the function by value: https://github.com/vibe-d/vibe.d/blob/master/core/vibe/core/core.d#L364 The workaround is to pass a pointer instead: void getServiceStatus(MyUrl* url) { // ... } // ...

Am I missing with ref in this code?

2019-01-24 Thread Suliman via Digitalmars-d-learn
I am doing very small link-checker. Here is' code https://run.dlang.io/is/p8whrA I am expecting that on line: writefln("url: %s, status: %s", url.url, url.status); I will print link and it's status. But I am getting only: url: http://127.0.0.1:8081/hck, status: url: http://127.0.0.1:8081/hck2,

Re: Is there any working SQLite driver for windows?

2018-12-26 Thread Suliman via Digitalmars-d-learn
On Wednesday, 26 December 2018 at 12:13:27 UTC, Suliman wrote: On Wednesday, 26 December 2018 at 11:06:02 UTC, Andre Pany wrote: On Wednesday, 26 December 2018 at 08:19:03 UTC, Suliman wrote: Yesterday I tried several sqlite drivers and all of them have some issue that make it's build on

Re: Is there any working SQLite driver for windows?

2018-12-26 Thread Suliman via Digitalmars-d-learn
On Wednesday, 26 December 2018 at 11:06:02 UTC, Andre Pany wrote: On Wednesday, 26 December 2018 at 08:19:03 UTC, Suliman wrote: Yesterday I tried several sqlite drivers and all of them have some issue that make it's build on Windows impossible. Few examples

Is there any working SQLite driver for windows?

2018-12-26 Thread Suliman via Digitalmars-d-learn
Yesterday I tried several sqlite drivers and all of them have some issue that make it's build on Windows impossible. Few examples https://github.com/huntlabs/hunt-database/issues/24 https://github.com/biozic/d2sqlite3/issues/51

Re: hunt-entity v2.0.0 released!

2018-11-02 Thread Suliman via Digitalmars-d-announce
Entity Query Lanuage Can't understand difference with SQL...

Re: Spasm - webassembly libary for single page applications

2018-10-18 Thread Suliman via Digitalmars-d-announce
https://github.com/kripken/emscripten/wiki/Pthreads-with-WebAssembly

Re: Webassembly TodoMVC

2018-09-23 Thread Suliman via Digitalmars-d-announce
What do you think of the struct approach compared to a traditional jsx/virtual-dom? jsx is sucks. Look at Vue.js way, if you will able to fo you framework Vue-style it will be perfect!

Re: Webassembly TodoMVC

2018-09-22 Thread Suliman via Digitalmars-d-announce
On Friday, 21 September 2018 at 14:01:30 UTC, Sebastiaan Koppe wrote: Hey guys, Following the D->emscripten->wasm toolchain from CyberShadow and Ace17 I created a proof of concept framework for creating single page webassembly applications using D's compile time features. This is a proof

Re: dlang download stat should be updated

2018-09-11 Thread Suliman via Digitalmars-d
On Sunday, 9 September 2018 at 09:05:33 UTC, Suliman wrote: Last update was long time ago http://erdani.com/d/downloads.daily.png UP

dlang download stat should be updated

2018-09-09 Thread Suliman via Digitalmars-d
Last update was long time ago http://erdani.com/d/downloads.daily.png

Is it's correct to say that ALL types that can grow are place on heap?

2018-09-08 Thread Suliman via Digitalmars-d-learn
Is it's correct to say that ALL types that can grow are place on heap and types that not growing (int, char, pointer) are place on stack? Or there is some exceptions? Is there any tools that can visualize place of data in memory?

Re: andrei - better breakdown of statistics for downloads by region, OS, kind of site (academic/large corporate/large financial/etc)

2018-09-05 Thread Suliman via Digitalmars-d
On Tuesday, 8 May 2018 at 07:54:15 UTC, Suliman wrote: Stat out of date... Plz update it. And once again plz

Re: Kaspersky Endpoint Security 10 flags the DMD installer as malicious!

2018-07-26 Thread Suliman via Digitalmars-d
On Thursday, 26 July 2018 at 08:27:33 UTC, Vladimir Panteleev wrote: On Wednesday, 25 July 2018 at 08:31:05 UTC, rikki cattermole wrote: On 25/07/2018 8:27 PM, Rel wrote: I think, we should do something about it, at very least report for false-positive to Kaspersky or something. This is a

Re: Anyone can contact Dmitry Olshansky?

2018-07-16 Thread Suliman via Digitalmars-d
On Monday, 16 July 2018 at 15:07:20 UTC, rikki cattermole wrote: On 17/07/2018 2:45 AM, Ali wrote: Do we have any updates on Dmitry was anyone able to check on him I hope he is doing better Nope, appears he's gone. I think something happened. He do not getting online since 01.07.2018.

Re: How to use LLD linker?

2018-07-06 Thread Suliman via Digitalmars-d-learn
Well I just installed the VS 2017 to try the ldc and get (maybe) the same error. dub run --config=application --arch=x86_64 --build=debug --compiler=ldc2 Performing "debug" build using ldc2 for x86_64. lib ~master: building configuration "application"... OPTLINK (R) for Win32 Release 8.00.17

Can't build app. VS Build Tools is installed

2018-06-30 Thread Suliman via Digitalmars-d-learn
I am trying to build simple app. And getting next error: OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html .dub\build\application-debug-windows-x86-dmd_2081-AC4AEBC828F1A14C3806E4E63B3CEEF3\app.obj(app)

How to use LLD linker?

2018-06-30 Thread Suliman via Digitalmars-d-learn
Correct me if I am wrong, but I have read news that dmd now can be used without C++ Build Tools. I trying to build simple project. And getting Error: Warning: no Visual C++ installation detected OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved.

Re: GitHub could be acquired by Microsoft

2018-06-03 Thread Suliman via Digitalmars-d-announce
Git was never my favorite VCS. So I hope that this step will open door for project like pijul.org github.com is only site, not religious. So if it will be closed people will move/create to its analogs.

Dependency injection pattern

2018-05-13 Thread Suliman via Digitalmars-d-learn
Could anybody give small example of Dependency injection pattern? I googled about it, but found only C# examples and I am not quite sure how to use them. Also I would like get some explanation/comments for code.

Re: andrei - better breakdown of statistics for downloads by region, OS, kind of site (academic/large corporate/large financial/etc)

2018-05-08 Thread Suliman via Digitalmars-d
Stat out of date... Plz update it.

Re: LDC 1.9.0 beta

2018-04-23 Thread Suliman via Digitalmars-d-announce
What about Webassembly support? Latest LLVM suppport it, so LDC should support also.

Re: dxml 0.3.0 released

2018-04-19 Thread Suliman via Digitalmars-d-announce
Am I right remember that this lib is planed to be included as std.xml replacement?

What principle difference between structure and Tuple?

2018-03-10 Thread Suliman via Digitalmars-d-learn
writeln(is(Tuple!(string, int) == struct)); // true What is real user case where I should use Tuple instead of Struct?

Re: mysql-native v2.1.0-rc1: New features

2018-02-24 Thread Suliman via Digitalmars-d-announce
What about string interpolation like: conn.exec("INSERT INTO table_name VALUES ({i}, {s})"); ? Instead of: conn.exec("INSERT INTO table_name VALUES (?, ?)", i, s);

Re: Postgres and other database interfaces

2018-02-24 Thread Suliman via Digitalmars-d
On Saturday, 24 February 2018 at 06:05:38 UTC, Erik Smith wrote: On Saturday, 24 February 2018 at 05:45:45 UTC, rikki cattermole wrote: There is plenty of desire to build a generalized SQL interface for Phobos. But somebody needs to do it and it won't be all that much fun to do. Hi Joe and

Re: D for microservices

2018-02-22 Thread Suliman via Digitalmars-d
It would be nice if anyone will rewrite Musl to betterC :)

Re: Beta 2.079.0

2018-02-21 Thread Suliman via Digitalmars-d-announce
On Tuesday, 20 February 2018 at 22:54:43 UTC, H. S. Teoh wrote: On Tue, Feb 20, 2018 at 10:19:03PM +, John Gabriele via Digitalmars-d-announce wrote: [...] Thanks. Is the point to be able to string a bunch of selective imports together, as in: import pkg.mod1 : sym1, sym2, pkg.mod2 :

Which language futures make D overcompicated?

2018-02-08 Thread Suliman via Digitalmars-d
I like D, but sometimes it's look like for me too complicated. Go have a lot of fans even it not simple, but primitive. But some D futures make it very hard to learning. Small list by me: 1. mixins 2. inout 3. too many attributes like: @safe @system @nogc etc Which language futures by your

Re: A betterC base

2018-02-08 Thread Suliman via Digitalmars-d
- import ... really, we are 2018 and people are still wasting our time to have standard libraries as imports. Its even more fun when you split, only to need import the array library. Please explain what do you mean by it?

Re: Very tiny script for testing D projects with Pijul version control system.

2018-02-02 Thread Suliman via Digitalmars-d-announce
Good news! Working version: @echo off for %%a in ("%cd%") do set folder=%%~na winscp.com /command "open devuser@172.16.16.11 -privatekey=C:\Users\suliman\.ssh\123.ppk" "put latest.tar.gz /home/devuser/folder/" "exit" 1. File-name hard-coded 2. WinSCP should be installed and added to PATH

Re: Very tiny script for testing D projects with Pijul version control system.

2018-01-26 Thread Suliman via Digitalmars-d-announce
Could anybody help me? I decided to use key-auth instead pass-auth. But when I run next command I am getting error: winscp.com /command "open devuser@172.17.18.127" /privatekey=C:\Users\dev\.ssh\my_private_key.ppk "put latest.tar.gz /home/devuser/folder" "exit" about wrong syntax.

Why dynamic lib can't be converted to static and vise versa

2017-12-18 Thread Suliman via Digitalmars-d-learn
I understand that dll can be loaded dynamically, and static lib is allow export functions than embedded to binaries. But what difference in their structure? What stop to export needed function from dynamic lib and embed it to bin?

Re: mysql-native v1.2.0: Housekeeping: Deprecations, Cleanup and Doc Improvements

2017-12-15 Thread Suliman via Digitalmars-d-announce
Big thanks! Your driver is really very useful and good-done! I wish same for PostgreSQL :)

Re: LDC 1.7.0-beta1

2017-12-13 Thread Suliman via Digitalmars-d-announce
Is it's possible to produce x64 binaries on Windows x64 without installing Visual Studio? DMD do not have linker for x64. You could try using the llvm linker, lld, as noted in the release notes for ldc 1.5: Could you explain hot to do it? Install LLVM? And than how I could specify what

Re: LDC 1.7.0-beta1

2017-12-10 Thread Suliman via Digitalmars-d-announce
On Sunday, 10 December 2017 at 17:33:34 UTC, kinke wrote: Hi everyone, on behalf of the LDC team, I'm glad to announce the first beta for LDC 1.7. The highlights of this version in a nutshell: * Based on D 2.077.1. * Catching C++ exceptions supported on Linux and Windows. Full release log

bootable vibed

2017-12-07 Thread Suliman via Digitalmars-d
I found very interesting project https://github.com/hioa-cs/IncludeOS But by description it's target to C++ "IncludeOS is an includable, minimal unikernel operating system for C++ services running in the cloud". I think that would be a lot of people interesting to get same for D and vibed.

Re: SublimeLinter-contrib-dmd: dmd feedback as you type

2017-11-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 November 2017 at 15:28:36 UTC, Suliman wrote: I install Sublime Linter first and then this linter and error: Unable to open /C/Users/suliman/AppData/Roaming/Sublime Text 3/Packages/User/SublimeLinter.sublime-settings is gone. But issue with auto-completion is still exists.

Re: SublimeLinter-contrib-dmd: dmd feedback as you type

2017-11-02 Thread Suliman via Digitalmars-d-announce
I install Sublime Linter first and then this linter and error: Unable to open /C/Users/suliman/AppData/Roaming/Sublime Text 3/Packages/User/SublimeLinter.sublime-settings is gone. But issue with auto-completion is still exists.

Re: SublimeLinter-contrib-dmd: dmd feedback as you type

2017-11-02 Thread Suliman via Digitalmars-d-announce
it's seems that it is work, at last it show red labels on code, but for example it is do not show right auto completion after point in `std.` https://snag.gy/uP6Uxl.jpg

Re: SublimeLinter-contrib-dmd: dmd feedback as you type

2017-11-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 November 2017 at 15:13:31 UTC, Suliman wrote: On Thursday, 2 November 2017 at 10:04:44 UTC, Bastiaan Veelo wrote: On Thursday, 2 November 2017 at 10:00:25 UTC, Temtaime wrote: Support for dub will be great :) Yes... Now all works Thanks ! Alright :-) Could you write more

Re: SublimeLinter-contrib-dmd: dmd feedback as you type

2017-11-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 November 2017 at 10:04:44 UTC, Bastiaan Veelo wrote: On Thursday, 2 November 2017 at 10:00:25 UTC, Temtaime wrote: Support for dub will be great :) Yes... Now all works Thanks ! Alright :-) Could you write more detail installation instruction? Do I need only SublimeLinter

Re: D could catch this wave: web assembly

2017-10-26 Thread Suliman via Digitalmars-d
On Tuesday, 24 October 2017 at 02:08:42 UTC, codephantom wrote: On Monday, 23 October 2017 at 22:32:55 UTC, bioinfornatics wrote: To remember it will be the next open standard by a W3C Community Group to create portable and efficient application across major web browser. A such feature can

Re: 350$ Job

2017-10-22 Thread Suliman via Digitalmars-d
Man, you are give to low money for too big job. It's not 350$ for a projects it's much more. You codebase is very dirty and out of date. It's better to you find money to rewrite all from scratch.

Back to SDL question

2017-10-19 Thread Suliman via Digitalmars-d
First of all I would like to say sorry for Ludwig, that 2 years ago I was initiator to making JSON back by default for dub config. It was really my mistake. Only some time later I understand that it was big error. So I would like to ask community about if all agree to make .sdl format to dub

Re: iopipe alpha 0.0.1 version

2017-10-17 Thread Suliman via Digitalmars-d-announce
I was thinking about using Jason White's io library, but I haven't seen him around in a while Yes, it would be interesting if you will get some from his lib. He have very good API

Re: Very tiny script for testing D projects with Pijul version control system.

2017-10-14 Thread Suliman via Digitalmars-d-announce
Here is Windows .bat file that complete uploading project to server with SSH: upload.bat: @echo off for %%a in ("%cd%") do set folder=%%~na winscp.com /command "open sftp://root:PassW0rd@127.0.0.1:; "put latest.tar.gz /code/%folder%/" "exit" Local folder name should be same with remote

Very tiny script for testing D projects with Pijul version control system.

2017-10-14 Thread Suliman via Digitalmars-d-announce
GIT IMHO very heavy for tiny projects. And I decided to try http://pijul.com/ I am developing on Windows, but I need to test code on Linux. So I did very simple tool-chain: Developing on Windows. Making package with command: `pijul dist -d latest` Syncing code to Linux VPS/VirtualBox instance

Re: compile D to asm.js using ldc --betterC and emcc

2017-10-07 Thread Suliman via Digitalmars-d-announce
On Saturday, 7 October 2017 at 17:31:37 UTC, cosinus wrote: I wrote a little working demo that shows how to use D inside firefox. It uses emscripten(emcc) and ldc. https://github.com/cosinus2/dlang-emscripten-demo could you make it online?

Re: gdc is in

2017-10-04 Thread Suliman via Digitalmars-d
On Tuesday, 3 October 2017 at 22:00:51 UTC, Joakim wrote: On Wednesday, 21 June 2017 at 15:11:39 UTC, Joakim wrote: the gcc tree: https://gcc.gnu.org/ml/gcc/2017-06/msg00111.html Congratulations to Iain and the gdc team. :) I found out because it's on the front page of HN right now, where

Re: Meet our new scholarship recipient, Alexandru Jercaianu

2017-10-02 Thread Suliman via Digitalmars-d-announce
On Monday, 2 October 2017 at 17:04:30 UTC, Andrei Alexandrescu wrote: Hello everyone, it is my pleasure to announce that Alexandru Jercaianu, a starting MSc student at University "Politehnica" Bucharest, is recipient of our scholarship. Alex is up and running working on his bootcamp tasks.

Re: Struct List Human

2017-09-24 Thread Suliman via Digitalmars-d-learn
On Sunday, 24 September 2017 at 14:32:14 UTC, dark777 wrote: I have the following code: https://pastebin.com/PWuaXJNp but typing my name does not go to the next line as soon as I press enter how to solve this? use writeln instead write

Re: Weka.IO in the news... but not mentioning Dlang... why?

2017-09-23 Thread Suliman via Digitalmars-d
One is a linear database and the other is a filesystem? If that doesn't satisfy you, please describe to me the difference between D and Microsoft Word, so I know what kind of answer you're expecting. But Hadoop is more look like file system that DataBase...

Re: code.dlang.org is offline?

2017-09-22 Thread Suliman via Digitalmars-d
On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan wrote: Hi, Is there a reason why code.dlang.org is offline? Thanks, Bogdan Who is host code.dlang.org?

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-21 Thread Suliman via Digitalmars-d
Can it be issue with regex speed? auto reg = ctRegex!"^/greeting/([a-z]+)$"; Did you try without it?

Re: Weka.IO in the news... but not mentioning Dlang... why?

2017-09-21 Thread Suliman via Digitalmars-d
On Thursday, 3 August 2017 at 21:01:28 UTC, Joakim wrote: On Thursday, 3 August 2017 at 20:55:35 UTC, Pradeep Gowda wrote: On Thursday, 3 August 2017 at 20:47:30 UTC, Joakim wrote: Please tell me which enterprise storage company advertises the programming languages they implemented their

Re: Known reasons why D crashes without any message?

2017-09-15 Thread Suliman via Digitalmars-d
On Friday, 15 September 2017 at 06:22:01 UTC, Swoorup Joshi wrote: On Wednesday, 13 September 2017 at 10:20:48 UTC, Thorsten Sommer wrote: Dear Community, My student assistant and I working on an artificial intelligence library in D for a while. This library is part of my PhD thesis in order

What is top 5 patterns that you use in real life?

2017-09-09 Thread Suliman via Digitalmars-d-learn
Just interesting, what top 5 programming patterns that you use in real D projects. For example I know that Singleton is very popular pattern, but I have never used it in real project. Same I can say about dependency injection.

Re: DLang IDE [RU]

2017-09-07 Thread Suliman via Digitalmars-d-learn
А можно сделать как-то так, чтобы автокомплит работал сразу? Как в студии. То есть бы не приходилось ctrl+пробел нажимать.

How Appender calculate cash size?

2017-09-06 Thread Suliman via Digitalmars-d-learn
If I right understand Appender and ~ have buffers to minimize allocations. "Appender's local capacity storage will give you a pretty big boost" (с) Adam "Appender maintains its own array metadata locally, so it can avoid global locking for each append where capacity is non-zero." (с) Docs

Re: dpeq - native PSQL extended query protocol client

2017-09-04 Thread Suliman via Digitalmars-d-announce
Could you give an example how to make connection object if I need access to it from several classes? Should it be global?

Re: vibed services stop response after several days of work

2017-09-01 Thread Suliman via Digitalmars-d-learn
It's seems that it's error in libevent on Linux. I tried to add to dub.sdl: versions "libasync" and it's seems that not it's working (but I need more time to test).

Re: vibed services stop response after several days of work

2017-09-01 Thread Suliman via Digitalmars-d-learn
On Friday, 1 September 2017 at 08:01:24 UTC, Suliman wrote: I got same problem on Windows Server 2016 and on Linux Debian 8.5. I have few very simple backend based on vibed 0.8.1, compiler dmd 2.075.1. nginx servise is do port forwarding. Nothing more is used. After several days of working I

vibed services stop response after several days of work

2017-09-01 Thread Suliman via Digitalmars-d-learn
I got same problem on Windows Server 2016 and on Linux Debian 8.5. I have few very simple backend based on vibed 0.8.1, compiler dmd 2.075.1. nginx servise is do port forwarding. Nothing more is used. After several days of working I am begining to get "502 Bad Gateway" error. The service is

Re: DlangUI v0.7.60 released

2017-08-31 Thread Suliman via Digitalmars-d-announce
On Thursday, 31 August 2017 at 11:59:16 UTC, Vadim Lopatin wrote: On Thursday, 31 August 2017 at 10:06:27 UTC, Suliman wrote: On Thursday, 31 August 2017 at 08:51:12 UTC, Vadim Lopatin wrote: On Wednesday, 30 August 2017 at 19:47:17 UTC, Dukc wrote: On Wednesday, 30 August 2017 at 07:44:54

Re: DlangUI v0.7.60 released

2017-08-31 Thread Suliman via Digitalmars-d-announce
On Thursday, 31 August 2017 at 08:51:12 UTC, Vadim Lopatin wrote: On Wednesday, 30 August 2017 at 19:47:17 UTC, Dukc wrote: On Wednesday, 30 August 2017 at 07:44:54 UTC, Vadim Lopatin wrote: [snip] From what I've followed, you sure update the project often! Perhaps more often than what

Re: D as a Better C

2017-08-25 Thread Suliman via Digitalmars-d-announce
On Friday, 25 August 2017 at 08:54:02 UTC, Kagamin wrote: On Thursday, 24 August 2017 at 19:09:58 UTC, Parke wrote: What is "intermediate D"? D with minimal runtime. How to pass to dub -betterC flag?

Re: Interpolated strings

2017-08-24 Thread Suliman via Digitalmars-d
All modern languages like Dart and C# have string interpolation. Sharp example: Console.WriteLine($"Hello {args[0]}!"); Who can summary is there any objective reasons why it's not realized in D?

Re: If structures places data to stack why we do not getting stackoverflow on array of structures?

2017-08-16 Thread Suliman via Digitalmars-d-learn
On Wednesday, 16 August 2017 at 13:41:29 UTC, Biotronic wrote: On Wednesday, 16 August 2017 at 12:50:07 UTC, Suliman wrote: MyStruct[] is actually a struct similar to this: struct MyStruct[] { MyStruct* ptr; size_t length; } That struct is placed on the stack, but the data it points

Re: If structures places data to stack why we do not getting stackoverflow on array of structures?

2017-08-16 Thread Suliman via Digitalmars-d-learn
MyStruct[] is actually a struct similar to this: struct MyStruct[] { MyStruct* ptr; size_t length; } That struct is placed on the stack, but the data it points to, via the ptr field, is heap allocated. What is struct? Just name and size?

Re: If structures places data to stack why we do not getting stackoverflow on array of structures?

2017-08-16 Thread Suliman via Digitalmars-d-learn
On the heap, unless you are allocating it via e.g. alloca. If struct MyStruct { int x; int y; } MyStruct mystruct; is located on stack, why: MyStruct [] mystructs; should located on heap?

Re: If structures places data to stack why we do not getting stackoverflow on array of structures?

2017-08-16 Thread Suliman via Digitalmars-d-learn
On Wednesday, 16 August 2017 at 07:09:02 UTC, rikki cattermole wrote: On 16/08/2017 8:06 AM, Suliman wrote: If structures placing data on the stack why we do not getting stackoveflow while we creating array of structures? Or for example big structure. Am I right understand that structures

If structures places data to stack why we do not getting stackoverflow on array of structures?

2017-08-16 Thread Suliman via Digitalmars-d-learn
If structures placing data on the stack why we do not getting stackoveflow while we creating array of structures? Or for example big structure. Am I right understand that structures placing data _only_ on stack? But the stack size is very limited (on Widnows it's just 1MB). So how it's

Re: new russian Dlang book

2017-08-10 Thread Suliman via Digitalmars-d-announce
Big update of site layout.

Re: Is it's possible to make modular pug template in vibed?

2017-08-09 Thread Suliman via Digitalmars-d-learn
On Tuesday, 8 August 2017 at 15:54:29 UTC, Steven Schveighoffer wrote: On 8/8/17 10:52 AM, Suliman wrote: your examples generate me: DLANG.ru (c) DLANG 2017 That's the template without the

Re: Is it's possible to make modular pug template in vibed?

2017-08-08 Thread Suliman via Digitalmars-d-learn
your examples generate me: DLANG.ru (c) DLANG 2017 The only one modification that I did I changes pages names: extends home

Re: Is it's possible to make modular pug template in vibed?

2017-08-08 Thread Suliman via Digitalmars-d-learn
Am I right understand that I can extend only one template?

Re: Is it's possible to make modular pug template in vibed?

2017-08-08 Thread Suliman via Digitalmars-d-learn
On Tuesday, 8 August 2017 at 13:22:58 UTC, Steven Schveighoffer wrote: On 8/8/17 9:10 AM, Suliman wrote: Yes, thanks what: extends layout mean? It means that your final file will be layout.dt, but with the block statements replaced with the contents defined by the specific view file.

Re: Is it's possible to make modular pug template in vibed?

2017-08-08 Thread Suliman via Digitalmars-d-learn
Still can't get it work. include header .MainContainer .Header .HeaderMenu .HeaderBlock a(href="/") General .HeaderBlock a(href="/FAQ") FAQ .HeaderBlock a(href="/book") Book .HeaderLoginBlock Sign in .Middle f include footer it's template is compilable,

Re: Is it's possible to make modular pug template in vibed?

2017-08-08 Thread Suliman via Digitalmars-d-learn
Yes, thanks what: extends layout mean?

Re: Is it's possible to make modular pug template in vibed?

2017-08-08 Thread Suliman via Digitalmars-d-learn
On Tuesday, 8 August 2017 at 11:59:38 UTC, Suliman wrote: On Tuesday, 8 August 2017 at 11:55:09 UTC, Suliman wrote: For example I am making simple site with header and footer. header and footer will be same for all pages. I do not want to do copy-paste it in every page. I want write it's once

Re: Is it's possible to make modular pug template in vibed?

2017-08-08 Thread Suliman via Digitalmars-d-learn
On Tuesday, 8 August 2017 at 11:55:09 UTC, Suliman wrote: For example I am making simple site with header and footer. header and footer will be same for all pages. I do not want to do copy-paste it in every page. I want write it's once and than simpy import in every page. Is it's possible to

Is it's possible to make modular pug template in vibed?

2017-08-08 Thread Suliman via Digitalmars-d-learn
For example I am making simple site with header and footer. header and footer will be same for all pages. I do not want to do copy-paste it in every page. I want write it's once and than simpy import in every page. Is it's possible to do with vibed?

new russian Dlang book

2017-08-07 Thread Suliman via Digitalmars-d-announce
I would like to say big thanks especially to Ali Cehreli, Adam Ruppe, Oleg Butko, Pavel Chebotarev, Eto Demerzel, Andrey Asyakin and many others guys who helped and motivate me during writting this Book. The book is *very* raw and unfinished. But main 2 chapter are almost done. Now I do not

  1   2   3   4   5   6   7   8   9   >