Re: DCD: Autocomplete without the IDE

2013-09-03 Thread Rory McGuire
Nice. Would you mind keeping the default key bindings that gosublime uses?
On 3 Sep 2013 07:55, yaz yazan.dab...@gmail.com wrote:

 On Tuesday, 3 September 2013 at 04:54:24 UTC, Rory McGuire wrote:

 Do you ever use Sublime Text 2/3? Any plans to support integration with
 it?

 Seriously awesome work. I've wanted to make this since I saw gocode,  but
 I
 couldn't figure out how to get at the ast in dmd.
 On 3 Sep 2013 00:25, Brian Schott briancsch...@gmail.com wrote:


 I'm currently experimenting a bit with Sublime Text and DCD. I might
 hopefully get an alpha quality plugin that just works in a week. No
 promises made.



Re: specd - write more expressive unit tests

2013-09-03 Thread Jacob Carlborg

On 2013-09-02 21:03, jostly wrote:

specd is a DSL library allowing you to write more expressive unit tests.
It is inspired by projects like specs2 and ScalaTest from the Scala world.

Example:

 unittest {
 describe(a string)
 .should(have a length property, foo.length.must.equal(3));
 }

Features:
* DSL for expressing unit tests as specifications
* Verify with must instead of assert
* Report successful / failed tests using green / red paradigm

Available as a dub dependency (specd) or from
https://github.com/jostly/specd

Comments and suggestions for improvement are welcome!


I've been working on something similar myself.

https://github.com/jacob-carlborg/dspec

I'm working on a new syntax using UDA's, shown here:

https://github.com/jacob-carlborg/phobos/blob/serialization/std/serialization/tests/array.d

--
/Jacob Carlborg


Re: DDT 0.7.0 released

2013-09-03 Thread Jacob Carlborg

On 2013-09-02 18:55, Bruno Medeiros wrote:


Hum, I didn't know it was that much of a pain to use Java 1.7 on a Mac.
If I had known I might have delayed the DDT version requirements bump,
but now it's too late as it's way down the road, there is a lot of 1.7
use already.

And regardless, it shouldn't be that much of a pain to put a newer
version of Java. Version 1.7 has been out for quite some time. But it
does seem Mac OS X is quite fussy about it:
http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html


I uninstalled 1.6 and then installed 1.7. Then when I started Eclipse 
Mac OS X says I need to install Java.



I don't if this might have helped, but you can specify to Eclipse which
JVM to use:
http://wiki.eclipse.org/Eclipse.ini
This means you don't have to use the default JVM but another installed one.


I tried that, doesn't work. It just adds it's own -vm flag, overriding 
mine.


--
/Jacob Carlborg


Re: DCD: Autocomplete without the IDE

2013-09-03 Thread Jacob Carlborg

On 2013-09-03 00:20, Brian Schott wrote:


That's something that the editor plugin can call on shutdown. DCD pretty
much requires that the editor support scripting.


I was looking in to adding this to TextMate. But the easiest solution 
would most likely be using bundles. In TextMate that's basically a 
script that gets executed when a hotkey is pressed. I mean, I can't 
really start and stop the sever each time the users press that key.


TextMate supports plugins as well, kind of. But it's quite cumbersome to 
write. I hasn't a real API, one uses method swizzling and observers to 
implement a plugin. It's a lot easier now when TextMate 2 is open source.


It also seems a bit unnecessary to have the server running as soon as 
the user opens TextMate. He/she might not even use the editor for D this 
time.


--
/Jacob Carlborg


Re: XML RPC Client and Server - meet xmlrpc-d

2013-09-03 Thread Pavel Kirienko
Guys, I decided to stay away from phobos integration at least 
until it has some HTTP server out of the box.

Anyway this decision does not make xmlrpc-d less usable. :)


Re: XML RPC Client and Server - meet xmlrpc-d

2013-09-03 Thread ilya-stromberg
On Tuesday, 3 September 2013 at 10:28:56 UTC, Pavel Kirienko 
wrote:
Guys, I decided to stay away from phobos integration at least 
until it has some HTTP server out of the box.

Anyway this decision does not make xmlrpc-d less usable. :)


You can try to integrate in Phobos only xmlrpc-d client.
It can be useful for integration whith 3rd-party XML RPC servises.


Re: DDT 0.7.0 released

2013-09-03 Thread Bruno Medeiros

On 03/09/2013 07:38, Jacob Carlborg wrote:



I don't if this might have helped, but you can specify to Eclipse which
JVM to use:
http://wiki.eclipse.org/Eclipse.ini
This means you don't have to use the default JVM but another installed
one.


I tried that, doesn't work. It just adds it's own -vm flag, overriding
mine.


I'm sure there must be a better way. But I can't help you there much, I 
have no expertise in Max OS X (I only use Windows, or to a lesser 
degree, Linux)


--
Bruno Medeiros - Software Engineer


Re: DCD: Autocomplete without the IDE

2013-09-03 Thread Faux Amis

On 3-9-2013 00:20, Brian Schott wrote:

On Monday, 2 September 2013 at 14:59:10 UTC, Jacob Carlborg wrote:

On 2013-09-02 09:07, Brian Schott wrote:


dcd-client --shutdown will shut down the server.


Well, I'm mean from within the text editor. Is the user expected to
run this when quitting the editor?


That's something that the editor plugin can call on shutdown. DCD pretty
much requires that the editor support scripting.


Let me plug in Notepad++ plugins :)

http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Plugin_Development


Re: D simple web server

2013-09-03 Thread gedaiu

Thanks for reply,

@Adam D. Ruppe I ignored your collection of tools but is not very 
good documented...


@Rémy Mouëza When I started my project, I wanted to use mongoose 
but there where no bindings for D at that time, so I decided to 
use a simpler web server, libmicrohttpd, but it was not the best 
solution because my server where crashing all the time, so I 
decided to create one from scratch in D.


I made an update to the code and I added the option to initialize 
the terver using delegates.


Thanks,
Bogdan




On Saturday, 31 August 2013 at 18:44:47 UTC, Rémy Mouëza wrote:

Your code seems rather nice.

That said, here are some remarks of a purely stylistic nature 
:-) :


- You can use foreach instead of for to simplify your loop 
statements over arrays and other collections:

auto array = [1, 2, 3];
foreach (item; array) {
writeln (item);
}

  foreach can also support indexed iteration of your items:
auto array = [a, b, c];
foreach (index, item; array) {
writefln (%d: %s, index, item);
}

  and if you just want to iterate a certain amount of time, you 
can use ranges:

foreach (index; 1..100) {
writeln (index);
}

- You don't have to put each class in a different file: you 
still can do if you prefer it that way.


- I tend to prefer to have class members of same visibility 
grouped together under a public:, protected: or private: 
block, either using the colon or the braces instead of always 
specifying the visibility - this kind of help me better 
understand what will be useful when using the class.


- Associative arrays can be initialized with literals, so 
instead of having lots of:

   status_message[100] = Continue;
   status_message[101] = ...
   ...
   status_message[505] = HTTP Version not supported;

 you can use:
   status_message = [
   100: Continue,
   101: ...
   505: HTTP Version not supported
   ];

 which I find more concise.

- You can also use unified function calls:
  instead of: to!string(port)
  you can do: port.to!string
  the latter having a more English feel when reading.

Again, these are purely stylistic considerations, D's 
flexibility allows you to choose from many styles.



On a design standpoint, I would have preferred a delegate for 
the processRequest() method instead of requiring the users to 
derive from the WebServer class - on second thought, that may 
too be a stylistic issue :-) .



Also related: I have started to write some high level bindings 
to the Mongoose embedded webserver library, written in C (using 
Jacob Carlsberg's dstep for the low level bindings). The source 
code is available here: 
https://github.com/remy-j-a-moueza/mongooseD .
You may find some stuff to reuse or get inspiration from for 
your server.


Adam Ruppe also has a lot of interesting tools beyond the basic 
web serving that you may get interested in 
(https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff).




On 08/31/2013 06:42 PM, gedaiu wrote:

Hi,

Because I have a personal project based on a custom web 
server, and I
couldn't find one implemented in D(excepting vibe.d), I 
started to
implement some web server classes in D with the hope that my 
work will
be useful to someone else as well. If you are interested in 
this
project, or if you want to contribute to it, here is the link 
to the git

repository:

https://github.com/gedaiu/DSWS

Also, I don't have a lot of experience with D and I would 
apreciate if
someone would like to spare some time for a code review for my 
work.


Thanks,
Bogdan




Re: DDT 0.7.0 released

2013-09-03 Thread Jacob Carlborg

On 2013-09-03 13:14, Bruno Medeiros wrote:


I'm sure there must be a better way. But I can't help you there much, I
have no expertise in Max OS X (I only use Windows, or to a lesser
degree, Linux)


I agree, but this was the only solution that I could find that worked. I 
think someone has reported a bug with the -vm flag or about running 
Eclipse with Java 1.7 on Mac OS X.


--
/Jacob Carlborg


Re: D simple web server

2013-09-03 Thread Craig Dillabaugh

On Saturday, 31 August 2013 at 16:42:11 UTC, gedaiu wrote:

Hi,

Because I have a personal project based on a custom web server, 
and I couldn't find one implemented in D(excepting vibe.d), I 
started to implement some web server classes in D with the hope 
that my work will be useful to someone else as well. If you are 
interested in this project, or if you want to contribute to it, 
here is the link to the git repository:


https://github.com/gedaiu/DSWS

Also, I don't have a lot of experience with D and I would 
apreciate if someone would like to spare some time for a code 
review for my work.


Thanks,
Bogdan


Just curious to know, why vibe.d wasn't an option for you?

Craig


Re: D simple web server

2013-09-03 Thread gedaiu
I belive the fails are from the writeln. I made a commit where i 
removed them.  Please update the code


thanks
Bogdan


On Tuesday, 3 September 2013 at 15:49:44 UTC, Batuhan Göksu wrote:

On Tuesday, 3 September 2013 at 15:23:36 UTC, gedaiu wrote:

Hi,

nice test!

on my computer(linux, i5, 8gb ram) i have these results:

siege -d10 -c50 -t 133s http://localhost:8080/

Transactions:   1290 hits
Availability: 100.00 %
Elapsed time: 132.70 secs
Data transferred:   0.01 MB
Response time:  0.14 secs
Transaction rate:   9.72 trans/sec
Throughput: 0.00 MB/sec
Concurrency:1.35
Successful transactions:1290
Failed transactions:   0
Longest transaction:   11.42
Shortest transaction:   0.00


and apache on the same machine has these results:

siege -d10 -c50 -t 133s http://localhost/

Transactions:   1269 hits
Availability: 100.00 %
Elapsed time: 132.63 secs
Data transferred:   0.32 MB
Response time:  0.09 secs
Transaction rate:   9.57 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.91
Successful transactions:1269
Failed transactions:   0
Longest transaction:0.43
Shortest transaction:   0.05

Thanks,
Bogdan

On Tuesday, 3 September 2013 at 14:56:33 UTC, Batuhan Göksu 
wrote:

On Saturday, 31 August 2013 at 16:42:11 UTC, gedaiu wrote:

Hi,

Because I have a personal project based on a custom web 
server, and I couldn't find one implemented in D(excepting 
vibe.d), I started to implement some web server classes in D 
with the hope that my work will be useful to someone else as 
well. If you are interested in this project, or if you want 
to contribute to it, here is the link to the git repository:


https://github.com/gedaiu/DSWS

Also, I don't have a lot of experience with D and I would 
apreciate if someone would like to spare some time for a 
code review for my work.


Thanks,
Bogdan


But got a nice progression of application development.

HTTP stress test done with Siege.

Siege Code : siege -d10 -c50 http://localhost/

Transactions:156 hits
Availability:  12.69 %
Elapsed time: 133.23 secs
Data transferred:   0.18 MB
Response time:  0.07 secs
Transaction rate:   1.17 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.08
Successful transactions:156
Failed transactions:1073
Longest transaction:0.33
Shortest transaction:   0.00



There's something wrong with these results.
I did it again while writing this post here are the results

Siege Code : siege -d10 -c50 http://localhost/

These results have been on the front side with Nginx (ProxyPass)

Please try this way. (Siege Code: http://localhost/ 
siege-d10-c50)


Last Results
--
Transactions:187 hits
Availability:  14.84 %
Elapsed time: 133.49 secs
Data transferred:   0.18 MB
Response time:  0.10 secs
Transaction rate:   1.40 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.14
Successful transactions: 187
Failed transactions:1073
Longest transaction:0.61
Shortest transaction:   0.00




Re: D simple web server

2013-09-03 Thread gedaiu

Hi,

nice test!

on my computer(linux, i5, 8gb ram) i have these results:

siege -d10 -c50 -t 133s http://localhost:8080/

Transactions:   1290 hits
Availability: 100.00 %
Elapsed time: 132.70 secs
Data transferred:   0.01 MB
Response time:  0.14 secs
Transaction rate:   9.72 trans/sec
Throughput: 0.00 MB/sec
Concurrency:1.35
Successful transactions:1290
Failed transactions:   0
Longest transaction:   11.42
Shortest transaction:   0.00


and apache on the same machine has these results:

siege -d10 -c50 -t 133s http://localhost/

Transactions:   1269 hits
Availability: 100.00 %
Elapsed time: 132.63 secs
Data transferred:   0.32 MB
Response time:  0.09 secs
Transaction rate:   9.57 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.91
Successful transactions:1269
Failed transactions:   0
Longest transaction:0.43
Shortest transaction:   0.05

Thanks,
Bogdan

On Tuesday, 3 September 2013 at 14:56:33 UTC, Batuhan Göksu wrote:

On Saturday, 31 August 2013 at 16:42:11 UTC, gedaiu wrote:

Hi,

Because I have a personal project based on a custom web 
server, and I couldn't find one implemented in D(excepting 
vibe.d), I started to implement some web server classes in D 
with the hope that my work will be useful to someone else as 
well. If you are interested in this project, or if you want to 
contribute to it, here is the link to the git repository:


https://github.com/gedaiu/DSWS

Also, I don't have a lot of experience with D and I would 
apreciate if someone would like to spare some time for a code 
review for my work.


Thanks,
Bogdan


But got a nice progression of application development.

HTTP stress test done with Siege.

Siege Code : siege -d10 -c50 http://localhost/

Transactions:156 hits
Availability:  12.69 %
Elapsed time: 133.23 secs
Data transferred:   0.18 MB
Response time:  0.07 secs
Transaction rate:   1.17 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.08
Successful transactions:156
Failed transactions:1073
Longest transaction:0.33
Shortest transaction:   0.00




Re: D simple web server

2013-09-03 Thread gedaiu
I did nt made it to run it as a library... And it's a project to 
big for what I need... or maybe I am wrong... i'm a noobie with D.


Thanks,
Bogdan

On Tuesday, 3 September 2013 at 15:15:03 UTC, Craig Dillabaugh 
wrote:

On Saturday, 31 August 2013 at 16:42:11 UTC, gedaiu wrote:

Hi,

Because I have a personal project based on a custom web 
server, and I couldn't find one implemented in D(excepting 
vibe.d), I started to implement some web server classes in D 
with the hope that my work will be useful to someone else as 
well. If you are interested in this project, or if you want to 
contribute to it, here is the link to the git repository:


https://github.com/gedaiu/DSWS

Also, I don't have a lot of experience with D and I would 
apreciate if someone would like to spare some time for a code 
review for my work.


Thanks,
Bogdan


Just curious to know, why vibe.d wasn't an option for you?

Craig




Re: D simple web server

2013-09-03 Thread Craig Dillabaugh

On Tuesday, 3 September 2013 at 15:27:34 UTC, gedaiu wrote:
I did nt made it to run it as a library... And it's a project 
to big for what I need... or maybe I am wrong... i'm a noobie 
with D.


Thanks,
Bogdan

On Tuesday, 3 September 2013 at 15:15:03 UTC, Craig Dillabaugh 
wrote:

On Saturday, 31 August 2013 at 16:42:11 UTC, gedaiu wrote:

Hi,

Because I have a personal project based on a custom web 
server, and I couldn't find one implemented in D(excepting 
vibe.d), I started to implement some web server classes in D 
with the hope that my work will be useful to someone else as 
well. If you are interested in this project, or if you want 
to contribute to it, here is the link to the git repository:


https://github.com/gedaiu/DSWS

Also, I don't have a lot of experience with D and I would 
apreciate if someone would like to spare some time for a code 
review for my work.


Thanks,
Bogdan


Just curious to know, why vibe.d wasn't an option for you?

Craig


That make sense. I am experimenting with vibe.d and I was curious
if there were some technical limitations that stopped you from
using it.

Good luck with your project. I am a bit busy, but I perhaps I
will have a chance to try it out.

Craig




Re: DDT 0.7.0 released

2013-09-03 Thread Bruno Medeiros

On 03/09/2013 14:19, Jacob Carlborg wrote:

On 2013-09-03 13:14, Bruno Medeiros wrote:


I'm sure there must be a better way. But I can't help you there much, I
have no expertise in Max OS X (I only use Windows, or to a lesser
degree, Linux)


I agree, but this was the only solution that I could find that worked. I
think someone has reported a bug with the -vm flag or about running
Eclipse with Java 1.7 on Mac OS X.



Hum, have you tried adding the -vm flag to a shortcut to the Eclipse 
executable (instead of modying the .ini file)?
All flags specified in the command to the eclipse executable are 
supposed to override the .ini file ones.


--
Bruno Medeiros - Software Engineer


Re: D simple web server

2013-09-03 Thread Batuhan Göksu

On Tuesday, 3 September 2013 at 15:55:48 UTC, gedaiu wrote:
I belive the fails are from the writeln. I made a commit where 
i removed them.  Please update the code


thanks
Bogdan


On Tuesday, 3 September 2013 at 15:49:44 UTC, Batuhan Göksu 
wrote:

On Tuesday, 3 September 2013 at 15:23:36 UTC, gedaiu wrote:

Hi,

nice test!

on my computer(linux, i5, 8gb ram) i have these results:

siege -d10 -c50 -t 133s http://localhost:8080/

Transactions:   1290 hits
Availability: 100.00 %
Elapsed time: 132.70 secs
Data transferred:   0.01 MB
Response time:  0.14 secs
Transaction rate:   9.72 trans/sec
Throughput: 0.00 MB/sec
Concurrency:1.35
Successful transactions:1290
Failed transactions:   0
Longest transaction:   11.42
Shortest transaction:   0.00


and apache on the same machine has these results:

siege -d10 -c50 -t 133s http://localhost/

Transactions:   1269 hits
Availability: 100.00 %
Elapsed time: 132.63 secs
Data transferred:   0.32 MB
Response time:  0.09 secs
Transaction rate:   9.57 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.91
Successful transactions:1269
Failed transactions:   0
Longest transaction:0.43
Shortest transaction:   0.05

Thanks,
Bogdan

On Tuesday, 3 September 2013 at 14:56:33 UTC, Batuhan Göksu 
wrote:

On Saturday, 31 August 2013 at 16:42:11 UTC, gedaiu wrote:

Hi,

Because I have a personal project based on a custom web 
server, and I couldn't find one implemented in D(excepting 
vibe.d), I started to implement some web server classes in 
D with the hope that my work will be useful to someone else 
as well. If you are interested in this project, or if you 
want to contribute to it, here is the link to the git 
repository:


https://github.com/gedaiu/DSWS

Also, I don't have a lot of experience with D and I would 
apreciate if someone would like to spare some time for a 
code review for my work.


Thanks,
Bogdan


But got a nice progression of application development.

HTTP stress test done with Siege.

Siege Code : siege -d10 -c50 http://localhost/

Transactions:156 hits
Availability:  12.69 %
Elapsed time: 133.23 secs
Data transferred:   0.18 MB
Response time:  0.07 secs
Transaction rate:   1.17 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.08
Successful transactions:156
Failed transactions:1073
Longest transaction:0.33
Shortest transaction:   0.00



There's something wrong with these results.
I did it again while writing this post here are the results

Siege Code : siege -d10 -c50 http://localhost/

These results have been on the front side with Nginx 
(ProxyPass)


Please try this way. (Siege Code: http://localhost/ 
siege-d10-c50)


Last Results
--
Transactions:187 hits
Availability:  14.84 %
Elapsed time: 133.49 secs
Data transferred:   0.18 MB
Response time:  0.10 secs
Transaction rate:   1.40 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.14
Successful transactions: 187
Failed transactions:1073
Longest transaction:0.61
Shortest transaction:   0.00


Is now running.

The only problem 172 bytes when it comes to data is collapsing.

HTTP/1.1 502 1.22 secs: 172 bytes == GET /


Re: D simple web server

2013-09-03 Thread gedaiu

On Tuesday, 3 September 2013 at 18:49:25 UTC, Batuhan Göksu wrote:

On Tuesday, 3 September 2013 at 15:55:48 UTC, gedaiu wrote:
I belive the fails are from the writeln. I made a commit where 
i removed them.  Please update the code


thanks
Bogdan


On Tuesday, 3 September 2013 at 15:49:44 UTC, Batuhan Göksu 
wrote:

On Tuesday, 3 September 2013 at 15:23:36 UTC, gedaiu wrote:

Hi,

nice test!

on my computer(linux, i5, 8gb ram) i have these results:

siege -d10 -c50 -t 133s http://localhost:8080/

Transactions:   1290 hits
Availability: 100.00 %
Elapsed time: 132.70 secs
Data transferred:   0.01 MB
Response time:  0.14 secs
Transaction rate:   9.72 trans/sec
Throughput: 0.00 MB/sec
Concurrency:1.35
Successful transactions:1290
Failed transactions:   0
Longest transaction:   11.42
Shortest transaction:   0.00


and apache on the same machine has these results:

siege -d10 -c50 -t 133s http://localhost/

Transactions:   1269 hits
Availability: 100.00 %
Elapsed time: 132.63 secs
Data transferred:   0.32 MB
Response time:  0.09 secs
Transaction rate:   9.57 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.91
Successful transactions:1269
Failed transactions:   0
Longest transaction:0.43
Shortest transaction:   0.05

Thanks,
Bogdan

On Tuesday, 3 September 2013 at 14:56:33 UTC, Batuhan Göksu 
wrote:

On Saturday, 31 August 2013 at 16:42:11 UTC, gedaiu wrote:

Hi,

Because I have a personal project based on a custom web 
server, and I couldn't find one implemented in D(excepting 
vibe.d), I started to implement some web server classes in 
D with the hope that my work will be useful to someone 
else as well. If you are interested in this project, or if 
you want to contribute to it, here is the link to the git 
repository:


https://github.com/gedaiu/DSWS

Also, I don't have a lot of experience with D and I would 
apreciate if someone would like to spare some time for a 
code review for my work.


Thanks,
Bogdan


But got a nice progression of application development.

HTTP stress test done with Siege.

Siege Code : siege -d10 -c50 http://localhost/

Transactions:156 hits
Availability:  12.69 %
Elapsed time: 133.23 secs
Data transferred:   0.18 MB
Response time:  0.07 secs
Transaction rate:   1.17 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.08
Successful transactions:156
Failed transactions:1073
Longest transaction:0.33
Shortest transaction:   0.00



There's something wrong with these results.
I did it again while writing this post here are the results

Siege Code : siege -d10 -c50 http://localhost/

These results have been on the front side with Nginx 
(ProxyPass)


Please try this way. (Siege Code: http://localhost/ 
siege-d10-c50)


Last Results
--
Transactions:187 hits
Availability:  14.84 %
Elapsed time: 133.49 secs
Data transferred:   0.18 MB
Response time:  0.10 secs
Transaction rate:   1.40 trans/sec
Throughput: 0.00 MB/sec
Concurrency:0.14
Successful transactions: 187
Failed transactions:1073
Longest transaction:0.61
Shortest transaction:   0.00


Is now running.

The only problem 172 bytes when it comes to data is 
collapsing.


HTTP/1.1 502 1.22 secs: 172 bytes == GET /


Sorry... but I don't think I understand what you want to say... 
can you give more information about it?


Thanks,
Bogdan


Cassandra client for D

2013-09-03 Thread Rory McGuire
Hi all,

I've uploaded an initial version of my client for the cassandra database
server at: https://github.com/rjmcguire/cassandra-d

Currently you can use it to run CQL queries on a cassandra instance.

This is a raw CQL driver. It pretty wrapper for it is still upcoming.

Please excuse the ugly code :D. Yes the code is intermingled with the spec
for CQL binary protocol v1.

compile with `rdmd -main -unittest cql.d` if you have a cassandra database
on your localhost. The unittest is at the bottom of the file, where you
will find a bunch of commented out CQL.

Cheers,
R


Re: User Defined Attributes

2013-09-03 Thread kris

On Tuesday, 6 November 2012 at 18:49:22 UTC, Walter Bright wrote:

On 11/6/2012 10:10 AM, Jacob Carlborg wrote:

On 2012-11-06 18:00, David Nadlinger wrote:

Yes, it is nice to have a working prototype indeed. What is 
not so nice
in my opinion, however, is that this first prototype straight 
to Git
master, without any prior evaluation, at a time where the 
general goal

is to stabilize the language.


Yes, very good point. I don't see why this hasn't been done 
before, it's dead

easy. Just use:

$ git checkout -b uda
# code
$ git commit -a -m Add support for user defined attributes
$ git push origin uda

Walter, why aren't you using branches for these kind of things?



Because I still think in a linear fashion :-)


hehe, how on earth were you able to come up with D in the first 
place then? ;-p


Little demo of allowing basic types to implement interfaces.

2013-09-03 Thread Rory McGuire
I was wondering if its possible to do interfaces the way #golang does it
but in #dlang.

Here is my first try: https://gist.github.com/rjmcguire/6431542.
 Any help on making this smaller would be awesome.

Cheers,
R


Re: GHC 2013 in Paris

2013-09-03 Thread deadalnix

On Tuesday, 16 July 2013 at 11:02:10 UTC, Iain Buclaw wrote:

Hi,

I have been scheduled in to do a talk about GDC at GHC 2013 
next month in Paris.  If anyone can make it down, would be 
great to see some D faces around.


http://www.gnu.org/ghm/2013/paris/


http://audio-video.gnu.org/video/ghm2013/Iain_Buclaw-GDC_-_D_frontend_for_GCC_.webm

The video is available :P


Re: GHC 2013 in Paris

2013-09-03 Thread Iain Buclaw
On Sep 4, 2013 4:05 AM, deadalnix deadal...@gmail.com wrote:

 On Tuesday, 16 July 2013 at 11:02:10 UTC, Iain Buclaw wrote:

 Hi,

 I have been scheduled in to do a talk about GDC at GHC 2013 next month
in Paris.  If anyone can make it down, would be great to see some D faces
around.

 http://www.gnu.org/ghm/2013/paris/



http://audio-video.gnu.org/video/ghm2013/Iain_Buclaw-GDC_-_D_frontend_for_GCC_.webm

 The video is available :P

Runs and hides. :o)

Regards
-- 
Iain Buclaw

*(p  e ? p++ : p) = (c  0x0f) + '0';