Re: Learning asynchronous sockets in D (well actually C...)

2012-06-24 Thread Jarl André
On Sunday, 24 June 2012 at 23:04:14 UTC, Sean Kelly wrote: On Jun 24, 2012, at 11:40 AM, "Jarl André" "@puremagic.com wrote: Is it wrong to badge myself with asynchronous sockets? :) Nope. It's pretty weird stuff if you've never done event-based programming before. I shouldn't glorify m

Re: Learning asynchronous sockets in D (well actually C...)

2012-06-24 Thread Sean Kelly
On Jun 24, 2012, at 11:40 AM, "Jarl André" "@puremagic.com wrote: > > Is it wrong to badge myself with asynchronous sockets? :) Nope. It's pretty weird stuff if you've never done event-based programming before.

Re: Learning asynchronous sockets in D (well actually C...)

2012-06-24 Thread Tobias Pankrath
The thing that developers should come from a C/C++ background is totally not acceptable. Yes. I also think the documentation shouldn't assume familiarity with C++. So we need to add a "Introduction to D for Java developers" etc, that makes it easier to start hacking right away. My question

Re: Learning asynchronous sockets in D (well actually C...)

2012-06-24 Thread Jarl André
On Sunday, 24 June 2012 at 19:10:55 UTC, Tobias Pankrath wrote: * add -g and -debug=splat (or any other keywords) to the build command You don't need a keyword -debug is sufficient. To make the binary work with a debugger you does not even need -debug, only -g. -debug only includes code that

Re: Learning asynchronous sockets in D (well actually C...)

2012-06-24 Thread Tobias Pankrath
* add -g and -debug=splat (or any other keywords) to the build command You don't need a keyword -debug is sufficient. To make the binary work with a debugger you does not even need -debug, only -g. -debug only includes code that's in a debug-block. * gdb bin/SimpleServer * continue (on bre

Re: Learning asynchronous sockets in D (well actually C...)

2012-06-24 Thread Jarl André
I have now completely and totally replaced the inner contents of my server library with modified Splat code. It ran so much faster that I was actually afraid I had got it wrong. It seemed not be any wrong with it, so adding Splat actually made it super kidding me fast. I have now learned a few

Learning asynchronous sockets in D (well actually C...)

2012-06-23 Thread Jarl André
The learning curve has been from like zero to "something". I am still grasping for some fundamental knowledge that I need to fully "get" whats going on. Had to read documentation for sockets in C to understand anything at all. That says a lot. Coming from BufferedReader hell in Java and did nev