Code Monkey home page Code Monkey logo

zip-ada's Introduction

Zip-Ada is a library for dealing with
the Zip compressed archive file format.

 - Fully open-source - no black-box
 - Fully in Ada - no interfacing headaches
 - Fully portable - no preprocessing, no conditionals

====
Complete description in: doc/zipada.txt

If you are in a hurry (tl;dr), ignore the documentation,
have GNAT installed (automatic on Linux), and try the
command "gprbuild -P zipada.gpr".
Bonus: the file zipada.gpr is a text file,
with some comments.

zip-ada's People

Contributors

zertovitch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mosteo jhersack

zip-ada's Issues

Why x + x in lzma-decoding.adb?

Dear developers,

In lzma-decoding.adb I am puzzled by a number of statements like

m := m + m + a_bit;

Why do they contain x + x instead of 2*x?
Is it due to the translation from C(pp), since Ada doesn't have the += increment assignment operator and so x += x + a; is translated to x := x + x + a; ?
Is it due to performance reasons, which would surprise me since normally using both + and * results in faster code?
Or is there even another reason?

Thanks in advance for your clarification!

Pierre

Why this order?

When searching for atypical patterns in Ada code.
I found an instance of the atypical pattern var := cond or else var;
on the following line:

out_win.is_full := will_fill or else out_win.is_full;

Why do you use this pattern?
There is no side effect in the condition will_fill, so would the typical pattern var := var or else cond; not only result in more typical but also potential faster code?

Thanks in advance for your answer!

Pierre

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.