Re: text based file formats

2022-12-20 Thread Adrian Matoga via Digitalmars-d-announce
On Sunday, 18 December 2022 at 16:12:35 UTC, rikki cattermole 
wrote:

> * make it @safe and pure if possible (and its likely possible)

pure is always a worry for me, but yeah @safe and ideally 
nothrow (if they are forgiving which they absolutely should be, 
there is no reason to throw an exception until its time to 
inspect it).


I frequently find it useful for a text data file parser to call a 
diagnostic callback instead of assuming some default behavior 
(whether that's forgiving, printing warnings, throwing or 
something else). With template callback parameters the parser can 
throw if the user wants it or stay pure nothrow if no action is 
required.


Re: GCC 12.1 Released (D v2.100-rc.1)

2022-05-11 Thread Adrian Matoga via Digitalmars-d-announce

On Friday, 6 May 2022 at 11:57:47 UTC, Iain Buclaw wrote:

Hi,

I am proud to announce another major GCC release, 12.1.
[...]


Thank you for all the great work!



Re: dxml 0.2.0 released

2018-02-14 Thread Adrian Matoga via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 10:57:26 UTC, rikki cattermole 
wrote:

See lines:
- Input!IR temp = input;
- input = temp;

   bool commentLine() {
Input!IR temp = input;

(...)
if (!temp.empty) {
(...)   
input = temp;
return true;
} else
return false;
}


`temp = input.save` is exactly what you want here, which means 
forward range is required. Your example won't work for range 
objects with reference semantics.


Re: mir-linux-kernel 1.0.0: Linux system call numbers for different architectures

2017-11-14 Thread Adrian Matoga via Digitalmars-d-announce
On Saturday, 11 November 2017 at 08:54:54 UTC, Nicholas Wilson 
wrote:
On Saturday, 11 November 2017 at 08:43:32 UTC, Adrian Matoga 
wrote:

On Friday, 10 November 2017 at 18:27:36 UTC, Nathan S. wrote:

About package
--
Linux system call numbers for different architectures. That's 
all.


[...]


Was there anything wrong with 
https://code.dlang.org/packages/syscall-d ?


From it's readme:

Supported Platforms:
Linux-x86_64
Linux-x86
OSX-x86_64
FreeBSD-x86_64

i.e. x86[_64] only.
mir-linux-kernel has all the supported archs.


Still, I would first try to submit a PR to syscall-d, and only go 
for a new package if syscall-d owners refuse to extend the list 
of platforms.
Now we have two different packages that are supposed to do the 
same but have different arbitrary limitations.


Re: mir-linux-kernel 1.0.0: Linux system call numbers for different architectures

2017-11-11 Thread Adrian Matoga via Digitalmars-d-announce

On Friday, 10 November 2017 at 18:27:36 UTC, Nathan S. wrote:

About package
--
Linux system call numbers for different architectures. That's 
all.


[...]


Was there anything wrong with 
https://code.dlang.org/packages/syscall-d ?


Re: Release D 2.075.0

2017-07-20 Thread Adrian Matoga via Digitalmars-d-announce

On Thursday, 20 July 2017 at 07:19:03 UTC, Patrick Schluter wrote:
version 2.067 that still had the C++ frontend took more than 
100 seconds.


I can hardly believe it. I remember versions 2.05x building in 
about 11 seconds.




Re: Compile-Time Sort in D

2017-06-09 Thread Adrian Matoga via Digitalmars-d-announce
On Friday, 9 June 2017 at 12:15:50 UTC, Steven Schveighoffer 
wrote:

On 6/7/17 5:47 PM, John Carter wrote:

On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote:

https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/


Seems like you have inspired people...

http://blog.zdsmith.com/posts/compiletime-sort-in-nim.html




That is kind of neat. While I can say that D can perform 
technically the same feat via pragma(msg, ...) and importing a 
file directly (would leave a comment on the blog, but there 
isn't a spot for it), the fact that you can execute arbitrary 
code in a block at compile time that can use the *actual* i/o 
routines you would use at runtime is pretty impressive.


Stefan would have a field day with this power :)


Yeah, it feels C++'y when you need to leave CTFE if you want to 
print some value computed in CTFE or use it as a name of file to 
load. :/




Re: DConf 2017 Schedule

2017-03-23 Thread Adrian Matoga via Digitalmars-d-announce

On Monday, 20 March 2017 at 13:57:19 UTC, Dukc wrote:
If I remember correctly, last year it took perhaps two months 
or so for the talks to be published on YouTube.


Would it be much extra effort to publish unedited versions of 
them asap, for us who can't wait for the edited versions? Yes, 
they are that interesting.


AFAIR unedited recordings were immediately available on ustream.tv


Re: Mir Random announce - Professional RNGs

2016-11-26 Thread Adrian Matoga via Digitalmars-d-announce
On Friday, 25 November 2016 at 23:14:06 UTC, Ilya Yaroshenko 
wrote:

https://github.com/libmir/mir-random
http://docs.random.dlang.io/latest/index.html


Cool!
I'd only suggest renaming "algorithm" to "range", to better 
reflect what's inside the module.


Re: DConf 2017: Bigger, Badder, and Berliner! Call for Submissions now open

2016-11-15 Thread Adrian Matoga via Digitalmars-d-announce
On Monday, 14 November 2016 at 19:49:26 UTC, Andrei Alexandrescu 
wrote:
We're happy to announce that the D Language Foundation is 
cooperating again with Sociomantic to organize DConf 2017 in 
Berlin for the second time. Same location, same dates, but of 
course a whole new experience!

(...)
http://dconf.org/2017/index.html


It would be less confusing if the dates were updated with more 
attention than just s/2016/2017/g, as there's no February 29 in 
2017, and all others dates are on different days of week than in 
2016.

Otherwise, excellent news.


Re: Release DUB 0.9.25, new logo and updated website design

2016-05-24 Thread Adrian Matoga via Digitalmars-d-announce

On Tuesday, 24 May 2016 at 22:59:24 UTC, Adrian Matoga wrote:

(...)
1. The font is much thinner than on dlang.org main site


PR: https://github.com/dlang/dub-registry/pull/156

3. Clicking the top-left dub logo directs to 
"http://code.dlang.org/packages/; which is 404.


PR: https://github.com/dlang/dub-registry/pull/157



Re: Release DUB 0.9.25, new logo and updated website design

2016-05-24 Thread Adrian Matoga via Digitalmars-d-announce

On Sunday, 22 May 2016 at 19:36:39 UTC, Sönke Ludwig wrote:

(...)


The new site is cool, except a few annoyances:

1. The font is much thinner than on dlang.org main site 
(font-weight set to 300 for no good reason), and thus much harder 
to read. Using #333 for text color instead of pure black makes it 
even harder. Come on, perhaps most of us already have some sort 
of vision defects, please do not make it worse.


2. Project READMEs now render with different font which looks 
weird. (OTOH, the README alone looks nicer and easier on eyes, 
because plain Helvetica or Arial are just better suited for 
on-screen reading than clumsy serif fonts like roboto slab).


3. Clicking the top-left dub logo directs to 
"http://code.dlang.org/packages/; which is 404.


4. List of available versions for a package is broken: the most 
recent version is repeated multiple times and is not a hyperlink.


Also, some parts of READMEs are not rendered the way they are on 
github, like: nested lists, [ ]/[x] progress ticks, syntax 
highlighting in code snippets.


Re: To all DConf speakers: please upload slides!

2016-05-13 Thread Adrian Matoga via Digitalmars-d-announce

On Wednesday, 11 May 2016 at 17:31:32 UTC, dilkROM wrote:
And also, if anyone can identify all lightning speakers, that 
would be terrific. We do need their slides and their names / 
desired nicknames / contact info as well. :)


I didn't use slides, but only a few code examples, collected in a 
text file that Andrei pasted here: 
http://dpaste.dzfl.pl/36e4c089d0d6




Re: DustMite now has -j

2016-05-11 Thread Adrian Matoga via Digitalmars-d-announce
On Wednesday, 11 May 2016 at 19:53:54 UTC, Vladimir Panteleev 
wrote:

By popular demand.

https://github.com/CyberShadow/DustMite/compare/e175b95da070d84029f75ba8a15f5d900fb90704...15693cbd5a5c0f47ee9cc68be9dada39b99c3836


Dreams come true. Thank you!


Re: Dconf gets a new logo

2016-03-02 Thread Adrian Matoga via Digitalmars-d-announce
On Wednesday, 2 March 2016 at 03:37:48 UTC, Andrei Alexandrescu 
wrote:
Many thanks to https://github.com/aG0aep6G who contributed the 
DConf 2016 logo (the Berlin tower 
https://github.com/D-Programming-Language/dconf.org/pull/95).


After discussing it with Sociomantic, they proposed a new one 
that is not Berlin-specific and also looks terrific on T-shirts.


Take a look: http://dconf.org


The "Register" link is now missing, but when I click "Venue", I 
can see "Register" and the old logo.


Btw, how about making the entire top bar purple to match the logo 
(maybe the menu bar could be turned D-red instead)?




Re: GDC Explorer Site Update

2016-01-26 Thread Adrian Matoga via Digitalmars-d-announce

On Monday, 25 January 2016 at 23:08:32 UTC, Iain Buclaw wrote:

http://explore.dgnu.org/



Nice!
Is there a way to override the default '-Og'? It seems that now 
Currently I cannot see any difference


Now supports 12 different architectures from ARM to SystemZ! 
(not including -m32 or any -march options)


BTW, dunno how it's now, but about a year ago GDC was able to 
compile for AVR after removing two asserts in the frontend 
(checking if the pointer size is at least 32 bits or the like).


Re: GDC Explorer Site Update

2016-01-26 Thread Adrian Matoga via Digitalmars-d-announce

On Tuesday, 26 January 2016 at 10:17:37 UTC, Adrian Matoga wrote:


Nice!
Is there a way to override the default '-Og'? It seems that now 
Currently I cannot see any difference


Oops, pressed "Send" too quickly.
Should be: I cannot see any difference in the output when I enter 
various optimization options.


Re: LDC 0.17.0-beta1 has been released!

2016-01-18 Thread Adrian Matoga via Digitalmars-d-announce

On Thursday, 14 January 2016 at 20:33:30 UTC, Kai Nacke wrote:
LDC 0.17.0-beta1, the LLVM-based D compiler, is available for 
download!
This release is based on the 2.068.2 frontend and standard 
library and supports LLVM 3.5-3.7.


Excellent! Works great so far (Linux x86_64).
Any chance of having pre-built binaries for cross-compiling to 
arm-linux-gnueabihf, like in GDC distributions?




Re: Logo for D

2016-01-18 Thread Adrian Matoga via Digitalmars-d-announce
On Monday, 18 January 2016 at 10:28:48 UTC, Guillaume Piolat 
wrote:

On Saturday, 16 January 2016 at 17:55:13 UTC, karabuta wrote:

How do you see it?

http://amazingws.0fees.us/wp-content/uploads/2016/01/dlang2.png

Many variants are on the way.


The current logo is very good and there is value in keeping it. 
Now if it didn't have this extremely 90s-looking borders, it 
would be even better.


+1

Also, change just for the sake of change is just bad strategy.


Re: Hash Tables in D

2016-01-07 Thread Adrian Matoga via Digitalmars-d-announce

On Sunday, 3 January 2016 at 19:29:05 UTC, Martin Nowak wrote:

There is a bug.

You should never do this b/c of iterator/range invalidation.

foreach (key; aa.keys)
aa.remove(key);


I've recently hit this when trying to remove some of the elements 
from an AA while iterating over it. It's easy to forget that it 
is not allowed, especially when working on more complex 
algorithms. Accidentally, it worked all fine even with large data 
sets with DMD 2.069, but with GDC mysterious segfaults appeared - 
the first thought in such case was obviously a bug in GDC or in 
the older front-end.


However, this is a very convenient, natural and intuitive syntax 
for something that is needed quite frequently, yet this code 
breaks silently in non-predictable ways.
There are already registered issues concerning this (or similar 
with insertion) problem, including:


https://issues.dlang.org/show_bug.cgi?id=4179
https://issues.dlang.org/show_bug.cgi?id=2255
https://issues.dlang.org/show_bug.cgi?id=10821
https://issues.dlang.org/show_bug.cgi?id=10876
https://issues.dlang.org/show_bug.cgi?id=13903

I've personally encountered segfaults, infinite loops, programs 
producing incorrect results. Some solutions to this were proposed 
in the bug reports - either:
a) explicitly allow removing during iteration, and make sure it 
always works, or
b) explicitly disallow removing during iteration, and always 
throw an Error whenever it is attempted. In some cases it could 
even be detectable in compile time.


And I don't mean including a single sentence about this somewhere 
in the docs. I mean an error reported by the compiler and/or 
runtime. The runtime checks could be disabled for -release, but 
there should be at least an option to detect such errors.
Probably the worst part of it is that you're free to wrap it in 
@safe, while it's not safe at all.




Re: Please vote for the DConf logo

2015-11-06 Thread Adrian Matoga via Digitalmars-d-announce
On Wednesday, 4 November 2015 at 09:30:30 UTC, Andrei 
Alexandrescu wrote:

Reply to this with 1.1, 1.2, 2, or 3:

1) by ponce:

Variant 1: 
https://github.com/p0nce/dconf.org/blob/master/2016/images/logo-sample.png
Variant 2: 
https://raw.githubusercontent.com/p0nce/dconf.org/4f0f2b5be8ec2b06e3feb01d6472ec13a7be4e7c/2016/images/logo2-sample.png


2) by Jonas Drewsen:

https://dl.dropboxusercontent.com/u/188292/g4421.png

3) by anonymous:

PNG: http://imgur.com/GX0HUFI
SVG: https://gist.github.com/anonymous/4ef7282dfec9ab327084


Thanks,

Andrei


3.


Re: Walter and I talk about D in Romania

2015-10-05 Thread Adrian Matoga via Digitalmars-d-announce

On Friday, 2 October 2015 at 13:35:42 UTC, Dragos Carp wrote:

Then don't miss this: http://codedive.pl/en/agenda/


I'll be there!


Re: Lessons Learned: Writing a filesystem in D

2015-07-08 Thread Adrian Matoga via Digitalmars-d-announce

On Tuesday, 7 July 2015 at 21:41:47 UTC, Walter Bright wrote:

https://www.reddit.com/r/programming/comments/3cg1r0/lessons_learned_writing_a_filesystem_in_d/


I run up against the same problem with threads when trying to 
play audio asynchronously - the callbacks are made from another 
thread which is created outside D. I solved it by disabling GC in 
callbacks that might invoke it, but it seems there's another 
solution to try out.