Home   News   Concept   AMIGA-Compatible   Hardware   Forum   Questions+Answers   Pictures   Contact & Team

Welcome to the Natami / Amiga Forum

This forum is for AMIGA fans interested in the new NATAMI platform.
Please read the forum usage manual.



All TopicsNewsQAFeaturesTalkTEAMLogin to post    Create account
The team will post updates and news here

Is It Still Christmas?
Russell Williams
United Kingdom

Posts 11
12 Mar 2012 11:32


lol!

Bartek "Banter" K.
Poland
(Natami Team)
Posts 2277
12 Mar 2012 12:01


For some of us it is gonna be Christmas all year round, especially when NatAmi hits the high street!

And yes, the site theme needs to be updated... ;)

Thierry Atheist
Canada

Posts 1828
12 Mar 2012 19:33


Bartek "Banter" K. wrote:

For some of us it is gonna be Christmas all year round, especially when NatAmi hits the high street!

NO CONTENTION THERE from me!!!!!!!

I know that assembler and C are the be all and end all of coding languages... But in the range of 100 times AGA speeds, and if we can get 256 colour screens for AMOS Professional.... IT'S GOING TO MOVE PROGRAMMING FORWARD, NONETHELESS!!!!!

I just can't believe how easy programming is in AMOS.... I'm going to have TONS OF FUN!!!!

I mean, I can write a data compression program in AMOS, and I would NEVER EVER EVER even be able to begin to start to TRY in C.

I started working on a database program and an RPG in AMOS Pro and only quit due to it being slow. However, the programs were not slow it was the time that it took for from when I hit run that I could get to the part I wanted to test, that took a long time.

The RPG could take as much as 35+ seconds just to start, as it was reading in about 7,000+ variables before giving me the first screen that I could enter a response in. Got tedious all those 45 second waits. I had all the monsters, spells, character types and various other data in there. At 535K it wasn't even able to role up a character yet!!!! Man AD&D is a twisted system to follow. Still, love it!!!!

Again, at 7MHz... IT WAS FAST!

AmigaBasic from microsoft, I wrote ONE program in it and it got slower and slower and slower as I entered more lines of code..... And that was even as few as 600 lines!!!! I tried using it about 6 months before AMOS Pro existed. Sure didn't think much of Amiga at that point.... and yet it AMAZED me what Amiga COULD do. ANYBODY that based their opinion of Amiga through AmigaBasic by microsoft would have decided that AMIGA was a FAILURE AND FRAUD!!!!!

That is how UTTERLY TERRIBLE this piece of "software" from microsoft was!!!!

There is only ONE personal computer for the masses, and that's NatAmi/AmigaOS.

Marcel Verdaasdonk
Netherlands

Posts 3975
13 Mar 2012 18:24


Thierry Atheist wrote:

  I mean, I can write a data compression program in AMOS, and I would NEVER EVER EVER even be able to begin to start to TRY in C.
 

 
  TAR compression in C
  A Quick and Dirty solution By Turdus from OSDev.org
 
 
Code wrote:

  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
  #include <unistd.h>
  #include <zlib.h>
 
  int main(int argc,char** argv)
  {
      gzFile *f;
      char blk[512];
      if(argc<2) {  printf("%s <tar file>\n",argv[0]); exit(0); }
 
      f=gzopen(argv[1],"r");
      if(f==NULL) {  printf("Auch.\n"); exit(1); }
 
      while(gzread(f,&blk,512)!=0){
          char *data;
          int size,blksize;
          if(blk[156]!='0') continue; //normal file?
          sscanf(blk+124,"%o",&size);
          blksize=((size/512)*512)+(size&0x1ff?512:0);
          printf("%8d bytes %6d blks %s\n",size,blksize/512,blk);
          data=malloc(blksize);  gzread(f,data,blksize); data[size]=0;
          //do things with data
          free(data);
      }
      gzclose(f);
  }
 

 
  Wow, only 20 lines of code for .tar.gz

Nixus Minimax
Germany

Posts 272
13 Mar 2012 19:01


Marcel Verdaasdonk wrote:
TAR compression in C

Neither TAR, nor compression. I wouldn't say that calling a function from a library qualifies as "writing a data compression program". In any case, gzread() itself will be slightly more complex than just 20 lines of code.


Marcel Verdaasdonk
Netherlands

Posts 3975
13 Mar 2012 19:14


Nixus true, But again isn't that a part of zlib.h?(please don't start about revisions)

Adrian Browne
Ireland

Posts 170
13 Mar 2012 20:33


Bizzarely I hadnt noticed the christmas theme.Anyways anyone remember Physcho santa EXTERNAL LINK

Peter K.
Germany
(MX-Board Owner)
Posts 439
19 Mar 2012 18:53


Christmas problem solved thanks to Bartek!

Bartek "Banter" K.
Poland
(Natami Team)
Posts 2277
19 Mar 2012 19:06


Peter, many thanks to you too! Without your courtesy the theme alteration would be impossible.

Thanks!

Adrian Browne
Ireland

Posts 170
19 Mar 2012 19:26


Next up.A natami Easter bunny theme.

Russell Williams
United Kingdom

Posts 11
21 Mar 2012 11:50


Well done guys, that looks much better!

posts 11