Hi,
I am glad to announce that a new version of silly, tiniest and
smallest unit-test runner, has been released.
There are just a few changes compared to v0.8.2:
- Licence has been changed to ISC. It is identical to the MIT
licence used in the past, just fancy and new
- CI is now using
On Monday, 15 April 2019 at 14:20:57 UTC, Alex wrote:
On Monday, 15 April 2019 at 08:39:24 UTC, Anton Fediushin wrote:
Hello! I am currently trying to add a custom `toString` method
to an enum so that:
1. Enum members would still have numeric values and can be
easily compared (things like
On Monday, 15 April 2019 at 14:11:05 UTC, diniz wrote:
Le 15/04/2019 à 10:39, Anton Fediushin via Digitalmars-d-learn
a écrit :
[snip]
I don't understand why you just don't call fun with an Enum
(struct) param, since that is how fun is defined. This works by
me (see call in main):
struct
On Monday, 15 April 2019 at 12:25:38 UTC, XavierAP wrote:
On Monday, 15 April 2019 at 10:34:42 UTC, Anton Fediushin wrote:
On Monday, 15 April 2019 at 10:06:30 UTC, XavierAP wrote:
[snip]
Isn't this how subtyping works for integers and other types?
For example, you have subtyped an integer
On Monday, 15 April 2019 at 10:45:26 UTC, Alex wrote:
On Monday, 15 April 2019 at 10:15:50 UTC, Anton Fediushin wrote:
On Monday, 15 April 2019 at 10:00:36 UTC, Alex wrote:
[snip]
This would:
´´´
struct Enum {
private {
enum internal {
foo,
bar
}
internal m_enum;
On Monday, 15 April 2019 at 10:06:30 UTC, XavierAP wrote:
On Monday, 15 April 2019 at 08:39:24 UTC, Anton Fediushin wrote:
Hello! I am currently trying to add a custom `toString` method
Several remarks... First of all, strings can be compared
(alphabetically) as well as integers, e.g.
On Monday, 15 April 2019 at 10:00:36 UTC, Alex wrote:
On Monday, 15 April 2019 at 08:39:24 UTC, Anton Fediushin wrote:
[snip]
Otherwise, you could alwas define fun as
´´´
void fun(Enum.internal e) {}
´´´
but I assume, you want to avoid especially this.
In favor of my first proposition,
Hello! I am currently trying to add a custom `toString` method to
an enum so that:
1. Enum members would still have numeric values and can be easily
compared (things like `enum a { foo = "FOO", bar = "BAR”}` won't
do, I want `a.foo < a.bar)`)
2. More custom methods can be implemented in the
On Monday, 8 October 2018 at 05:23:33 UTC, bauss wrote:
On Saturday, 6 October 2018 at 20:27:07 UTC, Basile B wrote:
On Saturday, 6 October 2018 at 19:07:48 UTC, steven kladitis
wrote:
On Saturday, 6 October 2018 at 17:48:00 UTC, rikki cattermole
wrote:
On 07/10/2018 6:36 AM, steven kladitis
On Wednesday, 12 September 2018 at 04:02:14 UTC, Soulsbane wrote:
On Sunday, 12 August 2018 at 15:07:04 UTC, Anton Fediushin
wrote:
Hello, I'm glad to announce that silly v0.0.1 is released.
Silly is a brand-new test runner with simplicity in mind. It's
developed to be as simple as possible
On Wednesday, 22 August 2018 at 22:51:58 UTC, Piotrek wrote:
You may already know that from youtube. It seems D starts
getting traction even among musicians:
https://www.youtube.com/watch?v=yCX1Ze3OcKo=youtu.be=64
That really put a smile on my face :D
And it would be a nice example of a D
On Friday, 24 August 2018 at 18:34:20 UTC, Daniel N wrote:
On Friday, 24 August 2018 at 12:06:15 UTC, Anton Fediushin
wrote:
I just published it on the dub registry in public domain (I
hope Daniel Nielsen is ok with that. After all, it's just 3
lines of code)
Package page:
On Friday, 24 August 2018 at 13:48:09 UTC, Jonathan Marler wrote:
On Friday, 24 August 2018 at 12:06:15 UTC, Anton Fediushin
wrote:
On Friday, 24 August 2018 at 06:41:35 UTC, Jonathan Marler
wrote:
[...]
There's no reason to mess with `object.d` or add it to phobos.
Just make a dub package
On Friday, 24 August 2018 at 06:41:35 UTC, Jonathan Marler wrote:
Ever since I read
https://dlang.org/blog/2017/02/13/a-new-import-idiom/ I've very
much enjoyed using the new `from` template. It unlocks new
idioms in D and have been so useful that I thought it might be
a good addition to the
Greetings, I am glad to announce that tg.d is finally released.
Telegram Bot API is an extremely flexible and robust platform
which can be used to build bots that interact with users
utilizing fast instant messaging application on your smartphone
and PC. All data is synchronized across all
On Wednesday, 15 August 2018 at 14:01:24 UTC, rikki cattermole
wrote:
On 16/08/2018 1:31 AM, Bogdan Szabo wrote:
I wonder if the test runners could provide a template for the
injected code, that dub could use it on `dub test`. I wonder
if we could add something like `"testRunner": "trial"` in
On Wednesday, 15 August 2018 at 14:33:26 UTC, Steven
Schveighoffer wrote:
On 8/12/18 11:07 AM, Anton Fediushin wrote:
Hello, I'm glad to announce that silly v0.0.1 is released.
Silly is a brand-new test runner with simplicity in mind. It's
developed to be as simple as possible and contain no
On Wednesday, 15 August 2018 at 08:42:46 UTC, Bogdan Szabo wrote:
Nice work Anton!
It's nice to see that people are interested in writing better
test runners. This project reminds me of `tested`:
http://code.dlang.org/packages/tested
Thanks, tested works just like unit-threaded - list of
On Monday, 13 August 2018 at 11:57:34 UTC, Atila Neves wrote:
On Monday, 13 August 2018 at 04:13:46 UTC, Anton Fediushin
wrote:
On Sunday, 12 August 2018 at 21:33:21 UTC, Dechcaudron wrote:
On Sunday, 12 August 2018 at 15:07:04 UTC, Anton Fediushin
wrote:
Problem with unit-threaded and
On Sunday, 12 August 2018 at 21:33:21 UTC, Dechcaudron wrote:
On Sunday, 12 August 2018 at 15:07:04 UTC, Anton Fediushin
wrote:
Silly is a brand-new test runner with simplicity in mind. It's
developed to be as simple as possible and contain no useless
features. Another important goal is to
Hello, I'm glad to announce that silly v0.0.1 is released.
Silly is a brand-new test runner with simplicity in mind. It's
developed to be as simple as possible and contain no useless
features. Another important goal is to provide flexible tool
which can be easily integrated into existing
On Friday, 27 July 2018 at 11:03:50 UTC, Seb wrote:
This a thread to explore whether it would be feasible to do so.
[...]
What do you think?
--
- Has the dmd/druntime split being annoying you too?
I'm not familiar with contributing to the dmd/druntime, but
having druntime
On Saturday, 14 July 2018 at 06:02:37 UTC, Mike Parker wrote:
Thanks to the sponsorship of Symmetry Investments, the D
Language Foundation is happy to announce the Symmetry Autumn of
Code!
We're looking for three university students to hack on D this
autumn, from September - January. We're
On Wednesday, 11 July 2018 at 18:36:24 UTC, FeepingCreature wrote:
// So I was working on Nullable,
// and I thought: how could this be made to work better?
// The following code runs on DMD master,
// and it is, technically, `safe`;
// but it REALLY REALLY shouldn't be.
[...]
// And that's
On Sunday, 1 July 2018 at 20:15:02 UTC, crimaniak wrote:
On Sunday, 1 July 2018 at 13:44:23 UTC, Anton Fediushin wrote:
I reduced the test case to _one_ line:
```
1.seconds.setTimer(() =>
"http://google.com".requestHTTP((scope req) {}, (scope res)
{res.disconnect;}), true);
```
What
On Sunday, 1 July 2018 at 12:32:25 UTC, Jacob Shtokolov wrote:
On Sunday, 1 July 2018 at 05:20:17 UTC, Anton Fediushin wrote:
Now I tried it and indeed, it's vibe.d's fault. I'm not quite
sure what causes it and if this problem is known, I'll look
into that later and open an issue if it
On Saturday, 30 June 2018 at 22:06:50 UTC, Jacob Shtokolov wrote:
On Friday, 29 June 2018 at 17:40:07 UTC, Anton Fediushin wrote:
So, long story short:
- Usage of Mallocator instead of theAllocator made it a little
bit better
- VibeManualMemoryManagement had no (or little) effect
- Manually
On Saturday, 30 June 2018 at 05:00:35 UTC, rikki cattermole wrote:
On 30/06/2018 4:49 AM, Bauss wrote:
I wouldn't really blame the GC. There is a higher chance
you're just not using it how it's meant to be, especially
since it looks like you're mixing manual memory management
with GC memory.
On Friday, 29 June 2018 at 16:49:41 UTC, Bauss wrote:
On Friday, 29 June 2018 at 16:07:00 UTC, Anton Fediushin wrote:
On Friday, 29 June 2018 at 11:11:57 UTC, rikki cattermole
wrote:
On 29/06/2018 11:09 PM, Anton Fediushin wrote:
It is GC's fault for sure, I built my program with
profile-gc
On Friday, 29 June 2018 at 16:19:39 UTC, 12345swordy wrote:
On Friday, 29 June 2018 at 16:07:00 UTC, Anton Fediushin wrote:
Now I finally understand why GC is not a great thing. I was
writing apps utilizing GC for a long time and never had
problems with it, but when it came down to this simple
On Friday, 29 June 2018 at 11:11:57 UTC, rikki cattermole wrote:
On 29/06/2018 11:09 PM, Anton Fediushin wrote:
It is GC's fault for sure, I built my program with profile-gc
and it allocated a lot there. Question is, why doesn't it free
this memory?
Probably doesn't know that it should
On Friday, 29 June 2018 at 14:10:26 UTC, Daniel Kozak wrote:
Have you try use VibeManualMemoryManagement
https://github.com/TechEmpower/FrameworkBenchmarks/blob/3b24d0a21463edc536b30e2cea647fd425915401/frameworks/D/vibed/dub.json#L22
I'll try, not quite sure it'll help much.
On Friday, 29 June 2018 at 11:42:18 UTC, bauss wrote:
On Friday, 29 June 2018 at 11:24:14 UTC, Anton Fediushin wrote:
On Friday, 29 June 2018 at 11:01:41 UTC, Anton Fediushin wrote:
On Friday, 29 June 2018 at 10:21:24 UTC, Radu wrote:
On Friday, 29 June 2018 at 09:44:27 UTC, Anton Fediushin
On Friday, 29 June 2018 at 11:01:41 UTC, Anton Fediushin wrote:
On Friday, 29 June 2018 at 10:21:24 UTC, Radu wrote:
On Friday, 29 June 2018 at 09:44:27 UTC, Anton Fediushin wrote:
Almost forgot, there are two timers which call this function
for two different streams.
Value of `metaint` is
On Friday, 29 June 2018 at 10:31:14 UTC, bauss wrote:
On Friday, 29 June 2018 at 10:21:24 UTC, Radu wrote:
On Friday, 29 June 2018 at 09:44:27 UTC, Anton Fediushin wrote:
Almost forgot, there are two timers which call this function
for two different streams.
Value of `metaint` is 16000,
On Friday, 29 June 2018 at 10:21:24 UTC, Radu wrote:
On Friday, 29 June 2018 at 09:44:27 UTC, Anton Fediushin wrote:
Almost forgot, there are two timers which call this function
for two different streams.
Value of `metaint` is 16000, which means that only 16KB of
memory are allocated for the
Almost forgot, there are two timers which call this function for
two different streams.
Value of `metaint` is 16000, which means that only 16KB of memory
are allocated for the `buffer`, then it reads another byte which
contains length of the metadata / 16 and then it reads the
metadata which
Hello, I'm looking for an advice on what I am doing wrong.
I have a vibe.d-based program, which connects to an audio stream
and gets name of the song currently playing. For that, I wrote
the following code:
```
@safe string nowPlaying(string url) {
import vibe.core.stream;
On Friday, 29 June 2018 at 04:51:49 UTC, Joakim wrote:
On Thursday, 28 June 2018 at 17:54:45 UTC, Radu wrote:
Created a couple of docker images useful for dlang dev.
LDC cross compiler for ARM
- https://hub.docker.com/r/rracariu/ldc-linux-armhf/
This image allows one to easily cross compile
On Wednesday, 20 June 2018 at 16:10:26 UTC, H. S. Teoh wrote:
On Wed, Jun 20, 2018 at 01:30:56PM +, Chris M. via
Digitalmars-d wrote:
On Wednesday, 20 June 2018 at 08:16:21 UTC, Mike Parker wrote:
> This is the feedback thread for the first round of Community
> Review for DIP 1015,
On Tuesday, 19 June 2018 at 19:22:09 UTC, Jacob Carlborg wrote:
On 2018-06-09 00:45, gdelazzari wrote:
Actually, I was thinking about that too. In fact, what if a
user is
using a "classic" dark-background theme on macOS's terminal?
Or another
terminal which by default uses a dark background,
On Tuesday, 19 June 2018 at 14:42:20 UTC, Russel Winder wrote:
On Tue, 2018-06-19 at 13:43 +, Anton Fediushin via
Digitalmars-d wrote:
[…]
I'm not quite sure constructive critique is possible in this
case. It's just a bad piece of code poorly implementing
something that is a part
On Tuesday, 19 June 2018 at 13:55:34 UTC, Steven Schveighoffer
wrote:
On 6/19/18 9:43 AM, Anton Fediushin wrote:
On Tuesday, 19 June 2018 at 08:56:05 UTC, Russel Winder wrote:
I would like to build a back-end server that performs some
processing on the body of the HTTP request it receives. To
On Tuesday, 19 June 2018 at 08:56:05 UTC, Russel Winder wrote:
I believe we have a first, Code Critique 112 is a D code. And
indeed a vibe.d one. I believe a number of people from this
email list should volunteer themselves to do a constructive
critique to help educate ACCU members. With the
On Thursday, 14 June 2018 at 11:19:37 UTC, jmh530 wrote:
On Thursday, 14 June 2018 at 10:18:26 UTC, Walter Bright wrote:
Evidently my brand of humor got lost in translation. I grovel
and beg for forgiveness, and will appropriately flagellate
myself with a wet noodle.
I found myself
they have bugs and features
D only has features
On Wednesday, 13 June 2018 at 08:21:45 UTC, Martin Tschierschke
wrote:
The compilation is done by using the C compiler in the
background.
https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-preview2-released/
Could D be an better choice for that purpose?
Any comment?
Good news for
On Tuesday, 12 June 2018 at 14:00:32 UTC, Steven Schveighoffer
wrote:
File.byLine is fast, but only because of the underlying
non-range tricks it uses to achieve performance. And iopipe
still is 2x faster.
I wish iopipe was around a little bit earlier so I could use it
in my small project.
On Sunday, 10 June 2018 at 20:10:31 UTC, Steven Schveighoffer
wrote:
iopipe version 0.1.0 has been released.
iopipe is a high-performance pipe processing system that makes
it easy to string together pipelines to process data with as
little buffer copying as possible.
I saw iopipe a while
On Monday, 11 June 2018 at 12:32:32 UTC, Dechcaudron wrote:
On Monday, 11 June 2018 at 05:50:56 UTC, Anton Fediushin wrote:
Regarding vulnerabilities, if there are any I and
authors/maintainers of dlang-tour will be interested in fixing
them ASAP. After all, dlangbot uses tour's code under the
On Sunday, 10 June 2018 at 19:54:20 UTC, Dechcaudron wrote:
On Saturday, 9 June 2018 at 20:28:24 UTC, Anton Fediushin wrote:
Hello, I am glad to announce that new Telegram bot which can
execute D code is up and running!
Check it out here: https://t.me/dlangbot
Features:
- Two compilers to
Hello, I am glad to announce that new Telegram bot which can
execute D code is up and running!
Check it out here: https://t.me/dlangbot
Features:
- Two compilers to choose from: dmd (default) and ldc
- Support for custom compiler arguments with `/args` command
- It's possible to set
On Monday, 4 June 2018 at 18:17:24 UTC, Joakim wrote:
On Monday, 4 June 2018 at 09:47:58 UTC, Anton Fediushin wrote:
Oh look, rumours are confirmed:
https://itsfoss.com/microsoft-github/
MS bought GitHub for $5 billion.
It's official, Nat Friedman, formerly of Xamarin, is the new
CEO:
On Monday, 4 June 2018 at 09:38:57 UTC, Vladimir Panteleev wrote:
On Monday, 4 June 2018 at 05:50:26 UTC, Anton Fediushin wrote:
I can think of hundreds of things what can go wrong including:
forcing users to use Microsoft accounts, advertising own
products, changing search to Bing (that's
On Monday, 4 June 2018 at 08:42:08 UTC, Walter Bright wrote:
On 6/3/2018 8:51 PM, Anton Fediushin wrote:
This is still just a rumour, we'll know the truth on Monday
(which is today).
We'll stay on Github as long as it continues to serve our
interests, which it has done very well, and I have
Oh look, rumours are confirmed:
https://itsfoss.com/microsoft-github/
MS bought GitHub for $5 billion.
On Monday, 4 June 2018 at 04:40:44 UTC, Jonathan M Davis wrote:
On the bright side, maybe this will encourage online repo
hosting to become less of a monopoly as folks move elsewhere
due to their concerns about Microsoft.
- Jonathan M Davis
Can't agree more: GitLab and Bitbucket deserve
On Monday, 4 June 2018 at 04:26:25 UTC, Dmitry Olshansky wrote:
On Monday, 4 June 2018 at 03:51:15 UTC, Anton Fediushin wrote:
This is still just a rumour, we'll know the truth on Monday
(which is today).
Some articles about the topic:
This is still just a rumour, we'll know the truth on Monday
(which is today).
Some articles about the topic:
https://fossbytes.com/microsoft-github-aquisition-report/
https://www.theverge.com/2018/6/3/17422752/microsoft-github-acquisition-rumors
What's your opinion about that? Will you
On Monday, 26 March 2018 at 15:34:12 UTC, Seb wrote:
Even with a recent DUB binary (e.g. 1.7.2 or 1.8.0)?
(=2.078.3 or 2.079.0)
Anything that you are being able to reproduce with a "fake"
always failing registry?
In theory the recent DUB binaries comes with multiple backup
mirrors and a
On Monday, 26 March 2018 at 15:52:11 UTC, Jean-Louis Leroy wrote:
...as a "programming languages you should learn now" - albeit
somewhat dismissively ;-)
https://www.infoworld.com/article/3263395/application-development/the-programming-languages-you-should-learn-now.html
Learning D will not
On Monday, 26 March 2018 at 11:13:03 UTC, ParticlePeter wrote:
I strongly believe that the generator can be made fail safe, so
that the produced binding is error free. I will elaborate a
little more about the greater plan at the bottom, I just didn't
think that anyone is interested in it.
On Monday, 26 March 2018 at 09:20:13 UTC, ParticlePeter wrote:
First of all, don't worry, don't panic, we will figure it out,
together ;-). Everything will be alright in the end, and if
not, its not the end.
On Monday, 26 March 2018 at 07:04:00 UTC, Anton Fediushin wrote:
1. This breaks
On Monday, 26 March 2018 at 07:51:31 UTC, Seb wrote:
On Monday, 26 March 2018 at 07:04:00 UTC, Anton Fediushin wrote:
This is a *bad* idea and you shouldn't do that.
Just increase MAJOR version and start from there:
2.0.0 - Changing how binding works, Vulkan v1.0.69
2.1.0 - Vulkan 1.0.70
On Sunday, 25 March 2018 at 22:23:06 UTC, Peter Particle wrote:
ErupteD [0] is deprecated (one of its major modules). The
project content is supposed to be replaced completely. Current
state was copied into ErupteD-V1 [1] (without deprecation
message), neither ErupteD nor ErupteD-V1 will be
On Thursday, 22 March 2018 at 17:15:55 UTC, Anton Fediushin wrote:
So? Am I wrong about dub? Let me investigate
I'm not wrong! It works as expected: only package you are working
with compiles with `-unittest` option.
Test repo:
On Thursday, 22 March 2018 at 17:08:18 UTC, Jonathan M Davis
wrote:
I could be wrong, but I am _quite_ sure that dub builds all
dependencies with their test targets when you build your
project with its test target.
I thought so too, but I just checked and it doesn't do that. I'd
better
On Thursday, 22 March 2018 at 13:58:50 UTC, Atila Neves wrote:
On Thursday, 22 March 2018 at 12:26:14 UTC, Anton Fediushin
Tests in their own file is something from 90-s. It's 2018 and
I want to be able to write tests anywhere I want.
You _can_ write them wherever you want. I'm not arguing
On Thursday, 22 March 2018 at 10:59:56 UTC, Atila Neves wrote:
Blog post:
https://atilanevesoncode.wordpress.com/
Atila
I *love* built-in unittests. Putting them right after each
function makes things so much easier.
Tests in their own file is something from 90-s. It's 2018 and I
want to
On Sunday, 18 March 2018 at 11:25:45 UTC, Cym13 wrote:
So I think ecoji-d just truncates its input at some point.
Indeed, there's an error somewhere. For some reason it stops
after 7457792 bytes. I'll create an issue for that and will look
into this later
On Friday, 16 March 2018 at 08:25:30 UTC, bauss wrote:
Besides your encoding isn't going to work with actual web-pages
anyway, because your encoder doesn't have browser support.
Well, encoding is not *mine*, only D implementation is. What do
you mean by "browser support"? Indeed, ecoji-d
On Thursday, 15 March 2018 at 09:32:50 UTC, bauss wrote:
Fun, but seems pretty useless in practice.
I disagree. Ecoji (base1024) has bigger character set meaning
that it can encode more information per emoji than base64 can
encode per character.
For example ecoji encoded "abcde" looks like
, I'm glad to announce that ecoji-d - pure D implementation of
ecoji encoding version 1️⃣.0️⃣.0️⃣ is finally released❗
What is ecoji?
Ecoji encodes data as base1024 with an emoji character set. It
can be used instead of boring and old base64 冷冷冷.
Encoding example:
---
$ echo "Base64 is so
On Friday, 20 October 2017 at 14:04:25 UTC, Mike Parker wrote:
After a couple of weeks of quiet on the D blog, it's about to
get noisy again. The latest is is a post by Mario Kröplin of
Funkwerk describing how the company now uses D's built-in tests
in their codebase after several years of
On Wednesday, 27 September 2017 at 12:49:16 UTC, jamonahn wrote:
On Saturday, 16 September 2017 at 19:56:14 UTC, Anton Fediushin
wrote:
Hey-hey-hey, I am so excited to announce a brand-new program I
just wrote: goinsu!
Just built on my Raspberry Pi 3. Kudos - very fast, not even a
warning!
On Monday, 18 September 2017 at 20:50:55 UTC, Szabo Bogdan wrote:
Hi!
I want to announce that I managed to release a new version of
Trial, the DLang test runner.
Great news, it works just fine now!
Hey-hey-hey, I am so excited to announce a brand-new program I
just wrote: goinsu!
goinsu works like a classic `su` or `sudo`, but meant to be used
inside the Docker containers, when you just need to run a program
as a specified user.
goinsu is a workaround for TTY and signal issues of `su`
On Tuesday, 12 September 2017 at 13:15:01 UTC, Vino.B wrote:
Hi,
Sorry, it didn't work, the genrated out is as below
Oops, sorry. It should look like this:
writefln("%-(%s\n%)", array);
On Tuesday, 12 September 2017 at 06:29:53 UTC, Vino.B wrote:
Hi All,
Request your help in printing the below array output as per
the below required output
Array Output:
["C:\\Temp\\TEST2\\BACKUP\\dir1", "34",
"C:\\Temp\\TEST2\\BACKUP\\dir2", "36",
"C:\\Temp\\TEST3\\BACKUP\\dir1", "69"]
On Sunday, 3 September 2017 at 23:14:15 UTC, Conor O'Brien wrote:
I've been trying to figure out how to generate documentation
for my project using dub. I have found this link[1] which told
me how I could use dub to generate docs:
dub build --build=docs
However, I wish to have a set of
On Wednesday, 9 August 2017 at 20:42:48 UTC, Wild wrote:
Hi everyone,
The D packages for ArchLinux has been orphaned since Dicebot
stepped down as the maintainer and no one else stepped up. So I
decided to step up and apply to become a Trusted User, and I
got accepted yesterday[1]. So from
On Tuesday, 1 August 2017 at 20:37:16 UTC, Anton Fediushin wrote:
Thanks! Yes, module "covered.loader" can be used, but it isn't
complete yet. I'll start working on v1.0.0 tomorrow, changing
current design (get as much information as possible and store
it) to a new one (get only required
On Tuesday, 1 August 2017 at 08:19:47 UTC, Szabo Bogdan wrote:
Nice work!
I would like to contribute to such a tool :) I was working at
something similar with trial( http://trial.szabobogdan.com/ ),
and I would like to include your library if it's possible.
Thanks! Yes, module
Hello! I am glad to announce a new command-line tool which should
make development
a little easier.
Program, compiled with `-cov` switch, generates *.lst files. They
contain program source, number of executions of each line and
total code coverage of the file.
Those files are quite useful
On Sunday, 30 July 2017 at 06:18:16 UTC, Francis Nixon wrote:
I have two completely unrelated questions about the dmd source
code.
2. I've noticed there are some rather long methods in the dmd
source, involving more than one goto; parse.d is particularly
bad. Is there a reason for this/is it
On Friday, 28 July 2017 at 18:48:25 UTC, Ali Çehreli wrote:
On 07/28/2017 11:02 AM, Anton Fediushin wrote:
> not with Go/Rust. They're good programming languages
I really don't want to be in a position to diss other languages
but with some experience, I can tell you that I agree with blog
On Friday, 28 July 2017 at 14:58:01 UTC, Ali wrote:
How do you use D?
For personal projects, from low-level system hacking (like
implementing own reference counted struct) to high-level web apps.
just to learn something new? (I would easily argue that
learning D will make you a better C++
On Monday, 17 July 2017 at 17:00:10 UTC, unDEFER wrote:
Hello!
The code in the header leads to assertion!
But the user inputed data don't must leads to any assertions!
This regular expression is invalid.
[bar] - Matches 'b' or 'a' or 'r'
[^bar] - Matches everything but 'b' or 'a' or 'r'.
So,
On Tuesday, 18 July 2017 at 03:36:04 UTC, Nicholas Wilson wrote:
With regards to parallel, only use it on the outermost loop.
Assuming you have more items in the outermost loop than you do
threads parallelising more than one loop won't net you any
speed.
Thank you! Yes, `parallel` runs only
On Monday, 17 July 2017 at 11:32:45 UTC, Sebastiaan Koppe wrote:
On Monday, 17 July 2017 at 11:07:35 UTC, Anton Fediushin wrote:
Hello! What is the best way of rewriting this code in
idiomatic D manner?
https://dlang.org/phobos/std_algorithm_setops.html#.cartesianProduct
Thank you! I knew
On Sunday, 16 July 2017 at 22:53:09 UTC, Andy Smith wrote:
Is the state of affairs really this bad on Arch? Or is there a
HOWTO where I can get up and running with all three compilers?
dmd installed with `pacman -S dmd` works for me. But it's 2.074,
so I installed 2.074.1 with the script.
Hello! What is the best way of rewriting this code in idiomatic D
manner?
--
foreach(a; ["foo", "bar"]) {
foreach(b; ["baz", "foz", "bof"]) {
foreach(c; ["FOO", "BAR"]) {
// Some operations on a, b and c
}
}
}
--
Every array has at least 1 element, and adding/removing
On Friday, 14 July 2017 at 17:23:41 UTC, Steven Schveighoffer
wrote:
Don't do this, because it's not what you think. It's not
actually calling std.algorithm.sort, but the builtin array sort
property. This will be going away soon.
This sucks. I know, that `.sort` will be removed, but I thought
On Friday, 14 July 2017 at 16:42:59 UTC, drug wrote:
It's because Array(T) is a value type and needs type size to
define itself, so you have expected forward reference. But T[]
is reference type and its size is known in advance - it doesn't
depend on type, it's always pointer.sizeof +
On Friday, 14 July 2017 at 15:56:49 UTC, Namal wrote:
Thx Steve! By sorting string I mean a function or series of
functions that sorts a string by ASCII code, "cabA" to "Aabc"
for instance.
import std.algorithm : sort;
import std.stdio : writeln;
"cabA".dup.sort.writeln;
`dup` is used,
This code:
-
import std.container.array;
struct Test {
Array!Test t;
}
-
Fails with an error:
-
/usr/include/dlang/dmd/std/traits.d(2404): Error: struct
arrayissue.Test no size because of forward reference
/usr/include/dlang/dmd/std/traits.d(3462): Error: template
instance
On Sunday, 18 June 2017 at 15:47:44 UTC, Sönke Ludwig wrote:
But the thing with libgit2 is that it is extremely annoying how
quickly they break the API, especially since many different
versions have to be supported at the same time as long as using
the system packaged version is supposed to be
I am happy to announce the derelict-git2.
derelict-git2 is a dynamic binding to libgit2 v0.25.1 (latest
stable release) for the D programming language.
I created it because existing binding[1] is dead as well as
high-level wrapper[2].
Dynamic bindings are much easier to use, although they
profdump parses 'trace.log' (output of default profiler) and
converts it to:
- Plain text - More readable and user-friendly than raw trace.log
- JSON - Can be used if you wanna process it with your scripts
- DOT Graph - Nice and colourful graphs
You can customize output:
--threshold - If time
99 matches
Mail list logo