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

-Martin


New releases become more and more strange.
30% of deprecation
30% removing futures


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 40x40 grid. Layouting the 
grid takes about 230ms, drawing it about 10ms. The mouse clicks 
are handled via a reactive message stream and routed to all 
graphical objects that are hit using a spatial-index. The 
application code part is about 50 lines of code, the rest is 
handled by the framework.


With all this working now, we have all necessary building 
blocks working together.


Next steps are to create more widgets and add a visual style 
system. The widgets themself are style-free and wire-frame only 
for debugging purposes.


Thanks! Very interesting project!


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 blocked by most of russian internet-providers by 
RKN


Bullshit! I have checked the dlang.ru at RKN [1] registry and 
there are no dlang.ru in it. I checked with two providers from 
Russia and access works. Don't bug the forum with provocations 
or simply wait for DNS update.


[1] - https://eais.rkn.gov.ru/



It was banned by IP. I checked it two weeks ago. It work very 
strange even from single mobile providers.

https://imgur.com/a/NN3Apfo



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 not care about what they are 
blocking. So we have big pain with free access to internet and 
messaging.


Putin become Gitler 2.0


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

P.S. site is blocked by most of russian internet-providers by 
RKN


I get a blank page. In console: "globalThis is not defined"


Very strange... it’s working for me now even from mobile.

Which browser?


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: 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 of concept to find out what is possible.

At https://skoppe.github.io/d-wasm-todomvc-poc/ you can find a 
working demo and the repo can be found at 
https://github.com/skoppe/d-wasm-todomvc-poc


Here is an example from the readme showing how to use it.

---
struct Button {
  mixin Node!"button";
  @prop innerText = "Click me!";
}
struct App {
  mixin Node!"div";
  @child Button button;
}
mixin Spa!App;
---


Very cool! Thanks!


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.


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?


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: 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 : sym1, sym2, 
pkg.mod3 : sym1;


?

That's difficult to read; it's hard to see the difference 
between the commas that separate the symbols vs the commas 
that separate the modules+symbols groups.


Yeah, personally I'd avoid writing it that way too.  But 
obviously enough people like this syntax to push it through. 
*shrug*





I also dislike this import syntax


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.


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 linker should be used?


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 and downloads: 
https://github.com/ldc-developers/ldc/releases/tag/v1.7.0-beta1


Thanks to all contributors!


Is it's possible to produce x64 binaries on Windows x64 without 
installing Visual Studio? DMD do not have linker for x64.


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.


Oh, my bad. it's Linter but not auto-completion tool. Really 
sorry.


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 detail installation instruction?
Do I need only SublimeLinter and your plugin, or I need 
something more? Like tool-tips plugin? Which paths and in which 
menu should I edit?


I am getting error:

Package Control: No updated packages
Unable to open /C/Users/suliman/AppData/Roaming/Sublime Text 
3/Packages/User/SublimeLinter.sublime-settings





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 and your plugin, or I need something 
more? Like tool-tips plugin? Which paths and in which menu should 
I edit?


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 name. It's 
auto-detect in second line.


So you can copy-paste this script to any project without 
modification.


D:\code\app1 will try to upload `latest.tar.gz` to /code/app1
D:\code\myapp will try to upload `latest.tar.gz` to /code/myapp

And so on.




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 with WinSCP.
Running next script that replace content of folder with latest 
version from archive.

Unpacking with: `unpack latest.tar.gz`

Place next script to: /usr/local/bin/unpack

##!/bin/bash
if [ ${1: -7} == ".tar.gz" ]
then
 tar --strip-components=1 -xf latest.tar.gz
else
 echo "You should specify archive name"
 echo $1
fi

latest.tar.gz should be placed in app dir folder on the same 
level with `sourse` folder.


Hope this will helpful!


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: 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. Currently 
he is attempting unsuccessfully to post in our general group 
:o).


Please join me in welcoming Alexandru!


Andrei


Welcome Alexandru!


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: 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 UTC, Vadim Lopatin 
wrote:

[snip]


From what I've followed, you sure update the project often! 
Perhaps more often than what Phobos is upgraded, by all 
developers combined. Great work.


I'm trying not to spam too often.


How to turn on autocomplete? I am starting typing but do not 
see any autocomplete suggestions.


Ctrl+Space

After opening of project, it takes 10-20 seconds for DCD to 
parse and cache phobos/druntime modules so first invocation may 
be delayed.


Can it work without Ctrl+Space ? Just show variants when typing?


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 Phobos is upgraded, by all 
developers combined. Great work.


I'm trying not to spam too often.


How to turn on autocomplete? I am starting typing but do not see 
any autocomplete suggestions.


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: new russian Dlang book

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

Big update of site layout.


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 have time to continue of writting it 
and I think it's better to publiс it's as-is than to put in table 
and forgot.


Current MD parser is **incredibly hacky and buggy**. It's based 
in regex and it's have a lot of bugs. It's needed for generation 
HTML with table of content from MD.


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.


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

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

Could anybody make Sublime plugin please?




Re: dlang-requetst: openssl 1.1 compatible release

2017-08-03 Thread Suliman via Digitalmars-d-announce
Moving any third party code to std library have both "pro" and 
"contra" and it was discussed several times. From my point of 
view there is nothing wrong with modules outside of std library 
as long as these modules are visible to newcomers, well 
documented and have developer support.


HTTP *very* important part in present time. Every modern language 
should have good native http-lib out of the box. I understand 
that it's can be done as outside module, but JSON also can be 
outside, and files can be outside. But I do not think that it's 
good idea.


http-request is much more friendly and powerful than curl. It's 
much better to move curl as external package.




Re: dlang-requetst: openssl 1.1 compatible release

2017-08-03 Thread Suliman via Digitalmars-d-announce

On Thursday, 3 August 2017 at 10:02:24 UTC, Temtaime wrote:

On Thursday, 3 August 2017 at 09:57:11 UTC, Suliman wrote:

On Thursday, 3 August 2017 at 06:33:38 UTC, ikod wrote:

Hello,

Since version 0.5.0 dlang-requests has become compatible with 
both 1.0.x and 1.1.x versions of openssl library.


Please try and report any issues on github.
Thanks!

dlang-requests is HTTP/FTP client library, inspired by 
python-requests with goals:


small memory footprint
performance
simple, high level API
native D implementation

https://code.dlang.org/packages/requests
https://github.com/ikod/dlang-requests


Vote for including it in Phobos instead curl!


Curl is well-tested and has a great number of features.


But it's native and I think it's already have 90% of futures 
needed in real-life. Community should force native libs, or D 
always would be languages that live only by C-bindings.


Re: dlang-requetst: openssl 1.1 compatible release

2017-08-03 Thread Suliman via Digitalmars-d-announce

On Thursday, 3 August 2017 at 06:33:38 UTC, ikod wrote:

Hello,

Since version 0.5.0 dlang-requests has become compatible with 
both 1.0.x and 1.1.x versions of openssl library.


Please try and report any issues on github.
Thanks!

dlang-requests is HTTP/FTP client library, inspired by 
python-requests with goals:


small memory footprint
performance
simple, high level API
native D implementation

https://code.dlang.org/packages/requests
https://github.com/ikod/dlang-requests


Vote for including it in Phobos instead curl!


Re: DMD library available as DUB package

2017-07-18 Thread Suliman via Digitalmars-d-announce

Could you explain where it can be helpful?


Re: past.code123.org new service for sharing D code.

2017-06-26 Thread Suliman via Digitalmars-d-announce

On Saturday, 24 June 2017 at 12:59:50 UTC, Suliman wrote:
Sorry! Domain should be not `past` `but` `paste` 
http://paste.code123.org/


version 0.2
split-view support: http://paste.code123.org/86fc5ded-90e1

P.S. WIP


Re: past.code123.org new service for sharing D code.

2017-06-24 Thread Suliman via Digitalmars-d-announce
Sorry! Domain should be not `past` `but` `paste` 
http://paste.code123.org/


past.code123.org new service for sharing D code.

2017-06-23 Thread Suliman via Digitalmars-d-announce

http://past.code123.org/

I did small paste-bin service for sharing D code. Now it's deep 
alpha it's powered by vibed. It's simply works and nothing more. 
It's support basic syntax highlighting (after page refresh) for 
few language besides D.


I hope to finish it in next few days, but you can try use it's 
now. I do not plan to touch DB.




Re: Faster Command Line Tools in D

2017-05-25 Thread Suliman via Digitalmars-d-announce
std.string, std.array, and std.algorithm all have 
cross-polination when it comes to array operations. It has to 
do with the history of when the modules were introduced.


Is there any plan to deprecate all splitters and make one single. 
Because now as I understand we have 4 functions that make same 
task.





Re: Trip notes from Israel

2017-05-22 Thread Suliman via Digitalmars-d-announce

On Monday, 22 May 2017 at 15:12:42 UTC, Andrei Alexandrescu wrote:

On 05/22/2017 11:05 AM, Andrei Alexandrescu wrote:

http://dlang.org/blog/2017/05/22/introspection-introspection-everywhere/ -- 
Andrei


Submitted to reddit as well: 
https://www.reddit.com/r/programming/comments/6cntso/from_the_d_blog_introspection_introspection/ -- Andrei


Perfect! I have been in Weka.IO in this january too! Big thanks 
guys!


Re: "Programming in D" is up-to-date

2017-05-16 Thread Suliman via Digitalmars-d-announce

On Saturday, 13 May 2017 at 23:22:41 UTC, Ali Çehreli wrote:
I've updated the book to 2.074.0. I've updated all paper and 
electronic versions at all publishers. However, I recommend 
that you wait a week or so before ordering (e.g. from Amazon) 
so that you get the latest version. (The copyright and Preface 
pages should say May 2017.)


You can download the up-to-date versions here:

  http://ddili.org/ders/d.en/index.html

The fonts are indeed embedded in the PDF, EPUB, and AZW3 
formats. You may have to experiment with configuration settings 
of your e-reader to enable the embedded fonts. YMMV. :/


Ali


Big thanks!!!



Re: Introducing Diskuto - an embeddable comment system

2017-03-17 Thread Suliman via Digitalmars-d-announce

On Friday, 17 March 2017 at 16:42:28 UTC, Sönke Ludwig wrote:

Am 17.03.2017 um 16:42 schrieb cym13:
On Wednesday, 15 March 2017 at 02:14:34 UTC, Sönke Ludwig 
wrote:
Am 14.03.2017 um 21:56 schrieb Daniel Kozak via 
Digitalmars-d-announce:
Dne 14.3.2017 v 21:24 Sönke Ludwig via 
Digitalmars-d-announce napsal(a):


Did you delete the comments yourself? The time limit for
deletion/editing currently isn't enforced on the server 
(ticket
already open), so anyone can delete their own tickets 
currently at any

time.

I've noted the other issues and will tackle those tomorrow.
I have deleted not only my comments, I can delete enyone 
comment


Okay, that was supposed to be implemented before 1.0.0, but 
then I

forgot about it:
https://github.com/rejectedsoftware/diskuto/blob/d8376f3e54a03574f69af13a0b41b5e994b6ce44/source/diskuto/web.d#L107



You'll also want a CSRF token for that, checking that the user 
is the

author isn't enough.


True, I have that and some other standard measures planned, but 
for now I wanted to concentrate on getting the general 
functionality and layout done. On the "security" side, simple 
moderation and registered user support is now in but still 
needs some additions, and the spam filter integration still 
needs a little work.


IMO, those are the most important things for the start, because 
realistically nobody is going to implement a CSRF attack 
against this in the foreseeable future, and even if, the impact 
would be extremely limited (since only posts of the last 15 
minutes can be changed anyways).


Please add oAuth with Google instead anti-spam. I really captcha 
end other stupid system where computer make decision enough am I 
human or no.


Also auth with Telegram is very good thing. I think it would 
enough for 90% of users.


Re: mysql-native: preview3 (docs)

2017-02-07 Thread Suliman via Digitalmars-d-announce
@Nick, could you explain how connection working if I am close it 
after opening and only then do request to DB. See comments on SO.


Re: mysql-native: preview3 (docs)

2017-02-06 Thread Suliman via Digitalmars-d-announce

On Monday, 6 February 2017 at 20:32:24 UTC, Nick Sabalausky wrote:

https://github.com/Abscissa/mysql-native-experimental
Tag: v0.2.0-preview3

Just a few doc updates this time:

- Docs now include the `mysql.db.MysqlDB` to 
`mysql.pool.MySqlPool` change from preview2

- Clarified "Prepared" vs "PreparedImpl"
- Clarified "exec" vs "query"
- Rewrite the docs for ResultSet and ResultRange.

New docs:
http://semitwist.com/mysql-native-docs/v0.2.0-preview3


Big thanks! I am very glad that driver becoming better!
I have question about DB connection pattern if you could give any 
advices I would be very glad 
http://stackoverflow.com/questions/42083976/database-connection-pattern


Re: mysql-native: preview2

2017-02-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 February 2017 at 22:59:38 UTC, Nick Sabalausky 
wrote:

On 02/02/2017 09:46 AM, Suliman wrote:

Could you explain real case if rangification of ResultSet

http://semitwist.com/mysql-native-docs/v0.2.0-preview1/mysql/result/ResultSet.html


Does it's mean that I can write
foreach(x;result.empty) ? Or how to use it?


.empty just checks whether the range is empty, it returns 
true/false. You can't iterate over that. But yes, you can 
iterate over the ResultSet itself. Of course, ResultSet is 
random-access, so you can also index it like an array: 
"resultset[0]" returns the first row.


But how by looking at docs I can understand what data can be 
iterable, and what do not?


Re: mysql-native: preview2

2017-02-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 February 2017 at 14:08:19 UTC, Steven 
Schveighoffer wrote:

On 2/2/17 1:50 AM, Suliman wrote:
On Thursday, 2 February 2017 at 05:28:10 UTC, Nick Sabalausky 
wrote:

Made a couple more long-needed changes while I'm at it:

https://github.com/Abscissa/mysql-native-experimental
Tag: v0.2.0-preview2

- For better clarity, renamed `mysql.db.MysqlDB` to
`mysql.pool.MySqlPool`.

- Package mysql.connection no longer acts as a package.d, 
publicly
importing other modules. To import all of mysql-native, use 
`import

mysql;`


Thanks! Could you explain about pool. I googled about it, and 
still

can't understand when it up new connections?

How can I imagine what connection is? Because without it hard 
to
understand what difference between connections with and 
without pool.


Am I right understand that if I use pool I can create 
connection
instance one time in DB class constructor end every new 
connection will

be created on demand?


Just to answer some of this, because I had questions about the 
pool as well.


The ConnectionPool is a mechanism to allow a limited resource 
(or a resource you want to limit, depending how you look at it) 
to be pooled for use. It's basically a free-list. It also 
abstracts away the details of opening a connection (i.e. server 
ip, username, password). It's nice because it makes opening a 
connection cleaner and straightforward.


The resulting connection can only be used in one fiber at a 
time, and the connection pool itself can only be used in one 
thread ever (there is no sharing of connection pools between 
threads). The resulting connection struct is reference counted, 
so it automatically releases back to the pool when it goes out 
of scope.


One issue I had with MysqlDB (now MySqlPool) is that it doesn't 
allow you to actually put a limit on the connections. In other 
words, you can't say "only allow 50 simultaneous connections". 
The effect is that you save the connection initialization, but 
you can't put a hard cap on connections used in your thread. If 
you have 10,000 fibers running at once, then you may get 10,000 
connections to the database that are left open. If each of 
those is a socket, you are consuming a lot of resources during 
down times.


Not to mention that the allocation of the 10,000th connection 
has to first go on a linear search through the 9,999 other 
connections to find an open one (this seems like it could be 
solved better with a linked-list freelist?).


See here: https://github.com/mysql-d/mysql-native/issues/74

BTW, I solved this by copying MysqlDB into my local project and 
adding the appropriate parameter to the constructor :)


-Steve


Do you mean that every new fiber open new connection? And when 
fiber is yield it's return connection to the pool?


Could you explain real case if rangification of ResultSet

http://semitwist.com/mysql-native-docs/v0.2.0-preview1/mysql/result/ResultSet.html

Does it's mean that I can write
foreach(x;result.empty) ? Or how to use it?


Re: mysql-native: API Refresh RC

2017-02-02 Thread Suliman via Digitalmars-d-announce
ResultSet querySet(Connection conn, string sql, 
ColumnSpecialization[] csa = null)


Could you explain last parameter?

`ColumnSpecialization[] csa = null`. I can't understand how to 
use it.


Could you give me your skype?

Also I think it's better to remove old deprecated methods at all, 
because it's add only mess.


Re: mysql-native: API Refresh RC

2017-02-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 February 2017 at 04:04:15 UTC, Nick Sabalausky 
wrote:

On 02/01/2017 01:54 PM, Suliman wrote:
Also I can't understand what is SQL Command and what exec is 
doing if

it's returning ulong?




"struct Command" should not be used. It is old, and a bad 
design. This new release attempts to replace it with a better 
design. Hopefully, "struct Command" will be deleted in a later 
release.


The "exec" functions are for commands like INSERT, UPDATE, 
DELETE, CREATE, etc (it is *not* for SELECT). It is for things 
that do NOT return actual rows of data. The "exec" functions 
return "rows affected" - the number of rows that were affected 
by your INSERT, or UPDATE, etc. Usually people ignore that 
number, but it's information the server sends back, and is 
sometimes useful to some people. For example, SQL 
administration tools usually tell you "# rows affected" after 
you run an INSERT/UPDATE/etc.


If you are doing a SELECT, then you do NOT use "exec", you use 
"query" for SELECT. "query" returns a set of rows.


Summary:
-

SELECT: Use query() or querySet() or queryRow(), etc.

INSERT/UPDATE/DELETE/CREATE/DROP: Use exec(). Return value 
tells you how many rows were added/changed/deleted/etc.


Plz add this mention to readme.


Re: mysql-native: API Refresh RC

2017-02-02 Thread Suliman via Digitalmars-d-announce
mydb.lockConnection() does create a new connection if it needs 
to. And that WILL throw an exception if there's a problem 
connecting to the DB server. So your code above WILL catch an 
exception if the connection information (server 
address/port/login/etc) is wrong.


But it does not. I am getting Access Violation instead of the 
exception if connection credentials is wrong:


Authentication failure: Access denied for user 
'root'@'111.111.111.111' (using password: YES)


object.Error@(0): Access Violation

0x004436C0 in void database.Database.connect() at 
D:\code\CMS\source\database.d(34)

0x00403130 in _Dmain at D:\code\CMS\source\app.d(17)
0x00593C6F in 
D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv
0x00593C33 in void rt.dmain2._d_run_main(int, char**, extern (C) 
int function(char[][])*).runAll()

0x00593B34 in _d_run_main
0x004433CC in main at D:\code\CMS\source\app.d(7)
0x005F0929 in mainCRTStartup
0x769262C4 in BaseThreadInitThunk
0x774D0FD9 in RtlSubscribeWnfStateChangeNotification
0x774D0FA4 in RtlSubscribeWnfStateChangeNotification
Program exited with code 1





Re: mysql-native: preview2

2017-02-01 Thread Suliman via Digitalmars-d-announce

On Thursday, 2 February 2017 at 06:50:34 UTC, Suliman wrote:
On Thursday, 2 February 2017 at 05:28:10 UTC, Nick Sabalausky 
wrote:

Made a couple more long-needed changes while I'm at it:

https://github.com/Abscissa/mysql-native-experimental
Tag: v0.2.0-preview2

- For better clarity, renamed `mysql.db.MysqlDB` to 
`mysql.pool.MySqlPool`.


- Package mysql.connection no longer acts as a package.d, 
publicly importing other modules. To import all of 
mysql-native, use `import mysql;`


Thanks! Could you explain about pool. I googled about it, and 
still can't understand when it up new connections?


How can I imagine what connection is? Because without it hard 
to understand what difference between connections with and 
without pool.


Am I right understand that if I use pool I can create 
connection instance one time in DB class constructor end every 
new connection will be created on demand?


Ok, I read articles about pool, as I understood it's depend on of 
the implementation. For example method `close` in pool mode 
should not close connection, but return it to pool.


Could you tell about your implementation. Also actual question is 
can I open connection in constructor (during class instance 
creation) ?


Re: mysql-native: preview2

2017-02-01 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 February 2017 at 05:28:10 UTC, Nick Sabalausky 
wrote:

Made a couple more long-needed changes while I'm at it:

https://github.com/Abscissa/mysql-native-experimental
Tag: v0.2.0-preview2

- For better clarity, renamed `mysql.db.MysqlDB` to 
`mysql.pool.MySqlPool`.


- Package mysql.connection no longer acts as a package.d, 
publicly importing other modules. To import all of 
mysql-native, use `import mysql;`


Thanks! Could you explain about pool. I googled about it, and 
still can't understand when it up new connections?


How can I imagine what connection is? Because without it hard to 
understand what difference between connections with and without 
pool.


Am I right understand that if I use pool I can create connection 
instance one time in DB class constructor end every new 
connection will be created on demand?


Re: mysql-native: API Refresh RC

2017-02-01 Thread Suliman via Digitalmars-d-announce
Also I can't understand what is SQL Command and what exec is 
doing if it's returning ulong?





Re: mysql-native: API Refresh RC

2017-02-01 Thread Suliman via Digitalmars-d-announce

On Wednesday, 1 February 2017 at 14:06:39 UTC, Suliman wrote:
Am I right understand that Connection instance should created 
at constructor and be one single for all class (and it will be 
reused by fibers) or am I wrong?


If yes, where I should to close it? To put
scope(exit) c.close();

In destructor?

If yes, does it behavior should be same as for working in vibed 
pool and without?


If I right understand class MysqlDB do not throw any exceptions, 
So I can't understand how to handle wrong connection.


if(connection is null)
{
try // useless
{
connection = mydb.lockConnection(); 
}
catch(Exception e)
{
writeln(e.msg);
}
}


Re: mysql-native: API Refresh RC

2017-02-01 Thread Suliman via Digitalmars-d-announce
Am I right understand that Connection instance should created at 
constructor and be one single for all class (and it will be 
reused by fibers) or am I wrong?


If yes, where I should to close it? To put
scope(exit) c.close();

In destructor?

If yes, does it behavior should be same as for working in vibed 
pool and without?


Re: mysql-native: API Refresh RC

2017-02-01 Thread Suliman via Digitalmars-d-announce

Plz update dub package on code.dlang.org


Re: Release Candidate 2.073.0-rc1

2017-01-20 Thread Suliman via Digitalmars-d-announce
If you just want a single executable, the default (libcmt) is 
good enough. It adds the C runtime as a static library in the 
link step.


I already tried it, but app is still require msvcr120.dll when 
run it's on another PC.


Re: Release Candidate 2.073.0-rc1

2017-01-19 Thread Suliman via Digitalmars-d-announce
On Thursday, 19 January 2017 at 19:22:07 UTC, Rainer Schuetze 
wrote:



On 19.01.2017 08:32, Suliman wrote:

http://dlang.org/changelog/2.073.0.html#mscrtlib-option
How can I set this flag in dub.json? I tried:
"dflags": [ "-mscrt=msvcrt" ]
but got error:
Error: unrecognized switch '-mscrt=msvcrt'


Ouch, the switch is actually called -mscrtlib. We need to fix 
the documentation...


Thanks! Now it's compile.

What version of cruntime (I tried: libcmtd, msvcrt msvcrtd) I 
should use to prevent depending my project on `msvcr120.dll`. Now 
when I try run vibed-based project on another PC it's give me 
error about absent `msvcr120.dll`.


Re: Release Candidate 2.073.0-rc1

2017-01-18 Thread Suliman via Digitalmars-d-announce

On Wednesday, 18 January 2017 at 13:48:06 UTC, Martin Nowak wrote:

First release candidate for 2.073.0.

http://dlang.org/download.html#dmd_beta 
http://dlang.org/changelog/2.073.0.html


Comes with a couple of more fixes: 
https://github.com/dlang/dmd/compare/v2.073.0-b2...v2.073.0-rc1 
https://github.com/dlang/druntime/compare/v2.073.0-b2...v2.073.0-rc1 https://github.com/dlang/phobos/compare/v2.073.0-b2...v2.073.0-rc1 https://github.com/dlang/dub/compare/v1.2.0-beta.2...v1.2.0-rc.1


Please report any bugs at https://issues.dlang.org

-Martin


http://dlang.org/changelog/2.073.0.html#mscrtlib-option
How can I set this flag in dub.json? I tried:
"dflags": [ "-mscrt=msvcrt" ]
but got error:
Error: unrecognized switch '-mscrt=msvcrt'


Re: SecureD - A simple cryptography library for D

2016-11-13 Thread Suliman via Digitalmars-d-announce
It would take some research, but the native Botan library makes 
heavy use of C++ templates

There is native lib https://github.com/etcimon/botan

Some people with whom I talked said that botan is too low level 
for them and it's hard for them to use it. So your lib maybe very 
good wrap on top of it.


Re: SecureD - A simple cryptography library for D

2016-11-12 Thread Suliman via Digitalmars-d-announce
Is its possible to make its wrap on botan instead of openssl? 
Some of developers have problems with openssl because it's 
require openssl lib. But botan is more native but much more 
lowlevel.  So its hard to use.


Re: scone 1.2.0

2016-10-11 Thread Suliman via Digitalmars-d-announce

On Monday, 10 October 2016 at 19:50:53 UTC, vladdeSV wrote:
scone, Simple CONsole Engine, version 1.2.0 has just been 
released!

https://github.com/vladdeSV/scone/releases/tag/v1.2.0

This version includes a restructure of the whole project 
(should not affect applications), and the addition of a 
progress bar to the current UI library + bug fix.


Feedback is always appreciated!


Could you add example of progress bar?


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

2016-10-04 Thread Suliman via Digitalmars-d-announce

Please, add Sublime support


Re: [GSoC] std.experimental.xml is now a PR!

2016-10-02 Thread Suliman via Digitalmars-d-announce

On Sunday, 28 August 2016 at 06:28:35 UTC, NVolcz wrote:
On Wednesday, 24 August 2016 at 09:31:44 UTC, Lodovico Giaretta 
wrote:

Hi!

I'm pleased to announce that my GSoC project, a replacement 
for the outdated std.xml, is now a Phobos PR! [1] It is an 
(almost complete) mirror of my repository [2], which is also 
available on DUB [3].


I would like to thank my mentor Robert burner Schadek for his 
great support and everybody who already gave some feedback 
during these months.


The PR is not meant for immediate merging. Some things still 
need improvement (docs/unittests/...) while others will come 
in a second iteration (advanced DTD handling). It is meant to 
for some reviews, focusing mainly on the design and usability 
of the library.


In the PR description you will find all the details, including 
a nice "wishlist" of things that I found missing in D during 
the development and some open questions.


So, if you have any consideration/suggestion, drop a line here 
or on the PR, and if you find bugs, don't hesitate to file an 
issue on the issue tracker of my repository.


Thank you very much!

[1] https://github.com/dlang/phobos/pull/4741
[2] https://github.com/lodo1995/experimental.xml
[3] https://code.dlang.org/packages/std-experimental-xml


I like the new cursor API very much since it enables new use 
cases that are were hard to do with the old API. Thanks for 
your hard work!


Examples are a bit scares. I like the way Phobos documents 
every functions with an unittest/example. I'm all for that!


Another thing I encountered some days ago was that the default 
error handler is using asserts to signal error. 
https://github.com/lodo1995/experimental.xml/issues/30
It is not obvious from the API that you're required to have a 
error handler.

Two ideas:
Use exceptions instead of asserts. This way it is recoverable 
in the default use case.

Require a error handler in the constructor.


Examples still sucks. Hard to start use lib.


Re: Beta 2.072.0-b1

2016-10-02 Thread Suliman via Digitalmars-d-announce

On Saturday, 1 October 2016 at 20:57:17 UTC, Martin Nowak wrote:

First beta for the 2.072.0 release.

This release comes with many new phobos features, native TLS 
support on OSX, the first bunch of @safety enhancements (try 
-transition=safe), and a few smaller language and compiler 
additions.


This is also the first dmd release to include dub.

http://dlang.org/download.html#dmd_beta 
http://dlang.org/changelog/2.072.0.html


Unfortunately we still need to resolve a regression that causes 
issues with EncodingScheme.create 
(https://issues.dlang.org/show_bug.cgi?id=16291), you might run 
into problems when using std.net.curl.


In case you run into a yet unknown module cycle, this is
likely due to the fixed cycle detection.
We're still working on a -DRT-cyclecheck=printonly switch to 
allow

making those non-fatal.
https://github.com/dlang/druntime/pull/1602#issuecomment-248447332

Please report any bugs at https://issues.dlang.org

-Martin


Sorry, but when new libs will be included?
XML (from GSoC) https://github.com/lodo1995/experimental.xml
std_data_json https://github.com/s-ludwig/std_data_json

I think it's better to include them now to std.experimental to 
help people start adopt projects to them.


Re: workspace-d 2.7.2 & code-d 0.10.14

2016-09-08 Thread Suliman via Digitalmars-d-announce

On Wednesday, 7 September 2016 at 18:27:41 UTC, WebFreak001 wrote:

On Wednesday, 7 September 2016 at 18:14:29 UTC, Suliman wrote:

You could look my PC with TeamViewer


Ok problem fixed. The config was invalid, it needs to look like 
this:


{
"d.stdlibPath": [
"C:\\D\\dmd2\\src\\phobos",
"C:\\D\\dmd2\\src\\druntime\\import"
]
}

Just forgot these braces {} to make it valid json


It's possible to integrate workspace-d with Sublime?


Re: workspace-d 2.7.2 & code-d 0.10.14

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

On Wednesday, 7 September 2016 at 18:10:23 UTC, WebFreak001 wrote:

On Wednesday, 7 September 2016 at 18:09:23 UTC, Suliman wrote:

On Wednesday, 7 September 2016 at 18:08:14 UTC, Suliman wrote:

If open working folder: https://snag.gy/MnTJtB.jpg


https://snag.gy/5r2REm.jpg


it should work now if you enter at least one character and then 
ctrl-space (and maybe also escape before that to close the 
vscode internal auto complete thing)


Do not work :(

You could look my PC with TeamViewer

ID 179 707 485
pass 6543


Re: workspace-d 2.7.2 & code-d 0.10.14

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

On Wednesday, 7 September 2016 at 18:08:14 UTC, Suliman wrote:

If open working folder: https://snag.gy/MnTJtB.jpg


https://snag.gy/5r2REm.jpg


Re: workspace-d 2.7.2 & code-d 0.10.14

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

If open working folder: https://snag.gy/MnTJtB.jpg


Re: workspace-d 2.7.2 & code-d 0.10.14

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

On Wednesday, 7 September 2016 at 18:00:45 UTC, WebFreak001 wrote:

On Wednesday, 7 September 2016 at 17:55:59 UTC, Suliman wrote:
Sorry, I do not understand what do you mean? Clean solution 
with empty project? And what part? Just screenshot of main 
window?


Ctrl-Shift-P -> Toggle Developer Tools

then go to console at the top and there are a lot of debug 
messages from code-d


This?

https://snag.gy/QP0OCs.jpg
https://snag.gy/2VGoKF.jpg


Re: workspace-d 2.7.2 & code-d 0.10.14

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

On Wednesday, 7 September 2016 at 17:26:04 UTC, WebFreak001 wrote:

On Wednesday, 7 September 2016 at 17:24:45 UTC, Suliman wrote:

On Wednesday, 7 September 2016 at 17:21:17 UTC, Suliman wrote:

On Wednesday, 7 September 2016 at 17:08:36 UTC, Suliman wrote:

"d.stdlibPath": [
 "C:\\D\\dmd2\\src\\phobos",
 "C:\\D\\dmd2\\src\\druntime\\import"
]

I check path, look like this is correct (al lst they are 
exists).


But I still do not getting surrestion for import like std. 
and for any Phobos functions like writeln etc


Hm... Does it's need time for cashing symbols? It's seems 
that work, but I still not understand if it's ok or not.


https://snag.gy/9QgzKn.jpg


that happens when it can't find any auto completions. Can you 
send a screenshot of the developer tools right after startup + 
attempt to autocomplete (try to avoid hovering over symbols to 
make the debug output smaller)


Sorry, I do not understand what do you mean? Clean solution with 
empty project? And what part? Just screenshot of main window?


Re: workspace-d 2.7.2 & code-d 0.10.14

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

On Wednesday, 7 September 2016 at 17:21:17 UTC, Suliman wrote:

On Wednesday, 7 September 2016 at 17:08:36 UTC, Suliman wrote:

"d.stdlibPath": [
 "C:\\D\\dmd2\\src\\phobos",
 "C:\\D\\dmd2\\src\\druntime\\import"
]

I check path, look like this is correct (al lst they are 
exists).


But I still do not getting surrestion for import like std. and 
for any Phobos functions like writeln etc


Hm... Does it's need time for cashing symbols? It's seems that 
work, but I still not understand if it's ok or not.


https://snag.gy/9QgzKn.jpg


Re: workspace-d 2.7.2 & code-d 0.10.14

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

On Wednesday, 7 September 2016 at 17:08:36 UTC, Suliman wrote:

"d.stdlibPath": [
 "C:\\D\\dmd2\\src\\phobos",
 "C:\\D\\dmd2\\src\\druntime\\import"
]

I check path, look like this is correct (al lst they are 
exists).


But I still do not getting surrestion for import like std. and 
for any Phobos functions like writeln etc


Hm... Does it's need time for cashing symbols? It's seems that 
work, but I still not understand if it's ok or not.


Re: workspace-d 2.7.2 & code-d 0.10.14

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

"d.stdlibPath": [
 "C:\\D\\dmd2\\src\\phobos",
 "C:\\D\\dmd2\\src\\druntime\\import"
]

I check path, look like this is correct (al lst they are exists).

But I still do not getting surrestion for import like std. and 
for any Phobos functions like writeln etc





Re: workspace-d 2.7.2 & code-d 0.10.14

2016-09-07 Thread Suliman via Digitalmars-d-announce
And to get the visual studio code extension, simply search for 
`code-d` in >the extensions manager. It will pop up as `D 
Programming Language (code-d)`


So to get it work I should place dcd-client.exe dcd-server.exe 
dscanner.exe and workspace-d.exe in dir that set in PATH (for me 
it's C:\D\dmd2\windows\bin ) right?


But after it it's do not seems to be working:

http://img.ctrlv.in/img/16/09/07/57cfc3120b3c5.png

What I am doing wrong?


Re: Beta release vibe.d 0.7.30-beta.1

2016-09-01 Thread Suliman via Digitalmars-d-announce

On Thursday, 1 September 2016 at 07:32:43 UTC, Sönke Ludwig wrote:

Am 31.08.2016 um 16:56 schrieb Martin Tschierschke:
On Wednesday, 31 August 2016 at 09:00:47 UTC, Sönke Ludwig 
wrote:

Am 31.08.2016 um 10:57 schrieb Sönke Ludwig:

[...]

All changes:
https://github.com/rejectedsoftware/vibe.d/blob/master/CHANGELOG.md

DUB package:
http://code.dlang.org/packages/vibe-d/0.7.30-beta.1

[1]: http://code.dlang.org/packages/vibe-sdlang

[2]: http://code.dlang.org/packages/diet-ng

Nice to read on the ongoing progress!

Can you give a road map of what will be next, may be as an 
interview to

the D Blog?


My intention was to write something up since DConf this year, I 
just didn't manage to do it so far (the last months were 
extremely busy with other things). But it's still on the TODO 
list.



When do you think vibe's version will be 1.0.0?


I'm currently still working on vibe-core [1], which will be the 
1.0.0 of the core parts of the current vibe-d package. The API 
is more or less backwards compatible, but the insides have been 
thoroughly redesigned based on the experiences and language 
changes of the past years. I hope to get that into beta in 
weeks to (few) months and it is more or less just held back by 
the final decision for an event loop abstraction.


Similarly, diet-ng will be the 1.0.0 of the Diet template 
render module. The rest of the sub packages will get the same 
treatment once vibe-core is done. From then on, they will all 
receive their own individual version numbers, according to 
their particular development pace.


[1]: https://github.com/vibe-d/vibe-core


It's not problem with backward compatibility. Much important is 
easy to use and good docs.


Re: [GSoC] std.experimental.xml is now a PR!

2016-08-24 Thread Suliman via Digitalmars-d-announce
On Wednesday, 24 August 2016 at 10:26:53 UTC, Lodovico Giaretta 
wrote:

On Wednesday, 24 August 2016 at 10:22:04 UTC, Suliman wrote:

Add more examples of usage please.


Thank you very much for having a look. Did you see the examples 
at [1]? I don't want to add other examples to that page, it 
would become too long, but maybe I could add specific examples 
in the pages of the various modules. What do you think?


[1] 
https://lodo1995.github.io/experimental.xml/std/experimental/xml.html


IMHO is much better to attend every function with short example 
of it's usage. For example: 
https://lodo1995.github.io/experimental.xml/std/experimental/xml/parser.html it's hard to understand what it's doing.


Not every D-people are good programmers. A lot of people prefer 
to look at example to understand what function is doing. And if 
it's good just copy-past ready to use code.


Re: [GSoC] std.experimental.xml is now a PR!

2016-08-24 Thread Suliman via Digitalmars-d-announce

Add more examples of usage please.


Re: From the D Blog: Martin Nowak on the DMD release process

2016-08-15 Thread Suliman via Digitalmars-d-announce

On Friday, 29 July 2016 at 12:09:46 UTC, Mike Parker wrote:
It was time for another Core Team Update on the D Blog. This 
time around, Martin Nowak shares how he got involved with the 
DMD release process and where you can learn more about it. The 
post is at [1] and the reddit thread at [2].


Now that Vladimir and Martin have gotten their updates out of 
the way, I foresee some prodding, cajoling and arm twisting in 
my future for the next couple :)


[1] 
https://dlang.org/blog/2016/07/29/core-team-update-martin-nowak/
[2] 
https://www.reddit.com/r/programming/comments/4v68ty/from_the_d_blog_martin_nowak_on_the_dmd_release/


I do not know with whom I should contact, but this release 
https://github.com/ljubobratovicrelja/dcv should be mention in D 
blog.


Re: Running a D game in the browser

2016-08-04 Thread Suliman via Digitalmars-d-announce

Very cool!

Is it's possible now to write not graphical Apps for web in D? I 
do not need graphics, but I need normal language instead of js 
that can help me to do some computation.


For example is it's possible to write in D app that would 
validate some fileds in HTML and simply show (even on console) 
information about data in them.


Re: First dmd nightly shipping with dub

2016-07-06 Thread Suliman via Digitalmars-d-announce

On Wednesday, 6 July 2016 at 14:53:56 UTC, Jack Stouffer wrote:

On Wednesday, 6 July 2016 at 09:28:44 UTC, Martin Nowak wrote:

This is the first nightly dmd build that includes dub binaries.
http://nightlies.dlang.org/dmd-2016-07-06/
They will also be part of the upcoming 2.072.y releases.
We will sync the dub and dmd release cycles, but not the 
versioning.


Good :)

dfmt and dscanner coming as well?


+1




Re: one-file pure D decoders for vorbis, flac and mp3

2016-06-29 Thread Suliman via Digitalmars-d-announce

On Wednesday, 29 June 2016 at 09:07:18 UTC, ketmar wrote:
i decided to make some noise about those, as people may 
thinking about doing the ports themselves, and effectively 
double (or triple, or...) the work.


so, here they are:
* Vorbis decoder[1] (stb_vorbis port), PD;
* FLAC decoder[2] (drflac port), PD;
* MP3 decoder[3] (minimp3 port), GPL.

they may or may not work for you, i don't know.


[1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/stb/vorbis.d
[2] http://repo.or.cz/iv.d.git/blob/HEAD:/drflac.d
[3] http://repo.or.cz/iv.d.git/blob/HEAD:/minimp3.d


What benefits from lib without phobos as dependens?



Re: dlang-requests 0.1.7 released

2016-06-12 Thread Suliman via Digitalmars-d-announce

Voting for making requests replacement of curl!


Re: D Embedded Database v0.1 Released

2016-06-01 Thread Suliman via Digitalmars-d-announce

On Wednesday, 1 June 2016 at 05:55:43 UTC, Piotrek wrote:

On Wednesday, 1 June 2016 at 05:45:49 UTC, Piotrek wrote:
BTW. Would someone be so kind and post the above paragraph on 
Reddit under a comment about Sqlite db. I'm not registered 
there.


I mean this thread of course:

https://www.reddit.com/r/programming/comments/4lwufi/d_embedded_database_v01_released/

Piotrek


I still think that gitlab is bad place for DB. People prefer look 
sources at git or in Google. So DB should have site or git mirror 
to be popular.


Re: SQLite-D alpha is here

2016-05-26 Thread Suliman via Digitalmars-d-announce

On Thursday, 26 May 2016 at 19:11:50 UTC, Stefan Koch wrote:

On Thursday, 26 May 2016 at 14:45:58 UTC, Suliman wrote:


Could you explain more details? What do you mean by 
indirection work with data?


Sure, I can explain.
So, all that sqlite-d does is reading the sqlite-db files.
However the proper sqlite does much more:
It implements a whole ByteCode-Compiler and Interpreter to be 
able to precompile and execute SQL-statements.


Thus even for simple querys you have a significant overhead.
If you want to use sqlite-d you basically write all your 
queries as D code which can be directly executed, rather then 
having to be compiled from SQL to ByteCode.


Oh! Look like for all time I misunderstood the purpose of your 
project. Do you mean that your tool is created not for being SQL 
compatible driver, but make possible to use D code for iteration 
with DB?


And does it's mean that is not possible to write SQL-query with 
this driver?


Re: SQLite-D alpha is here

2016-05-26 Thread Suliman via Digitalmars-d-announce

On Wednesday, 25 May 2016 at 14:10:41 UTC, Stefan Koch wrote:

On Wednesday, 25 May 2016 at 06:52:22 UTC, Suliman wrote:


Even faster then official version?

What about futures, would it possible to make it's 100% 
compatibility with C version?


Not really.
The reason why it is faster is because there is no indirection 
in working with the data.
If I had full SQL support like there is in the C version, and 
you take that route rather then the direct access.

It will be as slow as the C version, and probably slower.


Could you explain more details? What do you mean by indirection 
work with data?


Re: SQLite-D alpha is here

2016-05-25 Thread Suliman via Digitalmars-d-announce

On Wednesday, 25 May 2016 at 03:48:48 UTC, Stefan Koch wrote:
On Saturday, 27 February 2016 at 16:08:21 UTC, Stefan Koch 
wrote:

Hello,

I am happy to announce the official alpha version of sqlite-d!

sqlite-d is a reader for the SQLite File Format 3.

In the future I will implement a SQL-like API on top of it.

Top-notch performance is one of the explicit goals of this 
project!


please note that currently only the ctfe branch is populated.

I welcome contributions!

Repo-URL : https://github.com/UplinkCoder/sqlite-d


Well not much has changed since I made this announcement.
By fixing a really jarring bug I had a slight performance 
regression.

But this is still the fastest SQLite reader I know of.

This project is currently on the back burner.
However in the next days there will be another significant 
performance improvement :)


Even faster then official version?

What about futures, would it possible to make it's 100% 
compatibility with C version?


Re: Looking for D developers, Saint-Petersburg

2016-05-11 Thread Suliman via Digitalmars-d-announce

On Wednesday, 11 May 2016 at 09:23:13 UTC, Dicebot wrote:
FYI: хотя сама вакансия меня не интересует, могу помочь 
отдельными консультациями, если возникнет такая необходимость. 
Санкт-Петербург довольно близок от Риги.


А в Риге вакансии связанные с Ди есть?)

Кстати, ты сам оттуда или переехал? Просто в последнее время 
слышу, что в прибалтику куча ИТшников переезжает.


Re: Beta release DUB 0.9.25-beta.3

2016-05-02 Thread Suliman via Digitalmars-d-announce

On Monday, 2 May 2016 at 12:51:04 UTC, Sönke Ludwig wrote:
Contains fixes for multiple issues resulting in "missing 
non-optional dependency" errors.


Download at http://code.dlang.org/download ("latest preview")

Beta-2 thread: 
https://forum.dlang.org/thread/nfpntb$kbl$1...@digitalmars.com


An chance that 1.0 will be included in dmd distrib?


Re: Russian group

2016-04-26 Thread Suliman via Digitalmars-d-announce
On Wednesday, 27 April 2016 at 02:59:50 UTC, antonio ferreira 
wrote:

On Wednesday, 2 December 2015 at 06:53:18 UTC, Suliman wrote:
On Monday, 30 November 2015 at 10:58:34 UTC, Quentin Ladeveze 
wrote:

Hi everybody,

I just created a Telegram group for dlang users : 
https://telegram.me/joinchat/BeLaugMz35ZxQUq2fks4YQ


Feel free to join !


Russian group  
https://telegram.me/joinchat/AtK90wNnU7mm0gx7yKo82w



Does russian group still exist? :/


https://telegram.me/dlangru


Re: Ddb needs a maintainer

2016-04-12 Thread Suliman via Digitalmars-d-announce

On Tuesday, 12 April 2016 at 09:52:53 UTC, Rory McGuire wrote:
On Tue, Apr 12, 2016 at 11:30 AM, Suliman via 
Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> 
wrote:



This code compile and run:

try {
   auto result = cmd.executeQuery;

   foreach (row; result)
   {
writeln(row[0]);
x = row[1].get!(ubyte[]);
   }

}
catch (ServerErrorException e) {
// Probably table does not exist - ignore
}




But I am getting error:

core.exception.OutOfMemoryError@src\core\exception.d(679): 
Memory

allocation failed

Is there any hack that can prevent this error?



Would need to see the full exception stack trace that was 
printed out.
Could you perhaps have an infinite recursion bug in there 
somewhere?
You should be able to see if you are getting the right type out 
of the

Variant by using something like:
writeln(row[1].type);


I am getting Out of memory exception even on this code:
writeln(row[0].type);

writeln(row[0]); // -- works fine


Re: Ddb needs a maintainer

2016-04-12 Thread Suliman via Digitalmars-d-announce

This code compile and run:

try {
   auto result = cmd.executeQuery;

   foreach (row; result)
   {
writeln(row[0]);
x = row[1].get!(ubyte[]);
   }

}
catch (ServerErrorException e) {
// Probably table does not exist - ignore
}




But I am getting error:

core.exception.OutOfMemoryError@src\core\exception.d(679): Memory 
allocation failed


Is there any hack that can prevent this error?


  1   2   3   >