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

Re: RFC: initial release of dtoh

2018-08-22 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-08-22 13:01, Mihails wrote: https://gitlab.com/mihails.strasuns/dtoh Tool to grab all `extern(C)` declarations in a D module and generate C header file based on it. Partially addresses https://issues.dlang.org/show_bug.cgi?id=9285 but is intended to be much more simple (no C++, no

Re: DVM - D Version Manager 0.4.4

2018-07-04 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-07-03 03:34, Tony wrote: Thanks, that worked! It doesn't announce where it put the compiler, which turns out to be: C:\Users\\AppData\Roaming\dvm\ You're not supposed to know where it puts the compiler. You're activating it with "dvm use " where "" is the version you want to

Re: iopipe v0.1.0 - now with Windows support!

2018-06-21 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-06-19 15:04, Steven Schveighoffer wrote: I just set up travis to do the Linux/mac testing. I need to add appveyor as well, but haven't gotten to it. I'm a complete CI noob, so I'm learning slowly :) To save you some trouble, AppVeyor supports both a YAML, like Travis, and a web UI to

Re: iopipe v0.1.0 - now with Windows support!

2018-06-19 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-06-11 16:45, Steven Schveighoffer wrote: I just pushed v0.1.1 -- I realized that I never *actually* compiled on windows, and there were a couple things that didn't work. Note: the examples still don't work as they rely on openDev, which is only available on Posix systems now. I need

Re: Looks like Digital Mars C++ is on the front page of HN at the moment!

2018-05-25 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-05-24 22:06, Basile B. wrote: Ahhh i was forgetting, the linker... The LLVM linker, LLD, works pretty well on Windows. -- /Jacob Carlborg

Re: unit-threaded v0.7.45 - now with more fluency

2018-05-09 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-05-08 09:07, Nick Sabalausky (Abscissa) wrote: The question is: Why "should.equal" instead of "shouldEqual"? The dot only seems there to be cute. It scales better. This way only one "should" function is needed and one "not" function. Otherwise there would be a lot of duplication,

Re: The dlang-community releases DCD 0.9.3 and D-Scanner 0.5.2

2018-04-27 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-04-27 09:43, baz@dlang-community wrote: DCD 0.9.4 is available now. Same link. How come there are no binaries for macOS? Seems to be a release script and Travis CI configuration for macOS. -- /Jacob Carlborg

Re: Pre-DConf Meetup on May 1

2018-04-27 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-04-25 16:13, Seb wrote: Hi all, I hope you are all looking forward to DConf. We (Stefan, Dragos and I) have very good news for you. Our next D Munich Meetup will coincide with DConf to give our local community who can't join DConf an opportunity to meetup all the rockstars from the D

Re: LDC 1.9.0 beta

2018-04-26 Thread Jacob Carlborg via Digitalmars-d-announce
On Wednesday, 25 April 2018 at 13:36:50 UTC, Rel wrote: This is nice to hear, but just to make it clear, what steps do I need to take to for example build a Mac OSX binary on Windows or Linux? Can I just download libs from prebuilt LDC for Mac OSX, put them somewhere in my current LDC

Re: #include C headers in D code

2018-04-16 Thread Jacob Carlborg via Digitalmars-d-announce
On Monday, 16 April 2018 at 11:20:51 UTC, Atila Neves wrote: You can use the C macros in the headers that you #include in your dpp file. dstep has a lot of code for translating macros. I don't want to translate macros at all, but it's deeply intertwined with translating everything else.

Re: #include C headers in D code

2018-04-13 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-04-13 12:33, Atila Neves wrote: I'll have to take a look at Jacob's configure.d to find out where libclang is installed on Windows. Unfortunately the configuration script is only for Posix. -- /Jacob Carlborg

Re: #include C headers in D code

2018-04-11 Thread Jacob Carlborg via Digitalmars-d-announce
On Monday, 9 April 2018 at 11:03:48 UTC, Atila Neves wrote: Here's my blog post about my project that allows directly #including C headers in D* I don't know the exact details of your project but can't you just: 1. Copy the includes 2. Paste them into a C file 3. Run DStep on the C file 4.

Re: #include C headers in D code

2018-04-11 Thread Jacob Carlborg via Digitalmars-d-announce
On Monday, 9 April 2018 at 11:03:48 UTC, Atila Neves wrote: Here's my blog post about my project that allows directly #including C headers in D* BTW, you can steal the config script [1] from DStep to help detect locations of LLVM/libclang. It also supports static linking. Supports manually

Re: #include C headers in D code

2018-04-11 Thread Jacob Carlborg via Digitalmars-d-announce
On Monday, 9 April 2018 at 11:03:48 UTC, Atila Neves wrote: Here's my blog post about my project that allows directly #including C headers in D* https://atilanevesoncode.wordpress.com/2018/04/09/include-c-headers-in-d-code/ How do you deal with macros containing invalid D code, i.e.

Re: #include C headers in D code

2018-04-11 Thread Jacob Carlborg via Digitalmars-d-announce
On Tuesday, 10 April 2018 at 23:44:46 UTC, Atila Neves wrote: The beauty of using libclang is that name mangling issues don't exist. :) How is that not going to be an issue? Are you adding `pragma(mangle)` everywhere? -- /Jacob Carlborg

Re: DIP 1009 (Add Expression-Based Contract Syntax) Accepted

2018-04-07 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-04-06 14:26, Mike Parker wrote: Congratulations to Zach Tollen and everyone who worked on DIP 1009. It took a painful amount of time to get it through the process, but it had finally come out of the other side with an approval. The proposal itself was approved early on, but it needed

Re: Dockerfile with cross-compiler targeting Windows x64

2018-04-05 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-04-05 17:22, Joakim wrote: Nice, rather than downloading the pre-built ldc for Windows and extracting its runtime, you may be interested in cross-compiling the stdlib yourself.  The only obstacle may be that the build requires a C cross-compiler for one or two C files, but clang may

Dockerfile with cross-compiler targeting Windows x64

2018-04-05 Thread Jacob Carlborg via Digitalmars-d-announce
I've created a Dockerfile [1] containing LDC, configured for cross-compiling targeting Windows x64. It's based on the instructions provided by kinke here [2]. Note, it downloads the MSVC libs from Dropbox. [1] https://github.com/jacob-carlborg/docker-ldc-windows/blob/master/Dockerfile [2]

Re: D_vs_nim: git repo to compare features of D vs nim and help migrating code bw them. PRs welcome

2018-04-01 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-03-30 08:53, Dmitry Olshansky wrote: With the frame of mind prevalent in our Industry I really want to have compiler includibg codegen as a bunch of library components. Then there is no problem innovating while people argue over things “allowed” for a compiler, or a linker, or a

Re: D_vs_nim: git repo to compare features of D vs nim and help migrating code bw them. PRs welcome

2018-03-29 Thread Jacob Carlborg via Digitalmars-d-announce
On Wednesday, 28 March 2018 at 23:25:09 UTC, Walter Bright wrote: It's expected with a build tool. Not a compiler. It depends. The compilers are doing more and more work these days. Initially, DMD could not build libraries, now it can. DMD does not output assembly files and runs an

Re: D_vs_nim: git repo to compare features of D vs nim and help migrating code bw them. PRs welcome

2018-03-28 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-03-27 23:49, Walter Bright wrote: The act of compiling a buggy program not influence the global state of the computer. It should not be necessary to vet code downloaded from the internet before even compiling it to ensure it doesn't mess up the system. There's usually nothing that

Re: Why think unit tests should be in their own source code hierarchy instead of side-by-side

2018-03-24 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-03-23 21:43, H. S. Teoh wrote: Yep. As I mentioned elsewhere, recently I've had to resort to external testing for one of my projects, and I'm still working on that right now. And already, I'm seeing a liability: rather than quickly locating a unittest immediately following a particular

Re: Why think unit tests should be in their own source code hierarchy instead of side-by-side

2018-03-22 Thread Jacob Carlborg via Digitalmars-d-announce
On Thursday, 22 March 2018 at 11:00:31 UTC, Atila Neves wrote: Direct link: https://atilanevesoncode.wordpress.com/2018/03/22/keep-d-unittests-separated-from-production-code/ I completely agree. Although my reason is mostly because there will be too much code in a single file if the regular

Re: Release D 2.079.0

2018-03-09 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-03-08 19:21, Martin Nowak wrote: Also this offer still stands https://forum.dlang.org/post/drcekmxvfszpwifbu...@forum.dlang.org Who will decide if semver can/will be used? -- /Jacob Carlborg

Re: DWT API Documentation now on dpldocs.info

2018-03-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-03-08 14:51, Adam D. Ruppe wrote: You need to go all to the way to the top level by clicking the topmost link on the left nav: http://dwt.dpldocs.info/org.html http://dwt.dpldocs.info/java.html Aha, I see. * No inheritance chain * No implemented interfaces They are in the

Re: Official Dub package for DWT

2018-03-08 Thread Jacob Carlborg via Digitalmars-d-announce
On Thursday, 8 March 2018 at 09:17:53 UTC, IM wrote: This is great, thanks! Any plans to make it link with gtk3 instead of 2? I remember gtk2 had issues with HiDPI support. DWT is a port of the Java library SWT. This particular version, 3.4, of SWT only supports GTK2. Later versions of SWT

Re: DWT API Documentation now on dpldocs.info

2018-03-08 Thread Jacob Carlborg via Digitalmars-d-announce
On Thursday, 8 March 2018 at 01:21:44 UTC, Adam D. Ruppe wrote: As some of you might know, DWT is a D port of Java's SWT. It is as thus nearly identical and you can use Java's documentation with very little effort - copy/paste of Java examples almost just work as D too. But, the eclipse docs

Re: DWT API Documentation now on dpldocs.info

2018-03-08 Thread Jacob Carlborg via Digitalmars-d-announce
On Thursday, 8 March 2018 at 01:21:44 UTC, Adam D. Ruppe wrote: I don't have a great entry point to the docs, so it will just go to the Display class... but take a look: I would recommend the "swt" package [1] as an entry point. Or we could add some documentation to the "all" or "std"

Re: Beta 2.079.0

2018-02-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-02-19 11:49, Martin Nowak wrote: Glad to announce the first beta for the 2.079.0 release, ♥ to the 77 contributors for this release. The following is a regression that breaks DWT: extern (C) void foo(int) { } extern (C) void foo(double) { } The above used to compile but now results

  1   2   3   4   5   6   7   >