Re: LDC 1.37.0

2024-03-05 Thread Christian Köstlin via Digitalmars-d-announce

On Sunday, 3 March 2024 at 14:46:34 UTC, kinke wrote:

Glad to announce LDC 1.37.0. Major changes:

* Based on D 2.107.1.
* Important fix wrt. if-statement elision on constant condition.

Full release log and downloads: 
https://github.com/ldc-developers/ldc/releases/tag/v1.37.0


Thanks to all contributors & sponsors!


Thanks a lot, that was also quite the quick catch-up from dmd!


Re: DScanner v0.16.0-beta.1 - looking for IDE dev feedback

2023-07-09 Thread Christian Köstlin via Digitalmars-d-announce

On 08.07.23 23:59, WebFreak001 wrote:

https://github.com/dlang-community/D-Scanner/releases/tag/v0.16.0-beta.1

## For IDE devs:

the new D-Scanner version comes with a major new improvement: automatic 
fix suggestions for diagnostics. As IDE dev you can use the existing 
`--report` functionality to get JSON parsable output for the issues, 
along with new information such as start/end byte indices.


Then when the user wants to query auto-fixes for any given issue (or 
just in general at any location in the file), use `dscanner 
--resolveMessage b512 file.d` to list the resolved auto-fixes at the 
given location. See the README.md for more information.


Looking for feedback on the API and if you need any changes. 
Additionally this API is usable with D-Scanner as a library as well.


## For users:

`dscanner fix source/` can be used to interactively auto-fix all issues 
inside the source/ directory that have available autmoatic fixes.

Sounds to good to be true, will give it a try for sure!!!

Thanks a lot.

Kind regards,
Christian



Re: argparse 1.1.0: now with ANSI colors and styles

2022-08-25 Thread Christian Köstlin via Digitalmars-d-announce
On Wednesday, 24 August 2022 at 18:47:28 UTC, Andrey Zherikov 
wrote:

New version 1.1.0 of `argparse` is published!

Major feature in this version is fully customized ANSI coloring 
and styling.

Here is an example of default styling:
![example](https://github.com/andrey-zherikov/argparse/blob/18c1598dc4b015edfdd054e5f70d6ca359c480c9/images/default_styling.png?raw=true)

Complete list of available features can be found in 
[readme](https://github.com/andrey-zherikov/argparse#features).


Congratulations, looking forward to lock my programs on version 
1.1.0 instead of master.


Re: LDC 1.30.0

2022-07-21 Thread Christian Köstlin via Digitalmars-d-announce

On 2022-07-20 20:43, kinke wrote:

Glad to announce LDC 1.30.0. Major changes:

- Based on D 2.100.1.
- LLVM for prebuilt packages bumped to v14.0.3. All target architectures 
supported by LLVM are enabled now.
- Dropped LDC ltsmaster (v0.17.x) as supported host compiler. Like DMD, 
the min D version for bootstrapping is v2.079 (or GDC v9.x) now.

- Dropped support for LLVM < 9.
- New LeakSanitizer support via `-fsanitize=leak`.
- New prebuilt universal macOS package, runnable on both x86_64 and 
arm64, and enabling x86_64/arm64 macOS/iOS cross-compilation targets out 
of the box.


Full release log and downloads: 
https://github.com/ldc-developers/ldc/releases/tag/v1.30.0


Thanks to all contributors & sponsors!


Thanks for the new release.
On a sidenote I am having problem downloading any 2.100.1 dmd version 
from dlang.org. Is it just me? Old releases are available on 
http://downloads.dlang.org/releases but not the 2.100.1.


Kind regards,
Christian


Re: cogito, cognitive complexity for D

2022-05-25 Thread Christian Köstlin via Digitalmars-d-announce

On 2022-05-25 16:43, Bastiaan Veelo wrote:

On Tuesday, 24 May 2022 at 21:25:38 UTC, Christian Köstlin wrote:

if the dmd frontend could be made available as a dub package,


It already is, as sub package of https://code.dlang.org/packages/dmd

— Bastiaan.


Nice,

so if the code would be ported from 2.098.1 to 2.100.0 the dub 
dependency could be used perhaps ...




Re: cogito, cognitive complexity for D

2022-05-24 Thread Christian Köstlin via Digitalmars-d-announce

On 2022-05-17 12:50, Eugen Wissner wrote:

Glad to announce that Funkwerk releases cogito [1], a tool that measures
cognitive complexity of D code.


Thanks for sharing this tool.
I tried it on OSX by building with this script instead of your Makefile 
as I am managing my dlang version with https://dlang.org/install.html:


```bash
#!/bin/bash -xe

# select dmd sources (please run ~/dlang/install.sh dmd-2.098.1 manually)
DMD_SOURCES=~/dlang/dmd-2.098.1/src

# prepare filesystem
rm -f tools/dmd2/src
mkdir -p tools/dmd2
ln -s $DMD_SOURCES tools/dmd2/src

mkdir -p build

# activate compiler (please run ~/dlang/install.sh ldc-1.29.0 manually)
source ~/dlang/ldc-1.29.0/activate


# build dmd-lib
ldmd2 -debug -lib -version=MARS -version=NoMain -J=./include 
-J=$DMD_SOURCES/dmd/dmd/res -I$DMD_SOURCES/dmd -od=build -of=dmd.a 
$DMD_SOURCES/dmd/dmd/*.d $DMD_SOURCES/dmd/dmd/*/*.d


# and cognito
dub build --build=release --config=executable
```

and I am wondering what real world "numbers" are. Is e.g. 20 a "good" or 
"bad" number?


Another question that comes to mind is, if the dmd frontend could be 
made available as a dub package, which would simplify the build process?



Kind regards,
Christian


Re: [Semi-OT] Markdown rendering extension for Thunderbird

2021-12-12 Thread Christian Köstlin via Digitalmars-d-announce

On 2021-12-11 06:07, David Gileadi wrote:
I use Thunderbird to read this forum and have gotten jealous of the 
Markdown formatting that the website supports but that Thunderbird 
doesn't. So I made [an 
extension](https://addons.thunderbird.net/en-US/thunderbird/addon/render-markdown-messages/) 
to render Markdown-formatted messages in Thunderbird.


Unfortunately this doesn't allow sending messages with Markdown 
formatting from Thunderbird—that would probably belong in the 
[Markdown-here](https://addons.thunderbird.net/en-US/thunderbird/addon/markdown-here-revival/) 
extension but can't work yet because Thunderbird currently [doesn't 
allow modifying the content-type 
header](https://bugzilla.mozilla.org/show_bug.cgi?id=1717221) (bug filed 
by Vladimir). My extension is limited to reading Markdown-formatted 
messages.

cybershadow came up a while ago with a nice hack around this issue:
https://gist.github.com/CyberShadow/ccb3813d5953e5e7f2c53fe43275f986

I put it in a ready to use dub project (but did not put it to the registry).

Kind regards,
Christian



Re: Two New Manpower Initiatives

2019-04-15 Thread Christian Köstlin via Digitalmars-d-announce

On 15.04.19 12:08, Mike Parker wrote:

...
The blog:
https://dlang.org/blog/2019/04/15/manpower-in-the-d-ecosystem-or-resources-resources-resources/ 
...


On of the options to contribute to the d language foundation is amazon 
smile. Is there a way to also have amazon smile enabled for e.g. amazon.de?


cK




Re: GtkD Blog Now Up and Running

2019-01-29 Thread Christian Köstlin via Digitalmars-d-announce

On 29.01.19 22:47, Ron Tarrant wrote:

On Tuesday, 29 January 2019 at 21:13:17 UTC, WebFreak001 wrote:


hey it's easy, you can also use SDL! :p

dub.sdl:
name "my-awesome-gtk-app"

dependency "gtk-d" version="~>3.8.5"



... and that's it already actually. It will compile everything in the 
"source" folder and add the dependencies with it.


And well you will have to add DLLs and stuff like you would need to 
with pure dmd, gtk-d doesn't ship any DLLs.


Okay, so I create a file, name it dub.sdl and put this in it:

name "my-awesome-gtk-app"

dependency "gtk-d" version="~>3.8.5"

And this goes in the same folder as the code file. And then... what? I 
type: dub?


Just for the record, this is completely different from what I was 
reading before about this dub stuff.

Yes. Its as simple as:

(dmd-2.084.0)~/tmp >  mkdir gtkdtest
(dmd-2.084.0)~/tmp >  cd gtkdtest/
(dmd-2.084.0)~/t/gtkdtest >  dub init
Package recipe format (sdl/json) [json]: sdl
Name [gtkdtest]:
Description [A minimal D application.]: A minimal GTKD application.
Author name []:
License [proprietary]:
Copyright string []:
Add dependency (leave empty to skip) []: gtk-d
Adding dependency gtk-d ~>3.8.5
Add dependency (leave empty to skip) []:
Successfully created an empty project in '/./tmp/gtkdtest'.
Package successfully created in .
(dmd-2.084.0)~/t/gtkdtest >

pasteing a simple gtkd hello world into source/app.d

and then run

(dmd-2.084.0)~/t/gtkdtest > dub run

I was surprised how simple it is nowadays even in osx.

kind regards,
christian


Re: Release D v2.077.1

2017-12-01 Thread Christian Köstlin via Digitalmars-d-announce
On 30.11.17 14:52, Martin Nowak wrote:
Thanks for the hard work in coming up with a new release.

> Glad to announce D v2.077.1.
> 
> http://dlang.org/download.html
> 
> This point release fixes a few issues over v2.077.1, see the changelog
   
  should be 2.077 i guess -/
> for more details.
> 
> http://dlang.org/changelog/v2.077.1.html
also this link is broken for me i get a 404


thanks again for the release!!!

christian