Re: D as a C Replacement

2020-02-07 Thread Chris via Digitalmars-d-announce

On Thursday, 6 February 2020 at 08:40:19 UTC, Walter Bright wrote:

On 2/5/2020 3:50 AM, IGotD- wrote:
I must say that it is summarized very well. Especially that it 
is focusing implementing the latest cool feature instead of 
stability.


Non-specific complaints are useless. If you have specific 
issues, post the bugzilla numbers. If they aren't in bugzilla, 
add them.


I've noticed that this is the new policy of the D Foundation. 
Criticism that does not mention a specific bug is discarded as 
"non-specific". Very clever, but not _really_, as people will see 
through it sooner or later. The thing is that D has accumulated 
so many bugs and half-baked features that it is hard to pinpoint 
any specific issues. You never know what's gonna hit you and when 
it's gonna hit you.


Walter, your new policy is like saying, after someone tells you 
to clean up your room, "Can you tell me which dirty plate or old 
newspaper I should start with? No? So your criticism is 
non-specific!" D has turned into a political party.


I don't know who wrote that comment on Reddit, it sure wasn't me, 
but you see the same (non-specific) criticism keeps coming up 
again and again. D is an interesting case study in sociology and 
psychology. I am fascinated. Especially now that censorship is no 
longer taboo.


Re: My Android project nearing beta

2020-01-08 Thread Chris via Digitalmars-d-announce

On Wednesday, 8 January 2020 at 14:13:58 UTC, Adam D. Ruppe wrote:

2. The new JVM default language for Android is Kotlin. How 
will you handle that?


Doesn't affect anything as far as I can tell, except possibly 
slightly awkward syntax when compared side by side with stuff 
like kotlin extension methods - even my bindings generator 
(which you don't have to use btw) doesn't look at the source, 
instead pulling the data right out of the compiled class files. 
Since kotlin compiles to the same thing as java, it should work 
the same way.




Cool that you can take the compiled classes directly. Btw, how 
will D for Android handle multi-threading / coroutines? Will the 
coroutines have to be on the Java / Kotlin side of things or is 
it possible to run them in D too?





Re: My Android project nearing beta

2020-01-08 Thread Chris via Digitalmars-d-announce

On Monday, 16 December 2019 at 21:37:51 UTC, Adam D. Ruppe wrote:

I'm gonna drop the link here without further comment:

https://github.com/adamdruppe/d_android

hopefully I've written enough in the repo so anyone who wants 
to play with it can... and if not, I need to fix the docs :)


let me know if you find any success or failure playing with it.


Great stuff. I doff my hat. You seem to be the right guy for this 
job, hands-on and all. A few questions / remarks:


1. How does it fare performance wise with JNI? In the Android 
docs they advise you not to use the JNI bridge very often as it 
very costly.


2. The new JVM default language for Android is Kotlin. How will 
you handle that? Kotlin and Java are a 100% compatible, so for 
now it is possible to have something like jni.d > Java > Kotlin, 
or even jni.d > Kotlin, as JNI for Kotlin is basically the same 
as for Java.  Further down the road it might make sense to cater 
for Kotlin more directly which leads me to my next point:


3. At KotlinConf 2019 they announced that they want Kotlin to 
become some sort of a default tool for programming tasks [1] (be 
it mobile, server or micro-controllers). Earlier in this thread, 
D's potential as a "glue language" was mentioned, and I think it 
makes sense. So maybe more efforts should go into this aspect of 
D, along the lines of what you have created here.


[1] https://www.youtube.com/watch?v=0xKTM0A8gdI


Re: Hunt framework 1.0.0 released

2018-06-06 Thread Chris via Digitalmars-d-announce

On Wednesday, 6 June 2018 at 08:35:27 UTC, noclear wrote:

On Tuesday, 5 June 2018 at 13:07:49 UTC, Chris wrote:

On Tuesday, 5 June 2018 at 07:25:33 UTC, Brian wrote:
We are pleased to announce an official version of hunt 1.0 , 
This is an important milestone release!


[...]


/usr/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
Error: linker exited with status 1


Hunt dependency ORM framework Entity and Entity need link 
mysqlclient, so you need to have the following dependency 
installed:

libmysqlclient.

sudo apt-get install libmysqlclient-dev # Debian / Ubuntu
sudo yum install mysql-devel # Red Hat / CentOS
brew install mysql-connector-c # macOS (Homebrew)


Yep, thanks for your reply. I figured I'd need the mysql(client) 
lib, but I could't find it for Manjaro / ArchLinux when I was 
testing Hunt, so I gave up. I don't like it when I'm told I just 
need to run a simple command for it to work...only for it to fail.


Re: GitHub could be acquired by Microsoft

2018-06-06 Thread Chris via Digitalmars-d-announce

On Tuesday, 5 June 2018 at 23:40:37 UTC, aberba wrote:

These people who complain don't usually contribute a penny to 
Open source.


I dare doubt that this is true.

Frankly, Microsoft has done great things for the world with 
software. Making computers accessible to everyone...


...and lock users in. Making computers accessible in terms of UI 
started with Xerox whose engineers later went to Apple. It was 
actually Apple that took computers away from the CLI high 
priests, but Apple machines were too expensive. MS's UIs were 
quite crap at the beginning, but they were clever enough to make 
their products available on cheaper PCs. Apple were too elitist.


[...]

I think some only look at what happened during Steve Balmer's 
time as ceo. It was "HIS" strategy to pick on Linux. In fact, 
he pick on Apple too and several other competing products. Its 
all marketing and competition and its pretty much everywhere. 
Monopoly and patent registration is everywhere. I'm not saying 
its a good thing or bad,...Its not just Microsoft.


See, that's the thing. MS under Steve Balmer played really really 
dirty. It was completely OTT, even by dog-eat-dog business 
standards that, btw, most people are aware of. We know how 
business works. Once the trust is gone it is very hard (or nigh 
impossible) to get people to trust you again. MS, under Steve 
Balmer, relied too much on bullying, intimidation and locking 
users in. However, they missed a lot of developments which was 
their downfall. With the advent of Mac OS X, iOS and Android, 
people began to realize that there was a digital life beyond MS 
(remember when people were afraid to buy anything else but 
Windows PCs saying "I don't want to be trapped in the Mac world", 
while cursing Windows at the same time?) People don't trust MS 
anymore and even if they are "nice" now, who knows whether it's 
not just because they are no longer in a position of power ("the 
wolf has eaten chalk"). But that's MS's problem, not mine.


If you're don't trust Microsoft, you shouldn't trust any 
commercial company. Microsoft has changed business model too by 
embracing open source. In fact, their the real believers in 
open source now compared to those who don't think theirs money 
in open source.


You shouldn't trust big IT companies. The names of people who 
have been cheated out of their software by them are legion.


Re: Hunt framework 1.0.0 released

2018-06-05 Thread Chris via Digitalmars-d-announce

On Tuesday, 5 June 2018 at 07:25:33 UTC, Brian wrote:
We are pleased to announce an official version of hunt 1.0 , 
This is an important milestone release!


[...]


/usr/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
Error: linker exited with status 1


Re: GitHub could be acquired by Microsoft

2018-06-05 Thread Chris via Digitalmars-d-announce

On Monday, 4 June 2018 at 19:06:52 UTC, Maksim Fomin wrote:



My second reaction after reading news (after shock) was to 
visit D forum.


Same here! I was off for a few days and found out today on GitHub 
[1], and then I remembered the thread header talking about 
GitLab. I'm skeptical to say the least. I still remember how 
difficult it was to use Skype after it had been bought by MS. I 
dunno what's behind it. Polishing up their image, trying to get 
the copyright for all the code on GitHub, killing off OSS, or all 
of the above ;)


MS have certainly missed a lot of stuff over the last couple of 
years, stuff that came out of or was based on the OSS community. 
Search engines, the success of Java, Android and the mobile phone 
market in general, social media etc. People will create and move 
to new platforms, simply because they don't like the thought of 
MS hosting their code (same goes for Google or Oracle). They will 
move to platforms made by their fellow programmers. Now, this 
will take some time and GitHub will do business as usual for at 
least a year. But the rot will set in sooner or later, I think.


[1] e.g. https://blog.github.com/2018-06-04-github-microsoft/


Re: Tilix 1.7.9 Released

2018-05-03 Thread Chris via Digitalmars-d-announce

On Sunday, 29 April 2018 at 14:01:10 UTC, Gerald wrote:
A new version of tilix has been released. For those not 
familiar with it, Tilix is a terminal emulator for Linux 
written in D using GTK. The list of changes is available here:


https://gnunn1.github.io/tilix-web/2018/04/28/release-1-7-9

As always, I'm always looking for people who are interested in 
contributing, PRs welcome.


Finally a big thank you to Mike Wey who has continued to work 
on and evolve GtkD. Working on libraries is often behind the 
scenes work that doesn't get the appreciation it deserves.


I was struck by a recent reddit post on the gnome shell memory 
leak which involved C and javascript, it mentioned how 
difficult it is to merge two different memory models. Mike has 
managed this with aplomb in terms of integrating the Gtk 
reference counting into D's GC. So thanks Mike, your efforts 
are much appreciated!


I used it for more than year but after switching OS / 
re-installation I used the OS's terminal for a while. Now I'm 
back on Tilix. I am delighted. It's more fun this way.


Re: Release: nanovega.d rendering lib like html5 canvas

2018-04-30 Thread Chris via Digitalmars-d-announce

On Thursday, 8 March 2018 at 03:55:35 UTC, Adam D. Ruppe wrote:


enjoy, and happy hacking. ;-)


@Adam @ drug Any chance you could add more examples of nanogui 
and arsed/minigui;minigui_xml? It all looks very promissing!


Re: Release: nanovega.d rendering lib like html5 canvas

2018-04-30 Thread Chris via Digitalmars-d-announce

On Saturday, 7 April 2018 at 09:13:06 UTC, drug wrote:

https://github.com/drug007/nanogui

I would be glad if you take a look


`nanogui` doesn't compile with dub:

No package file found in /nanogui/examples/arsd/, expected one of 
dub.json/dub.sdl/package.json


It says `arsd is submodule now`. Any quick fixes? I don't have 
time to look into this only to play around with it.





Re: #include C headers in D code

2018-04-16 Thread Chris 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/

The summary is that, modulo bugs, things like this work:

#include 
void main() { printf("Hello world\n".ptr); }

So far it's successfully compiled whilst #including pthread, 
libcurl, openssl and others. The blog and the github README 
have more information, and feel free to reply to this with 
questions.


dub: http://code.dlang.org/packages/dpp
reddit: 
https://www.reddit.com/r/programming/comments/8axj53/include_c_headers_in_d_code/

hacker news: It's in there somewhere, search around.

Atila

* Technically, "D + #include directives + C macros"


This is really cool. This can be _very_ useful in situations 
where you don't want to translate all the headers to D, 
especially when experimenting with C libs. Really cool. Thanks.


Re: Spanish translation of DLang Tour page

2018-04-09 Thread Chris via Digitalmars-d-announce

On Monday, 9 April 2018 at 10:17:30 UTC, Diego Lago wrote:

Hello all,

I would like to announce the (almost[1]) completed Spanish 
translation [2] of the DLang Tour page:


http://tour.dlang.org/tour/es

Hope this helps to spread this fantastic and awesome 
programming language :)


Best regards.

--
Diego


---
[1] Almost because "D by Example" and "DUB Packages" are 
incomplete in the English version so they haven't been 
translated into Spanish.

[2] https://github.com/dlang-tour/spanish


¡Che! ¡Qué bueno!


Re: dxml 0.2.0 released

2018-02-14 Thread Chris via Digitalmars-d-announce

On Tuesday, 13 February 2018 at 22:13:36 UTC, H. S. Teoh wrote:



Ironically, the general advice I found online w.r.t XML 
vulnerabilities is "don't allow DTDs", "don't expand entities", 
"don't resolve externals", etc..  There also aren't many XML 
parsers out there that fully support all the features called 
for in the spec.  IOW, this basically amounts to "just use dxml 
and forget about everything else". :-D


Now of course, there *are* valid use cases for DTDs... but a 
naïve implementation of the spec is only going to end in tears.
 My current inclination is, just merge dxml into Phobos, then 
whoever dares implement DTD support can do so on top of dxml, 
and shoulder their own responsibility for vulnerabilities or 
whatever.  (I mean, seriously, just for the sake of being able 
to say "my XML is validated" we have to implement network 
access, local filesystem access, a security framework, and what 
amounts to a sandbox to control pathological behaviour like 
exponentially recursive entities?  And all of this, just to 
handle rare corner cases?  That's completely ridiculous.  It's 
an obvious design smell to me.  The only thing missing from 
this poisonous mix is Turing completeness, which would have 
made XML hackers' heaven.  Oh wait, on further googling, I see 
that XSLT *is* Turing complete.  Great, just great.   Now I 
know why I've always had this gut feeling that *something* is 
off about the whole XML mania.)



T


Thanks for the analysis. I'd say you're right. It makes no sense 
to keep dxml from becoming std.xml's successor only because it 
doesn't support DTDs. Also, as I said before, if we had DTD 
support in std.xml, people would complain about the lack of 
efficiency, and the discussion about interpreting the specs 
correctly, implementing them 100%, complaints about the lack of 
security would just never end.


Re: dxml 0.2.0 released

2018-02-13 Thread Chris via Digitalmars-d-announce

On Monday, 12 February 2018 at 21:51:56 UTC, H. S. Teoh wrote:
[...]
We can even design the DTD support wrapper to start with being 
just a thin wrapper around dxml, and lazily switch to full DTD 
mode only if a DTD section is encountered.  Then user code that 
doesn't care to use dxml's raw API won't even need to care 
about the difference.



T


In this vein, if a new version of std.xml didn't offer pure and 
fast parsing like dxml, but included DTD by default, people would 
complain that that was the real deal breaker (too slow, man!). 
Remember `autodecode`? Right.


DTD inclusion should only be available on demand. Imagine you 
want to implement a library project where ebooks (say classics) 
are catalogued and presented in an ebook reader on the web (or in 
an app on your smart phone). It is likely that the whole DTD 
thing would probably be done at the cataloguing stage, but once 
the books are in the library most users will probably just want 
to go through them page by page or search for quotes etc. - and 
for that you'd need a fast tool like dxml with no overhead.


Re: dxml 0.2.0 released

2018-02-12 Thread Chris via Digitalmars-d-announce

On Monday, 12 February 2018 at 19:47:09 UTC, Jacob Carlborg wrote:

On 2018-02-12 17:49, Chris wrote:

How could it possibly make the situation any worse than it is 
now? Atm,
nobody will ever use std.xml, because it is sub-standard and 
has no future.


I'm using std.xml in a new project right now. It's a really 
small private project that just need to extracts some data from 
an XML document. I started it a couple of days before dxml was 
announced.


A few lines of code that could be replaced easily once something 
better is available? But who will start an important commercial 
project with std.xml when it says in red letters:


"Warning: This module is considered out-dated and not up to 
Phobos' current standards. It will remain until we have a 
suitable replacement, but be aware that it will not remain long 
term."


I for my part wouldn't and I'm glad there's dxml now.




Re: dxml 0.2.0 released

2018-02-12 Thread Chris via Digitalmars-d-announce
On Monday, 12 February 2018 at 14:04:38 UTC, Jonathan M Davis 
wrote:
On Monday, February 12, 2018 12:38:51 Chris via 
Digitalmars-d-announce wrote:

On Monday, 12 February 2018 at 05:36:51 UTC, Jonathan M Davis




However, std.xml does not support the DTD section, and glancing 
over it, it doesn't look like it even handles skipping the DTD 
section properly (it doesn't handle the fact that '>' can 
appear within quoted sections within the DTD). So, dxml is not 
worse than std.xml in that regard, and we wouldn't lose any 
functionality by having dxml replace std.xml. It just wouldn't 
necessarily do as much as some folks might like.


I thought the same when I glanced over std.xml. There's no DTD 
support there either and I don't think it would be a deal breaker 
for most users.


My guess is that DTD support won't be a deal breaker given that 
std.xml doesn't support it, that std.xml has needed to be 
replaced for years now, and that no one else is working on 
replacing it, but I don't know. Disagreements over what should 
be done with std.json's replacement has meant that it has never 
been replaced even though significant work was done towards 
replacing it, so unfortunately, there's already precedence for 
a module not being replaced with something better due to 
disagreements over what the replacement would ideally be. So, I 
don't know.


- Jonathan M Davis


Wasn't there a replacement module that never got past the initial 
review steps? Some GSoC thing or so. But I wonder if that module 
would be up to the latest D standards.


While one may argue that DTD support is important, I would rather 
have something fast and simple like dxml that covers, say, 90% of 
the cases than nothing. It doesn't make sense to me that we 
should accept the current situation, only because of some 
bikeshedding that concerns 10% of the use cases. After all, it's 
only a module not a fundamental decision that concerns the 
direction D will take in the future. I think stuff like that can 
seriously turn off potential users. A lot of useful things begin 
with one person deciding to give it a go. vibe.d, dub, DScanner 
and DlangUI, for example. If the creators had started 
bikeshedding before writing the first line of code, there would 
still be a flamewar about the best way to go about it - and 
nothing would have happened.


Re: dxml 0.2.0 released

2018-02-12 Thread Chris via Digitalmars-d-announce
On Monday, 12 February 2018 at 12:49:30 UTC, rikki cattermole 
wrote:

On 12/02/2018 12:38 PM, Chris wrote:
On Monday, 12 February 2018 at 05:36:51 UTC, Jonathan M Davis 
wrote:

dxml 0.2.0 has now been released.

I really wasn't planning on releasing anything this quickly 
after announcing dxml, but when I went to start working on 
DOM support, it turned out to be surprisingly quick and easy 
to implement. So, dxml now has basic DOM support.


[...]


Will this replace `std.xml` one day?


As long as DTD support is essentially non-existent, my vote 
will always be no.


How hard would it be to add DTD support? One could take dxml and 
extend it in order to include it in Phobos. I haven't used 
`std.xml` for years now. It is essentially dead and unusable atm.


Re: dxml 0.2.0 released

2018-02-12 Thread Chris via Digitalmars-d-announce
On Monday, 12 February 2018 at 05:36:51 UTC, Jonathan M Davis 
wrote:

dxml 0.2.0 has now been released.

I really wasn't planning on releasing anything this quickly 
after announcing dxml, but when I went to start working on DOM 
support, it turned out to be surprisingly quick and easy to 
implement. So, dxml now has basic DOM support.


[...]


Will this replace `std.xml` one day?


Re: Vanquish Forever These Bugs That Blasted Your Kingdom

2018-02-12 Thread Chris via Digitalmars-d-announce
On Sunday, 11 February 2018 at 15:15:45 UTC, Patrick Schluter 
wrote:




That explains why there are so much SJW types in the Rust world 
:-)



No, here's why: "Rust is a systems programming language[9] 
sponsored by Mozilla Research"


"Mozilla" is the magic word ;)

https://en.wikipedia.org/wiki/Rust_(programming_language)



Re: [OT] Re: D User Survey

2017-12-11 Thread Chris via Digitalmars-d-announce
On Sunday, 10 December 2017 at 13:06:34 UTC, Jonathan M Davis 
wrote:


Well, the wikipedia entry for Great Britain takes the clear 
stance that it's the island that's Great Britain, and that when 
Great Britain is referred to politically, it's the 3 countries 
on the island and does not include any part of Ireland. It also 
lists the full name of the UK as being the United Kingdom of 
Great Britain and Northern Ireland.


https://en.wikipedia.org/wiki/Great_britain 
https://en.wikipedia.org/wiki/United_Kingdom


So, technically, Ireland is not part of Great Britain at all, 
but sometimes, folks do end up including Northern Ireland in 
what they mean when they use the term - and plenty of folks 
outside of the UK probably get it wrong all the time.


- Jonathan M Davis


There are two political entities in Ireland, the Republic of 
Ireland (which is a member of the European Union) and Northern 
Ireland (which, being part of the UK, will leave the EU after 
Brexit). Thus, to use only "Ireland" would be wrong (it has to be 
Republic of Ireland), but how the ROI could be left out is a 
mystery to me.


Anyway, I know that people in the Americas (including Latin 
America) are usually faster to pick up on things like Facebook, 
Twitter, WhatsApp etc. But these are backend technologies, if you 
wish. It seems to me that at the moment companies and programmers 
in the USA are much more reluctant to adopt or explore new paths 
as regards the front end (the programming language in this case). 
I don't think it is to do with political / social conservatism, 
as this didn't stop engineers in the US to explore new 
technologies in the past either, and the Nazis were big into 
technology too. There is not necessarily a link between political 
/ social conservatism and lack of technological progress (there 
can be).


Maybe it is a certain laziness / complacency, since the USA no 
longer feel the pressure of having to be "the best" as they did 
during the cold war. Maybe this sort of complacency also has to 
do with the fact the for decades the US would make sure that 
their allies would only buy their technologies, so there was no 
real competition, no real challenge there (which partly explains 
the success of Microsoft). But now with China and other big 
players having entered the pitch, there is more pressure again, 
and if anything, a more "conservative"* approach that tries to 
relocate companies within the national borders might actually 
give innovation a boost.


*It's not so much being "conservative" as an understandable 
reaction to globalization gone out of hand.


Re: D User Survey

2017-12-08 Thread Chris via Digitalmars-d-announce

On Thursday, 7 December 2017 at 18:22:46 UTC, user1234 wrote:



Survey techniques are a science after all. Google provides you 
the tools but without methodology it's peanuts. I suppose that 
this survey just allows you to locate yourself among the 
community, although it was already well known that D is more 
used in Europe and mostly by adults. I mean that the results 
cannot be used to change the development guide lines.




Yep. D seems to be quite popular in Europe. I wonder why that is, 
given that it originated in the USA and people in the States are 
more open to new technologies. What were the technical and social 
factors at work here? Maybe D wasn't fancy enough to be taken 
seriously in the USA and maybe people from outside the USA (not 
only in Europe) looked at it and said "Hold on, that's something 
interesting...and we can contribute to it." D certainly struck a 
chord with many programmers around the globe, but what is it 
exactly? (Please no jokes about D major or D minor chords now ;)


Re: D User Survey

2017-12-07 Thread Chris via Digitalmars-d-announce
On Saturday, 2 December 2017 at 19:11:31 UTC, Dmitry Olshansky 
wrote:





Truth be told I find survey largely irrelevant.
What my gender or some such have to do with D? Or my job? What 
do we want to understand from that - “teenagers w/o like D 
language more?” or some such nonsense?


I despise demographic style surveys, ask technical aspects 
instead, it would be 10x more informative.


Yeah, it's too personal (job, company, gender). Questions should 
concentrate on technical aspects.


Btw, the country I reside in is not on the list: Ireland. It's 
neither listed as Ireland nor as Republic of Ireland (the 
official name in English) nor as Éire / Poblacht na hÉireann (the 
official name in Irish). I checked with the search function to be 
sure to be sure :-) I didn't know Ireland was so unknown, unless, 
of course, I'm supposed to choose "Great Britain".





Re: Research Positions

2017-05-31 Thread Chris via Digitalmars-d-announce

On Wednesday, 31 May 2017 at 18:20:57 UTC, Chris wrote:
On Wednesday, 31 May 2017 at 15:15:00 UTC, rikki cattermole 
wrote:

On 31/05/2017 2:10 PM, Chris wrote:

[...]


As long as the positions can be done in D (and the desire is 
there by those involved) then it does belong here. Given Chris 
being a regular that can be assumed :)


I was personally very interested in it, except for the part 
where I'd have to move half way across the globe ;) Given that 
I finish up my honors this month.


Your application would be more than welcome. Just give it a 
shot, you never know where life takes you. ;)


PS @Rikki: aren't you connected to John Kane on LinkedIn? He did 
his PhD in our lab.


Re: Research Positions

2017-05-31 Thread Chris via Digitalmars-d-announce

On Wednesday, 31 May 2017 at 15:15:00 UTC, rikki cattermole wrote:

On 31/05/2017 2:10 PM, Chris wrote:

On Wednesday, 31 May 2017 at 11:26:43 UTC, Joakim wrote:

[...]


In case anyone with a D background is interested in one of the 
positions. We use D for speech synthesis and it'd be great if 
we could use D for speech recognition too. However, it's not a 
key requirement. But I thought I'd put it out here, because 
this is a D forum, if I'm not completely mistaken ;)


As long as the positions can be done in D (and the desire is 
there by those involved) then it does belong here. Given Chris 
being a regular that can be assumed :)


I was personally very interested in it, except for the part 
where I'd have to move half way across the globe ;) Given that 
I finish up my honors this month.


Your application would be more than welcome. Just give it a shot, 
you never know where life takes you. ;)


Research Positions

2017-05-31 Thread Chris via Digitalmars-d-announce
We are offering two research positions at the moment. Please 
follow the links for more information.


1. Research Fellow in Speech Recognition:

https://www.linkedin.com/jobs/view/313953286/

2. Research Student in the area of Voice Modelling and Speech 
Processing:


https://www.linkedin.com/jobs/view/313951716/

Closing Date and Time: 12 Noon on 12th June 2017.


Re: DConf 2017 Hotel - book now!

2017-03-03 Thread Chris via Digitalmars-d-announce

On Thursday, 2 March 2017 at 18:21:31 UTC, Seb wrote:

On Thursday, 2 March 2017 at 15:09:16 UTC, Chris wrote:
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.


[...]


Maybe someone can put all this info on the 
http://dconf.org/2017/index.html page somewhere "How to get 
there" or something.


It's already there, isn't it?
-> http://dconf.org/2017/venue.html

Otherwise please send a PR to improve: 
https://github.com/dlang/dconf.org


No it isn't. It just says where it takes place (google maps). 
That's not quite the same.


Re: DConf 2017 Hotel - book now!

2017-03-02 Thread Chris via Digitalmars-d-announce

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?


Re: DConf 2017 Hotel - book now!

2017-03-02 Thread Chris via Digitalmars-d-announce
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.


[...]


Maybe someone can put all this info on the 
http://dconf.org/2017/index.html page somewhere "How to get 
there" or something.


Re: DConf 2017 Hotel - book now!

2017-03-02 Thread Chris via Digitalmars-d-announce

Here's some good advice:

https://www.tripadvisor.ie/ShowTopic-g187323-i135-k7931137-Got_ripped_off_by_taxi_driver_at_Berlin_Airport-Berlin.html


Re: DConf 2017 Hotel - book now!

2017-03-02 Thread Chris via Digitalmars-d-announce

On Thursday, 2 March 2017 at 10:08:33 UTC, Nemanja Boric wrote:


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.


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."


Re: DConf 2017 Hotel - book now!

2017-03-02 Thread Chris via Digitalmars-d-announce

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!


Re: Terminix 1.5.0 Released

2017-02-21 Thread Chris via Digitalmars-d-announce

On Monday, 20 February 2017 at 15:06:37 UTC, Gerald wrote:
I'm pleased to announce that Terminix 1.5.0 has been released. 
Terminix is a GTK3 tiling terminal emulator for Linux which 
follows the Gnome Human Interface Guidelines (HIG). More 
information about Terminix can be found here:


[...]


Thanks. Just cloned, compiled and installed it on Ubuntu 16LTS 
and it works out of the box.


~$ terminix --version
Versions
Terminix version: 1.5.0
VTE version: 0.42
GTK Version: 3.18.9

Nice new features. I'm sure they will come in handy.


Re: Alexa Skill written in D

2017-01-12 Thread Chris via Digitalmars-d-announce
On Wednesday, 11 January 2017 at 19:26:06 UTC, Walter Bright 
wrote:

On 1/11/2017 2:09 AM, Chris wrote:

On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote:

Yes. I can't because anything I post gets autobanned.

Why is that?


Probably because I posted links to articles I wrote myself. I 
didn't know at the time it was against their rules.


In that case it might help to talk to them and explain that you 
weren't aware of that rule at the time. It will also clear your 
name in case anyone wants to attack you personally ("Walter 
Bright how got banned from ...").


Re: Alexa Skill written in D

2017-01-11 Thread Chris via Digitalmars-d-announce

On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote:



Yes. I can't because anything I post gets autobanned.


Why is that?


Re: Optimizing std.regex

2016-11-08 Thread Chris via Digitalmars-d-announce

On Monday, 7 November 2016 at 13:13:24 UTC, Mike Parker wrote:
Dmitry mentioned here in the forums not long ago that he had 
squeezed some big performance improvements out of std.regex. 
His post on the D Blog describes how he managed to do it 
through an algorithmic optimization.


The post:
https://dlang.org/blog/2016/11/07/big-performance-improvement-for-std-regex/

Reddit:
https://www.reddit.com/r/programming/comments/5bm1bc/from_the_d_blog_optimizing_stdregex/


Great job! Would it be possible (or indeed worth it) to create a 
similar engine for general text processing / string handling?


Re: The DLang UPB Languages and Systems Research Scholarship

2016-10-28 Thread Chris via Digitalmars-d-announce
On Tuesday, 25 October 2016 at 22:15:38 UTC, Andrei Alexandrescu 
wrote:
The D Language Foundation is proud to announce its first 
scholarship, offered to CS and EE students at University 
"Politehnica" Bucharest in Romania. More details here:


http://dlang.org/dlangupb-scholarship.html

We are very excited about this program and hope to extend it to 
other universities in the future.



Thanks,

Andrei


A project D > WebAssembley would be great.


Re: New team member: Lucia

2016-10-14 Thread Chris via Digitalmars-d-announce
On Thursday, 13 October 2016 at 18:18:40 UTC, Andrei Alexandrescu 
wrote:

On 10/13/2016 02:15 PM, Andrei Alexandrescu wrote:
Please join me in welcoming Lucia Lucia Cojocaru to our team. 
Lucia is a


Pardon the typo: Lucia Madalina Cojocaru. -- Andrei


Bine ai venit!


Re: LDC 1.1.0-beta3 has been released!

2016-10-12 Thread Chris via Digitalmars-d-announce

On Tuesday, 11 October 2016 at 07:29:00 UTC, Sönke Ludwig wrote:

Am 09.10.2016 um 14:32 schrieb Kai Nacke:

Hi everyone,

LDC 1.1.0-beta3, the LLVM-based D compiler, is available for 
download!
This BETA release is based on the 2.071.2 frontend and 
standard library

and supports LLVM 3.5-3.9.

We provide binaries for Linux, OX X, FreeBSD, Win32 & Win64, 
Linux/ARM

(armv7hf), now bundled with DUB. :-)

As usual, you can find links to the changelog and the binary 
packages

over at digitalmars.D.ldc:
http://forum.dlang.org/post/nbbocctpmaofpdxqm...@forum.dlang.org

Regards,
Kai



Just noticed that the release binaries are missing from 
https://github.com/ldc-developers/ldc/releases/tag/v1.1.0-beta3


This means that the beta currently cannot be tested with 
TravisCI (wanted to test a DUB related regression fix).


I had this problem with `beta3` when compiling a vibe.d project.

Performing "release" build using /D/ldc2-1.1.0-beta3/bin/ldc2 for 
x86_64.


vibe-d:utils 0.7.30-rc.1: building configuration "library"...
Error: failed to create path to file: 
.dub/obj/../../.dub/packages/vibe-d-0.7.30-rc.1/vibe-d/.dub/build/library-release-linux.posix-x86_64-ldc_0-2530BD99F72930F46E92BF1D555FBB9A/libvibe-d_utils.a

No such file or directory

I went back to `beta2` and it worked.



Re: Please say hello to Alexandru

2016-10-05 Thread Chris via Digitalmars-d-announce
On Tuesday, 4 October 2016 at 23:01:37 UTC, Andrei Alexandrescu 
wrote:

[...]

Bine ai venit!


Re: SDLang-D v0.10.0 - Big convenience improvements

2016-09-30 Thread Chris via Digitalmars-d-announce
On Tuesday, 27 September 2016 at 15:26:04 UTC, Nick Sabalausky 
wrote:

On 09/27/2016 04:55 AM, Chris wrote:


I was actually thinking of using SDL for pseudo code 
non-programmers
could write, e.g. to create rule files that a program could 
execute. It

could work nicely with `if` and `else` tags + attributes.


A simple programming language that's SDLang-compliant would 
definitely be interesting!


I think SDLang is underrated and I hope it will find more 
adopters in the future. JSON is useful and used all over the 
place. But it has shortcomings that are probably due to the fact 
that it was never meant to be used as widely as it is today (i.e. 
outside JS). The lack of comments is a big minus.


Re: SDLang-D v0.10.0 - Big convenience improvements

2016-09-27 Thread Chris via Digitalmars-d-announce
On Sunday, 25 September 2016 at 22:12:21 UTC, Nick Sabalausky 
wrote:

https://github.com/Abscissa/SDLang-D

New in v0.10.0:
Big convenience enhancements to DOM interface and an improved 
pull parser interface. Plus documentation improvements and a 
couple bugfixes.


Full changelog:
https://github.com/Abscissa/SDLang-D/blob/master/CHANGELOG.md

===

SDLang-D is a D library to read and write SDLang. Both a DOM 
and a Pull Parser are provided.


SDLang  is similar to XML/JSON/YAML, but 
much simpler and less verbose. It look like this:


-
// A few basic values
first "Joe"
last "Coder"
ip "127.0.0.1" port=80

// Supports child tags
folder "myFiles" color="yellow" protection=on {
folder "my documents" {
document "resume.pdf"
}
}
-
Language Guide: 
https://github.com/Abscissa/SDLang-D/wiki/Language-Guide


I was actually thinking of using SDL for pseudo code 
non-programmers could write, e.g. to create rule files that a 
program could execute. It could work nicely with `if` and `else` 
tags + attributes.


Re: Running a D game in the browser

2016-08-04 Thread Chris via Digitalmars-d-announce
On Wednesday, 3 August 2016 at 20:26:23 UTC, Sebastien Alaiwan 
wrote:

Hi,

I finally managed to compile some D code to asm.js, using 
Emscripten.


It had been done by one dude several years ago, but some 
changes in the inner workings of Emscripten (the introduction 
of fastcomp, also probably combined with changes in the way LDC 
generates LLVM bitcode) made it impossible to use the same 
technique.


You can play a minimalistic demo:
http://code.alaiwan.org/dscripten/full.html

The source code + toolchain deployment scripts are available on 
github:

https://github.com/Ace17/dscripten

And a blogpost explaining the technique is available here:
http://code.alaiwan.org/wp/?p=103
(Spoiler: at some point, it involves lowering the source code 
back to C)


Please let me know what you think!


Cool. I think the D Foundation should actively support stuff like 
this (once funding and resources are secured). Mobile 
(iOS/Android) and asm.js. That's where huge shares of the market 
are, it's a "must have".


PS I don't like WASD in the game, I'm not left handed ;)


Re: std.experimental.xml available on DUB

2016-08-02 Thread Chris via Digitalmars-d-announce
On Sunday, 31 July 2016 at 12:04:18 UTC, Steven Schveighoffer 
wrote:


2) The function "exit", I don't like. This is bikeshedding, but 
I just don't like the possibility that to conflate with C exit. 
I don't have a good replacement name for enter/exit, so this 
comment is pretty minor.


-Steve


How about `leave` (enter/leave)



Re: D-Man culture

2016-08-02 Thread Chris via Digitalmars-d-announce

On Friday, 29 July 2016 at 17:15:05 UTC, Chris wrote:


Will they sell D-shirts as well (couldn't resist the pun!).


I will use this for my `--help` messages in the future.

OO
|\
 \__0_0_ /
 |   \
 | |\ \
 | || |
 | || |
 | || |
 | |/ /
 |___/
   \\
   //
   ^^
Written in D.


Re: D-Man culture

2016-07-29 Thread Chris via Digitalmars-d-announce

On Thursday, 28 July 2016 at 16:10:58 UTC, Seb wrote:
we could generate revenue with the (real) D-Man? I
don't know, if it existed independently of DLang, or if it's 
in some way related to DLang. In the latter case we might use 
it to make some money for the D Foundation.


@Chris you should get in touch with the nice guys from 
Sociomantic (e.g.
Dylan Cromwell (https://github.com/dylan-cromwell-sociomantic) 
and Leandro Lucarella 
(https://github.com/leandro-lucarella-sociomantic)). They are 
working on helping the D Foundation to setup a D Store with 
swag ;-)


Will they sell D-shirts as well (couldn't resist the pun!).


Re: simple sax-style xml parser

2016-07-29 Thread Chris via Digitalmars-d-announce

On Wednesday, 20 July 2016 at 01:49:37 UTC, ketmar wrote:
i wrote a simple sax-style xml parser[1][2] for my own needs, 
and decided to share it. it has two interfaces: `xmparse()` 
function which simply calls callbacks without any validation or 
encoding conversion, and `SaxyEx` class, which does some 
validation, converts content to utf-8 (from anything 
std.encoding supports), and calls callbacks when the given path 
is triggered.


it can parse any `char` input range, or std.stdio.File. parsing 
files is probably slightly faster than parsing ranges.


internally it is extensively reusing memory buffers it 
allocated, so it should not create a big pressure on GC.


you are expected to copy any data you need in callbacks (not 
just slice, but .dup!).


so far i'm using it to parse fb2 files, and it parsing 8.5 
megabyte utf-8 file (and creating internal reader structures, 
including splitting text to words and some other housekeeping) 
in one second on my i3 (with dmd -O, even without -inline and 
-release).


it is not really documented, but i think it is "intuitive". 
there are also some comments in source code; please, read 
those! ;-)


p.s. it decodes standard xml entities (

Re: New Diet template engine almost complete, ready for comments

2016-07-29 Thread Chris via Digitalmars-d-announce
Talking about diets, will reShop[1] be available for Android an 
iOS too? You could extend it by adding "health tips" (add fruit & 
veg automatically), a calorie counter (for single items and the 
whole list) ;)


http://rejectedsoftware.com/products/reshop


Re: The D Language Foundation has filed for non-profit status

2016-07-29 Thread Chris via Digitalmars-d-announce
On Thursday, 21 July 2016 at 02:16:55 UTC, Andrei Alexandrescu 
wrote:

Hello everyone,


Effective today the IRS has received the application of The D 
Language Foundation for tax-exempt (non-profit) status. An 
attorney and an accountant have helped me with the application. 
Going forward, they will work with us on a need basis.


Following the next few months we have an odd "limbo" status. 
After that (most likely before the end of this year) we will 
get a decision (or more questions) from the IRS.


This is an important milestone for the Foundation and for the D 
language development. The tax-exempt status will allow the 
Foundation to receive tax-advantageous donations from other 
organizations, and to fully use funds for the development of 
the language.


By the Foundation bylaws we defined, the officers of the 
Foundation (Walter, Ali, and myself) are not allowed to receive 
payment for their work on the Foundation.


Many thanks to our wonderful grass-roots and corporate 
community that has been ever so constructive and supportive in 
this endeavor.



Andrei


o   o
|\
 \ ___   /
  |,-oo\\
  ||||
  ||||
  ||   //
  ||__//
  '---
   \  \
   /  /
   ^  ^


Re: New Diet template engine almost complete, ready for comments

2016-07-28 Thread Chris via Digitalmars-d-announce

On Monday, 25 July 2016 at 09:29:38 UTC, Sönke Ludwig wrote:
The Diet template language is aimed at providing a way to 
define procedurally generated HTML/XML pages (or other output 
formats), with minimal visual noise. Syntax and feature set are 
heavily inspired by Jade , but instead 
of JavaScript, all expressions and statements are D statements, 
and everything that can be done at compile-time is done at 
compile-time.


Vibe.d still contains the original implementation, which was 
written around the limitations of DMD's CTFE engine back years 
ago, and is basically a monolithic parser+generator with little 
flexibility and a number of convenience features missing, 
because of their implementation complexity. The new 
implementation has been rewritten cleanly, with separate 
parser, modifier and generator modules, working on a common DOM 
tree intermediate representation.


The major new features/improvements are:

  - No external dependencies other than Phobos
  - Supports inline and nested tags syntax
  - Supports string interpolations within filter nodes (falls 
back to

runtime filters)
  - Supports AngularJS special attribute names
  - Extensible/configurable with traits structures
  - Uses less memory during compilation (this one was a real 
surprise)

  - (Unit) tested from the start
  - Supports arbitrary uses other than generating HTML, for 
example we

   use it similar to QML/XAML for our internal UI framework

The API documentation can be shown ba running DUB:
   dub fetch diet-ng --version=1.0.0-alpha.2
   dub run diet-ng -b ddox

You can try the library directly, or together with the latest 
alpha release of vibe.d (0.7.30-alpha.3). Simply add a 
dependency to "diet-ng", version "~>1.0.0-alpha.2". Vibe.d will 
automatically re-route render!(...) calls to diet-ng.


A small example with just the most essential features is shown 
in the README:

https://code.dlang.org/packages/diet-ng

More complex real-world examples:
https://github.com/rejectedsoftware/vibed.org/tree/master/views
https://github.com/rejectedsoftware/ddox/tree/master/views

Any comments/requests regarding the feature set or API are 
highly welcome!


Great stuff! Very much appreciated. Btw, the link to 
jade-lang.org (don't click!) leads to a dodgy business homepage 
atm. The right address is


http://jade-lang.com/


Re: D-Man culture

2016-07-28 Thread Chris via Digitalmars-d-announce

On Thursday, 28 July 2016 at 09:35:20 UTC, Walter Bright wrote:

On 7/28/2016 2:06 AM, Jack Applegame wrote:

[...]


Past time to drop this topic.


Any way we could generate revenue with the (real) D-Man? I don't 
know, if it existed independently of DLang, or if it's in some 
way related to DLang. In the latter case we might use it to make 
some money for the D Foundation.


Re: D-Man culture

2016-07-27 Thread Chris via Digitalmars-d-announce

On Wednesday, 27 July 2016 at 19:50:13 UTC, Walter Bright wrote:

On 7/27/2016 12:17 PM, solidstate1991 wrote:

On Wednesday, 27 July 2016 at 13:48:15 UTC, Chris wrote:

On Wednesday, 27 July 2016 at 01:39:19 UTC, Ali Çehreli wrote:

On 07/26/2016 05:40 PM, solidstate1991 wrote:
And now, there's even a female (more precisely, a 
moe-anthropomorphic

version) mascot made by me. Feel free to create derivatives.

http://ziltoid1991.deviantart.com/art/DLang-chan-624180895?ga_submit_new=10%253A1469578950


http://www.pixiv.net/member_illust.php?mode=medium_id=58107541


LOL! The dissimilarity is hilarious. :D

Ali


I don't want to be a spoil sport, but who has the copyright? 
It could create

revenue for the D Foundation!


I put CC free4all license on it, so no. However if needed I 
could make a visual
novel with her, where you can date with (and have sex with in 
the uncensored
version) a programming language represented by a cute anime 
girl, however I
won't write a new VN engine for D, either someone creates one 
or I use a
preexisting one that was probably written in C#. We can sell 
the VN, so we have

some hope, maybe also selling her as figurines.


While I appreciate the effort and the offer, it is 
inappropriate to have a woman with a miniskirt and partially 
unbuttoned blouse as an official mascot for D.



I was actually talking about the D-Man ;)


Re: D-Man culture

2016-07-27 Thread Chris via Digitalmars-d-announce

On Wednesday, 27 July 2016 at 01:39:19 UTC, Ali Çehreli wrote:

On 07/26/2016 05:40 PM, solidstate1991 wrote:
And now, there's even a female (more precisely, a 
moe-anthropomorphic

version) mascot made by me. Feel free to create derivatives.

http://ziltoid1991.deviantart.com/art/DLang-chan-624180895?ga_submit_new=10%253A1469578950

http://www.pixiv.net/member_illust.php?mode=medium_id=58107541


LOL! The dissimilarity is hilarious. :D

Ali


I don't want to be a spoil sport, but who has the copyright? It 
could create revenue for the D Foundation!


Re: Ocean preview finally open sourced

2016-07-01 Thread Chris via Digitalmars-d-announce

On Friday, 1 July 2016 at 08:54:27 UTC, Leandro Lucarella wrote:

Maybe in some future we might want to do some sort of 
separation between the more algorithmic stuff and the more 
platform-dependent stuff, because we actually spent quite some 
time and effort in removing some Tango's abstractions. It is a 
very conscious design decision to remove as many abstraction 
layers as possible, and for the platform-dependent part, we 
definitely don't want to go back. We need to work very closely 
to the OS facilities, so abstractions are plain noise and 
source of inefficiency for us :)


But if there is interest, I don't discard the splitting idea in 
some future.


It'd be great, if there was some sort of separation so that users 
know exactly what to use for cross-platform development and what 
not. Docs or some sort of a cheat sheet would be nice too. In 
this way users can see, if Ocean contains something interesting 
for the task at hand. There's less of a chance of adoption, if 
you have to go through the source code to see what it does.


Re: Ocean preview finally open sourced

2016-06-30 Thread Chris via Digitalmars-d-announce
On Thursday, 30 June 2016 at 21:20:16 UTC, Leandro Lucarella 
wrote:


I'd say some parts should work out of the box (there many 
things that are completely OS agnostic, like containers, cache, 
bindings to other libraries like PCRE, etc.), and some other it 
would be quite some work (for example all the I/O is tied to 
epoll, there is one class to work with direct I/O that's super 
Linux specific, etc.).


Hm. I'd have to see what works. I can't afford to be stuck to one 
OS.


Re: Ocean preview finally open sourced

2016-06-30 Thread Chris via Digitalmars-d-announce
How much would it take to make it cross platform (Windows, Mac). 
Unfortunately, we still have to cater for those two outliers :)


Re: IUP, CD, IM, lua interfaces in D.

2016-06-29 Thread Chris via Digitalmars-d-announce

On Wednesday, 29 June 2016 at 14:01:52 UTC, mogu wrote:

On Wednesday, 29 June 2016 at 09:48:19 UTC, Chris wrote:


Have you seen this:

https://github.com/DerelictOrg/DerelictLua

There is also

https://github.com/JakobOvrum/LuaD

I have already looked over these projects before I wrote this 
down. The problems are that luaD is in version 5.1 and 
DerelictLua only supports dynamic link. Another issue is that I 
just want this project to do translations instead of making 
other personal creations involved.


Yeah, LuaD is too old.


Re: Release DUB 0.9.25, new logo and updated website design

2016-05-24 Thread Chris via Digitalmars-d-announce

On Monday, 23 May 2016 at 09:30:25 UTC, Chris wrote:

On Monday, 23 May 2016 at 09:23:45 UTC, Sönke Ludwig wrote:

Am 23.05.2016 um 11:22 schrieb Chris:
The flavicon is still the old one and appears in search 
engine results.


For some reason, favicons are cached aggressively. It has been 
updated, but it's hard to get the browsers pick it up.


I thought it might be a caching issue. I don't know about the 
search engines though. Can you inform them of the update? I 
opened the page in a different browser and it shows the new 
favicon, but in the search results it's still the old icon.


My search engine now shows the new favicon.


Re: Diamond - MVC / Template engine

2016-05-23 Thread Chris via Digitalmars-d-announce

On Saturday, 21 May 2016 at 19:32:58 UTC, Bauss wrote:

On Saturday, 21 May 2016 at 11:02:41 UTC, Bauss wrote:

On Saturday, 21 May 2016 at 10:02:17 UTC, Chris wrote:

Thank you and yes, there's a few wiki pages at the moment.


Just finished stand-alone support and added a "guide" on how to 
use it. There are currently 3 guides on using it for websites, 
webservices and as stand-alone.


Next thing coming up is a website for the whole thing :)

This marks the last "initial" alpha version 0.2.3

The plan is to have monthly releases with stable versions.


Thanks for the quick guides.

Typo on homepage:

rewamped => revamped




Re: Release DUB 0.9.25, new logo and updated website design

2016-05-23 Thread Chris via Digitalmars-d-announce

On Monday, 23 May 2016 at 09:23:45 UTC, Sönke Ludwig wrote:

Am 23.05.2016 um 11:22 schrieb Chris:
The flavicon is still the old one and appears in search engine 
results.


For some reason, favicons are cached aggressively. It has been 
updated, but it's hard to get the browsers pick it up.


I thought it might be a caching issue. I don't know about the 
search engines though. Can you inform them of the update? I 
opened the page in a different browser and it shows the new 
favicon, but in the search results it's still the old icon.


Re: Release DUB 0.9.25, new logo and updated website design

2016-05-23 Thread Chris via Digitalmars-d-announce

On Monday, 23 May 2016 at 08:04:51 UTC, Sönke Ludwig wrote:

Am 23.05.2016 um 09:01 schrieb Jacob Carlborg:

On 2016-05-23 08:52, Sönke Ludwig wrote:


On which browser/OS?


On OS X using Safari, Chrome or Firefox.


I've now removed the border/background color,


I think the background and border looked fine.


It looked out of place on non-Mac systems. On OS X on the other 
hand, the monospace font is rendered hardly different from the 
serif one. I've added the border back, but lighter and with 
vertical padding, which looks okay on both systems.





but the font size looks fine for me on Linux.


Using Firefox:

The inline code has font size 15px. I think "Andale Mono" is 
the font

that is actually used.

For the code blocks, the font size is 13px and the font is 
"Courier New".


The rest of the text is using "Roboto Slab" and 15px.



Okay, removed the old "Courier New" reference and both are 
rendered the same now.


The flavicon is still the old one and appears in search engine 
results.


Re: Diamond - MVC / Template engine

2016-05-21 Thread Chris via Digitalmars-d-announce

On Saturday, 21 May 2016 at 08:20:00 UTC, Bauss wrote:
[snip]

Sounds interesting. Are you planning to add a tutorial / more 
examples?


Typo on your Github page:

"on every playform that can compile D"

playform => platform


Re: It's alive! D building D building D, all on Android

2016-05-05 Thread Chris via Digitalmars-d-announce

Thank you very much!! Fantastic job!


Re: Commercial video processing app in D (experience report)

2016-04-28 Thread Chris via Digitalmars-d-announce

On Wednesday, 27 April 2016 at 12:42:05 UTC, thedeemon wrote:

Hi,
I just wanted to share some experience of using D in industry.
Recently my little company released version 2.0 of our flagship 
product Video Enhancer, a video processing application for 
Windows, and this time it's written in D.

http://www.infognition.com/VideoEnhancer/


[snip]


DLangUI
Very nice library. Documentation is very sparse though, so 
learning to use DLangUI often means reading source code of 
examples and the lib itself, and sometimes even that's not 
enough and you need to learn some Android basics, since it 
originates from Android world. But once you learn how to use 
it, how to encode what you need in DML (a QML counterpart) or 
add required functionality by overriding some method of its 
class, it's really great and pleasant to use. Many times I was 
so happy the source code is available, first for learning, then 
for tweaking and fixing bugs. I've found a few minor bugs and 
sent a few trivial fixes that were merged quickly. DLangUI is 
cross-platform and has several backends for drawing and font 
rendering. We're using its minimal build targeted to use Win32 
API (had to tweak dub.json a bit). We don't use OpenGL, as it's 
not really guaranteed to work well on any Windows box. Using 
just WinAPI makes our app smaller, more stable and avoids 
dependencies.



[snip]

Another reason to embrace DLangUI. One starting point would be to 
improve the documentation and write a few tutorials (including 
DML, themes etc.)


Re: DlangUI on Android

2016-04-24 Thread Chris via Digitalmars-d-announce

On Sunday, 24 April 2016 at 06:19:14 UTC, thedeemon wrote:

On Saturday, 23 April 2016 at 18:16:38 UTC, Chris wrote:

Anyone interested in taking DlangUI and turning it into 
something like Swing/JavaFX for D?


What exactly do you mean by that?


Embrace DlangUI or something based on it in the same way DUB was 
embraced. Atm, only Vadim works on it as a hobby. It would be a 
pity to see it come to a standstill one day - for what ever 
reason. I think a D based UI is important, especially now that D 
is getting some attention.


Re: DlangUI on Android

2016-04-23 Thread Chris via Digitalmars-d-announce

On Saturday, 23 April 2016 at 02:48:10 UTC, Vadim Lopatin wrote:

On Friday, 22 April 2016 at 18:49:24 UTC, Laeeth Isharc wrote:
This is a very exciting development.  (And impressive in the 
'consequent' department, as the Germans say - you said you 
would have DlangUI ported to Android some weeks after the 
working compiler, and that's what you did!).


It took about one week to make DlangUI android backend once I 
managed to build NativeActivity example by Joakim's 
instructions.


I would say it will take a week or too to make iOS backend once 
we have working compiler for iOS (in my estimations it will 
have 1K-2K lines of D code and 1K-2K lines of obj-c code.


Unfortunately, I have no experience with objective C neither 
with iOS programming.


Android port was easy for me because DlangUI was a kind of 
port/reimplementation of my C++ cross platform GUI library I 
used for my CoolReader GL project (e-book reader).


Might be useful for me to port some D code for internal 
enterprise apps to Android that currently runs on linux (I 
recognise how experimental it is, but I'm okay with that since 
mobile is just nice to have, and not yet necessary).
Please let me know issue you face when using DlangUI for mobile 
development.



Will you be at dconf?

No, I'm not planning to participate.
D is just a hobby for me.


Anyone interested in taking DlangUI and turning it into something 
like Swing/JavaFX for D?


Re: Using D in Debian to build AppStream metadata.

2016-04-20 Thread Chris via Digitalmars-d-announce

On Sunday, 17 April 2016 at 11:10:29 UTC, Antonio Corbi wrote:

Hello,

Just read this post from Matthias Klumpp 
(http://blog.tenstral.net/2016/04/introducing-appstream-generator.html) in planet.debian.net where he talks about replacing the current appstream metadata generator written in python (dep11-generator).


He talks about considering Go, Rust and D for this task, and 
why He finally chose D. It's very short and very enlightening, 
worth a reading!


Hope you like it!
Sorry if this has been posted before.

Antonio


From the blog post:
"And while I never intended to write the new generator in D (I 
was pretty fixated on Go…), this is what happened. The strong 
points for D for this particular project were its close relation 
to C (and ease of using existing C code), its super-flat learning 
curve for someone who knows and likes C and C++ and its pretty 
powerful implementations of the concurrent and parallel 
programming paradigms."


That's pretty cool - and interesting.


Re: TTS Synthesis: D and vibe.d in Action

2016-04-15 Thread Chris via Digitalmars-d-announce

On Thursday, 14 April 2016 at 17:55:40 UTC, Ali Çehreli wrote:

On 04/14/2016 03:57 AM, Chris wrote:


What is CvDda>?


Abbreviation of your name by Andre's email program: "Chris via 
Digitalmars-d-announce". :)


Ali


Oh deary me! That was a tough one for me :) Type CvDda into your 
search engine, the results are confusing.


Re: TTS Synthesis: D and vibe.d in Action

2016-04-14 Thread Chris via Digitalmars-d-announce
On Wednesday, 13 April 2016 at 19:09:46 UTC, Andre Polykanine 
wrote:

Hello Chris,

CvDda> Just to inform you that we successfully use D and vibe.d 
for two CvDda> things:


This is just overwhelming!
How do you make bindings to NVDA API which is in Python?
I'm  not  an  NVDA  user (I'm using JAWS, if it matters), but 
I'm still

very interested in the technology.


Andre.


Hi Andre,

What is CvDda>? There are loads of different results in my search 
engine.


To answer your question: in Python you can load DLLs via Python's 
ctypes. You just load the DLL via `CDLL()` or 
`cdll.LoadLibrary()`. It's relatively easy to make a Windows DLL 
in D. To make it accessible for Python's C-types, just expose 
your functions like so


extern (C) {
 export void myFunction(){}
}

Of course, any arguments (at least on Windows) or return types 
should be C-style, i.e. `const char*` instead of `string`. To 
Python it all looks like C, it doesn't know about D. I've seen a 
plug-in written in Scheme and it is also loaded via Python's 
`CDLL()`.


To bind a Python function to your DLL just do something like this 
(assuming you're in a class):


// Load
self.myDLL = CDLL("path/to/dll")

If your function is void, just call it using

// call void function in DLL
self.myDLL.myFunciton();

If it returns something, you should first define the return value:

// assign return type to function in Python
self.myDLL.getError.restype = c_char_p

To pass arguments, it's best to convert Python to C-types like so:

// pass argument as C-type
self.myDLL.myFunction(c_char_p("text"))

It's all in the Python docs at 
https://docs.python.org/2/library/ctypes.html.




Re: TTS Synthesis: D and vibe.d in Action

2016-04-12 Thread Chris via Digitalmars-d-announce

On Tuesday, 12 April 2016 at 14:37:52 UTC, jamonahn wrote:

On Tuesday, 12 April 2016 at 10:22:03 UTC, Chris wrote:
...

http://www.ahg.gov.ie/ga/ [2]


Just some confusion on my part -- this is the link to try it 
out.


Congrats!  What a wonderful inspiration!


Thanks. I hope that more people and organizations will use it 
down the road.


Re: TTS Synthesis: D and vibe.d in Action

2016-04-12 Thread Chris via Digitalmars-d-announce

On Tuesday, 12 April 2016 at 17:41:32 UTC, wobbles wrote:

On Tuesday, 12 April 2016 at 10:22:03 UTC, Chris wrote:

Hi,

Just to inform you that we successfully use D and vibe.d for 
two things:


[...]


Great to see some fellow Irish D users!


Good to know I'm not the only one! I was already wondering how 
many people in Ireland actually use D! :-) It's either considered 
"exotic" or "never heard of".


TTS Synthesis: D and vibe.d in Action

2016-04-12 Thread Chris via Digitalmars-d-announce

Hi,

Just to inform you that we successfully use D and vibe.d for two 
things:


1. an NVDA[1] screen reader plugin:

http://www.abair.ie/nvda/

It is still version 0.6 beta but it is already being used by 
visually impaired people.


2. a web version of the text-to-speech synthesizer that is now 
used on the website of the Department of Arts, Heritage and the 
Gaeltacht in Ireland:


http://www.ahg.gov.ie/ga/ [2]

The web service is based on vibe.d and will be extended for more 
use cases (for example on the fly synthesis in the "cloud"). It 
is also still beta. The system works quite fast (the delay is due 
to a timeout in the JS, i.e. it doesn't send the request 
immediately - which will be optional in future versions).


[1] http://www.nvaccess.org/
[2] It's the green bubble that says "abair.ie" at the bottom of 
the page, once you click on it you'll see some controls, press on 
the bubble that says "a" to activate it. It will read out 
whatever is under the cursor (after a short delay which is in the 
JS).


Re: D Cookbook [eBook] Free on PackPub

2016-01-06 Thread Chris via Digitalmars-d-announce

On Wednesday, 6 January 2016 at 09:52:14 UTC, Rory McGuire wrote:

Hi all,

Today's free ebook on PacktPub is "D Cookbook [eBook]".

Get it while its hot.

Cheers,
R


How do you get it? Do you have a link?


Re: D Cookbook [eBook] Free on PackPub

2016-01-06 Thread Chris via Digitalmars-d-announce

On Wednesday, 6 January 2016 at 10:38:05 UTC, Iain Buclaw wrote:
On 6 January 2016 at 11:34, Chris via Digitalmars-d-announce < 
digitalmars-d-announce@puremagic.com> wrote:


On Wednesday, 6 January 2016 at 09:52:14 UTC, Rory McGuire 
wrote:



Hi all,

Today's free ebook on PacktPub is "D Cookbook [eBook]".

Get it while its hot.

Cheers,
R



How do you get it? Do you have a link?




It's here: https://www.packtpub.com/packt/offers/free-learning

13 hours and 20 minutes to go! (As of writing)


Thanks. Got it as epub now. I only had the PDF version which is 
not optimal for e-readers. I see that "Learning D" (Michael 
Parker) is also available in different formats now. Very good 
(epub, mobi, kindle). It was about time!


Re: D Language Architect

2015-11-11 Thread Chris via Digitalmars-d-announce

On Wednesday, 11 November 2015 at 16:46:52 UTC, qznc wrote:
On Wednesday, 11 November 2015 at 12:27:00 UTC, Andrei 
Alexandrescu wrote:
So we mulled over this for a while and we decided to go with 
"D Language Architect". I'll use that henceforth. Walter will 
remain of course the "D Language Creator".


So you are AAA now, Architect Andrei Alexandrescu.


Has anybodv ever read this book? I can only recommend it:

http://www.amazon.com/Architect-Bee-Human-Technology-Relationship/dp/0949874000/ref=sr_1_3?ie=UTF8=1447272861=8-3=architect+or+bee

Or the revised edition

http://www.amazon.com/Architect-Bee-Technology-Current-affairs/dp/0701207698/ref=sr_1_2?ie=UTF8=1447272861=8-2=architect+or+bee

Architect or B? No, architect and D! (Bad bad pun, I know)


Re: D 2.068.2 test runner for Android ARM, please test and report results from your Android device

2015-11-04 Thread Chris via Digitalmars-d-announce

On Wednesday, 4 November 2015 at 17:34:58 UTC, Joakim wrote:

On Sunday, 1 November 2015 at 09:50:16 UTC, Joakim wrote:
You can build ldc from source yourself using the patches 
linked.  I will soon make available a cross-compiler build of 
ldc on linux/x86 and write up the process of building 
everything, including the test runner apk, on the wiki.


I've started writing the build process up on the wiki.  You can 
build the ldc cross-compiler, a small command-line program, and 
the command-line test runner yourself:


http://wiki.dlang.org/Build_LDC_for_Android


Great work! You're a legend. I'll try it once I have time.


Re: Please vote for the DConf logo

2015-11-04 Thread Chris via Digitalmars-d-announce

On Wednesday, 4 November 2015 at 10:51:58 UTC, Chris wrote:
On Wednesday, 4 November 2015 at 09:30:30 UTC, Andrei 
Alexandrescu wrote:

Reply to this with 1.1, 1.2, 2, or 3:

1) by ponce:

Variant 1: 
https://github.com/p0nce/dconf.org/blob/master/2016/images/logo-sample.png
Variant 2: 
https://raw.githubusercontent.com/p0nce/dconf.org/4f0f2b5be8ec2b06e3feb01d6472ec13a7be4e7c/2016/images/logo2-sample.png


2) by Jonas Drewsen:

https://dl.dropboxusercontent.com/u/188292/g4421.png

3) by anonymous:

PNG: http://imgur.com/GX0HUFI
SVG: https://gist.github.com/anonymous/4ef7282dfec9ab327084


Thanks,

Andrei


For me it's definitely 3 (http://imgur.com/GX0HUFI). It's a 
nice idea to include an icon of the city it's in. Well done!


The design with the German flag (or any flag) doesn't appeal to 
me. If DConf is in the USA, you don't put the star spangled 
banner on the logo either.


Second choice: 
https://dl.dropboxusercontent.com/u/188292/g4421.png


Also, 3 is simple and elegant, and says it all.


Re: Please vote for the DConf logo

2015-11-04 Thread Chris via Digitalmars-d-announce
On Wednesday, 4 November 2015 at 09:30:30 UTC, Andrei 
Alexandrescu wrote:

Reply to this with 1.1, 1.2, 2, or 3:

1) by ponce:

Variant 1: 
https://github.com/p0nce/dconf.org/blob/master/2016/images/logo-sample.png
Variant 2: 
https://raw.githubusercontent.com/p0nce/dconf.org/4f0f2b5be8ec2b06e3feb01d6472ec13a7be4e7c/2016/images/logo2-sample.png


2) by Jonas Drewsen:

https://dl.dropboxusercontent.com/u/188292/g4421.png

3) by anonymous:

PNG: http://imgur.com/GX0HUFI
SVG: https://gist.github.com/anonymous/4ef7282dfec9ab327084


Thanks,

Andrei


For me it's definitely 3 (http://imgur.com/GX0HUFI). It's a nice 
idea to include an icon of the city it's in. Well done!


The design with the German flag (or any flag) doesn't appeal to 
me. If DConf is in the USA, you don't put the star spangled 
banner on the logo either.


Second choice: 
https://dl.dropboxusercontent.com/u/188292/g4421.png


Re: DConf 2016 venue: beautiful Heimathafen Neukölln

2015-11-03 Thread Chris via Digitalmars-d-announce
On Tuesday, 3 November 2015 at 15:04:21 UTC, Andrei Alexandrescu 
wrote:

http://dconf.org/2016/venue.html

We're pleased to announce that DConf 2016 will take place in 
Heimathafen Neukölln, the crucible of modern Berliner 
Volkstheater ("People's Theater"). We should feel right at home 
amid the energy, provocative contrasts, and colorful creativity 
on Karl-Marx-Straße.


Early-bird registration to open soon. See you there, and if you 
ever wanted to wear some quirky accessory (that bandana? orange 
sneakers? vintage DConf shirt?) - bring it with you!



Andrei


Or dress up as a computer nerd ... :)


Re: Walter Bright, Scott Meyers and me live on the most watched morning show in Romania

2015-10-17 Thread Chris via Digitalmars-d-announce

On Saturday, 17 October 2015 at 18:25:32 UTC, Walter Bright wrote:

On 10/17/2015 9:09 AM, Andrei Alexandrescu wrote:

On 10/17/15 4:01 PM, mattcoder wrote:
On Saturday, 17 October 2015 at 09:36:08 UTC, Andrei 
Alexandrescu wrote:

D got mentioned as well.
...


Awesome!

Just a note: the guy in red suit (George Buhnici?), looks 
like you

Andrei. :)


Yep, Walter and Scott figured there's an ethnic look to 
Romanians. In
particular they say I have a "Romanian mobster" look going. -- 
Andrei



We had a great time, and the Romanian people we met couldn't 
have been nicer to us. Romania is a very beautiful country, and 
having Andrei as our guide was an opportunity not to be missed!


Of course they were nice, after all you had a 'Romanian mobster' 
with you :-)




Re: New blog about D

2015-09-29 Thread Chris via Digitalmars-d-announce

On Tuesday, 29 September 2015 at 04:19:58 UTC, Mike Parker wrote:

On Monday, 28 September 2015 at 14:26:35 UTC, Chris wrote:




I really don't like blog posts that have overly broad titles 
when the subject matter is technical. I think the title should 
be as specific as possible so that I know if it's something I 
care about. If I see a general title about game development 
that refers to something that only touches a specific aspect of 
it, one that I'm not interested in, I'll just feel like I've 
wasted my time. Moreover, when I am doing a search for 
something specific, the blog title is often all I pay attention 
to as I can the search results. A more specific title helps out 
a lot.


It depends on what the blogger in question wants. If s/he wants 
to draw attention to D in general and give examples of how D is 
useful to solve certain problems (e.g. with templates, mixins 
etc), then the title should be more general. The next article 
might be about processing big data in D - then it should have 
"big data" in the title/tag/keywords and not just something that 
refers to one specific aspect of big data handling. The point is 
that if people see D being associated with various aspects of 
programming (games, big data), it gets them interested in D in 
general.


If, however, the blogger only wants to talk about D to people who 
already use D, then s/he might as well be more specific.


Re: New blog about D

2015-09-28 Thread Chris via Digitalmars-d-announce

On Monday, 28 September 2015 at 13:20:54 UTC, Mike Parker wrote:

On Monday, 28 September 2015 at 10:02:20 UTC, Chris wrote:


Hi, I've just read the post. It's nice, it doesn't waste the 
reader's time and comes straight to the point (apart from 
highlighting D's strength). I agree, however, that the title 
could have been better in terms of attracting readers. Since 
you mention game programming, maybe it would be good to 
mention it somehow in the title, something to this effect:


"A common problem in game programming and how D solved it"

or something like that.

In this way someone who's interested in game programming may 
read it or at least take note of the fact that D is mentioned 
in the context of game programming (and offers solutions).  
You would want to think less like an engineer when writing and 
more like an editor / PR guy who wants to get readers 
interested. Good headlines are the most difficult part.


I think it's a perfect title. "vector swizzling" is a common 
term for anyone working with the graphics side of games and is 
also applicable outside of games development for any graphics 
programming. Good keyword title.


"Vector swizzling" should definitely be mentioned in the keywords 
or a in a sub heading. But IMO "game development" should be in 
the headline, or "graphics programming", although I think "game 
development" would attract a wider audience than "graphics 
programming".


It's best to keep it as general as possible (within reason). 
There is the temptation to think like an engineer and be very 
specific, but this will only attract a small audience, i.e. those 
that look for "vector swizzling". IMO, it makes more sense to 
have the article come up, when somebody types "game development 
vectors" or "game development dlang". And don't forget that a 
good title catches the reader's attention when s/he just skims 
through a homepage / search results, regardless of whether or not 
s/he's looking for "vector swizzling".


Re: New blog about D

2015-09-28 Thread Chris via Digitalmars-d-announce
On Sunday, 27 September 2015 at 23:23:05 UTC, Márcio Martins 
wrote:
Today I launched a very tiny and humble blog, with the first 
post being about D. It's likely all posts will be about D in 
the end...


You can reach it http://www.mmartins.me

I want to get better at writing, as I have barely ever written 
anything other than code, and my name... I noticed there aren't 
many people actively blogging about D, so I will give it a go, 
and in the process, try to grow the community a tiny bit by 
showcasing D's strengths as I remember discovering them myself 
over the course of last year writing exclusively D.


The first post is about vector swizzling. Game programmers get 
spoiled by writing shaders where swizzling is extremely 
convenient, and then when they go back to writing C++ they have 
wet dreams about swizzing in there too. It's not a dream in D. 
This was the first use-case I thought of when I first learned 
about D's templates and mixins, but never got to implement it 
until now.


The blog platform itself is home-made and the server-side is 
100% D (vibe.d). Once I build it up a bit more, I will probably 
put it up on github as an example of how easy it is to build 
high-performance frontend and backend web apps with D + vibe.d. 
It is really productive once the scaffolding and pipeline is 
all built.


If you have a read, please let me know where I could improve, 
both my writing and the D code!


Cheers!
-M


Hi, I've just read the post. It's nice, it doesn't waste the 
reader's time and comes straight to the point (apart from 
highlighting D's strength). I agree, however, that the title 
could have been better in terms of attracting readers. Since you 
mention game programming, maybe it would be good to mention it 
somehow in the title, something to this effect:


"A common problem in game programming and how D solved it"

or something like that.

In this way someone who's interested in game programming may read 
it or at least take note of the fact that D is mentioned in the 
context of game programming (and offers solutions).  You would 
want to think less like an engineer when writing and more like an 
editor / PR guy who wants to get readers interested. Good 
headlines are the most difficult part.


Re: New blog about D

2015-09-28 Thread Chris via Digitalmars-d-announce
On Monday, 28 September 2015 at 12:14:56 UTC, Márcio Martins 
wrote:
On Monday, 28 September 2015 at 11:53:28 UTC, Vladimir 
Panteleev wrote:
On Sunday, 27 September 2015 at 23:23:05 UTC, Márcio Martins 
wrote:
Today I launched a very tiny and humble blog, with the first 
post being about D. It's likely all posts will be about D in 
the end...


You can reach it http://www.mmartins.me


Hi,

If you can create an RSS or ATOM feed for D posts, I can add 
your blog to Planet D:


http://planet.dsource.org/


I haven't had time to implement feeds, yet. Will probably do it 
over of this week.


You're welcome :-) Is there a way you can incorporate keywords 
for search engines and some meta tags like


?


Re: DUB 0.9.24 release

2015-09-24 Thread Chris via Digitalmars-d-announce

On Sunday, 20 September 2015 at 19:36:13 UTC, Sönke Ludwig wrote:

http://sdl.ikayzo.org/ does not work atm.

Is there a tool/switch that converts my old dub.json files to 
dub.sdl?


Re: DUB 0.9.24 release

2015-09-24 Thread Chris via Digitalmars-d-announce
On Thursday, 24 September 2015 at 15:06:04 UTC, Nick Sabalausky 
wrote:

On 09/24/2015 09:45 AM, Chris wrote:
On Sunday, 20 September 2015 at 19:36:13 UTC, Sönke Ludwig 
wrote:


http://sdl.ikayzo.org/ does not work atm.



Permanent mirror here:

http://semitwist.com/sdl-mirror/Home.html

> Is there a tool/switch that converts my old dub.json files to
dub.sdl?

Not at the moment. But the SDLang-D project *does* need to add 
some conversion tools. I don't know that I can get to it right 
away though.


Cool. Thanks.


Re: Go 1.5

2015-09-22 Thread Chris via Digitalmars-d-announce
On Tuesday, 22 September 2015 at 03:59:31 UTC, Ola Fosheim 
Grostad wrote:

On Tuesday, 22 September 2015 at 02:15:51 UTC, jmh530 wrote:
Interesting. Not to resurrect the older D vs. Rust thread, but 
I have heard it that it can be painful to do some things in 
Rust. D often has the ability to do unsafe things, like 
disable the GC. I was looking at how Rust has raw pointers and 
smart pointers. I'm curious as to what it is missing that is 
making things more difficult for people. If you or anyone has 
any idea.


My knowledge of Rust is only cursory, but if you want to graphs 
(like a doubly linked list) you have to use a different pointer 
type. Just like in c++ where you have to use shared_ptr (+ 
weak_ptr or raw pointers) and not unique_ptr. You sometimes 
also have to explicitly state relationships between lifetimes 
(that one object outlives another).


But that's very annoying to work with and more pain than gain.

In my initial post I was thinking of a runtime solution where the 
object knows it's own life cycle, or at least knows when its own 
death is nigh and destroys itself. I don't know if this is 
possible at all, I simply borrowed this idea from biology. We 
don't have GC in our bodies, cells know when it's time for them 
to go.


Re: Go 1.5

2015-09-21 Thread Chris via Digitalmars-d-announce
On Monday, 21 September 2015 at 10:18:17 UTC, Ola Fosheim Grøstad 
wrote:

On Monday, 21 September 2015 at 09:58:31 UTC, Chris wrote:
I sometimes wonder - and please forgive me my ignorance, 
because I'm not a GC expert at all - if it would be possible 
to create a system where the created objects know their own 
life spans and destroy themselves, once they are no longer 
used. Like the cells in our bodies.


Yes, this is the system Rust uses, but the compiler has to 
prove the life spans at compile time. So how convenient that 
is, is limited to the capabilities of the prover and for how 
long you want to wait for the computation of the life times.


So I'm not completely nuts! Good to know. :) I wonder, if 
something like this is feasible in D.




Re: Go 1.5

2015-09-21 Thread Chris via Digitalmars-d-announce
On Monday, 21 September 2015 at 12:04:11 UTC, Ola Fosheim Grøstad 
wrote:




That is most likely even more work than creating a language 
solution?


What's the current state of D's GC. Will std.allocator improve 
things eventually?


Re: Go 1.5

2015-09-21 Thread Chris via Digitalmars-d-announce

On Friday, 18 September 2015 at 19:26:27 UTC, Rory wrote:
The new GC in Go 1.5 seems interesting. What they say about is 
certainly interesting.


http://blog.golang.org/go15gc

"To create a garbage collector for the next decade, we turned 
to an algorithm from decades ago. Go's new garbage collector is 
a concurrent, tri-color, mark-sweep collector, an idea first 
proposed by Dijkstra in 1978."


I sometimes wonder - and please forgive me my ignorance, because 
I'm not a GC expert at all - if it would be possible to create a 
system where the created objects know their own life spans and 
destroy themselves, once they are no longer used. Like the cells 
in our bodies.


Re: Article: More hidden treasure in the D standard library

2015-09-08 Thread Chris via Digitalmars-d-announce

On Monday, 31 August 2015 at 18:39:22 UTC, wobbles wrote:
On Monday, 31 August 2015 at 16:09:02 UTC, Gary Willoughby 
wrote:

I've written a new article on D here:

http://nomad.so/2015/08/more-hidden-treasure-in-the-d-standard-library/

Hopefully to drive other programmers to investigate D. It's a 
continuation of a similar one I wrote a few months ago which 
attracted over 60k readers. It's a simple overview of some 
cool features in the D standard library hopefully to fuel 
curiosity.


Reddit link:

https://www.reddit.com/r/programming/comments/3j3j87/more_hidden_treasure_in_the_d_standard_library/

Up vote away. :)


Nice article. I regularly find things like this where I spend a 
couple hours implementing a solution, only to find its already 
been done for me. Mostly occurs in std.algorithm.


And it's not even lack of documentation, it's me thinking "this 
will never be in the library, time to go do it myself". That 
predSwitch code is a perfect example.


Same here. I've learned to go to Phobos first (mainly 
std.algorithm), before I come up with my own solution. But Phobos 
is so vast that it's easy to miss a gem or two. I'd appreciate 
more articles about how common problems can be solved with Phobos.


One issue I've encountered is that function names don't always 
reflect well what they do, so I filter them. This might be my own 
fault though.


Re: 1st Ever Artificial Consciousness to be Written in D Language

2015-09-04 Thread Chris via Digitalmars-d-announce
On Friday, 4 September 2015 at 09:15:16 UTC, Ola Fosheim Grøstad 
wrote:
On Thursday, 3 September 2015 at 15:20:27 UTC, Nick Sabalausky 
wrote:
based on one hell of a gigantic assumption: That consciousness 
is a natural consequence of a sufficiently large neural net. 
It's a fine and interesting idea, but PURELY speculative, with 
zero evidence and not even any way of testing for evidence 
since, like you say, we can't even figure out the first thing 
about consciousness as it relates to ourselves and each other, 
let alone to machines.


Given a large enough table one could encode perceived human 
behaviour with a lookup-table... So all we need is a computer 
program that itself claims to possess consciousness. Would that 
be a scam? Maybe Asame Obiomah is a computer program claiming 
to be a man writing a computer program. Would that make it 
intelligent? Hm.


Maybe he'll come up with something that is more intelligent than 
your average tabloid reader :)))


Re: 1st Ever Artificial Consciousness to be Written in D Language

2015-09-04 Thread Chris via Digitalmars-d-announce
On Friday, 4 September 2015 at 10:43:32 UTC, Ola Fosheim Grøstad 
wrote:

On Friday, 4 September 2015 at 10:11:18 UTC, Chris wrote:
Maybe he'll come up with something that is more intelligent 
than your average tabloid reader :)))


You should file a business-patent! That would be goldmine.


Not really. A tabloid reader can be modeled like this:

immutable TabloidReader tr =
[
  hate:fear,
  fear:hate
];

immutable Opinion ifYouAskMe(gibberish statement) @safe
{
  in
  {
assert(statement == bullsh*t);
  }
  out(result)
  {
assert(result == AbsoluteBullsh*t);
  }
  body
  {
return "I'm not racist, but " ~ statement;
  }
}

So you just need something that is a bit more sophisticated ;)


Re: DCD 0.7.0

2015-09-03 Thread Chris via Digitalmars-d-announce
How about range snippets? I've just added a simple standard range 
to my snippets.lua file:


range = [[private
{
R r;
}

this(R r)
{
this.r = r;
}

@property bool empty()
{
return r.length == 0;
}

@property auto front()
{
return r[0];
}

@property void popFront()
{
r = r[1..$];
}

Of course there can be all the different kinds of ranges (rangei 
= infinite, rangef = forward range etc.).


Re: DCD 0.7.0

2015-09-02 Thread Chris via Digitalmars-d-announce

On Tuesday, 1 September 2015 at 21:36:46 UTC, Brian Schott wrote:

https://github.com/Hackerpilot/DCD/tree/v0.7.0

After an alpha, a beta, and two release candidates DCD 0.7.0 is 
ready.


The D Completion Daemon is an auto-complete program for the D 
programming language.


Highlights:
* A large portion of DCD's symbol resolution engine was removed 
and

  placed into the new dsymbol project.
* Several design bugs with the cache invalidation process were 
fixed.

  (TLA+ was helpful with this)
* Regression testing! DCD now has regression tests. This was 
long
  overdue... Information on the tests can be found on the 
testing

  wiki page
* DCD now uses the latest version of std.experimental.allocator.
* Added the ability to ask the client to list the paths that are
  registered with the server.
* Removed all editor plugins from the DCD repository. All editor
  plugins were maintained outside of this repository anyways, so
  this was more-or-less a dead code removal. Links to editor 
plugins

  and IDEs can be found on the wiki
* Support 2.068 syntax. The only thing that really changed is 
that
  "inline" and "mangle" are now on the list of "pragma" 
autocomplete suggestions.

* Add "__LINE__", "__FILE__", and other built-in symbols to
  autocomplete suggestions.
* Correctly expand the current working directory when starting 
the

  server with -I options specifying relative paths.
* Fixed many bugs: 
https://github.com/Hackerpilot/DCD/issues?q=milestone%3A0.7.0


Thanks, great stuff! One thing you say it's been tested with 
2.067.1, but for this version it gives the following error 
message:


containers/experimental_allocator/src/std/experimental/allocator/common.d(337): 
Error: module meta is in file 'std/meta.d' which cannot be read
import path[0] = containers/src
import path[1] = msgpack-d/src
import path[2] = libdparse/src
import path[3] = dsymbol/src
import path[4] = containers/experimental_allocator/src

I had to use 2.068.0 to compile it.


Re: DCD 0.7.0

2015-09-02 Thread Chris via Digitalmars-d-announce

On Wednesday, 2 September 2015 at 09:48:53 UTC, Chris wrote:

On Wednesday, 2 September 2015 at 09:47:31 UTC, Chris wrote:



[Textadept]

Why do I get this error when placing the dmd folder in 
~./textadept/modules


.textadept/modules/dmd/init.lua:355: table index is nil

I get the same error when I place it in the 
"textadepthome"/modules


So far I haven't been able to make Dscanner work with 
Textadept.


It's Textadept 8.1 by the way (64bit Linux)


I've fixed the bug (for me):

Your version still assumes pre 8.0 where LANGUAGE_MODULE_PREFIX 
is defined in textadept/core/keys.lua


M.LANGUAGE_MODULE_PREFIX = (not OSX and not CURSES and CTRL or 
META)..'l'


However, this field was removed in 8.0 alpha:

http://foicica.com/textadept/CHANGELOG.html

I simply replaced
[keys.LANGUAGE_MODULE_PREFIX]
with
['l']

in lines 352 and 372.

I suggest you update your code in 
https://github.com/Hackerpilot/textadept-d. Maybe there's a more 
generic way than just using 'l'.


Re: DCD 0.7.0

2015-09-02 Thread Chris via Digitalmars-d-announce

On Wednesday, 2 September 2015 at 09:47:31 UTC, Chris wrote:



[Textadept]

Why do I get this error when placing the dmd folder in 
~./textadept/modules


.textadept/modules/dmd/init.lua:355: table index is nil

I get the same error when I place it in the 
"textadepthome"/modules


So far I haven't been able to make Dscanner work with Textadept.


It's Textadept 8.1 by the way (64bit Linux)


Re: DCD 0.7.0

2015-09-02 Thread Chris via Digitalmars-d-announce

On Wednesday, 2 September 2015 at 09:07:24 UTC, Chris wrote:
On Tuesday, 1 September 2015 at 21:36:46 UTC, Brian Schott 
wrote:

https://github.com/Hackerpilot/DCD/tree/v0.7.0

After an alpha, a beta, and two release candidates DCD 0.7.0 
is ready.


The D Completion Daemon is an auto-complete program for the D 
programming language.


Highlights:
* A large portion of DCD's symbol resolution engine was 
removed and

  placed into the new dsymbol project.
* Several design bugs with the cache invalidation process were 
fixed.

  (TLA+ was helpful with this)
* Regression testing! DCD now has regression tests. This was 
long
  overdue... Information on the tests can be found on the 
testing

  wiki page
* DCD now uses the latest version of 
std.experimental.allocator.
* Added the ability to ask the client to list the paths that 
are

  registered with the server.
* Removed all editor plugins from the DCD repository. All 
editor
  plugins were maintained outside of this repository anyways, 
so
  this was more-or-less a dead code removal. Links to editor 
plugins

  and IDEs can be found on the wiki
* Support 2.068 syntax. The only thing that really changed is 
that
  "inline" and "mangle" are now on the list of "pragma" 
autocomplete suggestions.

* Add "__LINE__", "__FILE__", and other built-in symbols to
  autocomplete suggestions.
* Correctly expand the current working directory when starting 
the

  server with -I options specifying relative paths.
* Fixed many bugs: 
https://github.com/Hackerpilot/DCD/issues?q=milestone%3A0.7.0


Thanks, great stuff! One thing you say it's been tested with 
2.067.1, but for this version it gives the following error 
message:


containers/experimental_allocator/src/std/experimental/allocator/common.d(337): 
Error: module meta is in file 'std/meta.d' which cannot be read
import path[0] = containers/src
import path[1] = msgpack-d/src
import path[2] = libdparse/src
import path[3] = dsymbol/src
import path[4] = containers/experimental_allocator/src

I had to use 2.068.0 to compile it.


[Textadept]

Why do I get this error when placing the dmd folder in 
~./textadept/modules


.textadept/modules/dmd/init.lua:355: table index is nil

I get the same error when I place it in the 
"textadepthome"/modules


So far I haven't been able to make Dscanner work with Textadept.


Re: DCD 0.7.0

2015-09-02 Thread Chris via Digitalmars-d-announce

On Wednesday, 2 September 2015 at 13:52:54 UTC, Chris wrote:

On Wednesday, 2 September 2015 at 09:48:53 UTC, Chris wrote:

On Wednesday, 2 September 2015 at 09:47:31 UTC, Chris wrote:



[Textadept]

Why do I get this error when placing the dmd folder in 
~./textadept/modules


.textadept/modules/dmd/init.lua:355: table index is nil

I get the same error when I place it in the 
"textadepthome"/modules


So far I haven't been able to make Dscanner work with 
Textadept.


It's Textadept 8.1 by the way (64bit Linux)


I've fixed the bug (for me):

Your version still assumes pre 8.0 where LANGUAGE_MODULE_PREFIX 
is defined in textadept/core/keys.lua


M.LANGUAGE_MODULE_PREFIX = (not OSX and not CURSES and CTRL or 
META)..'l'


However, this field was removed in 8.0 alpha:

http://foicica.com/textadept/CHANGELOG.html

I simply replaced
[keys.LANGUAGE_MODULE_PREFIX]
with
['l']

in lines 352 and 372.

I suggest you update your code in 
https://github.com/Hackerpilot/textadept-d. Maybe there's a 
more generic way than just using 'l'.


Recte: It should be 'cl' not 'l'.


Re: Moving forward with work on the D language and foundation

2015-08-28 Thread Chris via Digitalmars-d-announce
On Thursday, 27 August 2015 at 20:52:42 UTC, Steven Schveighoffer 
wrote:

On 8/27/15 2:03 PM, Colin wrote:

On Thursday, 27 August 2015 at 16:01:54 UTC, BBasile wrote:
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei 
Alexandrescu wrote:

[...]


That's courageous, particularly past 50 yo. It's a different 
culture,
past 50 yo in Europe people choose security, but in USA, past 
50 yo

some people still take the risk to try something new. Awesome.


Andrei is past 50? Doesn't look it!


He ain't that old :)

http://erdani.com/index.php/about/

Born in 1969

-Steve


Who said you have to be in your twenties to rock 'n' roll? Look 
at J.J. Cale, he was in his thirties when he became famous and he 
said he could avoid many mistakes people make when they're young 
and foolish. After all, that's what D is about, mature but not 
complacent.


Re: Moving forward with work on the D language and foundation

2015-08-28 Thread Chris via Digitalmars-d-announce

On Friday, 28 August 2015 at 12:28:43 UTC, Russel Winder wrote:
On Thu, 2015-08-27 at 16:01 +, BBasile via 
Digitalmars-d-announce wrote:

[…]

That's courageous, particularly past 50 yo. It's a different 
culture, past 50 yo in Europe people choose security, but in 
USA, past 50 yo some people still take the risk to try 
something new. Awesome.


I say bollocks to your accusation that Europeans post 50 are 
a bunch of useless idiots.


I call double bollocks on the claim that only in the USA do 
people do anything.


I agree (I think it's the first time I agree with you!). Age is a 
state of mind. I've seen people in their 20ies who only think 
about a pension plan and watch TV every evening until they fall 
asleep.


The thing is that in Europe people are not lazier, it's just 
harder to get going. You are fighting against structures that 
have been there since the Middle Ages (or longer). I don't know 
about the US, but in the New World (we stole from the 
inhabitants for whom it was an old world) there are indeed more 
possibilities. In Europe they regulate the ordinary citizen to 
death, often it's not worth the hassle.


  1   2   >