Message Board


Message Board > Fenix / Bennu / Gemix / DIV > Bennu WIP 8

September 19, 2008, 01:30
Sandman
F3n!x0r
1194 posts

Good news, folks: Bennu WIP 8 is here, for Windows and Linux.

This version has everything Fenix has (and more), besides mod_scroll and mod_m7, which will be added later. It does indeed have numerous bug fixes etc when compared to Fenix and a few new features. I don't know all new stuff by heart, but there's a new language feature, namely the possibility to use goto/label constructions and a better signal system has been made. Also the well known modularity of Bennu is a great advantage. Some nice new bgdi/bgdc features too. Expect everything listed and documented in due time, but in the mean time moddesc gives some insight.

For me this is a moment to fully step over to Bennu. Not only for my current Fenix/Bennu projects, but also for my DLLs and the like. I will start porting network.dll soon for example and other DLLs will follow.

So download it and try it out, it's pretty nice. It's still a WIP, as things are still being developed, but it's pretty ace the way it is already.

http://betatester.bennugd.org/betas/

[Edited on September 20, 2008 by Sandman]
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
September 19, 2008, 11:39
Rincewind
programmer
1545 posts

Good good. :)

Download links:

Bennu WIP 8 Windows
Bennu WIP 8 Linux
____________
Personal website: http://www.loijson.com
#
September 19, 2008, 16:30
Ariel Yust
Bloodcoughted Yozik
291 posts

Sandman this is awsome!!! realy!!!
____________
Get bitten by a vampire or at least at my own character muhahahaha!
http://s7.bitefight.org/c.php?uid=159944
#
September 19, 2008, 17:28
SplinterGU
Whiskered
16 posts
full packages

http://betatester.bennugd.org/betas/

and new betas will be found here
____________
#
September 20, 2008, 12:05
Sandman
F3n!x0r
1194 posts

Hm pretty silly of me to forget a download link, I'll add it for clarity.
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
September 24, 2008, 12:04
g105b
None
86 posts
Hey that is really good news ... now how do I get it running on gp2x ?
____________
.g105b''
#
September 24, 2008, 12:48
SplinterGU
Whiskered
16 posts
sorry, no gp2x at this moment...

I don't have a gp2x... :(

[Edited on September 24, 2008 by SplinterGU]
____________
#
March 12, 2009, 13:01
Sandman
F3n!x0r
1194 posts

Well it's a coincidence I stumbled here again, but I compiled Bennu for the gp2x. Included is mod_gp2x, which exposes some gp2x specific functionality, but be advised: this module will later be replaced by more general modules, like mod_battery.
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
March 13, 2009, 09:51
Rincewind
programmer
1545 posts

Jeez, I wish I could test it, but my GP2X is nowhere to be found. Well done!
____________
Personal website: http://www.loijson.com
#
March 13, 2009, 16:23
Dennis
どこかにいる
2092 posts

Sounds really amazing.

The goto-label wasn't really necessary imho, but it's good for people who can work with it. Everytime I use it my code becomes a mess so I tend to avoid it... :s
____________
Kwakkel
#
March 14, 2009, 10:47
Sandman
F3n!x0r
1194 posts

GOTO can be very useful and actually clear up the code. For example, consider a function that is divided into 10 steps and at each step memory is allocated. Now suppose there is an error at a certain step, say step 5, and so you want to do a return, but you still have to clean up the memory from the previous steps. If the clean up code is done before every return, the code can get cluttered and duplicated.
A solution, however, is to use GOTO and jump to the clean up code when there was an error and at the end of the clean up code is a return. This is much more readable and doesn't involve duplicated code.
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
March 14, 2009, 12:31
Htbaa
Perl
368 posts

What about Exceptions? A Catch/Try block is perfect for that. Doesn't Bennu have exceptions?
____________
blog.htbaa.com
#
March 15, 2009, 02:22
Dennis
どこかにいる
2092 posts

Quoting Sandman:
GOTO can be very useful and actually clear up the code. For example, consider a function that is divided into 10 steps and at each step memory is allocated. Now suppose there is an error at a certain step, say step 5, and so you want to do a return, but you still have to clean up the memory from the previous steps. If the clean up code is done before every return, the code can get cluttered and duplicated.
A solution, however, is to use GOTO and jump to the clean up code when there was an error and at the end of the clean up code is a return. This is much more readable and doesn't involve duplicated code.
I was never too good at imagining source code in my head :what: but I think I get what you mean. :lol:

At school everyone was like "OMG DON'T USE GOTO DUMBASS ROFL"... And when I asked for an explanation based on a stable basis with arguments and possible alternatives, they said "OMG DON'T USE GOTO DUMBASS ROFL"... stupid androids... Anyway, I wondered why something exists if it hasn't use. You cleared that out for me thanks. I'll give that solution to those crazy people who always told me "OMG DON'T USE GOTO DUMBASS ROFL". They'll probably all kill themselves. :thumbs:
____________
Kwakkel
#
March 15, 2009, 10:23
Sandman
F3n!x0r
1194 posts

Hm Bennu has some form of exceptions, but I'm unsure how to use it; I will look into it. It's actually not quite like exceptions, but more "when an error occurs, go to this label", which is actually more or less the same as just using goto manually.

Good going, Dennis.
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
March 15, 2009, 10:49
Htbaa
Perl
368 posts

BlitzMax has GOTO's as well, but when programming in SuperStrict you can't use them. No big loss though, I don't need them.
____________
blog.htbaa.com
#
March 16, 2009, 15:56
Dennis
どこかにいる
2092 posts

You shouldn't be able to use goto to jump into a loop or outside the current begin-end block.

I wouldn't make using GOTO a habit, since it heavily disturbs the readability of your code.

For me, I find the goto statement superfluous. You can even replace loops with goto's. O_O

Fenix code:
begin
  i=0;
  while(i<10)
    do_something_productive();
    i++;
    frame;
  end
end



Fenix code:
begin
  i=0;
  <<lol>>
    do_something_productive();
    i++;
    frame;
  if (i<=10)
    goto lol;
  end
end


That's what I mean by it: it allows unlogic code. (there is no loop, still it "loops")
I also think (I don't know) that the latter is less performant.

I think everything you do with goto, can be done with if-statements and loops. :what:
____________
Kwakkel
#
March 16, 2009, 20:38
Fiona
games are terrible
-9616558 posts

Quoting Sandman:
A solution, however, is to use GOTO and jump to the clean up code when there was an error and at the end of the clean up code is a return. This is much more readable and doesn't involve duplicated code.


If processess could have member methods it would not be required.
____________
laffo
#
March 16, 2009, 22:30
Sandman
F3n!x0r
1194 posts

You can only jump within processes, as they all have their own 'code reader'.

You can indeed replace loops with goto's, but that's not really very useful. Still, whatever floats your boat.

Fiona: sure that would work, but alas. :) But "Bennu 2" will most probably have those.
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
March 17, 2009, 09:52
Dennis
どこかにいる
2092 posts

Please call it a subroutine! "Method" sounds so Java-ish. :P

Is there a bennu2 in development? :O
____________
Kwakkel
#
March 17, 2009, 11:53
Sandman
F3n!x0r
1194 posts

No, not really, just thoughts and possibilities.
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
March 17, 2009, 12:57
Fiona
games are terrible
-9616558 posts

Yeah I'm not completely against goto, I just think that there are better ways to fix the problems it tries to address.
____________
laffo
#

Message Board > Fenix / Bennu / Gemix / DIV > Bennu WIP 8

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!