Re: Command line utilities for tab-separated value files

2016-04-11 Thread Joakim via Digitalmars-d-announce

On Tuesday, 12 April 2016 at 00:50:24 UTC, Jon D wrote:

Hi all,

I've open sourced a set of command line utilities for 
manipulating tab-separated value files. They are complementary 
to traditional unix tools like cut, grep, etc. They're useful 
for manipulating large data files. I use them when prepping 
files for R and similar tools. These tools were part of my 
'explore D' programming exercises.


[...]


Hmm, benchmarks are nice, someone post to reddit?


Re: Official dub packages for Debian and Ubuntu

2016-04-11 Thread jmh530 via Digitalmars-d-announce

On Monday, 11 April 2016 at 14:21:46 UTC, Matthias Klumpp wrote:


On the roadmap are adding debhelper sequences to simplify 
packaging dub-based D code in Debian based distros, auto-test 
support in Debian's CI, and of course the usual bugfixing.




Is adding to Linux Mint something you would consider as well?


Re: Official dub packages for Debian and Ubuntu

2016-04-11 Thread Matthias Klumpp via Digitalmars-d-announce
On Monday, 11 April 2016 at 21:58:55 UTC, Joseph Rushton Wakeling 
wrote:

On Monday, 11 April 2016 at 14:21:46 UTC, Matthias Klumpp wrote:
As part of that work, the dub package an build management 
system is now available in Debian, and I will ensure it works 
well.
Additionally, it was possible to make dub available late in 
the Ubuntu 16.04 (Xenial) development cycle, so dub will also 
be part of the upcoming LTS release of Ubuntu (kudos here go 
to Matthias Klose for pointing me at the "new" --push-state 
linker directive to work around dub not linking properly 
against libcurl when the latter is compiled with --as-needed).


That's great news.  Thank you very much!

Related note: I see the lcd version in xenial is 0.17.0~beta2 
-- I don't suppose there's any chance of upgrading that to the 
stable 0.17.1 release ... ?  (Not asking you to do it 
personally, just wondering if that's something that could be 
achieved.)


I can ask, but given that the Xenial final freeze is on 24. April 
(release on 26.) and changing compiler versions that late in the 
cycle is potentially dangerous, I guess there is only a slim 
chance of success... On the pro-side is that having a beta 
compiler in the LTS release is undesirable, but even then I need 
to find an Ubuntu developer who does have time to do the sync and 
get the feature-freeze-exception. LDC FTBFSing on armel in Debian 
(and not entering testing due to that at time) is also an issue 
:-/


On the roadmap are adding debhelper sequences to simplify 
packaging dub-based D code in Debian based distros, auto-test 
support in Debian's CI, and of course the usual bugfixing.


That sounds very cool.  I'm very grateful that you are doing 
this work; it's going to save me my usual from-source install, 
and looks like it opens the gates for a bunch more D code 
getting into the Debian + Ubuntu universe.


Yes, that's the plan - for this to happen, we need some additions 
to dub though, to search in common global paths for packages. I 
opened bug 
https://github.com/D-Programming-Language/dub/issues/811 for 
that. Until that's fixed, I can't package more D code using dub 
(and adding debhelper bits also depends on this being resolved).


Curious question: what's the Debian policy these days on what D 
compiler should be used to build D packages?


There is no real policy, at least I have found none. But from my 
tests, ldc simply crashed right away when trying to compile, 
later it wasn't able to process some code gdc had no problems 
with (I haven't tried the upcoming release). Since the GNU 
Compiler Collection is Debian's default compiler, I have set the 
compiler dependency of dub to gdc | ldc | d-compiler, so gdc is 
preferred, but replacing it with any other compiler will work too.


And has dub's config been tweaked accordingly in terms of which 
compiler it prefers to use ... ?


I didn't touch that, since dub seems to automatically find the 
right compiler. The preference seems to be dmd >> gdc >> ldc2, 
which looks sane to me.


It's really bad that GDC isn't part of the official GCC yet, and 
the standard libraries differ so much between the compilers 
(mainly due to phobos progressing very quickly).


For Debian Stretch I assume the situation will be much better 
though :-) (given the state of the LDC and GDC Git repos).


Re: Official dub packages for Debian and Ubuntu

2016-04-11 Thread Matthias Klumpp via Digitalmars-d-announce

On Monday, 11 April 2016 at 18:05:31 UTC, Jordi Sayol wrote:

[...]

Well, this makes useful have dub in both repositories, 
Debian/Ubuntu and d-apt. All Debian/Ubuntu users can always use 
dub on their system. If the last release is needed for any 
reason they can add d-apt repository to install it. d-apt takes 
1-2 day to update dub deb packages after dub release. The deb 
package is not a problem because we use the same package name, 
and the version shouldn't be a problem too, the newer version 
will be installed regardless its source, isn't it?


Yes.

$ dpkg --compare-versions "0.9.25-0" gt "0.9.24-1ubuntu1" && 
echo "greater" || echo "NOT greater"


As long as you keep the Debian revision at 0, everything is fine 
and there should be no conflicts, if the binary package names in 
Debian and your repo match. Please just don't increase the Debian 
revision to something bigger than zero, that can result in 
breakage.
You could use a revision like "-0~1" or "-0.1" when making 
changes to the package without a new upstream releases.
But that seems to be the case already, so there's no problem here 
:-)




Command line utilities for tab-separated value files

2016-04-11 Thread Jon D via Digitalmars-d-announce

Hi all,

I've open sourced a set of command line utilities for 
manipulating tab-separated value files. They are complementary to 
traditional unix tools like cut, grep, etc. They're useful for 
manipulating large data files. I use them when prepping files for 
R and similar tools. These tools were part of my 'explore D' 
programming exercises.


The tools are here: https://github.com/eBay/tsv-utils-dlang

They are likely of interest primarily to people regularly working 
with large files, though others might find the performance 
benchmarks of interest as well (included in the README).


I'd welcome any feedback, either on the apps or the code. 
Intention is that the code be reasonable example programs. And, I 
may write a blog post about my D explorations at some point, 
they'd be referenced in such an article.


--Jon


Re: Official dub packages for Debian and Ubuntu

2016-04-11 Thread Joseph Rushton Wakeling via Digitalmars-d-announce

On Monday, 11 April 2016 at 14:21:46 UTC, Matthias Klumpp wrote:
As part of that work, the dub package an build management 
system is now available in Debian, and I will ensure it works 
well.
Additionally, it was possible to make dub available late in the 
Ubuntu 16.04 (Xenial) development cycle, so dub will also be 
part of the upcoming LTS release of Ubuntu (kudos here go to 
Matthias Klose for pointing me at the "new" --push-state linker 
directive to work around dub not linking properly against 
libcurl when the latter is compiled with --as-needed).


That's great news.  Thank you very much!

Related note: I see the lcd version in xenial is 0.17.0~beta2 -- 
I don't suppose there's any chance of upgrading that to the 
stable 0.17.1 release ... ?  (Not asking you to do it personally, 
just wondering if that's something that could be achieved.)



On the roadmap are adding debhelper sequences to simplify 
packaging dub-based D code in Debian based distros, auto-test 
support in Debian's CI, and of course the usual bugfixing.


That sounds very cool.  I'm very grateful that you are doing this 
work; it's going to save me my usual from-source install, and 
looks like it opens the gates for a bunch more D code getting 
into the Debian + Ubuntu universe.


Curious question: what's the Debian policy these days on what D 
compiler should be used to build D packages?  And has dub's 
config been tweaked accordingly in terms of which compiler it 
prefers to use ... ?


Thanks & best wishes,

-- Joe


TECO - Inspiration for the D programming language

2016-04-11 Thread Walter Bright via Digitalmars-d-announce

https://www.reddit.com/r/programming/comments/4e07lo/last_night_in_a_fit_of_boredom_far_away_from_my/d1x5rl7


Re: Release D 2.071.0

2016-04-11 Thread Dicebot via Digitalmars-d-announce

On Monday, 11 April 2016 at 19:20:50 UTC, Marco Leise wrote:

Am Thu, 07 Apr 2016 10:13:35 +
schrieb Dicebot :
It is second time git tag for DMD release refers to commit 
with VERSION file content which doesn't match the tag. May 
indicate something is wrong in release procedure.


Or maybe something is wrong with source based Linux 
distributions in this time and age. I don't know. But I'm glad 
that you fire proof the source bundles first, before I move my 
lazy ass to update DMD packages for Gentoo. I hope to start 
from a good, clean 2.071.0/2.071.1 tar ball. :D


:)

I must admit I took the easy path and simply added `echo $pkgver 
> ../VERSION` to package build script instead of making upstream 
PR.


Re: Release D 2.071.0

2016-04-11 Thread Marco Leise via Digitalmars-d-announce
Am Thu, 07 Apr 2016 10:13:35 +
schrieb Dicebot :

> On Tuesday, 5 April 2016 at 22:43:05 UTC, Martin Nowak wrote:
> > Glad to announce D 2.071.0.
> >
> > http://dlang.org/download.html
> >
> > This release fixes many long-standing issues with imports and 
> > the module
> > system.
> > See the changelog for more details.
> >
> > http://dlang.org/changelog/2.071.0.html
> >
> > -Martin  
> 
> It is second time git tag for DMD release refers to commit with 
> VERSION file content which doesn't match the tag. May indicate 
> something is wrong in release procedure.

Or maybe something is wrong with source based Linux
distributions in this time and age. I don't know. But I'm glad
that you fire proof the source bundles first, before I move my
lazy ass to update DMD packages for Gentoo. I hope to start
from a good, clean 2.071.0/2.071.1 tar ball. :D

Nice work on the import bugs. There is so much less on the
attic now.

-- 
Marco



Mir v0.13.0: mir.combinatorics & mir.ndslice allocators/constructors/converters

2016-04-11 Thread 9il via Digitalmars-d-announce

Mir v0.13.0 was released.

http://mir.dlang.io

# New functions was added:

- `mir.combinatorics` (by Sebastian Wilzbach)
  - `combinations`
  - `combinationsRepeat`
  - `permutations`
  - `cartesianPower`

- `mir.ndslice.slice`
 - `SliceException`
 - `shape`
 - `slice`
 - `makeSlice`
 - `ndarray`
 - `makeNdarray`

- `mir.ndslice.selection`
 - `iotaSlice`/`IotaSlice`

For corresponding ndslice updates in Phobos see
https://github.com/D-Programming-Language/phobos/pull/4182

Best regards,
Ilya


Re: Official dub packages for Debian and Ubuntu

2016-04-11 Thread Matthias Klumpp via Digitalmars-d-announce

On Monday, 11 April 2016 at 17:41:44 UTC, Matthias Klumpp wrote:

[...]
Eww, that's not something we can do for official packages - 
it's fine though for 3rd-party stuff :-)


"can not do", obviously... :P



Re: Official dub packages for Debian and Ubuntu

2016-04-11 Thread Matthias Klumpp via Digitalmars-d-announce

On Monday, 11 April 2016 at 14:26:32 UTC, Edwin van Leeuwen wrote:

On Monday, 11 April 2016 at 14:21:46 UTC, Matthias Klumpp wrote:
And porting Python code to D was incredibly easy. I'll likely 
blog about my experience with D).


That would be great. Do you have a link to your blog (and its 
rss feed)?


That would be http://blog.tenstral.net/ and 
http://blog.tenstral.net/feed - no D content there yet though, 
lots of Freedesktop and distro engineering stuff instead ^^


As part of that work, the dub package an build management 
system is now available in Debian, and I will ensure it works 
well.


Nice, that will make it a lot easier, for people that are not 
using D, to install D programs/packages


Jup - the biggest issue is that GDC and LDC are lagging behind 
the proprietary DMD compiler, especially in terms of supporting a 
more recent Phobos version. The latter makes many things 
buildable only with DMD, which won't be found in any mainstream 
Linux distribution (no free software).


On Monday, 11 April 2016 at 17:18:28 UTC, Jordi Sayol wrote:
El 11/04/16 a les 16:21, Matthias Klumpp via 
Digitalmars-d-announce ha escrit:

[...]
Co-maintainers[1] and feedback from the dub developers is very 
welcome, and I hope this addition is useful for you.

[...]
[1]: Especially from the d-apt people - helping with official 
Debian packages is possible even if you're no Debian Developer 
/ Maintainer.


I'm the only one d-apt maintainer.

About the d-apt dub deb package, they're built using binaries 
from  and do not compile 
anything.


Eww, that's not something we can do for official packages - it's 
fine though for 3rd-party stuff :-)


How long will it take from a dub release until dub deb package 
will be available on the Debian stable repositories? And for 
Ubuntu?


Depends on the release cycle of Debian and Ubuntu. Generally, 
once software is in stable, it will only receive security fixes, 
and no further upstream versions will be added. That is part of 
the stability promise we give to users. Every new upstream 
release might include changes in behavior, breaking things or 
introducing new bugs.


That being said, new upstream releases can be made available via 
backports, if there is demand for it (it's relatively easy, if 
the code compiles with the older GDC release in stable at that 
time).


The Ubuntu Xenial (16.04) release (due in April) will have dub 
0.9.24, and Debian Stretch (9), which will likely be released in 
spring next year, will have whatever dub version is current then 
(or if the dub developers prefer a certain version for stable, 
that version).


Cheers,
  Matthias


Re: Official dub packages for Debian and Ubuntu

2016-04-11 Thread Jordi Sayol via Digitalmars-d-announce
El 11/04/16 a les 16:21, Matthias Klumpp via Digitalmars-d-announce ha escrit:
> As part of that work, the dub package an build management system is now 
> available in Debian, and I will ensure it works well.
> Additionally, it was possible to make dub available late in the Ubuntu 16.04 
> (Xenial) development cycle, so dub will also be part of the upcoming LTS 
> release of Ubuntu

This is a very good news!

> Co-maintainers[1] and feedback from the dub developers is very welcome, and I 
> hope this addition is useful for you.
[...]
> [1]: Especially from the d-apt people - helping with official Debian packages 
> is possible even if you're no Debian Developer / Maintainer. 

I'm the only one d-apt maintainer. 

About the d-apt dub deb package, they're built using binaries from 
 and do not compile anything.

How long will it take from a dub release until dub deb package will be 
available on the Debian stable repositories? And for Ubuntu?

Regards,
Jordi.


Re: Official dub packages for Debian and Ubuntu

2016-04-11 Thread Edwin van Leeuwen via Digitalmars-d-announce

On Monday, 11 April 2016 at 14:21:46 UTC, Matthias Klumpp wrote:
And porting Python code to D was incredibly easy. I'll likely 
blog about my experience with D).


That would be great. Do you have a link to your blog (and its rss 
feed)?


As part of that work, the dub package an build management 
system is now available in Debian, and I will ensure it works 
well.


Nice, that will make it a lot easier, for people that are not 
using D, to install D programs/packages


Official dub packages for Debian and Ubuntu

2016-04-11 Thread Matthias Klumpp via Digitalmars-d-announce

Hello!
I am very new to the D community and just recently finished a 
project in D, which I want to make available in Debian (reason 
for choosing D was mostly its speed and similarity to C++ and C, 
making a very shallow learning curve for someone knowing these 
languages. And porting Python code to D was incredibly easy. I'll 
likely blog about my experience with D).


As part of that work, the dub package an build management system 
is now available in Debian, and I will ensure it works well.
Additionally, it was possible to make dub available late in the 
Ubuntu 16.04 (Xenial) development cycle, so dub will also be part 
of the upcoming LTS release of Ubuntu (kudos here go to Matthias 
Klose for pointing me at the "new" --push-state linker directive 
to work around dub not linking properly against libcurl when the 
latter is compiled with --as-needed).


Co-maintainers[1] and feedback from the dub developers is very 
welcome, and I hope this addition is useful for you.


On the roadmap are adding debhelper sequences to simplify 
packaging dub-based D code in Debian based distros, auto-test 
support in Debian's CI, and of course the usual bugfixing.


Cheers,
Matthias

https://packages.debian.org/stretch/dub
http://packages.ubuntu.com/xenial/dub

[1]: Especially from the d-apt people - helping with official 
Debian packages is possible even if you're no Debian Developer / 
Maintainer.


Re: Release D 2.071.0

2016-04-11 Thread Kagamin via Digitalmars-d-announce

On Monday, 11 April 2016 at 11:43:20 UTC, wobbles wrote:

When updating with the .dev package on my Ubuntu 15.10 system

https://forum.dlang.org/post/mailman.4114.1454138584.22025.digitalmars-d-annou...@puremagic.com


Re: Release D 2.071.0

2016-04-11 Thread wobbles via Digitalmars-d-announce

On Monday, 11 April 2016 at 11:43:20 UTC, wobbles wrote:

On Tuesday, 5 April 2016 at 22:43:05 UTC, Martin Nowak wrote:

Glad to announce D 2.071.0.

http://dlang.org/download.html

This release fixes many long-standing issues with imports and 
the module

system.
See the changelog for more details.

http://dlang.org/changelog/2.071.0.html

-Martin


When updating with the .dev package on my Ubuntu 15.10 system -


.deb package - not .dev


Re: Release D 2.071.0

2016-04-11 Thread wobbles via Digitalmars-d-announce

On Tuesday, 5 April 2016 at 22:43:05 UTC, Martin Nowak wrote:

Glad to announce D 2.071.0.

http://dlang.org/download.html

This release fixes many long-standing issues with imports and 
the module

system.
See the changelog for more details.

http://dlang.org/changelog/2.071.0.html

-Martin


When updating with the .dev package on my Ubuntu 15.10 system - I 
get this message:

```
The installation of a package which violates the quality 
standards isn't allowed. This could cause serious problems on 
your computer. Please contact the person or organisation who 
provided this package file and include the details beneath.


Details
Lintian check results for 
/home/colin/Downloads/dmd_2.071.0-0_amd64.deb:
Can't close(GLOB(0x291a6f0)) filehandle: '' at 
/usr/share/lintian/helpers/coll/objdump-info-helper line 192
command failed with error code 123 at 
/usr/share/lintian/collection/objdump-info line 79.

warning: collect info objdump-info about package dmd failed
warning: skipping check of binary package dmd
```


Re: vibe.d kafka driver & probabilistic linear counting

2016-04-11 Thread André via Digitalmars-d-announce

On Sunday, 10 April 2016 at 10:51:38 UTC, yawniek wrote:

we pushed 2 new projects:

a native kafka driver to work with the vibe.d eventloop
http://code.dlang.org/packages/kafka-d
it's not full featured yet (no zookeeper) but the basic use 
cases work fine.
throughput depends on the buffer sizes but we achieved gigabit 
speeds in benchmarks.

thanks to Piotr for most of the implementation.


The news on Kafka are really great! Thanks a lot for the work! 
Did you inform the Kafka developers that there is a new language 
supported? Maybe this could be added to this Wiki page which 
lists all supported libs and languages: 
https://cwiki.apache.org/confluence/display/KAFKA/Clients.


Regards,
André




Re: New repo for my reusable D Phobos extensions

2016-04-11 Thread Nordlöw via Digitalmars-d-announce

On Sunday, 10 April 2016 at 20:54:31 UTC, ag0aep6g wrote:
No, these are the overloads for non-integer T. The constraint 
says `!(isIntegral!T)`. The integer overloads are above the 
ones I linked, respectively.


Ok. Thanks. Fixed.


Re: Graylog Extended Log Format (GELF) for D

2016-04-11 Thread Adil via Digitalmars-d-announce

On Saturday, 9 April 2016 at 20:06:01 UTC, angel wrote:

But what about this ?
https://forum.dlang.org/thread/eryphpbznrrovjvxj...@forum.dlang.org


What about it?


Re: D goes business! Bindings for SAP NetWeaver RFC SDK

2016-04-11 Thread Lars Johansson via Digitalmars-d-announce

On Monday, 4 April 2016 at 04:52:06 UTC, Kai Nacke wrote:

On Saturday, 2 April 2016 at 08:00:18 UTC, Lars Johansson wrote:

Hi Kai,
I'm for the zillionth time starting to learn D. I just started 
with 'The D programming language' after that I will explore 
the possibilities to access SAP from D. A good SAP is 
important for my sucess with D. Will you maintain and develop 
the SAP interface?


Hi Lars!

Yes, I maintain and develop the SAP interface. It is my 2nd pet 
project after ldc. :-)


All functions from the SDK except for DecFloat16 and DecFloat34 
are available and can be used like in C. As additional goody I 
created decorate functions which throw a SAPException instead 
of returning RFC_ERROR_INFO. This simplifies the logic a lot.


I really like to have more users of the SAP binding. There are 
still rough edges and I like to know about them...


Regards,
Kai


Hi Kai,
Thats good to hear, I'm struggle on with with your "D web 
development". If I succeed and have the time I will try to 
convert my SAP integration extension from PHP to D, just for the 
hell of it. Unfortunately I have neither the skill nor the time 
to help with your SAP module.
This post is obsolete but it gives an idea of what I will try to 
do in D. 
http://larsxjohansson.blogspot.se/2012/03/extracting-data-from-sap.html
If all goes well I will start with the conversion this summer, 
but do not do anything just for me, I'm a very unreliable user.