digitalmars.D.announce - Opensourced my web server written in D
- Danny Arends (7/7) Feb 03 2014 I wrote a small web server in D to learn the language.
- Rory McGuire (2/9) Feb 03 2014
- Danny Arends (7/21) Feb 03 2014 Rolled my own, It's purely to learn the language, but it has been
- Andrei Alexandrescu (4/11) Feb 04 2014 Vote up!
- Danny Arends (14/28) Feb 04 2014 Thanks for posting,
- Martin Nowak (7/14) Feb 07 2014 Sorry to read that a compiler update broke your code.
- Danny Arends (18/36) Feb 09 2014 It was related to the update of std.process,
- Martin Nowak (4/9) Feb 09 2014 Interesting.
I wrote a small web server in D to learn the language. It's not done yet (what software ever is) but I wanted to show it off anyway. As always of-course any feedback is welcome See it here: https://github.com/DannyArends/DaNode Gr, Danny Arends http://www.dannyarends.nl
Feb 03 2014
Interesting, are you using any event libraries or did you roll your own? On Mon, Feb 3, 2014 at 12:02 PM, Danny Arends <Danny.Arends gmail.com>wrote:I wrote a small web server in D to learn the language. It's not done yet (what software ever is) but I wanted to show it off anyway. As always of-course any feedback is welcome See it here: https://github.com/DannyArends/DaNode Gr, Danny Arends http://www.dannyarends.nl
Feb 03 2014
Rolled my own, It's purely to learn the language, but it has been tested by running my own website for almost 6 months now. The only dependency is Deimos & openSSL for the HTTPS connections. which are still untested and kind of unstable Gr, Danny On Monday, 3 February 2014 at 14:17:22 UTC, Rory McGuire wrote:Interesting, are you using any event libraries or did you roll your own? On Mon, Feb 3, 2014 at 12:02 PM, Danny Arends <Danny.Arends gmail.com>wrote:I wrote a small web server in D to learn the language. It's not done yet (what software ever is) but I wanted to show it off anyway. As always of-course any feedback is welcome See it here: https://github.com/DannyArends/DaNode Gr, Danny Arends http://www.dannyarends.nl
Feb 03 2014
On 2/3/14, 2:02 AM, Danny Arends wrote:I wrote a small web server in D to learn the language. It's not done yet (what software ever is) but I wanted to show it off anyway. As always of-course any feedback is welcome See it here: https://github.com/DannyArends/DaNode Gr, Danny Arends http://www.dannyarends.nlVote up! http://www.reddit.com/r/programming/comments/1x0625/small_opensource_web_server_written_in_d/ Andrei
Feb 04 2014
Thanks for posting, I just posted it here because I mentioned I wrote it to someone who then wanted a look. So why not open it up for everyone. But the whole reddit attention already got me 10 stars ! yay ! I am planning on making a blog post series out of it describing the components, there is a little write up already in the DDOC of the files (I love DDOC), to generate run: ./sh/doc Then the documentation will be at: http://localhost/ddoc or just: cd www/localhost/ddoc Anywayz will keep you guys posted. Danny Arends On Tuesday, 4 February 2014 at 18:21:32 UTC, Andrei Alexandrescu wrote:On 2/3/14, 2:02 AM, Danny Arends wrote:I wrote a small web server in D to learn the language. It's not done yet (what software ever is) but I wanted to show it off anyway. As always of-course any feedback is welcome See it here: https://github.com/DannyArends/DaNode Gr, Danny Arends http://www.dannyarends.nlVote up! http://www.reddit.com/r/programming/comments/1x0625/small_opensource_web_server_written_in_d/ Andrei
Feb 04 2014
On 02/03/2014 11:02 AM, Danny Arends wrote:I wrote a small web server in D to learn the language. It's not done yet (what software ever is) but I wanted to show it off anyway. As always of-course any feedback is welcome See it here: https://github.com/DannyArends/DaNode Gr, Danny Arends http://www.dannyarends.nlSorry to read that a compiler update broke your code. http://www.reddit.com/r/programming/comments/1x0625/small_opensource_web_server_written_in_d/cf8ftqv It would be interesting to get some more feedback for this. What was the old and the new version? Do you remember what broke? Thanks, Martin
Feb 07 2014
It was related to the update of std.process, I was using the 'bad way' just building a string and then executing it. Using the old API I could just get back the stdout and stderr as strings. And when the new API came in the old version got deprecated or something else I don't know exactly, it broke the execution of external code but the original code was bad code anyway. The new API is much cleaner and I now use the spawnShell command, which allows to use pipes. This means the server can read data in nice chunks, and that I could tweak the throughput/chunksize based on the amount accepted by a client. I could look up in the old repository when/where. but in general I dont mind a little breakage because in general bad code breaks.. Gr, Danny Arends http://www.dannyarends.nl On Friday, 7 February 2014 at 17:06:58 UTC, Martin Nowak wrote:On 02/03/2014 11:02 AM, Danny Arends wrote:I wrote a small web server in D to learn the language. It's not done yet (what software ever is) but I wanted to show it off anyway. As always of-course any feedback is welcome See it here: https://github.com/DannyArends/DaNode Gr, Danny Arends http://www.dannyarends.nlSorry to read that a compiler update broke your code. http://www.reddit.com/r/programming/comments/1x0625/small_opensource_web_server_written_in_d/cf8ftqv It would be interesting to get some more feedback for this. What was the old and the new version? Do you remember what broke? Thanks, Martin
Feb 09 2014
On 02/09/2014 07:18 PM, Danny Arends wrote:It was related to the update of std.process, The new API is much cleaner and I now use the spawnShell command, which allows to use pipes. This means the server can read data in nice chunks, and that I could tweak the throughput/chunksize based on the amount accepted by a client.Interesting. I agree, the new std.process is so much better, that I didn't mind a few rewrites myself.
Feb 09 2014