Re: DConf 2018 Livestream
On Friday, 4 May 2018 at 00:09:53 UTC, Nick Sabalausky (Abscissa) wrote: On 05/03/2018 11:12 AM, Nemanja Boric wrote: On Thursday, 3 May 2018 at 12:24:16 UTC, Per Nordlöw wrote: On Wednesday, 2 May 2018 at 07:13:21 UTC, Mike Parker wrote: For those of you unable to join us in Munich, you can watch the fun online via the following link: https://www.youtube.com/user/hlmceventsgmbh I can't find Andrei's talk this morning. Was it lost? It looks like you can just watch inside last two hours window. It's working for me: https://www.youtube.com/watch?v=0UZuRNujLGQ Maybe youtube just needed some time after the original stream ended before it could do replays of the whole thing. Looks like it, it works for me now as well! This looks like to be the first day (or recorded part of it): https://www.youtube.com/watch?v=HvqsUO77FGI The second day (from your post): https://www.youtube.com/watch?v=0UZuRNujLGQ
Re: DConf 2018 Livestream
On Thursday, 3 May 2018 at 12:24:16 UTC, Per Nordlöw wrote: On Wednesday, 2 May 2018 at 07:13:21 UTC, Mike Parker wrote: For those of you unable to join us in Munich, you can watch the fun online via the following link: https://www.youtube.com/user/hlmceventsgmbh I can't find Andrei's talk this morning. Was it lost? It looks like you can just watch inside last two hours window.
Re: #include C headers in D code
On Thursday, 12 April 2018 at 11:43:51 UTC, John Colvin wrote: On Wednesday, 11 April 2018 at 18:36:56 UTC, Walter Bright wrote: On 4/11/2018 3:25 AM, Atila Neves wrote: [...] That's right. There is no general solution. One can only look for common patterns and do those. For example, #define X 15 is a common pattern and can be reliably rewritten as: enum X = 15; If I understand it correctly, dpp doesn't do that. Instead, it runs the pre-processor on the source code, just like in C, so // test.dpp #define X 15 int foo() { return X; } becomes // test.d int foo() { return 15; } The upside of this approach: all macros just work, unless they use C (not C pre-processor, C proper) features that dpp can't handle. `sizeof(...)` is a special case that is handled in dpp.cursor.macro.translateToD and more could be added. The downside: macros can't be directly used outside .dpp files. Yes, I assumed it actually "expands" the macros, whereas it actually runs the preprocessor on dpp files: https://github.com/atilaneves/dpp/issues/30 I can see it perfectly matches the Atila's usecase, and I'm curious what are the other usecases for dpp?
Re: Article: Why Const Sucks
On Tuesday, 6 March 2018 at 10:49:48 UTC, Dukc wrote: On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote (in the article): The problem is that the entire object must be fully initialized before the body of the postblit constructor is run. That means that any member variables which are const or immutable are stuck at whatever they were in the original object, because it would violate the type system to mutate them. And if an object is const or immutable, then that's all of the members. I think we have a misunderstanding here. According to that, this would not compile (imports left out): struct placeAtWorldMap { char[] title; int[2] coordsMicroDeg; this(this) { title = title.dup; } } void main() { char[] title = "London bridge".dup; const place = placeAtWorldMap(title, [51_508_038, -87_693]); const samePlace = place; "falling down ".copy(title); place.title.writeln; // falling down samePlace.title.writeln; // London bridge readln; } ...but it compiles and correctly runs, and I'm happy about that. Quote from the article: . That means that any member variables which are const or immutable are stuck at whatever they were in the original object, because it would violate the type system to mutate them Meaning that if you declare your `title` member `const char[] title`, you can't change it in the postblit, but you could set it in the constructor. ``` import std.array; import std.stdio; import std.algorithm; struct placeAtWorldMap { const char[] title; int[2] coordsMicroDeg; this(char[] name) { this.title = name.idup; // you can assign const members here } this(char[] name, int[2] coords) { this.title = name; this.coordsMicroDeg = coords; } this(this) {// title = title.dup;// doesn't work anymore } } void main() { char[] title = "London bridge".dup; const place = placeAtWorldMap(title, [51_508_038, -87_693]); const newPlace = placeAtWorldMap("Big Ben".dup); const samePlace = place; "falling down ".copy(title); place.title.writeln; // falling down samePlace.title.writeln; // London bridge newPlace.title.writeln; // Big Ben } ```
Re: Beta 2.075.0-b1
On Monday, 26 June 2017 at 11:53:57 UTC, Martin Nowak wrote: First beta for the 2.075.0 release. This release comes with various phobos additions, a repackaged std.datetime, configurable Fiber stack guard pages (now also on Posix), and optional precise scanning for the DATA/TLS segment (static data) on Windows. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.075.0.html Please report any bugs at https://issues.dlang.org - -Martin Martin, there's a PR for the changelog which needs to be merged: https://github.com/dlang/druntime/pull/1821
Re: DConf 2017 Hotel - book now!
On Thursday, 2 March 2017 at 14:44:17 UTC, Steven Schveighoffer wrote: On 3/2/17 4:33 AM, Chris wrote: [...] I used the bus + train, it was quite easy. Don't remember the exact stops, but I just used google maps to tell me the info. I recommend before you arrive, to go into google maps on your mobile device, and store the Berlin map as an offline area, especially if you do not have coverage. Also, you can pre-plan your trip if you know when your plane will arrive and figure out what the bus/train schedule is. For those not used to the transportation system there, you buy your ticket, and then validate it. If you don't validate your ticket, it doesn't count. I was thrown off that nobody really ever checked my tickets, but I guess you get into trouble if you don't have a validated ticket. 60EUR trouble ;-) Last years thread: Directions to Ibis Hotel in Berlin from Tegel Airport http://forum.dlang.org/thread/nfi108$2b02$1...@digitalmars.com
Re: DConf 2017 Hotel - book now!
On Thursday, 2 March 2017 at 15:32:35 UTC, Chris wrote: On Thursday, 2 March 2017 at 14:43:28 UTC, Jack Stouffer wrote: On Thursday, 2 March 2017 at 12:05:32 UTC, Chris wrote: Here's some good advice: https://www.tripadvisor.ie/ShowTopic-g187323-i135-k7931137-Got_ripped_off_by_taxi_driver_at_Berlin_Airport-Berlin.html No Ubers in Berlin? I don't know how trustworthy Uber is in Berlin. Anyone? I only saw Uber signs on Taxi vehicles, so I think they are just a Taxi company here (IIRC it was made illegal in Germany).
Re: DConf 2017 Hotel - book now!
On Thursday, 2 March 2017 at 11:37:17 UTC, Chris wrote: On Thursday, 2 March 2017 at 10:08:33 UTC, Nemanja Boric wrote: [...] The article says that the dodgy fellas wait at gates that are not designated taxi areas (e.g. gates A12-A13, while taxis can only pick up passengers at A6-A9). So stick to the map. "Flughafen Tegel, Innenring. Zwischen den Gates A12 und A13 warten drei Fahrer vor ihren Autos – verbotenerweise. Denn die offiziellen Halteplätze befinden sich vor den Flugsteigen A6 bis A9. Die Männer quatschen, lachen, lauern – und sind ständig über Handy verbunden, um sich auszutauschen, wo welche Maschinen landen." Exactly.
Re: DConf 2017 Hotel - book now!
On Thursday, 2 March 2017 at 09:33:42 UTC, Chris wrote: On Thursday, 2 March 2017 at 02:24:50 UTC, Walter Bright wrote: http://www.ibis.com/gb/hotel-5694-ibis-berlin-neukoelln/index.shtml Last year, some people booked late and it was full and they had to stay at another hotel. Maybe someone could post a description of how to get there from the airport. I remember last year there was a detailed description with pictures etc. And beware of Berlin taxi drivers, you might get fleeced. Make sure they have a taxometer and that the taxi license is on display. If in doubt, get out! Yeah, I believe the pictures are still on the last year's topic. Nothing major has changed regarding transport. As far as Taxi goes, see the TXL airport plan here: http://www.berlin-airport.de/de/_dokumente/reisende/lageplaene-sxf-txl/2016-12-27-txl-terminals-de-en.pdf There are two Taxi stations, on the southeast of terminal A, and just in front of terminal C. Usually there's a lot of Taxis there, and in my experience they are all legal. Anywhere else on the airport, you can bet they are dodgy (see http://www.bz-berlin.de/artikel-archiv/die-gierigen-taxifahrer-vom-flughafen-tegel) This all stands for airport Tegel, I have no experiences with Schönefeld.
Re: Getters/setters generator
On Wednesday, 18 January 2017 at 15:29:43 UTC, Mark wrote: On Tuesday, 17 January 2017 at 15:59:26 UTC, Andrei Alexandrescu wrote: On 1/17/17 12:08 PM, Mark wrote: On Tuesday, 17 January 2017 at 09:17:56 UTC, Andrei Alexandrescu wrote: [...] Given that D supports class invariants, is there a real need for predicated setters? The invariant is evaluated after the setter has taken place, i.e. after the object has been corrupted. The setter guard prevents corruption from happening. -- Andrei I see. Is there a way to call invariant() of a class/struct directly? That would obviate the need for a particular predicate (copy the class state, run the setter, check if invariants are satisfied and restore previous state if they aren't). You can call invariant directly with `assert(this);` IIRC.
Re: PostgreSQL native impl
On Tuesday, 3 January 2017 at 09:07:35 UTC, Arun Chandrasekaran wrote: On Tuesday, 3 January 2017 at 01:08:28 UTC, Chris Wright wrote: On Mon, 02 Jan 2017 20:29:55 +, Anton wrote: Today i spent about hour to write pure-D simple PostgreSQL driver for demonstration purposes. I was looking for developers interested in complete PostgreSQL driver (pure D) That demo not implements auth, therefore requires trusted user [1] https://github.com/anton-dutov/postgresql-native-d [2] https://www.postgresql.org/docs/9.6/static/protocol.html Nice! Looks like it wouldn't be much work to add prepared queries. I notice you rolled your own uri library. Might I point you toward urld? It supports ipv6 hosts (probably handy) and unicode domain names (nice to have, probably not useful here). http://code.dlang.org/packages/urld This is really neat! I've been looking for one such. I'm used to https://github.com/cpp-netlib/uri in C++. Shameless plug, I've been working in my spare time on a similar project: https://github.com/Burgos/postgres-native Progress is super slow, though, but I'm really happy how the things are working out, so just publishing here if somebody wants to take the inspiration from the API or any part of it, or if somebody wants to help :-) I hope in 2017 I'll build a simple web project around it, which should help alot.
Re: Beta D 2.071.2-b1
On Monday, 1 August 2016 at 20:59:05 UTC, Martin Nowak wrote: ... Thanks for https://issues.dlang.org/show_bug.cgi?id=16225 !
Re: Graillon 1.0, VST effect fully made with D
On Friday, 27 November 2015 at 14:25:42 UTC, Andre Polykanine wrote: VPvDda> I took this approach with my image processing blog post and it VPvDda> got quite popular. Could you post a link to it, please? Andre. http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/
Re: Please vote for the DConf logo
On Thursday, 12 November 2015 at 18:25:02 UTC, captaindet wrote: On 2015-11-12 11:18, Nemanja Boric wrote: On Tuesday, 10 November 2015 at 10:01:24 UTC, Shriramana Sharma wrote: I prefer 3. It's simple, but effective. The graphic looks like an Olympic torch to me, which is good, indicating that D is a champion! :-) https://de.wikipedia.org/wiki/Berliner_Fernsehturm :-) https://en.wikipedia.org/wiki/Fernsehturm_Berlin Sorry about that, it was just the first link on the Google! On topic: 3
Re: Please vote for the DConf logo
On Tuesday, 10 November 2015 at 10:01:24 UTC, Shriramana Sharma wrote: I prefer 3. It's simple, but effective. The graphic looks like an Olympic torch to me, which is good, indicating that D is a champion! :-) https://de.wikipedia.org/wiki/Berliner_Fernsehturm :-)
Re: London D meetups ...
On Tuesday, 4 August 2015 at 09:54:46 UTC, Dejan Lekic wrote: Yes, I am aware of that. I was thinking of volunteering for some time, with help of others. We have a healthy D community here in London and we should work on making it bigger. Cheers! Completely off topic: I haven't seen your picture since you've been active on elitesecurity forums and preaching FLTK around, which is more than ten years now I guess - man, you've changed :-).
Re: DConf 2015 Schedule published
Speaker's pages (http://dconf.org/2015/talks/zvibel.html for example) shows 2014 in the title. On Monday, 23 March 2015 at 16:47:30 UTC, Andrei Alexandrescu wrote: Dconf 2015's programme is on! http://dconf.org/2015/index.html I would like to thank everyone who submitted a proposal. We've had very strong proposals this year and a 50% acceptance rate, which made it very difficult to only choose half. Submitters are encouraged to join the conference; we'll have two panels and ample unstructured time during the evenings to keep discussions going. Last but not least, I encourage everyone in the community to register. The strength of any conference is ultimately decided by its attendees. We're operating at a loss to keep registration costs low, and chose a location that is accessible and affordable. Take the schedule to your employer or academic advisor and ask them if you can attend! Andrei