Re: Hunt Framework 3.0.0 Released, Web Framework for DLang!

2020-05-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2020-05-09 09:02, zoujiaqing wrote: ( hunt library is currently the best performing network io in D languages.) Would be interesting to see how Hunt and Mecca [1] compare. Mecca is quite a basic library, compared to Hunt. It doesn't support anything more high level than TCP sockets.

Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Jacob Carlborg via Digitalmars-d-announce
On Monday, 23 March 2020 at 10:41:43 UTC, Jacob Carlborg wrote: class DSingleton { immutable DSingleton instance = new DSingleton; } Should of course be `static`: class DSingleton { static immutable DSingleton instance = new DSingleton; } -- /Jacob Carlborg

Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Jacob Carlborg via Digitalmars-d-announce
On Monday, 23 March 2020 at 10:26:33 UTC, Jacob Carlborg wrote: If it's enough with CTFE compatible code in the constructor, the following is a much simpler version: class DSingleton { private __gshared DSingleton instance = new DSingleton; DSingleton get() { return

Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Jacob Carlborg via Digitalmars-d-announce
On Monday, 23 March 2020 at 10:02:48 UTC, Ron Tarrant wrote: Today starts a new series I'm calling Snippets and it's about various D-specific stuff that may come in handy when building a GUI. You can find it right here: https://gtkdcoding.com/2020/03/23/0105-dlang-ui-snippets-i.html If it's

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-28 Thread Jacob Carlborg via Digitalmars-d-announce
On Friday, 28 February 2020 at 03:10:48 UTC, Walter Bright wrote: I don't know Swift, but this looks like the "generate strings and concatenate them" approach. No, it basically lowers to bunch of method calls. Here's an example of how it could look like with D syntax: auto a = 3; auto b =

Re: LDC 1.20.0

2020-02-15 Thread Jacob Carlborg via Digitalmars-d-announce
On 2020-02-15 07:17, zoujiaqing wrote: Thanks LDC team! Thanks Jacob for iOS/tvOS/watchOS on AArch64! Thanks :) -- /Jacob Carlborg

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-12-03 Thread Jacob Carlborg via Digitalmars-d-announce
On Tuesday, 12 November 2019 at 09:15:28 UTC, SealabJaster wrote: And if you do allow things such as letting classes have a 'deserialise' member function which can be overloaded, you still need to create or be given an instance of the class beforehand, which brings things back around to the

Re: Proposal for porting D runtime to WebAssembly

2019-11-24 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-11-23 10:51, Sebastiaan Koppe wrote: This is my proposal for porting D runtime to WebAssembly. I would like to ask you to review it. You can find it here: https://gist.github.com/skoppe/7617ceba6afd67b2e20c6be4f922725d What will happen to code that uses TLS? Will it be promoted to a

Re: dud: A dub replacement

2019-11-20 Thread Jacob Carlborg via Digitalmars-d-announce
On Wednesday, 20 November 2019 at 11:40:19 UTC, Robert Schadek wrote: Here is disagree, to a degree I consider comments a code smell. If I have to write them, I failed to convey the information needed to understand the code in the code. You think this is a code smell:

Re: dud: A dub replacement

2019-11-18 Thread Jacob Carlborg via Digitalmars-d-announce
On Sunday, 17 November 2019 at 19:10:05 UTC, Sebastiaan Koppe wrote: SDL all the way please. Perhaps this ship has already sail. But YAML would have been a better choice. It's a superset of JSON. All the existing JSON description files would have worked as is. -- /Jacob Carlborg

Re: dud: A dub replacement

2019-11-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-11-11 14:44, Robert Schadek wrote: So dub has some problems, and personally I find its code base very hard to get into. At Symmetry we are a very heavy user of dub, resulting in many wasted hours. So I started to write dud [1]. I kept some boring/nice parts from dub, but most code

Re: Release D 2.089.0

2019-11-07 Thread Jacob Carlborg via Digitalmars-d-announce
On Thursday, 7 November 2019 at 10:25:46 UTC, Ron Tarrant wrote: I follow the steps outlined here: https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows And one of those steps (Step #5) says to copy the gtkd libs to the compiler's directory tree. Is that what you mean by "You

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-06 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-11-06 02:02, sarn wrote: And the neat way to do that is with a multi-stage build: one Dockerfile, with an Alpine container building the binary, then copying to a FROM scratch container I've used the "smith" tool as well [1]. It has some additonal help with dynamically linked code.

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-05 Thread Jacob Carlborg via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 11:49:20 UTC, Daniel Kozak wrote: Generally no, because Apline use musl libc instead of glibc, so there are some issues with that The correct way is to use static linking and putting only the binary in a Docker image, i.e. "from scratch" [1] ;). But using

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-11-01 Thread Jacob Carlborg via Digitalmars-d-announce
On Friday, 1 November 2019 at 11:29:11 UTC, Ethan wrote: string is immutable(char)[], as we all know. Syntactic sugar, not exactly a built in type but treating it like one is often valuable. It's an alias, but what it's aliased to is a built-in type. -- /Jacob Carlborg

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-11-01 Thread Jacob Carlborg via Digitalmars-d-announce
On Thursday, 31 October 2019 at 00:05:06 UTC, SealabJaster wrote: https://bradley.chatha.dev/Home/Blog?post=JsonSerialiser1 FYI, string is a built-in type. Regarding exercise 2. I would be very careful with deserializing a single character from JSON. First, because JSON doesn't support

Re: Build your dub packages with Github Actions

2019-09-07 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-09-07 00:02, Andre Pany wrote: Hi, Just a small info, building your D application using Github Actions just works out of the box thanks to the install.sh script! This configuration will install a "dub build" pull request voter:

Re: Release D 2.088.0

2019-09-03 Thread Jacob Carlborg via Digitalmars-d-announce
On Tuesday, 3 September 2019 at 10:02:26 UTC, a11e99z wrote: On Tuesday, 3 September 2019 at 07:57:00 UTC, Martin Nowak wrote: This release comes with a new C:\programz\D>dmd --version DMD32 D Compiler v2.088.0-dirty what is ..-dirty? It means the git repository was not clean when the

Re: Five Projects Selected for SAOC 2019

2019-08-26 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-08-26 05:55, Andrej Mitrovic wrote: I'm guessing this means we might even be able to use multiple versions of Phobos one day. However before we do that, we will really need to fix the use of globals in Phobos. I don't think that's necessary. All symbols will have the version be part

Re: Mecca available on macOS

2019-08-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-08-07 19:45, Ron Tarrant wrote: I'm not familiar with Mecca. What is a Container/reactor library? I guess it's a reactor library. I see it as a library providing fiber based non-blocking IO. It also provides containers, logging, reflection, serialization and a bunch of other things

Mecca available on macOS

2019-08-07 Thread Jacob Carlborg via Digitalmars-d-announce
I would like to announce that I've ported Mecca [1] to macOS. It was merged in May but I never bothered to announce it until now. Everything except the file watcher has been ported and is working. Unfortunately the unit tests fail in Travis CI, but they pass locally and in Circle CI. Something

Re: Intellij: Support for TextMate Bundled

2019-08-03 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-08-01 17:19, Andre Pany wrote: There is an answer from Intellij why there are highlighting issues: https://youtrack.jetbrains.com/oauth?state=%2Fissue%2FIDEA-219012 That's disappointing. Named captures are very useful and makes the grammar easier to read and understand. TextMate

Re: utiliD: A library with absolutely no dependencies for bare-metal programming and bootstrapping other D libraries

2019-05-05 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-05-05 05:45, Mike Franklin wrote: The idea behind the library is that it would not depend on druntime, phobos, C standard library, or anything else but would still offer many of the features that those libraries provide. To utilize the library, one would only need a D compiler. It

Re: DStep 1.0.0

2019-04-27 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-04-26 10:33, Robert M. Münch wrote: Are there are any functional differences between the platforms? The short answer is yes. Or can I just use the OSX version and use the generated .d files with the DMD Windows version too? The longer answer is that it depends. DStep behaves the

Re: DStep 1.0.0 on the Blog

2019-04-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-04-23 14:10, Mike Franklin wrote: Nice work, Jacob!  Very cool! Thanks :) -- /Jacob Carlborg

Re: Beta 2.086.0

2019-04-22 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-04-21 19:59, Jacob Carlborg wrote: On 2019-04-20 16:16, Martin Nowak wrote: Glad to announce the first beta for the 2.086.0 release, ♥ to the 52 contributors. I just noticed I got a test failure [1] in one of my projects using this version. I haven't investigated yet. Strangely the

Re: DStep 1.0.0

2019-04-22 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-04-22 15:20, Dennis wrote: Huh, I've been using DStep on Windows back in January. I can't remember how I obtained the binary, but it's version 0.2.3-67-gdeabc63. The Windows support was implemented during GSoC 2016. It just has never been a new release since then. I have created a

DStep 1.0.0

2019-04-22 Thread Jacob Carlborg via Digitalmars-d-announce
I would like to announce a new major release of DStep, 1.0.0. This release is the biggest release since the initial release. It has support for translating some of the preprocessor, like `#define` for contestants and function-like macros. It now supports preserving comments and support for

Re: Beta 2.086.0

2019-04-21 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-04-20 16:16, Martin Nowak wrote: Glad to announce the first beta for the 2.086.0 release, ♥ to the 52 contributors. I just noticed I got a test failure [1] in one of my projects using this version. I haven't investigated yet. Strangely the nightly build passes. [1]

Re: Two New Manpower Initiatives

2019-04-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-04-15 12:08, Mike Parker wrote: I've just published a post on the blog introducing two new initiatives, the Manpower Share and the Manpower Fund, that came out of our quarterly D Language Foundation meetings. The goal is to help focus energy on getting more effort directed at the

Re: OpenWL/DL - two foundation libraries for building a cross-platform GUI with non-C++ languages

2019-04-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-04-12 11:47, DanielG wrote: - OpenWL/DL aren't designed for games or insane frame rates. I *do* think a smooth, 60fps experience is worth shooting for, but because it's CPU-bound with Quartz2D on Mac, and Cairo on Linux, that will depend entirely on the user's resolution / CPU. (But

Re: OpenWL/DL - two foundation libraries for building a cross-platform GUI with non-C++ languages

2019-04-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-04-12 08:45, DanielG wrote: These aren't written in D, but they are *for* D (or any other non-C++ language in need of its own canonical, language-native GUI). They export a C API for maximum ease of use. May I ask why? -- /Jacob Carlborg

Re: DC v1.0.0 - cross-platform D compiler install management tool

2019-04-02 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-04-02 13:49, Bastiaan Veelo wrote: So thank you. You're welcome :) -- /Jacob Carlborg

Re: DC v1.0.0 - cross-platform D compiler install management tool

2019-04-01 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-04-01 12:31, Mihails wrote: Nice, I must admit I have had my mind set about DVM as something that has existed for years and wasn't quite the right thing. Had no idea you kept improving it lately. Yeah, I thought it was time to fix one or two bugs. -- /Jacob Carlborg

Re: DC v1.0.0 - cross-platform D compiler install management tool

2019-04-01 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-31 13:39, Mihails wrote: Glad to announce first version of https://github.com/mihails-strasuns/dc suitable for public destruction. As for the destruction: * Saying it's cross-platform and only supporting two platforms is stretching it a bit. * Using the "tar" [1] command line

Re: DC v1.0.0 - cross-platform D compiler install management tool

2019-03-31 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-31 13:39, Mihails wrote: Glad to announce first version of https://github.com/mihails-strasuns/dc suitable for public destruction. It is a small utility originally created to fulfill similar purpose to existing `install.sh` script but also with Windows support. It's kind of funny

DVM - D Version Manager 0.5.0

2019-03-31 Thread Jacob Carlborg via Digitalmars-d-announce
I would like to announce a new release of DVM, 0.5.0. This release contains two important bug fixes: making the Dub binary executable and downloading the latest compiler, i.e. the `-l` flag now works again. The release and binaries are available here [1]. I might upload a FreeBSD binary

Re: DC v1.0.0 - cross-platform D compiler install management tool

2019-03-31 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-31 13:39, Mihails wrote: Contrary to `install.sh` and DVM approach, DC changes active compiler globally instead of a current shell context only. FYI, DVM allows to set the globally active compiler as well, using "dvm use -d". This is known as the default compiler. These days I

Re: DLP - D Language Processing 0.1.0

2019-03-20 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-20 14:12, Stefan Koch wrote: Functions without bodies cannot be considered leaf functions as there are declarations which may call. I thought about adding a flag to control if functions without a body should be considered a leaf function or not. This tool is mostly intended for

DLP - D Language Processing 0.1.0

2019-03-18 Thread Jacob Carlborg via Digitalmars-d-announce
I would like to announce a new release of DLP, 0.1.0. For those not familiar with DLP, DLP is a tool collecting commands/tasks related to processing the D programming language. It uses the DMD frontend as a library to process D code. Currently it has only one command, "leaf-functions", that

Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come

2019-03-18 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-18 15:49, Andrea Fontana wrote: Is v2.0xx compiled with v2.0xx-1 or with v2.0xx itself? With v2.0xx-1, as far as I understand. -- /Jacob Carlborg

Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come

2019-03-18 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-17 21:09, Per Nordlöw wrote: I thought that already is the case... No, the official binaries are built with DMD as the host compiler. -- /Jacob Carlborg

Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come

2019-03-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-16 22:23, Per Nordlöw wrote: After reading https://forum.dlang.org/thread/nlhybmioaoxkydicm...@forum.dlang.org it's about time I announce my little Python snippet that exercises the compilation speed of D and other languages with a superficial test program generator at

Re: Containerize Your D Server Application

2019-03-14 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-14 13:38, Mike Parker wrote: One of the items on my list of "things I'd like to do if I only had the time" is to create a Mud server with D and deploy it with Docker. Just for kicks. If I ever do get around to it, my ignorance of all things Docker will not be the time sink it could

Re: Blog post on the joys of hand-translating C++'s std::function to D

2019-03-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-07 16:45, Atila Neves wrote: C++ is hard: https://atilaoncode.blog/2019/03/07/the-joys-of-translating-cs-stdfunction-to-d/ Using ".mangleof" and "pragma(mangle)" on the same symbol looks like something that could easily break. -- /Jacob Carlborg

Re: Release D 2.085.0

2019-03-03 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-02 19:19, Martin Nowak wrote: Glad to announce D 2.085.0, ♥ to the 49 contributors. This release comes with context-aware assertion messages, lower GC memory usage, a precise GC, support to link custom GCs, lots of Objective-C improvements¹, and toolchainRequirements for dub. This

Re: Release D 2.085.0

2019-03-03 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-03-02 20:44, Basile B. wrote: GoodBye Darwin 32. I wonder if the issues specific to this platform should be all closed as WONTFIX or left as is (example : https://issues.dlang.org/show_bug.cgi?id=13457) I think Walter has mentioned in the past that bugs like this might be an

Re: DIP 1018--The Copy Constructor--Formal Review

2019-02-27 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-02-26 12:07, Walter Bright wrote: It hasn't been approved yet, and please start another thread if you want to discuss it. You have approved the pull request. -- /Jacob Carlborg

Re: DIP 1018--The Copy Constructor--Formal Review

2019-02-26 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-02-25 01:38, Walter Bright wrote: D's const has teeth. Nothing can be modified through T. What about the __mutable proposal [1]? [1] https://github.com/dlang/dmd/pull/8315 -- /Jacob Carlborg

Re: DIP 1018--The Copy Constructor--Formal Review

2019-02-26 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-02-25 21:23, Andrei Alexandrescu wrote: Jacob, are there amends you need to make to the DIP? No, I'm talking about the process in general. -- /Jacob Carlborg

Re: DIP 1018--The Copy Constructor--Formal Review

2019-02-25 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-02-25 20:24, Mike Parker wrote: From the process document: “the DIP Manager or the Language Maintainers may allow for exceptions which waive requirements or responsibilities at their discretion.” Having it documented doesn't make it less flawed. -- /Jacob Carlborg

Re: DIP 1018--The Copy Constructor--Formal Review

2019-02-25 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-02-24 11:46, Mike Parker wrote: Walter and Andrei have requested the Final Review round be dropped for DIP 1018, "The Copy Constructor", and have given it their formal approval. They consider copy constructors a critical feature for the language. Walter provided feedback on Razvan's

Re: DIP 1018--The Copy Constructor--Formal Review

2019-02-25 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-02-25 17:31, Andrei Alexandrescu wrote: The proposers (Razvan and myself) and Walter (the reviewer) do not know how to make DIP 1018 better. That shouldn't justify accepting a DIP that might contain problems. But of course, if you don't think there are any problems. -- /Jacob

Re: taggedalgebraic 0.11.0 adds TaggedUnion

2019-02-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-02-22 18:09, Sönke Ludwig wrote: TaggedUnion is the low level tagged union functionality separated out from TaggedAlgebraic. Because it doesn't support transparent access of methods and operators of the contained value, it is able to provide a number of convenience features. On top of

New test runner to test DMD

2019-02-12 Thread Jacob Carlborg via Digitalmars-d-announce
This post is mostly directed to DMD contributors. Currently most of the tests for DMD are end-to-end like tests. The test invokes the compiler as a new process and the test asserts the exit code and/or error messages outputted by the compiler. This means that basically for each test file a

Re: DConf 2019 Early-Bird Registration Now Open

2019-01-30 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-28 15:07, Mike Parker wrote: I've published a post on the blog with updates about DConf 2019 registrations, the invited keynote speaker, the Symmetry Autumn of Code finalist, and the previously announced fundraiser for a new forum server. Early-bird registrations are $340 again

Re: GtkD Blog Now Up and Running

2019-01-30 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-30 11:35, Ron Tarrant wrote: You said you're on OSX, right? Is it possible that dub just isn't as cooperative on Windows 10? Of course, if you can see something in this output that hints at a fix, please let me know. It's Optlink being stupid as always. If you want to figure out

Re: GtkD Blog Now Up and Running

2019-01-30 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-30 03:00, Neia Neutuladh wrote: Might I recommend instead: dependency "gtk-d" version="3.8.5" This depends on gtk-d 3.8.5 and only that version. If there is a breaking change in 3.8.6 despite semantic versioning, your code keeps working. In libraries, I prefer using ~> to

Re: D-lighted, I'm Sure

2019-01-20 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-19 23:13, Ron Tarrant wrote: Wow. That's a lot to think about. Thanks, Jacob. Looks like I've got my weekend reading all lined up. :) :) -- /Jacob Carlborg

Re: D-lighted, I'm Sure

2019-01-18 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-18 21:23, H. S. Teoh wrote: Haha, that's just an old example from back in the bad ole days where NTP syncing is rare, and everyone's PC is slightly off anywhere from seconds to minutes (or if it's really badly-managed, hours, or maybe the wrong timezone or whatever). I had one of

Re: D-lighted, I'm Sure

2019-01-18 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-18 15:29, Mike Parker wrote: Not long ago, in my retrospective on the D Blog in 2018, I invited folks to write about their first impressions of D. Ron Tarrant, who you may have seen in the Lear forum, answered the call. The result is the latest post on the blog, the first guest post

Re: B Revzin - if const expr isn't broken (was Re: My Meeting C++ Keynote video is now available)

2019-01-18 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-18 20:28, Stefan Koch wrote: The only difference that type-functions have from what you describe is that it does not need to occupy a keyword 'type'. You're using "alias" instead of my "type" keyword? -- /Jacob Carlborg

Re: B Revzin - if const expr isn't broken (was Re: My Meeting C++ Keynote video is now available)

2019-01-18 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-17 23:44, H. S. Teoh wrote: Interesting. Is it possible to assign a "fake" mangle to type functions that never actually gets emitted into the object code, but just enough to make various internal compiler stuff that needs to know the mangle work properly? Not sure that would be

Re: B Revzin - if const expr isn't broken (was Re: My Meeting C++ Keynote video is now available)

2019-01-18 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-17 23:44, H. S. Teoh wrote: YES! This is the way it should be. Type-tuples become first class citizens, and you can pass them around to functions and return them from functions No no no, not only type-tuples, you want types to be first class citizens. This makes it possible to

Re: My Meeting C++ Keynote video is now available

2019-01-16 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-16 06:32, Walter Bright wrote: You deliberately wrote that, and I'm confident you'd never try to pass that off as good work. Yes. I'm showing it's possible to write bad code in all programming languages with all (most) features. Macros are not required for that. With macros,

Re: My Meeting C++ Keynote video is now available

2019-01-16 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-16 08:08, Nicholas Wilson wrote: I'm pretty sure Jacob is talking about a completely different type of macro (i.e. not textual substitution), AST macros. Yeah, I should come up with a new name than "macro". A soon as Walter sees the word "macro", regardless of its meaning in the

Re: My Meeting C++ Keynote video is now available

2019-01-15 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-15 12:53, Walter Bright wrote: Template expressions can't, either, but what they do is hijack the syntax for completely different purposes. The poor reader will be looking at code, and it will behave nothing like the syntax suggests. Ah, you mean like this: struct MyInt {

Re: My Meeting C++ Keynote video is now available

2019-01-15 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-14 23:52, Walter Bright wrote: On 1/14/2019 10:49 AM, Jacob Carlborg wrote: But Ddoc has macros ;) Indeed it does. But the macros cannot be used to create syntax, and there is no token concatenation. Macros cannot define other macros. The AST macros I've been talking about

Re: My Meeting C++ Keynote video is now available

2019-01-14 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-14 15:42, Steven Schveighoffer wrote: That's a bad example :) The clear answer is mysql-native, which is what vibe.d recommends. Exactly, and I don't need five minutes for that. Five seconds is enough :) -- /Jacob Carlborg

Re: My Meeting C++ Keynote video is now available

2019-01-14 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-01-14 08:50, Walter Bright wrote: Interesting cites, which provide a basis for why I've opposed AST macros, and why Ddoc and unittest are builtin (and a few other things). But Ddoc has macros ;) -- /Jacob Carlborg

Re: LDC "nightly" or latest CI build

2018-12-25 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-23 19:54, Johan Engelen wrote: Hi all, The dlang.org install.sh script is now able to install the latest successful CI build of LDC master, called "ldc-latest-ci" ! That should make it easier for you to test the newest of the newest of LDC master. On Travis, you can use "d:

Re: Fuzzed - a program to find DMDFE parser crash

2018-12-16 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-15 12:29, Basile B. wrote: While the D front end is not yet used to make tools I've used it to make a tool, DLP [1]. [1] http://github.com/jacob-carlborg/dlp -- /Jacob Carlborg

Re: Fuzzed - a program to find DMDFE parser crash

2018-12-16 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-15 16:37, Basile B. wrote: This poisoning kills the interest of using a fuzzer. 99% of the crashes will be in hdrgen. Does that matter as long as the bug is found? -- /Jacob Carlborg

Re: OFFTOPIC Re: I've just released Vasaro

2018-12-13 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-13 00:36, Adam D. Ruppe wrote: So I got out my code that (with your help about a year ago) was doing a hello world window and menu, but now it doesn't compile, complaining about a hidden Class clashing with my Class. Hmm, it was not my intention for that to be exposed yet. You

Re: OFFTOPIC Re: I've just released Vasaro

2018-12-13 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-12 15:52, Adam D. Ruppe wrote: On Tuesday, 11 December 2018 at 10:19:38 UTC, Jacob Carlborg wrote: Which year is the machine from? It should say that after the model. Oh, I had to click "more info". MacBook Air 11-inch, Mid 2011 So I guess it is quite old. I have tried to do the

Re: MORE OFFTOPIC Re: I've just released Vasaro

2018-12-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-11 13:23, Iain Buclaw wrote: Dwarf data is emitted on OSX. The section where to find all debug symbols is prefixed by "__DWARF". Even DMD does this on OSX. ;-) Yes, but the linker strips any sections with the "S_ATTR_DEBUG" flag, which includes the everything in the "__DWARF"

Re: MORE OFFTOPIC Re: I've just released Vasaro

2018-12-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-11 12:13, Iain Buclaw wrote: We're covered by libbacktrace, rather than tthe druntime implementation. https://github.com/gcc-mirror/gcc/blob/master/libbacktrace/README Looks like Mach-O is not supported. It looks like it uses DWARF, but I don't know how you plan to have that

Re: MORE OFFTOPIC Re: I've just released Vasaro

2018-12-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-10 12:26, Iain Buclaw wrote: Is there any consideration apart from section/tls support? There's the backtrace implementation for exceptions as well, "rt.backtrace". I had to slight modify the DMD backend to get that to work the same as it does on Linux and FreeBSD. I've

Re: OFFTOPIC Re: I've just released Vasaro

2018-12-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-10 14:55, Adam D. Ruppe wrote: Ah, there it is: 10.9.5, 1.6 GhZ Core i5, 2 GB. (c) 2016. Actually not that old. Which year is the machine from? It should say that after the model. For me it says: "MacBook (Retina, 12-inch, Early 2015)". If it's from mid 2012 or newer you can

Re: OFFTOPIC Re: I've just released Vasaro

2018-12-10 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-08 18:01, Adam D. Ruppe wrote: The one I have is a macbook air with a broken, but usable screen (I got it for free yay). I don't know how old it is, I *think* it is a 2013 model. If you click on the Apple menu in the top left corner and choose "About This Mac", it will say which

Re: I've just released Vasaro

2018-12-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-07 09:05, Andrea Fontana wrote: Simpledisplay works fine for me (and it works better than sdl for mouse input) but it requires X11 on macOS if i'm right: macOS' users don't like X11 (and this force users to install a big dependency) Yes, X11 is definitively not acceptable on

Re: DLP identify leaf functions

2018-12-04 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-02 17:57, welkam wrote: What a timing. I am working on (slowly) on a tool that would get all struct and class declarations and for each of them get functions in which they are used. Then combine them with profiling data to find data structures that are hot and how changing them

Re: DLP identify leaf functions

2018-12-02 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-01 13:31, Anonymouse wrote: Looks interesting. My project requires a bunch of version identifiers to actually compile. Is there a way to pass these, or ideally a way to make it parse them from dub.{json,sdl}? No, there's currently no way. The next step would be to allow to pass

Re: DLP identify leaf functions

2018-12-01 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-12-01 11:13, Sebastiaan Koppe wrote: Really nice! I have some ideas about data-flow analysis and this allows some easy experimenting without forking the compiler. Thanks. I've been thinking the same about experimenting with the compiler. -- /Jacob Carlborg

DLP identify leaf functions

2018-11-30 Thread Jacob Carlborg via Digitalmars-d-announce
I would like to announce a new project I've started, called DLP (D Language Processing). Currently it's quite experimental but the idea is that it would contain a collection of commands for inspecting D code in various ways. It uses the DMD frontend as a library (the Dub package) to process D

Re: LDC 1.13.0-beta2

2018-11-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-21 11:43, kinke wrote: Glad to announce the second beta for LDC 1.13: * Based on D 2.083.0+ (yesterday's DMD stable). * The Windows packages are now fully self-sufficient, i.e., a Visual Studio/C++ Build Tools installation isn't required anymore. * Substantial debug info

Re: D compilation is too slow and I am forking the compiler

2018-11-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-21 11:56, Walter Bright wrote: Wouldn't it be awesome to have the lexing/parsing of the imports all done in parallel? The main difficulty in getting that to work is dealing with the shared string table. Would it be possible to have one string table per thread and merge them to

Re: DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement

2018-11-14 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-14 03:45, Walter Bright wrote: On 11/13/2018 3:29 PM, Rubn wrote: enum : int { a = 127 } To reiterate, this does not create an anonymous enum type. 'a' is typed as 'int'. Technically, `a` is a manifest constant of type `int` with a value of `127`. > enum A : int { a = 127 } `a`

Re: DMD backend now in D

2018-11-12 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-12 00:40, Walter Bright wrote: As: https://github.com/dlang/dmd/pull/8946 removes the header files for the old C++ code! BTW, this is great news :) -- /Jacob Carlborg

Re: DMD backend now in D

2018-11-12 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-12 03:37, Walter Bright wrote: On 11/11/2018 3:58 PM, Mike Franklin wrote: This is a significant milestone. Congratulations, Walter! Many people helped out with this, too. There are still a few .c files in https://github.com/dlang/dmd/tree/master/src/dmd/backend, so what's the

Re: DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement

2018-11-12 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-12 10:45, Mike Parker wrote: DIP 1015, "Deprecation and removal of implicit conversion from integer and character literals to bool, has been rejected, primarily on the grounds that it is factually incorrect in treating bool as a type distinct from other integral types. The TL;DR is

Re: Profiling DMD's Compilation Time with dmdprof

2018-11-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-08 18:25, Jacob Carlborg wrote: This is my result on macOS: $ $ make -f posix.mak clean $ time make -f posix.mak -j 16 real    0m3.127s user    0m5.478s sys    0m1.686s 21 seconds on a Windows 10 virtual machine compiling using the win32.mak file. -- /Jacob Carlborg

Re: Profiling DMD's Compilation Time with dmdprof

2018-11-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-08 05:16, Manu wrote: 4 seconds? That's just untrue. D is actually kinda slow these days... In my experience it's slower than modern C++ compilers by quite a lot. This is my result on macOS: $ $ make -f posix.mak clean $ time make -f posix.mak -j 16 real0m3.127s user

Re: Backend nearly entirely converted to D

2018-11-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-08 18:23, welkam wrote: but you are not against changing for loops to foreach that add almost nothing to code readability and only look better. Changing to a foreach loop definitely adds to readability and to be able to better understand the code. If you read the "foreach"

Re: Backend nearly entirely converted to D

2018-11-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-07 23:58, Walter Bright wrote: Slides and video link:  http://nwcpp.org/october-2018.html On 11/7/2018 2:08 PM, H. S. Teoh wrote: I don't speak for the compiler devs, but IMO, one-letter variables are OK if they are local, and cover a relatively small scope.  Java-style verbosity

Re: LDC 1.13.0-beta1

2018-11-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-07 16:45, kinke wrote: I upgraded it one day after releasing beta1, as I sadly forgot to check for a newer dub version before publishing. I.e., the CI builds already feature dub v1.12. Cool, thanks. -- /Jacob Carlborg

Re: Backend nearly entirely converted to D

2018-11-07 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-06 23:12, Walter Bright wrote: The more immediate benefit is to get rid of all the parallel .h files, which were a constant source of bugs when they didn't match the .d versions. Still need some of those for GDC and LDC. Until we have a tool that can automatically generate them.

Re: LDC 1.13.0-beta1

2018-11-07 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-11-02 22:04, kinke wrote: Glad to announce the first beta for LDC 1.13: * Based on D 2.083.0. * The Windows packages are now fully self-sufficient, i.e., a Visual Studio/C++ Build Tools installation isn't required anymore. * Substantial debug info improvements for GDB. Full release

Re: Wed Oct 7 - Avoiding Code Smells by Walter Bright

2018-10-16 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-10-15 23:23, Walter Bright wrote: I'm giving a presentation at: http://nwcpp.org/ See you there! Hmm, it doesn't mention your name until the speaker bio. -- /Jacob Carlborg

Re: RFC: initial release of dtoh

2018-08-25 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-08-24 12:09, Uknown wrote: This is all very nice. I agree that this kind of thing should be a part of the compiler, but I think it should be a compiler plugin. If dmd had compiler plugins, I think stuff like this and `dpp` would be much nicer to use. We have the front end available

  1   2   3   4   5   6   7   >