Re: Standard third party imports

2010-11-13 Thread jfd
== Quote from Adam D. Ruppe (destructiona...@gmail.com)'s article The problem with BSD/GPL code in the main Phobos is any D program will link with it, and thus the license goes viral to all D programs. But since this is just interface files, separate from the stdlib aside from sharing a

Re: One year of Go

2010-11-12 Thread jfd
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article eaturbrainz Back in the day I was writing a kernel, and having to rewrite queues for every single type of thing I wanted to queue, or use type-casts to enforce strong typing of queue elements at runtime, was annoying

Re: Help for .h to D pain?

2010-11-12 Thread jfd
== Quote from div0 (d...@sourceforge.net)'s article On 12/11/2010 13:21, div0 wrote: On 12/11/2010 04:01, jfd wrote: Help, anyone? Thank you. The easiest way is to simply compile a one liner C module. Then you get all the necessary stuff included and all the irritating macros

Re: One year of Go

2010-11-12 Thread jfd
== Quote from Sean Kelly (s...@invisibleduck.org)'s article In Go code, the only place you typically see semicolons is separating the clauses of for loops and the like; they are not necessary after every statement To me, what they're saying is that their syntax is broken and so it forces a

Help for .h to D pain?

2010-11-11 Thread jfd
I was trying to translate Apache module include files to D, but it soon leads to a labyrinth of tangled nested #includes and #define and typedef's. The tools, `dmc -c -e -l', htod, etc. immediately choked. It is getting really, really,... time consuming, and the words man years flashes before my

Re: Build Linux shared library from DMD

2010-11-10 Thread JFD
== Quote from Jacob Carlborg (d...@me.com)'s article On 2010-11-10 20:12, Steve Teale wrote: In the Apache mod_d thread I saw: gcc -shared -Wl,-soname,libhello.so.0 -o libhello.so.0.0 libhello.a Has anyone tried this with libphobos2.a? Phobos cannot currently be used as a dynamic

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread JFD
== Quote from Jacob Carlborg (d...@me.com)'s article On 2010-11-09 01:37, JFD wrote: Yes, you're right. One should implement Apache module in D. One thing is that Apache module entry point expects a C function. I've figure that that one could just add extern(C) in front of D function

Thoughts on parallel programming?

2010-11-10 Thread jfd
Any thoughts on parallel programming. I was looking at something about Chapel and X10 languages etc. for parallelism, and it looks interesting. I know that it is still an area of active research, and it is not yet (far from?) done, but anyone have thoughts on this as future direction? Thank

Re: Apache mod_d needs C to instantiate D interpreter?/D embedded in HTML

2010-11-09 Thread JFD
Can't DMD already compile D code embedded in HTML: http://www.digitalmars.com/d/2.0/html.html ? I tried the sample at the link, but got error. I also tried it without the HTML code inside. Am I missing something? $ dmd hello.html Error: module hello html source files is deprecated hello.html

Apache mod_d needs C to instantiate D interpreter?

2010-11-08 Thread JFD
A potential mod_d Apache module would go a long way to promote D language to the web application world. But it seems that implementing a mod_d Apache module may require that C instantiates a D language interpreter (similar to Py_NewInterpreter() for Python), or do the functionality of RDMD with

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-08 Thread JFD
Yes, you're right. One should implement Apache module in D. One thing is that Apache module entry point expects a C function. I've figure that that one could just add extern(C) in front of D function to be callable from C, so that was easy. Also, Apache expects .so shared library, and one