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
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: 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: 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 :)
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?
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: 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: 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&px=D-GCC-v3-Patches Cool, which version of GCC will have it?
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?
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?
threads, fibers and GPU kernels
Modern GPU have thousands of GPU kernels, it's far from CPU kernels, but it's interesting for me is there any chance that in future they be used in same maner as CPU kernels? If yes is there any reasons of exit for fibers? Or it would be easier to map one thread to one kernel? On system with 1k kernels/cores I do not see any reason for fibers for exiten. Also here was few topics about D3. But what about about you are thinging about threading model? I think in next 10 yers even CPU would have 32-64 cores.
Redox + D
I think most of people have heard about https://redox-os.org It is pretty modern micro-kernel OS written in Rust. I am not Rust fan, but if it solve some low-level task and allow to build on top of it more hight-level tools why not to use it? Now it have port of GCC, Python and some other languages. Few days ago I wrote to Michael Aaron Murphy, man who did port of GCC and asked him about D. Here is his answer: "I wouldn't count out Rust as being too low level, as it has a lot of high level abstractions, and crates to provide even higher level abstractions for more specific fields. That said, when Redox becomes self-hosting, it should be capable of running any software that depends on libc, D included"
Re: Compile without generating code
On Wednesday, 5 July 2017 at 22:05:53 UTC, Stefan Koch wrote: On Wednesday, 5 July 2017 at 21:58:45 UTC, Lewis wrote: I was reading https://blog.rust-lang.org/2017/07/05/Rust-Roadmap-Update.html, which mentioned that the Rust compiler now has a mode to go through the motions of compiling and show errors, but without generating any code. This way you can do a much faster build while iterating until you have no compile errors, then do a single build with code generation once everything looks good. [...] We already have it. use -o- and it'll disable codegen. How to use this parameter with dub?
Re: Isn't it about time for D3?
But C++ will still be big in 10 years. Ok, let's assume it will be poplar in 10 years. But it's very short time. D exists almost 17 years. And not every people need to interfacing with C/C++. For me it's more important to have static-typing and compilable alternative to Python. And a lot of people whom I know want same.
Re: Isn't it about time for D3?
Why for example not Rust (i am not its fan). I do not see any real perspective in C++. What to do in next 5 years if C++ will start loosing it's popularity? Implement D4? Plus any backwards compatibility make implementation new ideas in language very hard.
Re: Isn't it about time for D3?
On Saturday, 17 June 2017 at 04:32:41 UTC, Liam McGillivray wrote: On Wednesday, 14 June 2017 at 12:08:16 UTC, Mike wrote: > THINGS TO DROP -- * C++ interoperabiliy Walter's right: memory safety is going to kill C and C++ will go with it. Don't waste time on this; it's not going to matter in 10 or 20 years. Totally agree! C++ now in 90% of cases is legacy projects. At current time is more important to out of the box interoperability with Rust or Julia. Time show that C++ do not want to migrate to D. Only few people come from C++ world, because all of them waiting of new C++ standard c++x2035 (or whatever)
Re: Replacing Make for the DMD build
Also looks good https://github.com/jasonwhite/button
Re: Isn't it about time for D3?
Should D really move to GC-free? I think there is already enough GC-free language on the market. D even now is very complected language, and adding ways to manually managing memory will make it's more complicated. A lot of people need more powerful static-typing alternative to Python/C# for common tasks that allow to build stand-alone executable files. I think it's bad idea to mix to paradigms. People who do not need GC at all already use Rust.
Re: Isn't it about time for D3?
There is already something like D3 exists. https://github.com/VoltLang
Re: Anyone tried to emscripten a D/SDL game?
On Wednesday, 24 May 2017 at 17:06:55 UTC, Guillaume Piolat wrote: On Wednesday, 24 May 2017 at 17:00:51 UTC, Nick Sabalausky "Abscissa" wrote: Anyone have any experience (successful or unsuccessful) attempting this? Any info on the current state of it, or pitfalls, or pointers for getting started? http://code.alaiwan.org/wp/?p=103 It's seems that Dart can be compiled to WASM https://medium.com/dartlang/dart-on-llvm-b82e83f99a70 It's it's possible to do same with D?
Re: dmd download spike
How often the stat are recalculating?
Re: Vibed + osv.io
On Monday, 24 April 2017 at 15:10:29 UTC, Suliman wrote: I have found very interesting project http://osv.io Has anybody to use it with vibed? I am not sure if it's yet-another-linux distrib or OS written from scratch. I found link on Redox page https://github.com/redox-os/redox/issues/925 It would be nice to have way to get run vibed from something very lightweight. Am I right understand that if Redox have port of libc it would be possible to write D apps for Redox?
Vibed + osv.io
I have found very interesting project http://osv.io Has anybody to use it with vibed? I am not sure if it's yet-another-linux distrib or OS written from scratch. I found link on Redox page https://github.com/redox-os/redox/issues/925 It would be nice to have way to get run vibed from something very lightweight.
Re: {OT} Youtube Video: newCTFE: Starting to write the x86 JIT
On Thursday, 20 April 2017 at 12:56:11 UTC, Stefan Koch wrote: Hi Guys, I just begun work on the x86 jit backend. Because right now I am at a stage where further design decisions need to be made and those decisions need to be informed by how a _fast_ jit-compatible x86-codegen is structured. Since I do believe that this is an interesting topic; I will give you the over-the-shoulder perspective on this. At the time of posting the video is still uploading, but you should be able to see it soon. https://www.youtube.com/watch?v=pKorjPAvhQY Cheers, Stefan Could you explain where it can be helpful?
Re: shared: Has anyone used it without a lot of pain?
On Thursday, 6 April 2017 at 09:00:33 UTC, Kagamin wrote: On Wednesday, 5 April 2017 at 14:01:24 UTC, Guillaume Piolat wrote: My pet peeve with shared is the RoI. Risk of infection? Return of Investment :)
Can vibed be fast as Go or Python?
I found very interesting Python async framework japronto https://github.com/squeaky-pl/japronto Test show that in some cases japronto may work as fast as Go. Can vibed be competitor (or even better) than Go and Python for micro-services?
Re: So no one is using Amazon S3 with D, why?
On Tuesday, 14 March 2017 at 20:21:44 UTC, aberba wrote: Amazon S3 seem like a common solution for object storage these days[1] but I'm seeing almost no activity in this area (stable native D API). Why? [1] https://trends.builtwith.com/cdn/Amazon-S3 How much the lowest vibed ready instance cost? I am looking for a cheapest solution for site.
Re: Multiplayer Game Project
Do you have skype? I familiar with vibed and vue.js
Re: module std.stream is deprecated - Will be removed by phobos version 2.070
On Monday, 23 January 2017 at 17:39:00 UTC, ixid wrote: On Friday, 11 September 2015 at 21:16:06 UTC, Brian Schott wrote: On Friday, 11 September 2015 at 20:29:56 UTC, Vladimir Panteleev wrote: Apparently it was decided at DConf 2015 to remove std.stream and friends from Phobos. Kill it with fire. Speaking of killing things with fire (OT) - what's happening with the comma operator? I want delicious tuples like Go. I have seen thread about improving tuples, but now I can't find it, could you remember me what people decided about how they could look in D?
Re: Lets talk about fibers
"The type of concurrency used when logical threads are created is determined by the Scheduler selected at initialization time. The default behavior is currently to create a new kernel thread per call to spawn, but other schedulers are available that multiplex fibers across the main thread or use some combination of the two approaches" (с) dlang docs Am I right understand that `concurrency` is just wrapper that hide implementation of tasks and fibers? So programmer can work with threads like with fibers and vice versa? If yes, does it's mean that spawns is planing not but with system Scheduler, but with DRuntime Scheduler (or how it's can be named?) and all of them work in user-space?
Re: Lets talk about fibers
Simply picking a worker thread + worker fiber when task is assigned and sticking to it until finished should work good enough. It is also important to note though that "fiber" is not the same as "task". Former is execution context primitive, latter is scheduling abstraction. In fact, heavy load systems are likely to have many more tasks than fibers at certain spike points. Could you explain difference between fibers and tasks. I read a lot, but still can't understand the difference.
Re: D future ...
The whole focus on C++ people marketing is simply wrong! Every time this gets mentioned in external forums, the language gets a pounding by people with the same argumentation. Why go for D when C++ 20xx version does it also. +100 I totally agree with another part of post. Plus the docs is really suks, not only I can't write code without copy-past examples, because it's simply very hard to understand how to use one ore another function. Even simple writeln docs very bloated and 80% (mostly format futures) do not needed in real life
Re: Linux Kernel in D?
On Friday, 16 December 2016 at 16:12:38 UTC, D.Rex wrote: A D port of the Linux Kernel? https://github.com/whatsthisnow/ProjectD Any thoughts on the project? Linux is too bloated and there is no any reasons to re-implement it.
Re: DIP10005: Dependency-Carrying Declarations is now available for community feedback
On Wednesday, 14 December 2016 at 07:17:57 UTC, Jacob Carlborg wrote: On 2016-12-14 03:23, Andrei Alexandrescu wrote: On 12/13/16 9:22 PM, Hatem Oraby wrote: with(import std.range) bool equal(R1, R2) if (isInputRange!R1 && isInputRange!R2) { ... } I considered this, then figured with is superfluous. -- Andrei It could allow to have a better control of the scope which the import affects, i.e.: with(import std.range) { void foo(T) if (isInputRange!T) void bar(T) if (isInputRange!T) } Look very nice!
Re: DIP10005: Dependency-Carrying Declarations is now available for community feedback
On Tuesday, 13 December 2016 at 22:33:24 UTC, Andrei Alexandrescu wrote: Destroy. https://github.com/dlang/DIPs/pull/51/files Imho such syntaxis construction make language harder to learn. D is already pretty complex, but DIPs should simplify language, but do not make its harder
Re: [OT] Is there anybody from D-community in Tel Aviv?
On Sunday, 11 December 2016 at 11:37:39 UTC, Shachar Shemesh wrote: On 11/12/16 12:02, Suliman wrote: On Saturday, 10 December 2016 at 08:10:46 UTC, Shachar Shemesh wrote: On 10/12/16 09:25, Suliman wrote: I plan to visit Tel Aviv from 31 December to 6-th of January of next year. Is there anybody who take part in D-community there? There are about 30 D programmers in the Weka.io offices in Tel Aviv. We'll gladly offer you coffee and conversation, if you want to drop by the offices. Shachar Where do Weka.IO located? Could you give me any contacts, with to talk/write, when I will be on place? It's on our web site: http://weka.io. At the bottom of the page you can find the address. It's Beit Shamai 10, Tel Aviv. You can coordinate when it's a good time to come with me :-) Is 31 dec - 6 jan is working days in Israel? Work days in Israel are Sunday - Thursday. Otherwise, these are regular working days here. Note that Hanukkah is December 25 - January 1st this year, so many people might take leave of absence during those dates. Shachar Could you mail me your phone number to bubnenkoff at gmail com ? I also have few question about transport that quite offtop for this thread.
Re: [OT] Is there anybody from D-community in Tel Aviv?
On Saturday, 10 December 2016 at 08:10:46 UTC, Shachar Shemesh wrote: On 10/12/16 09:25, Suliman wrote: I plan to visit Tel Aviv from 31 December to 6-th of January of next year. Is there anybody who take part in D-community there? There are about 30 D programmers in the Weka.io offices in Tel Aviv. We'll gladly offer you coffee and conversation, if you want to drop by the offices. Shachar Where do Weka.IO located? Could you give me any contacts, with to talk/write, when I will be on place? Is 31 dec - 6 jan is working days in Israel?
Re: [OT] Is there anybody from D-community in Tel Aviv?
On Saturday, 10 December 2016 at 08:10:46 UTC, Shachar Shemesh wrote: On 10/12/16 09:25, Suliman wrote: I plan to visit Tel Aviv from 31 December to 6-th of January of next year. Is there anybody who take part in D-community there? There are about 30 D programmers in the Weka.io offices in Tel Aviv. We'll gladly offer you coffee and conversation, if you want to drop by the offices. Shachar Cool! Thank! The first plan was just to visit Israel, but does Weka hire new people? I am looking for any related with D job.
[OT] Is there anybody from D-community in Tel Aviv?
I plan to visit Tel Aviv from 31 December to 6-th of January of next year. Is there anybody who take part in D-community there?
Re: Earthquakes - New Zealand
On Monday, 14 November 2016 at 09:09:59 UTC, Paolo Invernizzi wrote: On Sunday, 13 November 2016 at 18:03:59 UTC, Suliman wrote: On Sunday, 13 November 2016 at 12:17:22 UTC, rikki cattermole But it's very interesting that right now I am doing portal about Earthquakes on D. It's now not ready to work (because problem with new version of Vue-js) I'm also using Vue 2 and D: it's really an interesting combo /Paolo Could you help me with migration to Vue2? I can't get it work :( Give me you skype or email plz
Re: Earthquakes - New Zealand
On Sunday, 13 November 2016 at 12:17:22 UTC, rikki cattermole wrote: Hello everyone! So to summarize New Zealand right now is being hit with some major earthquakes. But don't fret, I'm ok. There is a couple of other members in NZ, so please do let us know that you're safe! Now, for W&A, is there a plan for core members to report in to check that everyone is ok in an emergency (where ever they may be)? P.S. If you want live updates on what I'm going through, feel free to look at[0]. [0] http://www.canterburyquakelive.co.nz/Browse My regrets :( But it's very interesting that right now I am doing portal about Earthquakes on D. It's now not ready to work (because problem with new version of Vue-js) The very early alpha is located here http://188.227.17.149:8080/ the server maybe not reachable.
Add format future to Phobos date time
Date formating is very common operation. Is it's possible to add this future to Phobos datetime module? There is already external lib https://github.com/cmays90/datetimeformat but I think that is's much better to have in base lib.
Re: libcurl
On Saturday, 22 October 2016 at 01:20:52 UTC, Andrei Alexandrescu wrote: Guess we need to get ready! https://curl.haxx.se/mail/lib-2016-10/0076.html -- Andrei I think that it much better to force https://github.com/ikod/dlang-requests developing its much easier than curl and its native
Re: I hate new DUB config format
Sönke Ludwig, really sorry. It's look my big mistake. I looked at SDL more detail, and this format is much better than JSON. I hope a lot of people is changed their position too.
Re: Do we need a FAQ page?
I already wrote one alternative version. Dlang.ru is down, but on page there is germany translation version http://forum.dlang.org/thread/vxmieatguqfkwgzli...@forum.dlang.org
D-ideas collection
We already have DIPs, but I think we should have place for collecting good ideas that can be integrated in D. Most people from here prefer posting it's on forum, but such topics (like ideas from new version of C#) is go down in few days. Fro example now I read about interesting future in Dart: With 1.19 we introduce support for an optional trailing comma after the last argument of a call and the last parameter of a function declaration. This makes code editing much easier: https://2.bp.blogspot.com/-kVBJlnXby54/V8DJqaZsvwI/NeU/suPDhaZcdsEvN1DuYy8669JJ-W6x1zX1wCLcB/s1600/ReorderCode.gif And I do not know where to post it.
Re: C# 7 Features - Tuples
On Thursday, 25 August 2016 at 13:41:29 UTC, dom wrote: https://blogs.msdn.microsoft.com/dotnet/2016/08/24/whats-new-in-csharp-7-0/ came across the new c# features today. I really liked the syntax for Tuples (and deconstructors), would be great to have a similar syntax in D :) Yeah, it's looks very cool!
Very interesting slides about Fibers
Maybe somebody will interesting http://twvideo01.ubm-us.net/o1/vault/gdc2015/presentations/Gyrling_Christian_Parallelizing_The_Naughty.pdf
Re: Phobo's migration
I agree with the need for a D3 and a completely redesigned standard library though. But it will only happen as a fork, not from within the current team... http://volt-lang.org/ as variant
Re: Phobos Action Items
8. create a greenthreads module that works like Goroutines But we already have fibers, I thought that they are same with Goroutines
Re: Andrei's list of barriers to D adoption
A lot of people need GUI As second part db drivers and orm. I am one of thouse who prefer to work with languages that have GC Yeah, docs should have more examples. Sometimes it very hard to unserstand how to use function without examples
Re: The end of curl (in phobos)
Andrei, is there any plans to drop etc.c.odbc ?
Re: The end of curl (in phobos)
https://github.com/ikod/dlang-requests +1 for dlang-requests. Thanks for it! I already use it's in my project, and it's very easy to use.
Re: Some questions on latest work
On Tuesday, 26 April 2016 at 01:04:21 UTC, Bill Hicks wrote: If you are running away from C++, Rust should be your first choice as a systems programming language. Are you joking? When I am reading it's code my eyes begin to bleed. It's syntax is terrible. Look at it: enum Edge { Edge(Option), Nothing } impl fmt::Display for Edge { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", match self { &Edge::Edge(_)=> "E", &Edge::Nothing=> "-", }) } } impl fmt::Display for Edge { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}({})", match self { &Edge::Edge(_)=> "E", &Edge::VirtualEdge(_) => "e", &Edge::Nothing=> "-", }, match self { &Edge::Edge(Some(v))=> v, &Edge::VirtualEdge(Some(v)) => v, _ => "-" }) } } Do you really think that modern language should like this? I talked with a lot of rust fun-boys. Most of them do not understand do not understand the code of their favourite language. Rust will die when Mozilla will move to WebKit. I much more believe in Swift success, that that Rust have any future.
Re: DConf 2016 offical presentation template
On Wednesday, 20 April 2016 at 07:53:53 UTC, Benjamin Thaut wrote: Is there a official presentation template for Dconf 2016? If not it would be greate if someone could create one. Many programmers (me included) are not good with picking colors and thus presentations usually don't look as good as they could. Kind Regards Benjamin Thaut If anybody need backgrounds you are free to use this http://dlang.ru/Files/2016/free_texturs.zip
Re: byte[] to hex string
On Wednesday, 13 April 2016 at 14:22:39 UTC, WebFreak001 wrote: On Wednesday, 13 April 2016 at 14:15:21 UTC, Suliman wrote: Does anybody have any ready to use byte[] to hex convert method? I found only C# examples http://stackoverflow.com/questions/623104/byte-to-hex-string Could anybody help me to convert any of this methods to D? The root of my problem is from here http://stackoverflow.com/questions/36600503/can-i-insert-in-db-binary-blob-data-in-body-of-sql-request-if-driver-do-not-supp I want to try mass hex string as SQL test to insert its in FireBird blob. https://dlang.org/phobos/std_digest_digest.html#toHexString --- import std.digest.digest; ubyte[] data; string hexString = data.toHexString(); Oh, thanks! It's really cool! I expect much more code!
byte[] to hex string
Does anybody have any ready to use byte[] to hex convert method? I found only C# examples http://stackoverflow.com/questions/623104/byte-to-hex-string Could anybody help me to convert any of this methods to D? The root of my problem is from here http://stackoverflow.com/questions/36600503/can-i-insert-in-db-binary-blob-data-in-body-of-sql-request-if-driver-do-not-supp I want to try mass hex string as SQL test to insert its in FireBird blob.
Re: We gunna be rich
On Saturday, 2 April 2016 at 15:43:53 UTC, Andrei Alexandrescu wrote: Hello all, I've created an Amazon Affiliates link for the D Language Foundation (dlang-20). Subsequently I've changed https://wiki.dlang.org/Books to use it. Please follow up with changing dlang.org to also use the links, and also let me know if you need affiliate links for any other products. Thanks! -- Andrei Do you have any plans to public 2 edition of The D Programming Language book?
Re: Why is separating class ind struct is bad?
Sorry about Volta mention, I just make copy-past from my question there.
Why is separating class ind struct is bad?
Here on forum I have found very interesting mention from Alexandrescu that: "Rust has two advantages I can think of: it doesn't have the struct/class split that D does". Could anybody explain why it's bad, and maybe till Volta in WIP it's not later to change it. Could anybody explain what this mean and why this way is not modern?
Re: OpenCV bindings for D
Try to look at https://github.com/ljubobratovicrelja/dcv
Re: Mention of D in recent Wired article about Dropbox leaving AWS
Dropbox started out in Go and rewrote in Rust. This is actually very good news. It means there are at least some big companies that do measure technical impact of used programming languages instead of going with the trend :) And that they are not scared to change the decision if it proves inapplicable. Bad news the new choice is Rust and not D :) Though I can totally see why based on mentioned requirements. In next iteration they will migrate from Rust to D :)
Re: write to file array by lines
I created better example to show. string [] myarr = ["foo", "bar", "baz"]; myarr ~= "new"; File file = File(`result.txt`, "w"); file.write(myarr); is any way to write myarr to file in byLine mode
write to file array by lines
I have got: string [] total_content; I am appending to it data on every iteration. total_content ~= somedata File file = File(`D:\code\2vlad\result.txt`, "a+"); file.write(total_content); I need to write it's to file by lines. Like: somedataline1 somedataline2 somedataline3 I tried to do like: total_content ~= somedata ~ "\n" but in result I am getting all data in one line: somedataline1 "\n" somedataline2 "\n" somedataline3 "\n" what I am doing wrong? I know about split, but how it can be called on writing time?
Re: State of the Compiler
On Monday, 29 February 2016 at 04:53:16 UTC, Jack Stouffer wrote: On Monday, 29 February 2016 at 00:10:33 UTC, Walter Bright wrote: 12. start retrofitting with phobos algorithms Other DMD devs have taken a hard line stance that Phobos code cannot and should not be used in ddmd. What's your opinion on that? Please, explain the situation...
Swift deprecate i++ and c-style for loop
https://github.com/apple/swift/blob/master/CHANGELOG.md func slices() { var array = ["First", "Second", "Third", "Fourth"] array.removeLast() array.removeFirst() } also look very intuitive. I looked at std.algorithm.mutation and did not find anything for this. I see only simple remove option.
Re: C++ UFCS update
On Wednesday, 24 February 2016 at 07:19:02 UTC, Walter Bright wrote: On 2/23/2016 12:35 PM, Ola Fosheim Grøstad wrote: And I have to say that I find it ironic that Walter objects to reusing operators such as "<<" while he is reusing "!" for templates, Hardly. ! is not an overloadable operator in D, and ! has no binary operator meaning other than for template argument lists. I.e. it is not "reuse" at all. Furthermore, iostreams' use of << is neither thread-safe nor exception-safe, though its designer could be forgiven because iostreams predates both concepts. The only interesting thing about iostreams is why it wasn't deprecated 20 years ago, despite being ugly, not thread-safe, not exception-safe, and slow. Could you add to D operators like AND OR etc instead of && ||. Words are more readable.
Re: OT: Need help with translation D-faq to other languages
Big thanks!
Re: OT: Need help with translation D-faq to other languages
On Thursday, 18 February 2016 at 18:20:48 UTC, Eugene Wissner wrote: On Wednesday, 17 February 2016 at 18:28:08 UTC, Suliman wrote: Hello, I wrote pretty good FAQ about D on Russian language. I need help with translation it to English and Germany and possible to other languages. http://dlang.ru/Why-D-is-Better I hope it people will like it, it will help to attract more people and help noobs better understand what D is. It's pretty short. I can do a German translation Yes, please!
Re: OT: Need help with translation D-faq to other languages
On Thursday, 18 February 2016 at 09:06:34 UTC, Luis wrote: On Wednesday, 17 February 2016 at 18:28:08 UTC, Suliman wrote: Hello, I wrote pretty good FAQ about D on Russian language. I need help with translation it to English and Germany and possible to other languages. http://dlang.ru/Why-D-is-Better I hope it people will like it, it will help to attract more people and help noobs better understand what D is. If someone does a good translate to English, I can do to Spanish. I could try read it using google translator, but I would like to get something better before trying to write it to my mother language. Yes, because text have got a lot of sharp minds.
OT: Need help with translation D-faq to other languages
Hello, I wrote pretty good FAQ about D on Russian language. I need help with translation it to English and Germany and possible to other languages. http://dlang.ru/Why-D-is-Better I hope it people will like it, it will help to attract more people and help noobs better understand what D is.
Re: Just because it's a slow Thursday on this forum
On Tuesday, 9 February 2016 at 18:02:50 UTC, Andrei Alexandrescu wrote: On 02/09/2016 10:34 AM, ixid wrote: On Tuesday, 9 February 2016 at 12:46:34 UTC, Jakob Ovrum wrote: I'm not a fan of non-trivial string mixins except in extenuating circumstances. This is something Steven Schveighoffer commented on in these discussions as well. As this is a fundamental D feature and it's currently rather clunky and hard to use it would suggest this needs improvement. What should be done with it if anything and with what methods? An alternate solution is liable to be too clever for its own good. Everybody and their cat understands string concatenation. What we need here is better tactical tools, e.g. a simple string template/interpolation engine. -- Andrei Sorry, but where dump! function can be helpful? What's wrong with writeln?
Re: What are the real GUI toolkits for D?
On Friday, 29 January 2016 at 10:41:03 UTC, interessted wrote: On Friday, 29 January 2016 at 10:18:31 UTC, interessted wrote: On Thursday, 28 January 2016 at 16:57:04 UTC, thedeemon wrote: On Sunday, 24 January 2016 at 12:16:09 UTC, nbro wrote: Except for GtkD and DWT, D does not seem to be supported by a really nice GUI toolkit. For Windows DFL is quite nice and working well (I've used it in several projects). where can one find a working DFL version - compilable with the last compiler? sorry forgot - and running for win64, since nobody i know still uses/creates x32. http://code.dlang.org/packages/dformlib
Re: [dlang.org] new forum design - preview
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 I dislike it :( old one is better. Probably you need make content up to 100% of windows size and make forum part bigger. Also it's look like as css was missing. Same issue have vibed.org after switching to light template.
Re: Tutorials section on vibed.org
On Tuesday, 5 January 2016 at 06:42:25 UTC, Sönke Ludwig wrote: Am 05.01.2016 um 05:19 schrieb Charles: On Monday, 4 January 2016 at 18:42:32 UTC, Sönke Ludwig wrote: Am 04.01.2016 um 19:04 schrieb Pradeep Gowda: On Monday, 4 January 2016 at 14:31:21 UTC, Sönke Ludwig wrote: Added! The footer of the website still says 2012-2014. Please fix that! Fixed, thanks! Looks like this on my phone (ignore the volume overlay, screenshot key is dumb): http://imgur.com/ynuZUpq I'll fix that next. The media queries are still primitive ATM. Please return black theme. It's become much harder to read site...
Re: TIOBE December 2015 - D rose 5 positions
On Tuesday, 5 January 2016 at 17:10:51 UTC, rsw0x wrote: On Tuesday, 5 January 2016 at 15:20:53 UTC, Joakim wrote: Walter seems against ARC anyway. Andrei does not seem to be, however. D's GC is a failure, the amount of effort needed/given to work around it should be proof enough of this. There is no problem, to write on C if you do not need GC.
Re: D could catch this wave: web assembly
On Wednesday, 23 December 2015 at 10:02:18 UTC, deadalnix wrote: On Wednesday, 23 December 2015 at 07:37:39 UTC, Suliman wrote: On Friday, 18 December 2015 at 10:21:49 UTC, Ola Fosheim Grøstad wrote: On Thursday, 17 December 2015 at 20:22:41 UTC, yawniek wrote: https://hacks.mozilla.org/2015/12/compiling-to-webassembly-its-happening/ Thanks for sharing! This looks promising. Could anybody show how C++ App for web will look like? I really can't fund any examples except AST. Would it have access to DOM or it would look like Java applet? WebAssembly is an AST representation, so I'm not sure what else you expect than an AST ? For example I do not know JS. And only C++. How would look like my web-app with WASM?
Re: D could catch this wave: web assembly
On Friday, 18 December 2015 at 10:21:49 UTC, Ola Fosheim Grøstad wrote: On Thursday, 17 December 2015 at 20:22:41 UTC, yawniek wrote: https://hacks.mozilla.org/2015/12/compiling-to-webassembly-its-happening/ Thanks for sharing! This looks promising. Could anybody show how C++ App for web will look like? I really can't fund any examples except AST. Would it have access to DOM or it would look like Java applet?
Re: Redesign of dlang.org
Sper!!!
Re: We need a good code font for the function signatures on dlang.org
On Wednesday, 16 December 2015 at 21:05:27 UTC, Andrei Alexandrescu wrote: I was looking at https://github.com/D-Programming-Language/dlang.org/pull/1169 and that bold sans serif proportional text for the code is just... well let's say it's time to replace it. What would be a good code font to use for those? Thanks, Andrei Is it's possible to colourize content like in, out, optional parameters etc?
Re: Microsoft to contribute to Clang and LLVM project
On Thursday, 10 December 2015 at 15:25:16 UTC, Jack Stouffer wrote: On Thursday, 10 December 2015 at 13:31:00 UTC, Suliman wrote: So I hope Walter and Andrew will do steps like including vibed in DMD distributive Please no. Not everything has to be in Phobos; this just puts unnecessary pressure on Phobos maintainers to work on vibe.d as well, and it will slow down vibe.d development DRASTICALLY due to the extra scrutiny for Phobos PRs. Not to mention that breaking changes will no longer be able to happen with vibe.d. Also, vibe.d seems to be doing just fine as it is. You are right, but maybe at last to merge some common API?
Re: Microsoft to contribute to Clang and LLVM project
C++17 and C++20 are very likely to undermine any move by C++ folk to Rust or D I suspect. So I hope Walter and Andrew will do steps like including vibed in DMD distributive and will focus on Web-assembly. I am not sure that strategy of better integration with C++ is help to get more people interesting in D. It's just like IBM, that added support of Windows apps in OS/2 instead of writing native. I really hope to see D more high level language instead language concurrent with with came niche with Rust.
Strange behaviour of to!string and JSON
void login(HTTPServerRequest req, HTTPServerResponse res) { Json request = req.json; writeln(to!string(request["username"])); writeln(request["username"].to!string); } Why first code print output with quotes, and second not? "asd" asd
Re: Wishlist for D
On Tuesday, 1 December 2015 at 16:43:55 UTC, Ozan wrote: Hi We all have experience with several programming languages and the great ideas implemented there. It is close to Xmas and I think the right time for wishes about future functions in D. Where is right place to put these inspirations on? Shall we send them directly to the D Foundation presidents? The Secretary? A central mailbox? Regards, Ozan Right place is write here
Re: I hate new DUB config format
Should we try to implement yet another language for writing building config? Maybe we should use any of existence language that may be very good for it, like Red. It have very small foot prints so it can be easy to embeded to build system.
Re: I hate new DUB config format
On Thursday, 26 November 2015 at 19:57:19 UTC, Jacob Carlborg wrote: On 2015-11-26 20:05, Sönke Ludwig wrote: Just to mention one additional reason for choosing SDLang over one of the more popular formats that shared some of the advantages, there is an idea to add limited support for (declarative) procedural statements: https://github.com/D-Programming-Language/dub/wiki/DEP4#synopsis The representation possible with SDLang is not as good as in an actual programming language, but far better than with any of the JSON-like languages. Everyone will hate me for saying this, but in that case, just go with Ruby (or some other similar language) Why?
Re: I hate new DUB config format
On Thursday, 26 November 2015 at 13:10:30 UTC, Ola Fosheim Grøstad wrote: On Thursday, 26 November 2015 at 12:43:54 UTC, Chris wrote: TOML looks nice, _but_ it's version 0.4.0. We cannot afford to maintain a parser for a format that hasn't "settled down" yet. Why not use a well defined subset of YAML then? I really think that small subset of YAML would be very good solution. It's easy to read and easy to write. DUB do not have full implement it. Just some basic things. TOML is harder to read, and write bu hands.
Re: I hate new DUB config format
I find the SDLang format much cleaner to use than JSON But it's dead format! Nobody do not use it. JSON easy to read, there is a lot of it's checkers and formating tools. Yes, it's not perfect, but now it's _standard_. Personally I'd prefer yaml, because it's much easier to read for humans. But what we will do with SDL? Who know how to parse, validate it with D, and with another language? Even ini is better, because everybody know it.
I hate new DUB config format
I think that using SDL format was big mistake. Not only I do not want to spend time in learning yet another dead config format that now use only one project -- DUB. In time when DUB used json it was not perfect, but at last it was standard and everybody can read it. Now when I come to code.dlang.org I can't simply do copy-past of dependence. I need go to docs page, and read how to include it. Also I do not see any projects that are migrate to SDL. Everybody continue to use JSON. So please, return JSON back as default, or very soon we will see that nobody do not submit packages to code.dlang.org and nobody do not use DUB for their own projects. Please vote about SDL config format http://www.easypolls.net/poll.html?p=565587f4e4b0b3955a59fb67 If SDL will stay by default I will prefer to move to any other build system or will downgrade to old version of DUB.