Announcing Mecca

2018-05-03 Thread Shachar Shemesh via Digitalmars-d-announce

Hello everybody,

I am very happy to announce that Mecca version 0.0.1 (sorry, no more 
zeros than that) is now officially available. You can get the source 
code at https://github.com/weka-io/mecca. The API documentation is at 
https://weka-io.github.com/mecca/docs.


Mecca is a run-time support library for fibers management, as well as a 
few useful containers and libraries.


At this point in time, a getting started tutorial is still not 
available. Instead, I will post this small program for an echo server. 
It should give you a hint what APIs to check out with the documentation, 
so you can expand your search:


import core.sys.posix.sys.socket;
import std.algorithm : move;
import std.functional : toDelegate;

import mecca.log;
import mecca.reactor;
import mecca.reactor.io.fd;
import mecca.reactor.io.signals;

enum EchoerPort = 31337;

int main()
{
theReactor.setup();

reactorSignal.registerHandler(OSSignal.SIGTERM, 
toDelegate());
reactorSignal.registerHandler(OSSignal.SIGINT, 
toDelegate());


theReactor.spawnFiber!listener();

return theReactor.start();
}

void termHandler(ref const(signalfd_siginfo) siginfo) {
// Signal handler, but any non-yielding operation is safe to call 
from here.

theReactor.stop();
}

void listener() {
auto listenSocket = ConnectedSocket.listen( SockAddrIPv4.any( 
EchoerPort ) );

listenSocket.setSockOpt( SOL_SOCKET, SO_REUSEADDR, 1 );

while( true ) {
SockAddr clientAddress;
auto clientSocket = listenSocket.accept(clientAddress);

// The next line's toString is the only reason we can't annotate
// listener as @nogc.
INFO!"Received new connection from %s"(clientAddress.toString());
theReactor.spawnFiber!echoClient( move(clientSocket) );
}
}

void echoClient(ConnectedSocket sock) @nogc {
ssize_t dataLength;
do {
char[4096] buffer;
dataLength = sock.read(buffer);
sock.write(buffer[0..dataLength]);
} while( dataLength>0 );
}


Re: DConf 2018 Livestream

2018-05-03 Thread Nemanja Boric via Digitalmars-d-announce
On Friday, 4 May 2018 at 00:09:53 UTC, Nick Sabalausky (Abscissa) 
wrote:

On 05/03/2018 11:12 AM, Nemanja Boric wrote:

On Thursday, 3 May 2018 at 12:24:16 UTC, Per Nordlöw wrote:

On Wednesday, 2 May 2018 at 07:13:21 UTC, Mike Parker wrote:
For those of you unable to join us in Munich, you can watch 
the fun online via the following link:


https://www.youtube.com/user/hlmceventsgmbh


I can't find Andrei's talk this morning. Was it lost?


It looks like you can just watch inside last two hours window.


It's working for me:
https://www.youtube.com/watch?v=0UZuRNujLGQ

Maybe youtube just needed some time after the original stream 
ended before it could do replays of the whole thing.


Looks like it, it works for me now as well!

This looks like to be the first day (or recorded part of it): 
https://www.youtube.com/watch?v=HvqsUO77FGI


The second day (from your post): 
https://www.youtube.com/watch?v=0UZuRNujLGQ


mysql-native v2.2.2: Minor updates

2018-05-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce

An all-D MySQL/MariaDB client library:
https://github.com/mysql-d/mysql-native
==

Tagged release, 'v2.2.2'.

Sorry, no "zero date" fix just yet, but I think we're getting close (#65).

In this version:
- Fixed #177: Update unit-threaded, and don't lock mysql-native to a 
specific version of unit-threaded. (@ghost91)
- Fixed #178, #179: Fix deprecation message in DMD v2.080.0: Replace 
enforceEx by enforce (@ghost91)


Full changelog:
https://github.com/mysql-d/mysql-native/blob/master/CHANGELOG.md



Re: DConf 2018 Livestream

2018-05-03 Thread Juan via Digitalmars-d-announce

On Thursday, 3 May 2018 at 18:03:17 UTC, bachmeier wrote:
It's not a problem. Walter can redo the talk from his basement 
and upload it to youtube.


Well, If he is able to reproduce the look and feel from the 
original with all the jokes etc. I can accept that.


Re: DConf 2018 Livestream

2018-05-03 Thread bachmeier via Digitalmars-d-announce

On Thursday, 3 May 2018 at 11:53:02 UTC, Juan wrote:

On Thursday, 3 May 2018 at 05:46:45 UTC, Bastiaan Veelo wrote:
As I understand it, they were not recording but relying on 
YouTube to save the stream. For whatever reason, that didn’t 
work out. They wrote that they would be trying to recover the 
stream but it might well be lost. I think you should talk to 
them and explain what an asset these recordings are to dlang, 
and that we cannot let them be jeopardised by WiFi outages.


+1.

I was expecting to watch Walter's presentation, and now I would 
say this is a big failure for them. Come on, this not a new 
event!


In this day and age with all the cameras around us, if they 
really lost any content they should stop doing this.


Sorry if I'm too harsh, but this is totally unacceptable.


It's not a problem. Walter can redo the talk from his basement 
and upload it to youtube.


Re: DConf 2018 Livestream

2018-05-03 Thread Joakim via Digitalmars-d-announce

On Thursday, 3 May 2018 at 11:53:02 UTC, Juan wrote:

On Thursday, 3 May 2018 at 05:46:45 UTC, Bastiaan Veelo wrote:
As I understand it, they were not recording but relying on 
YouTube to save the stream. For whatever reason, that didn’t 
work out. They wrote that they would be trying to recover the 
stream but it might well be lost. I think you should talk to 
them and explain what an asset these recordings are to dlang, 
and that we cannot let them be jeopardised by WiFi outages.


+1.

I was expecting to watch Walter's presentation, and now I would 
say this is a big failure for them. Come on, this not a new 
event!


In this day and age with all the cameras around us, if they 
really lost any content they should stop doing this.


Sorry if I'm too harsh, but this is totally unacceptable.


Don't worry, you didn't miss much. You're better off just reading 
his blog post, as Walter keeps his keynotes light on tech:


https://dlang.org/blog/2017/08/23/d-as-a-better-c/

While the post covers slightly different material, it gives the 
idea.


On Thursday, 3 May 2018 at 12:24:16 UTC, Per Nordlöw wrote:

On Wednesday, 2 May 2018 at 07:13:21 UTC, Mike Parker wrote:
For those of you unable to join us in Munich, you can watch 
the fun online via the following link:


https://www.youtube.com/user/hlmceventsgmbh


I can't find Andrei's talk this morning. Was it lost?


I believe the lost video is only from the morning of the first 
day. Andrei's talk may simply not be accessible in the archived 
livestream anymore, as Nemenja says, but there's no indication 
that it was lost.


Re: DConf 2018 Livestream

2018-05-03 Thread Nemanja Boric via Digitalmars-d-announce

On Thursday, 3 May 2018 at 12:24:16 UTC, Per Nordlöw wrote:

On Wednesday, 2 May 2018 at 07:13:21 UTC, Mike Parker wrote:
For those of you unable to join us in Munich, you can watch 
the fun online via the following link:


https://www.youtube.com/user/hlmceventsgmbh


I can't find Andrei's talk this morning. Was it lost?


It looks like you can just watch inside last two hours window.


Re: DConf 2018 Livestream

2018-05-03 Thread Per Nordlöw via Digitalmars-d-announce

On Wednesday, 2 May 2018 at 07:13:21 UTC, Mike Parker wrote:
For those of you unable to join us in Munich, you can watch the 
fun online via the following link:


https://www.youtube.com/user/hlmceventsgmbh


I can't find Andrei's talk this morning. Was it lost?


Re: Tilix 1.7.9 Released

2018-05-03 Thread Chris via Digitalmars-d-announce

On Sunday, 29 April 2018 at 14:01:10 UTC, Gerald wrote:
A new version of tilix has been released. For those not 
familiar with it, Tilix is a terminal emulator for Linux 
written in D using GTK. The list of changes is available here:


https://gnunn1.github.io/tilix-web/2018/04/28/release-1-7-9

As always, I'm always looking for people who are interested in 
contributing, PRs welcome.


Finally a big thank you to Mike Wey who has continued to work 
on and evolve GtkD. Working on libraries is often behind the 
scenes work that doesn't get the appreciation it deserves.


I was struck by a recent reddit post on the gnome shell memory 
leak which involved C and javascript, it mentioned how 
difficult it is to merge two different memory models. Mike has 
managed this with aplomb in terms of integrating the Gtk 
reference counting into D's GC. So thanks Mike, your efforts 
are much appreciated!


I used it for more than year but after switching OS / 
re-installation I used the OS's terminal for a while. Now I'm 
back on Tilix. I am delighted. It's more fun this way.


Re: DConf 2018 Livestream

2018-05-03 Thread Mike Parker via Digitalmars-d-announce

On Thursday, 3 May 2018 at 07:14:51 UTC, Timoses wrote:



Will the videos of the talks etc. be available online later?


That's the plan.



As Bastiaan Veelo wrote it appears that something went wrong 
with the youtube recordings. Hope this gets resolved and at 
least the upcoming talks, if not all, will be available.


Yes, unfortunately some of the videos were lost. We should be 
good from here on out.