Re: Temple: Compile time, embedded D templates
On Thursday, 2 January 2014 at 10:59:27 UTC, Jacob Carlborg wrote: Nice. Do you have any concept of safe vs unsafe strings? That's a really good idea... [the day passes by] Support implemented in v0.5.0: https://github.com/dymk/temple#filter-policies FilterPolicies allow the developer to insert hooks for when an expression is appended to the buffer. This can be overloaded for different types of expressions, letting concepts like Tainted strings (e.g. your safe vs. unsafe strings) to be implemented. I added an example to the README showing a simple example of this.
Re: Temple: Compile time, embedded D templates
On 2014-01-03 09:39, Dylan Knutson wrote: That's a really good idea... [the day passes by] Support implemented in v0.5.0: https://github.com/dymk/temple#filter-policies FilterPolicies allow the developer to insert hooks for when an expression is appended to the buffer. This can be overloaded for different types of expressions, letting concepts like Tainted strings (e.g. your safe vs. unsafe strings) to be implemented. I added an example to the README showing a simple example of this. Cool :) -- /Jacob Carlborg
DVM - D Version Manager 0.4.2
I just released a new version of DVM, 0.4.2. The biggest news for this release is that the source code has been ported to D2 and I'm bringing back support for 64bit platforms. Except from this it's mostly a minor release. For pre-compiled binaries and changelog (or below) see: https://github.com/jacob-carlborg/dvm/releases/tag/v0.4.2 For those not familiar with DVM: DVM allows you to easily download and install D compilers and manage different versions of the compilers. Changelog: Version 0.4.2 New/Changed Features * Ported to D2 * Add support for fetching the latest version of the compiler * Bring back support for 64bit Bugs Fixed * Fails to get the latest version of the compiler -- /Jacob Carlborg
Re: LDC talk @ FOSDEM'2014
Hi Joakim! On Tuesday, 24 December 2013 at 10:15:55 UTC, Joakim wrote: On Wednesday, 18 December 2013 at 12:19:05 UTC, Kai Nacke wrote: Good news, will there be a video posted online of the event? I'm not near Brussels, so video would be good for the rest of us. I hope this talk will make it more likely that there'll be an ldc talk at the main llvm meeting in April in Edinburgh, though I'm not sure this would fit that venue. I think that there will be video recording. Videos for all tracks from FOSDEM'13 are available from the web site. Another ldc talk at the LLVM meeting would be great. But I have to think about the content... (I assume that they will not accept the same talk twice.) I suggest that you make your slides available for others to look over beforehand, for some feedback. I'm guessing English isn't your native language, I'd spend some time proofreading your slides if you sent them to me before the talk. That is a great offer! I sure do as soon as I have something near completion. Regards, Kai
Re: D is back on TIOBE top 20
On Thursday, 2 January 2014 at 11:10:07 UTC, Dejan Lekic wrote: On Thursday, 2 January 2014 at 10:33:53 UTC, Namespace wrote: On Thursday, 2 January 2014 at 10:30:34 UTC, Dejan Lekic wrote: I know this does not say much, especially considering that TransactSQL is declared language of the year on TIOBE. :) Anyway, good to see that D is gaining popularity. http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html http://forum.dlang.org/thread/mmqokwtboeqjhbsxq...@forum.dlang.org #22 was not good enough. :) Being in the first 20 is what matters as new programmers who visit TIOBE out of curiousity may become interested in D when they see it in the list. Everything below 20 is more/less invisible to the common visitor there... Wow, D is at #18 now, the biggest jump of any top-20 language since last Jan, except for F#. Either D had a great year or their new algorithm really favors D, maybe both.
Re: D is back on TIOBE top 20
On 2 January 2014 11:10, Dejan Lekic dejan.le...@gmail.com wrote: On Thursday, 2 January 2014 at 10:33:53 UTC, Namespace wrote: On Thursday, 2 January 2014 at 10:30:34 UTC, Dejan Lekic wrote: I know this does not say much, especially considering that TransactSQL is declared language of the year on TIOBE. :) Anyway, good to see that D is gaining popularity. http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html http://forum.dlang.org/thread/mmqokwtboeqjhbsxq...@forum.dlang.org #22 was not good enough. :) Being in the first 20 is what matters as new programmers who visit TIOBE out of curiousity may become interested in D when they see it in the list. Everything below 20 is more/less invisible to the common visitor there... If anyone really *did* use TIOBE as a measure for language success, you may find me doing this to them. http://www.youtube.com/watch?v=xCwLirQS2-o
Re: Fedora RPMs
On Fri, 2014-01-03 at 15:32 +, Dejan Lekic wrote: […] Russel, I am aware of that, but RPM Fusion is an unofficial (although admittedly often used) repository. If RPMFusion is our only choice I would rather use RPM directly from www.dlang.org . Can't we do both? For myself, I am not really wanting to explicitly download RPMs and put them in my own local RPM store, though I do do this, I'd prefer them to appear (magically :-). I already have RPM Fusion in my Yum search list – Nvidia put all their non-free things in there, ditto AMD. The alternative is to set up an RPM database of all the D things as there is for Debian debs. Then people can just add the repository and Yum does the rest. -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Re: D is back on TIOBE top 20
On Fri, 2014-01-03 at 16:14 +, Iain Buclaw wrote: […] If anyone really *did* use TIOBE as a measure for language success, you may find me doing this to them. http://www.youtube.com/watch?v=xCwLirQS2-o Makes me feel this is a Python list ;-) -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Re: Temple: Compile time, embedded D templates
On Thursday, 2 January 2014 at 08:36:24 UTC, Dylan Knutson wrote: The reason for this is that std.variant.Variant isn't CTFEable, because it uses memcpy in opAssign. I'd consider that a Phobos bug; perhaps there is a way to make std.variant CTFE compatible? That'd allow for a much wider (and more useful) range of templates to be evaluated at compile time. I wish Variant worked at compile time myself. Did you file a bug/enhancement request? (I couldn't find one in bugzilla).
Re: Fedora RPMs
On Monday, 9 December 2013 at 14:54:29 UTC, Dejan Lekic wrote: On Thursday, 5 December 2013 at 11:46:37 UTC, Martin Nowak wrote: On 11/19/2013 02:11 AM, Dejan Lekic wrote: Hello everybody. I have just committed few changes to https://www.gitorious.org/dejan- fedora that allow you to build functional RPMs on your Fedora 19 systems. I will aim for now to support F19, F20, EL5 and EL6. If someone needs support for something else, please send patches or just simply come to IRC and let me know what is the problem. :) Great, will you take the honour to submit this to Fedora? Few remarks - SPEC file expects source files to be on http://ddn.so/ files/ . I hope our release manager, or so-called build master will make sure dlang.org provides source tarballs of dmd, phobos, druntime and tools the same or similar way I have them on http://ddn.so/files/ (btw, you can't browse it yet, but you can download files). I use the simple get-files.sh (located in the dmd directory in the dejan- fedora repo) to get those release tarballs from GitHub. Finally, I decided to be little bit adventurous and made the SPEC file generate dmd.conf with -defaultlib=libphobos2.so flag in DFLAGS. It would be better to stick to the current dlang state. Following Fedora package guidelines, I provide static library in the libphobos-static package instead. Splitting in different packages is needed to comply with RPM guidelines, but it's a bad fit for a single binary installer on dlang.org. I'm working on a spec file for the latter. https://github.com/dawgfoto/installer/tree/fedoraSPEC Btw, I forgot to tell you... I talked to fedora people about having dmd in Fedora. They said it will probably be rejected because of the backend license, because they are not allowed to freely distribute the software. So I guess we will most likely have to setup our own YUM repository on dlang.org - that is probably the best course of action. If someone has better idea, please share it. When I got dmd into FreeBSD ports a couple years back, I asked Walter for permission for them to redistribute the compiler and backend source and he gave it. If the Fedora guys are okay with that arrangement, I'm guessing Walter will give his permission again.
Re: D is back on TIOBE top 20
On 01/02/2014 05:30 AM, Dejan Lekic wrote: I know this does not say much, especially considering that TransactSQL is declared language of the year on TIOBE. :) Anyway, good to see that D is gaining popularity. http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html The (Visual) Basic in 7th place shows there are way too many brain dead people in this world.
Re: D is back on TIOBE top 20
On 03.01.2014 17:14, Iain Buclaw wrote: On 2 January 2014 11:10, Dejan Lekic dejan.le...@gmail.com wrote: On Thursday, 2 January 2014 at 10:33:53 UTC, Namespace wrote: On Thursday, 2 January 2014 at 10:30:34 UTC, Dejan Lekic wrote: I know this does not say much, especially considering that TransactSQL is declared language of the year on TIOBE. :) Anyway, good to see that D is gaining popularity. http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html http://forum.dlang.org/thread/mmqokwtboeqjhbsxq...@forum.dlang.org #22 was not good enough. :) Being in the first 20 is what matters as new programmers who visit TIOBE out of curiousity may become interested in D when they see it in the list. Everything below 20 is more/less invisible to the common visitor there... If anyone really *did* use TIOBE as a measure for language success, you may find me doing this to them. http://www.youtube.com/watch?v=xCwLirQS2-o Lots of managers and HR departments do. -- Paulo
Re: Temple: Compile time, embedded D templates
On Friday, 3 January 2014 at 17:50:22 UTC, Nicolas Sicard wrote: I wish Variant worked at compile time myself. Did you file a bug/enhancement request? (I couldn't find one in bugzilla). https://d.puremagic.com/issues/show_bug.cgi?id=11864 Doing some more tests, it seems like just about any template can be evaluated at compile time, if they don't set variables on the context (via var.name, or var(name)). I was surprised to find even filters work for CTFE'd templates!