Re: Beta 2.088.0
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)
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
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
Try to solve your problems by yourself How?
Re: dlang.ru is updated
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
Waterfox 56.2.9 Oh! I used on my site new js future. It will work after updating browser.
Re: dlang.ru is updated
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
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
-verrors=context Why this is not default behavior?
Re: Vibed + OpenSSL on Windows 10?
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 dub.sdl ext string: "dflags-windows-x86": ["-m32mscoff"] Sorry, it was my mistake. I complied another project. Nothing do not working correct string is: dflags-windows-x86 "-m32mscoff" But I got again linking problem.
Re: Vibed + OpenSSL on Windows 10?
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?
Always compile vibe.d with mscoff Could you show command to compile with mscoff?
Vibed + OpenSSL on Windows 10?
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 C:\Users\bubnenkov\AppData\Local\dub\packages\vibe-d-0.8.4\vibe-d\tls\.dub\build\openssl-release-windows-x86-dmd_2084-F1EDC8E792A20905C7802AF7FD58830B\vibe-d_tls.lib(openssl) Error 42: Symbol Undefined _TLS_server_method C:\Users\bubnenkov\AppData\Local\dub\packages\vibe-d-0.8.4\vibe-d\tls\.dub\build\openssl-release-windows-x86-dmd_2084-F1EDC8E792A20905C7802AF7FD58830B\vibe-d_tls.lib(openssl) Error 42: Symbol Undefined _TLS_client_method C:\Users\bubnenkov\AppData\Local\dub\packages\vibe-d-0.8.4\vibe-d\tls\.dub\build\openssl-release-windows-x86-dmd_2084-F1EDC8E792A20905C7802AF7FD58830B\vibe-d_tls.lib(openssl) Error 42: Symbol Undefined _BN_get_rfc3526_prime_2048 C:\Users\bubnenkov\AppData\Local\dub\packages\vibe-d-0.8.4\vibe-d\tls\.dub\build\openssl-release-windows-x86-dmd_2084-F1EDC8E792A20905C7802AF7FD58830B\vibe-d_tls.lib(openssl) Error 42: Symbol Undefined _OPENSSL_init_ssl Error: linker exited with status 4
Can't build vibed:tls project
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?
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?
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 pass copy how I can create array of structures with correct response status? Create new structures?
Re: Am I missing with ref in this code?
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) { // ... } // ... runWorkerTask(, ); void getServiceStatus(MyUrl* url) { ... } Error: static assert: "Cannot convert arguments '(MyUrl)' to function arguments '(MyUrl*)'."
Am I missing with ref in this code?
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, status: url: http://127.0.0.1:8081/hck3, status: It's seems that I missed something with refs? Could you help me find error?
Re: Is there any working SQLite driver for windows?
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 Windows impossible. Few examples https://github.com/huntlabs/hunt-database/issues/24 https://github.com/biozic/d2sqlite3/issues/51 You can look here. It is a on German but Google translator does a good job http://d-land.sepany.de/tutorials/datenbanken/sqlite-erste-schritte/ Kind regards Andre Thanks, but also do not working https://github.com/adamdruppe/arsd/issues/180 My mistake. Adam's lib works.
Re: Is there any working SQLite driver for windows?
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 https://github.com/huntlabs/hunt-database/issues/24 https://github.com/biozic/d2sqlite3/issues/51 You can look here. It is a on German but Google translator does a good job http://d-land.sepany.de/tutorials/datenbanken/sqlite-erste-schritte/ Kind regards Andre Thanks, but also do not working https://github.com/adamdruppe/arsd/issues/180
Is there any working SQLite driver for windows?
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!
Entity Query Lanuage Can't understand difference with SQL...
Re: Spasm - webassembly libary for single page applications
https://github.com/kripken/emscripten/wiki/Pthreads-with-WebAssembly
Re: Webassembly TodoMVC
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
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: dlang download stat should be updated
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
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?
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)
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!
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 pretty regular problem for Windows. Until we start signing the executables, it will never end. Does anti-virus software exempt signed executables? I really think that it's problem of Kaspersky than D. They should fix they crap, not we.
Re: Anyone can contact Dmitry Olshansky?
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. Last time when we met (before one week of this) he was very optimistic and planed to develop some tool for a job in D.
Re: How to use LLD linker?
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 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html OPTLINK : Error 8: Illegal Filename /NOLOGO /DEBUG /OPT:REF /OPT:ICF /DEFAULTLIB:libcmt /DEFAULTLIB:libvcruntime "/OUT:.dub\build\application-debug-windows-x86_64-ldc_2081-FC0CCB721F0C7E0D58B93FB1E50E3401\lib.exe" ".dub\obj\lib.obj" "d:\ldc2\lib\ldc_rt.builtins.lib" /LIBPATH:d:/ldc2/bin/../lib phobos2-ldc.lib druntime-ldc.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib ^ Error: d:\D\dmd2\windows\bin\link.exe failed with status: 1 ldc2 failed with exit code 1. Could you please try: dub build --force And write here if it's help
Can't build app. VS Build Tools is installed
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) Error 42: Symbol Undefined __D7lighttp6server10ServerBase6__ctorMFAyaZCQBpQBkQBg Error: linker exited with status 1 C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1. VS Build Tools is installed. Whats wrong?
How to use LLD linker?
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. http://www.digitalmars.com/ctg/optlink.html OPTLINK : Error 8: Illegal Filename ... Error: C:\D\dmd2\windows\bin\link.exe failed with status: 1 ldc2 failed with exit code 1. Same with dmd. How to use LLD linker?
Re: GitHub could be acquired by Microsoft
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
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)
Stat out of date... Plz update it.
Re: LDC 1.9.0 beta
What about Webassembly support? Latest LLVM suppport it, so LDC should support also.
Re: dxml 0.3.0 released
Am I right remember that this lib is planed to be included as std.xml replacement?
What principle difference between structure and Tuple?
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
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
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 Rikki, This is the goal of my dstddb project and I've picked it up again after a long hiatus.I do have limited support for a native postgres driver and there is plenty of work to do in general, but I'm working on it. I have some type support improvements for postgres that will arrive shortly. erik I wish it have designed in http://code.dlang.org/packages/mysql-native style. This driver IMHO is very well designed
Re: D for microservices
It would be nice if anyone will rewrite Musl to betterC :)
Re: Beta 2.079.0
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
Which language futures make D overcompicated?
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 opinion make D harder?
Re: A betterC base
- 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.
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.
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
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
Big thanks! Your driver is really very useful and good-done! I wish same for PostgreSQL :)
Re: LDC 1.7.0-beta1
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
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.
bootable vibed
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
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
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
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
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
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: D could catch this wave: web assembly
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 offer to D a chance to have a killer app in 3D web application instead to develop complex C++ code. Consensus is irrelevant. Google will lead, others will simply follow. The web stack is like rubbish...a heterogeneous mixture of discardable material! https://github.com/arcanosam/imgui_wasm_demo
Re: 350$ Job
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
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 by default? The second problem. It's naming. It's really hard to google SDL. Is there any other ways? Maybe renaming or so?
Re: iopipe alpha 0.0.1 version
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.
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.
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
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
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 commenters are asking questions about D. An update, including the latest 2.076 frontend: https://www.phoronix.com/scan.php?page=news_item=D-GCC-v3-Patches Cool, which version of GCC will have it?
Re: Meet our new scholarship recipient, Alexandru Jercaianu
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: Struct List Human
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?
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?
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?
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?
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 product in. ;) We hope to have a post on the D blog with info from Weka sometime soon, that should be a good way to get the word out. They do mention it on their jobs page - http://www.weka.io/company/careers/ (see under "Data Path Developer" position). Sure, a lot of companies do that, not what I meant by advertising, ie in their news articles and press releases. Weka has been very open by giving talks at DConf, that's going to be noticed more than some job opening buried in their website: http://dconf.org/2015/talks/zvibel.html http://dconf.org/2016/talks/zvibel.html Hi guys from Weka! Could you explain what difference from your product and Hadoop?
Re: Known reasons why D crashes without any message?
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 to perform several experiments to push the state of the art. [...] I had the same issue trying to use the std.experimental.xml library. * Ran an example * Crashes at some posix, C library writing to a file. * Gave up, now looking at other programming language (rust) What did you expect from unofficial alpha package?
What is top 5 patterns that you use in real life?
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]
А можно сделать как-то так, чтобы автокомплит работал сразу? Как в студии. То есть бы не приходилось ctrl+пробел нажимать.
How Appender calculate cash size?
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 So if I right understand appender reserve more to prevent unneeded allocations. It's seems that here is calculation new size https://github.com/dlang/phobos/blob/master/std/array.d#L3163 So it's allocate more memory that needed, but I can't understand it's algorithm. Who could explain how it's work on low level? How it's make decision how much memory needed to be pre-allocated to minimize allocations?
Re: dpeq - native PSQL extended query protocol client
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
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
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 am begining to get "502 Bad Gateway" error. The service is not down, it's continue to working, but on Windows task manager I seen very low memory usage (0.4MB) and on Linux I see next: https://snag.gy/ban3jX.jpg (i am not familiar with Linux and do not sure if process is alive or not because htop do not show it) The code is *very* simple https://github.com/bubnenkoff/dlang.ru Is there any ideas how to diagnostic the problem? I got error https://paste.ofcode.org/exCL5S2vbp6qhYBqj7v6ez Is it's issue with libevent? Does even-loop depend on used OS?
vibed services stop response after several days of work
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 not down, it's continue to working, but on Windows task manager I seen very low memory usage (0.4MB) and on Linux I see next: https://snag.gy/ban3jX.jpg (i am not familiar with Linux and do not sure if process is alive or not because htop do not show it) The code is *very* simple https://github.com/bubnenkoff/dlang.ru Is there any ideas how to diagnostic the problem?
Re: DlangUI v0.7.60 released
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
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
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
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?
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 to, via the ptr field, is heap allocated. What is struct? Just name and size? I'm sorry, I don't understand what you're asking. Can you please repeat with more information? -- Biotronic I am trying to understand what structure is. It's name + associated with this name data? I can't understand for my self what mean no put structure to stack. Just put it's name to it or something another?
Re: If structures places data to stack why we do not getting stackoverflow on array of structures?
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?
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?
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 placing data _only_ on stack? But the stack size is very limited (on Widnows it's just 1MB). So how it's work? Struct's by themselves go on the stack. If they are allocated via new/malloc its on the heap (and hence are pointers). Same situation with arrays or inside a class. But for example if I am getting array of structs and getting data to it, where it's locating?
If structures places data to stack why we do not getting stackoverflow on array of structures?
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 work?
Re: new russian Dlang book
Big update of site layout.
Re: Is it's possible to make modular pug template in vibed?
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 block. The only one modification that I did I changes pages names: extends home because my main page is home.dt You have it backwards. You don't render the layout template, but the template that extends the layout. -Steve Big thanks! Now I understand. Now i redone dlang.ru in diet templates. Am I right understand that include is needed only for small includes without any nesting levels?
Re: Is it's possible to make modular pug template in vibed?
your examples generate me: DLANG.ru (c) DLANG 2017 The only one modification that I did I changes pages names: extends home because my main page is home.dt
Re: Is it's possible to make modular pug template in vibed?
Am I right understand that I can extend only one template?
Re: Is it's possible to make modular pug template in vibed?
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. Think of it like an interface, where the "blocks" are function prototypes, and your specific view file is a class that implements the interface, where you implement the functions by defining the blocks. -Steve Could you show how to improve my code above? I can't get it work...
Re: Is it's possible to make modular pug template in vibed?
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, but it have wrong indent. Original page (that I am trying to split) have next indents: doctype html html head title DLANG.ru body #app .MainContainer .Header .HeaderMenu .HeaderBlock router-link(to='/') General .HeaderBlock router-link(to='/FAQ') FAQ .HeaderBlock router-link(to='/book') Book .HeaderLoginBlock Sign in .Middle f .footer (c) DLANG 2017 But I can't get right indents when I am splition it.
Re: Is it's possible to make modular pug template in vibed?
Yes, thanks what: extends layout mean?
Re: Is it's possible to make modular pug template in vibed?
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 and than simpy import in every page. Is it's possible to do with vibed? Oh, I founded answer in docs. I can't fund way to `include` header and footer in the same docs. I cam getting error: "Includes cannot have children"
Re: Is it's possible to make modular pug template in vibed?
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 do with vibed? Oh, I founded answer in docs.
Is it's possible to make modular pug template in vibed?
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
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.