Re: OT: LLVM talk @ FOSDEM'19

2019-02-02 Thread Kai Nacke via Digitalmars-d-announce

On Saturday, 2 February 2019 at 17:36:30 UTC, Luís Marques wrote:
I'm here at FOSDEM too. I’m going to try watching your 
presentation live, but I’m not sure I’ll be there on time. I’ll 
see you around anyway, hopefully.


Nice to hear! I will watch some other talks in the LLVM room, too.
(-> I am reachable at kai.nacke at gmail.com and through 
Messenger.)


Kai


The D IDE dexed - version 3.7.5 available

2019-02-02 Thread Basile B. via Digitalmars-d-announce

See [1] to consult the changes since the last announce here.
Maybe it was 3.7.2, I don't remember.

[1] https://github.com/Basile-z/dexed/releases


Re: OT: LLVM talk @ FOSDEM'19

2019-02-02 Thread Basile B. via Digitalmars-d-announce

On Saturday, 2 February 2019 at 16:12:12 UTC, Kai Nacke wrote:

Hi everybody!

I am still around. :-)

I am a speaker in the LLVM toolchain devroom @ FOSDEM'19. My 
talk is about how to easily generate IR for LLVM. Sorry - not D 
related this year but still useful.


Read the announcement at 
https://fosdem.org/2019/schedule/event/llvm_irgen/.


FOSDEM is a two-day event organised by volunteers to promote 
the widespread use of open source software.


Taking place in the beautiful city of Brussels (Belgium), 
FOSDEM is widely recognised as "the best open source conference 
in Europe".


FOSDEM 2019 will take place at ULB Campus Solbosch on Saturday 
2 and Sunday 3 February 2019. Read more about the event at 
https://fosdem.org/2019/.


Regards,
Kai


Thanks this topic interests me so i'll watch the cideo when 
available.


Re: OT: LLVM talk @ FOSDEM'19

2019-02-02 Thread Luís Marques via Digitalmars-d-announce

On Saturday, 2 February 2019 at 16:12:12 UTC, Kai Nacke wrote:
I am a speaker in the LLVM toolchain devroom @ FOSDEM'19. My 
talk is about how to easily generate IR for LLVM. Sorry - not D 
related this year but still useful.


I'm here at FOSDEM too. I’m going to try watching your 
presentation live, but I’m not sure I’ll be there on time. I’ll 
see you around anyway, hopefully.


Cheers,
Luís


Re: GtkD Blog Now Up and Running

2019-02-02 Thread Ron Tarrant via Digitalmars-d-announce
On Friday, 1 February 2019 at 07:43:23 UTC, Petar Kirov 
[ZombineDev] wrote:


But no one should ever need to modify their dmd installation, 
in order to use gtkd.


Too true. It's one of the reasons I'm sticking with dmd for now. 
I followed a simple set of instructions to get an environment set 
up, the same instructions I posted on the blog. And I'm thinking 
the simplest way for a blog reader to get to a compiled product 
is the way I've outlined. Perhaps I'm wrong about that, but it's 
what I'm aiming for, the least fuss, the least work, the least 
complexity.


OT: LLVM talk @ FOSDEM'19

2019-02-02 Thread Kai Nacke via Digitalmars-d-announce

Hi everybody!

I am still around. :-)

I am a speaker in the LLVM toolchain devroom @ FOSDEM'19. My talk 
is about how to easily generate IR for LLVM. Sorry - not D 
related this year but still useful.


Read the announcement at 
https://fosdem.org/2019/schedule/event/llvm_irgen/.


FOSDEM is a two-day event organised by volunteers to promote the 
widespread use of open source software.


Taking place in the beautiful city of Brussels (Belgium), FOSDEM 
is widely recognised as "the best open source conference in 
Europe".


FOSDEM 2019 will take place at ULB Campus Solbosch on Saturday 2 
and Sunday 3 February 2019. Read more about the event at 
https://fosdem.org/2019/.


Regards,
Kai


kameloso IRC bot

2019-02-02 Thread Anonymouse via Digitalmars-d-announce

Announcing kameloso IRC bot, 1.0.0.

It's a bot, not a parser library, though the parsing can 
technically be lifted out and reused.


On GitHub: https://github.com/zorael/kameloso, also 
https://kameloso.dub.pm.


There's notes to offline users, pasted URL title lookup, logs, 
automatic mode sets (e.g. +o on join), s/this/that/ substitution, 
user quotes, !seen, a basic Twitch streamer plugin. Some other 
legacy features and trivialities like the original venerable echo 
command. Ideas needed.


Absolute bare minimum required to try it:

git clone https://github.com/zorael/kameloso.git
cd kameloso
dub build
./kameloso --channels "#d,#freenode,##linuxmint"

With no other settings this will just be in client mode as a 
guest user and won't pollute the channels. (#d alone is too quiet 
to make a good example.) ./kameloso --writeconfig to set up 
further, see --help and the readme. Windows Powershell/cmd users 
may need an extra step to get terminal colours instead of \033[0m 
everywhere, see the readme.


The MVPs here are definitely UDAs, slices and mixin templates. 
There are some clever things in there that I'm really proud of, 
and some blemishes that I've learned to live with.


dscanner --sloc weighs it in at ~11k lines, excluding most tests. 
Much of it is @safe but it's not @nogc, nor -betterC. Naturally 
it tries to avoid allocating low-hanging fruit but there's 
Exceptions, associative and dynamic arrays, string 
concatenations, closures, and all kinds of convenient D things.


Parsing looks like this (automatically generated unit test): 
https://github.com/zorael/kameloso/commit/dde05a06


Plugins like this (automatically called module-level function):

@(IRCEvent.Type.CHAN)
@(PrivilegeLevel.anyone)
@(ChannelPolicy.home)
@BotCommand(PrefixPolicy.prefixed, "hello")
@BotCommand(PrefixPolicy.nickname, "poke")
@Description("Sends a hello world to the current channel.")
void onCommandHello(MyPlugin plugin, const IRCEvent event)
{
plugin.chan(event.channel, "Hello world!");
}

Because of how code.dlang.org and dub deals with versions 
(announces pre-releases but serves releases), having previously 
pulled this from there at any point up until now will have landed 
you with an ancient version. So please don't judge this by any 
previous builds.


A normal dub build takes 9 seconds with dmd on this laptop 
(Linux) and eats 4036 Mb of RAM, down from 7800+ Mb. Profiling 
does not seem to show any particular surprising hotspots anymore. 
All compilers segfault in various situations[1][2][3].


Feedback appreciated.


[1]: https://issues.dlang.org/show_bug.cgi?id=18026
[2]: https://issues.dlang.org/show_bug.cgi?id=19123
[3]: https://bugzilla.gdcproject.org/show_bug.cgi?id=307


(Oh My) Gentool 0.1.0

2019-02-02 Thread evilrat via Digitalmars-d-announce

(Oh My) Gentool - Yet another C/C++ binding generator.

This release has few changes and tweaks, the most important one 
is the ability to process templated functions/methods on Windows 
and reduction of missing linker symbols numbers.


Please note that it is still in its early stage and may contain 
bugs and many missing language constructs, as well as lack of 
conversion for certain language constructs.


It is still hard to use it directly on a real libraries due to 
many syntax and semantics issues, however it is already a 
valuable tool for making thin wrappers on C++ side to quickly 
bring them to your D code, given that your wrapper headers does 
not contains complex bodies or templates, or direct inclusions of 
other libraries headers.



How to start - 
https://github.com/Superbelko/ohmygentool/wiki/QuickStart


Code https://github.com/Superbelko/ohmygentool
Binaries 
https://github.com/Superbelko/ohmygentool/releases/tag/v0.1.0