View previous topic :: View next topic |
Author |
Message |
Dima-san
Joined: 25 Mar 2007 Posts: 33 Location: Almaty, Kazakhstan
|
Posted: Sat Jun 30, 2007 11:07 am Post subject: 0.3 released |
|
|
It's an another minor release, yet important one.
Things implemented:
- packet sequencing
- reliable data delivery
- flow control (that is, packet transmission frequency is based on available bandwidth)
Stuff to be implemented in the nearest future:
- message fragmentation/assembly
- packet loss/latency simulation
- simple object distribution framework
PS: I apologize for late post |
|
Back to top |
|
|
bane
Joined: 01 May 2007 Posts: 41 Location: Pancevo, Serbia
|
Posted: Sat Jun 30, 2007 11:27 am Post subject: |
|
|
Mr. Dima-san is too modest with his apologize, considering the great job he is doing with dnet _________________ "I apologize only for my spelling" - a quote shamelessly stolen from some guy at unknown forum. |
|
Back to top |
|
|
h3r3tic
Joined: 30 Mar 2004 Posts: 261 Location: Torun, Poland
|
Posted: Sat Jun 30, 2007 6:30 pm Post subject: |
|
|
Nice! You guys are progressing pretty fast We might try using DNet in Deadlock, as a networking backend alternative to RakNet. I can't promise anything yet, because we've got lots of issues to resolve and everyone in team0xf has his personal timelines external to Deadlock.
Anyway, I've quickly browsed thru the code and found a few 'issues':
- a bit too much dynamic memory allocation thru the GC
- the use of char[] for raw data instead of byte[] / ubyte[]
* char[] is meant for utf-8 strings, not binary data, ubyte[] is more self-explanatory
- '( 0 << 1 )' in connection.d is baffling...
* shouldn't that be '(1 << 0)' ?
Except for the first thing, they are rather minor issues. Additionally, are you planning Tango-compatibility?
Keep up the good work! |
|
Back to top |
|
|
Dima-san
Joined: 25 Mar 2007 Posts: 33 Location: Almaty, Kazakhstan
|
Posted: Tue Jul 03, 2007 11:43 am Post subject: |
|
|
h3r3tic
> a bit too much dynamic memory allocation thru the GC
I know. That'll be eliminated pretty soon.
> * shouldn't that be '(1 << 0)' ?
You're right Thank you for noticing.
> char[] is meant for utf-8 strings
You're right once again, but that way packet data can be printed to stdout without casting. bane gets lazy when it gets to typecasting
>Additionally, are you planning Tango-compatibility?
We do, but that'll have to wait. |
|
Back to top |
|
|
h3r3tic
Joined: 30 Mar 2004 Posts: 261 Location: Torun, Poland
|
Posted: Tue Jul 03, 2007 11:51 am Post subject: |
|
|
Dima-san wrote: | without casting. bane gets lazy when it gets to typecasting |
Hahahah, what an excuse You could have a function that prints it, so the user doesn't touch any writeflns/printfs/whatnot. The cast would be in just one place and you could store the data in byte[]/ubyte[] |
|
Back to top |
|
|
Dima-san
Joined: 25 Mar 2007 Posts: 33 Location: Almaty, Kazakhstan
|
Posted: Wed Jul 04, 2007 11:25 am Post subject: |
|
|
>You could have a function that prints it
Yeah, I could.
Anyway, I fixed that. No more char[]s. |
|
Back to top |
|
|
h3r3tic
Joined: 30 Mar 2004 Posts: 261 Location: Torun, Poland
|
Posted: Wed Jul 04, 2007 11:38 am Post subject: |
|
|
Wheee |
|
Back to top |
|
|
|