Re: GDC compilation bloat?

2018-09-09 Thread David Nadlinger via D.gnu
On Saturday, 8 September 2018 at 14:44:36 UTC, Kyle De'Vir wrote: Also, it would be nice to officially document this somewhere. Or is still considered an unstable feature? LDC seems to dynamically link by default, now that I examine it. LDC as shipped in the upstream binary packages doesn't li

Re: Optimization of proposed lambda expression for upcoming DIP

2017-11-09 Thread David Nadlinger via D.gnu
On Friday, 10 November 2017 at 02:26:46 UTC, Michael V. Franklin wrote: `_Dmain` is equivalent, as I expected, but what's going on with `main`? Anything to be concerned about? I think these are just the getter and setter implementation bodies. (Note that main ends with an unconditional jmp to

Re: Defuzzed: a fuzzer for D compilers

2016-04-03 Thread David Nadlinger via D.gnu
On Saturday, 2 April 2016 at 17:29:53 UTC, Sebastien Alaiwan wrote: Please let me know if you think this could be a valuable tool. I am really thrilled to see effort being put towards more testing tools, and I'm sure that most other LDC devs are as well. There are so many opportunities which

Re: GSoC

2016-03-11 Thread David Nadlinger via D.gnu
On Friday, 11 March 2016 at 20:50:14 UTC, Saurabh Mishra wrote: Regarding the GSoC application, please guide me on how to get started. Have a look at the official GSoC student guide: http://write.flossmanuals.net/gsocstudentguide While the community is certainly happy to help with any specif

Re: How to say there is a struct of this type at this memory location?

2016-03-07 Thread David Nadlinger via D.gnu
On Monday, 7 March 2016 at 21:12:02 UTC, Taylor Hillegeist wrote: switched from LDC because i couldn't get the section attribute working on 0.14. LDC 0.14 is ancient at this point. What you are looking for is @ldc.attributes.section("..."), which is available from LDC 0.17.0: https://wiki.dl

Re: std.string.lineSplitter is missing in the GDC compiler

2016-02-05 Thread David Nadlinger via D.gnu
On Friday, 5 February 2016 at 02:48:31 UTC, Haiwei wrote: I found there is no lineSplitter in the std/string.d in the gdc library. Is that a bug? IIRC lineSplitter was only introduced in Phobos 2.067 or 2.068. GDC probably just hasn't caught up yet. — David

Re: --gc-sections and GDC

2014-07-17 Thread David Nadlinger via D.gnu
On Wednesday, 16 July 2014 at 20:05:37 UTC, Johannes Pfau wrote: Please don't start working on a D specific linker script, cause I'm already working on that ;-) I've only done moduleinfo so far, but TLS is next, then shared library support. Instead of a fully custom linker script, I'd go for e

Re: This week's experiment build gdc with tls disabled.

2013-12-20 Thread David Nadlinger
On Friday, 20 December 2013 at 14:55:46 UTC, Iain Buclaw wrote: It should be possible if it's druntime handling all module loading (if you circumvent the module load handlers, don't expect it to work properly). eg: loadModule(mod); // .ctors are ran and modules self register themselves to 'mo

Re: This week's experiment build gdc with tls disabled.

2013-12-20 Thread David Nadlinger
On Friday, 20 December 2013 at 10:54:56 UTC, Iain Buclaw wrote: As for module discovery, we already generate this in the GDC backend, which makes it then the job of runtime to pick-up, sort and run the ctors on all modules: @attribute("constructor") void __modinit() { extern (C) __gshared Mo

Re: This week's experiment build gdc with tls disabled.

2013-12-19 Thread David Nadlinger
On Wednesday, 18 December 2013 at 15:39:30 UTC, Johannes Pfau wrote: I hope I'm not talking bullshit here as I'm not 100% sure what's meant with 'module discovery'. But if the question is how to get all ModuleInfos in a library, […] Yes, this was the idea. We can then access the bracket-sym

Re: This week's experiment build gdc with tls disabled.

2013-12-17 Thread David Nadlinger
On Tuesday, 17 December 2013 at 20:07:41 UTC, Iain Buclaw wrote: The hidden subtext that you didn't understand being, I'm holding back on Martin's patches for now. That subtext isn't exactly hidden, given the first sentence in your first post. ;) Do you have a plan yet regarding how to imple

Re: This week's experiment build gdc with tls disabled.

2013-12-17 Thread David Nadlinger
On Tuesday, 17 December 2013 at 19:09:31 UTC, Iain Buclaw wrote: Native TLS support on linux will have to wait a while before I get that working... (but you could always build with --disable-tls) Wait, so GDC doesn't (entirely) support native TLS on Linux?! Or are you just talking about share

Re: gdc on linux does not install druntime's .d files?

2013-10-17 Thread David Nadlinger
On Thursday, 17 October 2013 at 22:15:07 UTC, Iain Buclaw wrote: I'll have to re-check this. At the last time I looked, the interface file generation part of the front end did not omit the bodies of functions defined in modules. It does now (unless -inline is given for DMD, or -Hkeep-all-bod

Re: gdc on linux does not install druntime's .d files?

2013-10-17 Thread David Nadlinger
On Thursday, 17 October 2013 at 09:10:43 UTC, Johannes Pfau wrote: DMD seems to ship .d include files for druntime now, they're no longer shipping the .di files. The archlinux packages even do this for gdc. Some stuff now depends on this, as having the source code available allows more stuff t

Re: Generated binary size

2013-09-15 Thread David Nadlinger
On Sunday, 15 September 2013 at 21:52:29 UTC, David Nadlinger wrote: LDC does not strip the library into s/strip/split/ David

Re: Generated binary size

2013-09-15 Thread David Nadlinger
On Friday, 13 September 2013 at 19:48:12 UTC, Joseph Rushton Wakeling wrote: Is there any way in which to ensure that the build splits Phobos up into library and debugging symbols à la LDC? Could be useful, no? LDC does not strip the library into a release build and debugging symbols (yet) –

Re: [Bug 60] GDC support - X32, X86, X86_64

2013-06-13 Thread David Nadlinger
On Thursday, 13 June 2013 at 17:07:14 UTC, Iain Buclaw wrote: Now fully passing (prior to 2.063 merge). Just curious: Does this include druntime, Phobos, exception chaining, …? David

Re: wiki woes

2013-06-02 Thread David Nadlinger
On Sunday, 2 June 2013 at 15:07:30 UTC, Iain Buclaw wrote: Evidently, putting up a wiki in MoinMoin was a bad idea, as anti-spam is next to useless and it would probably not be very beneficial to prevent people documenting from creating new pages. So, to sanitise the current situation but sti

Re: Getting tls symbols out of the compiler.

2013-06-01 Thread David Nadlinger
On Friday, 31 May 2013 at 07:58:25 UTC, Jacob Carlborg wrote: void dyld_enumerate_tlv_storage(dyld_tlv_state_change_handler handler) If I recall correctly, LDC is using "dyld_enumerate_tlv_storage". Yep. It's a bit cumbersome to handle, though, as it relies on Blocks support: https://gith

Re: Changing "target" parameter via attribute

2013-05-27 Thread David Nadlinger
On Monday, 27 May 2013 at 12:02:28 UTC, Manu wrote: On 27 May 2013 21:40, Iain Buclaw wrote: Looks like the frontend rejects this - will find out whether this is a bug or intentional... Yep, I saw that coming a mile off! >_< I can't imagine any good reason why it shouldn't be supported. Ju

Re: To POD or not to POD

2013-02-13 Thread David Nadlinger
On Tuesday, 12 February 2013 at 17:45:11 UTC, Johannes Pfau wrote: OT: I think a simple constructor shouldn't prevent a type from being a POD, but that should be defined by dmd /frontend. I wouldn't spend too much time on implementing the old behavior - I think I managed to convince Walter th