Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 251691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:36:57+00:00 2026-05-11T21:36:57+00:00

I am looking for a scripting (or higher level programming) language (or e.g. modules

  • 0

I am looking for a scripting (or higher level programming) language (or e.g. modules for Python or similar languages) for effortlessly analyzing and manipulating binary data in files (e.g. core dumps), much like Perl allows manipulating text files very smoothly.

Things I want to do include presenting arbitrary chunks of the data in various forms (binary, decimal, hex), convert data from one endianess to another, etc. That is, things you normally would use C or assembly for, but I’m looking for a language which allows for writing tiny pieces of code for highly specific, one-time purposes very quickly.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:36:57+00:00Added an answer on May 11, 2026 at 9:36 pm

    Things I want to do include presenting arbitrary chunks of the data in various forms (binary, decimal, hex), convert data from one endianess to another, etc. That is, things you normally would use C or assembly for, but I’m looking for a language which allows for writing tiny pieces of code for highly specific, one-time purposes very quickly.

    Well, while it may seem counter-intuitive, I found erlang extremely well-suited for this, namely due to its powerful support for pattern matching, even for bytes and bits (called “Erlang Bit Syntax“). Which makes it very easy to create even very advanced programs that deal with inspecting and manipulating data on a byte- and even on a bit-level:

    Since 2001, the functional language Erlang comes with a byte-oriented datatype (called binary) and with constructs to do pattern matching on a binary.

    And to quote informIT.com:

    (Erlang) Pattern matching really starts to get
    fun when combined with the binary
    type. Consider an application that
    receives packets from a network and
    then processes them. The four bytes in
    a packet might be a network byte-order
    packet type identifier. In Erlang, you
    would just need a single processPacket
    function that could convert this into
    a data structure for internal
    processing. It would look something
    like this:

    processPacket(<<1:32/big,RestOfPacket>>) ->
        % Process type one packets
        ...
    ;
    processPacket(<<2:32/big,RestOfPacket>>) ->
        % Process type two packets
        ...
    

    So, erlang with its built-in support for pattern matching and it being a functional language is pretty expressive, see for example the implementation of ueencode in erlang:

    uuencode(BitStr) ->
    << (X+32):8 || <<X:6>> <= BitStr >>.
    uudecode(Text) ->
    << (X-32):6 || <<X:8>> <= Text >>.
    

    For an introduction, see Bitlevel Binaries and Generalized Comprehensions in Erlang.You may also want to check out some of the following pointers:

    • Parsing Binaries with erlang, lamers inside
    • More File Processing with Erlang
    • Learning Erlang and Adobe Flash format same time
    • Large Binary Data is (not) a Weakness of Erlang
    • Programming Efficiently with Binaries and Bit Strings
    • Erlang bit syntax and network programming
    • erlang, the language for network programming (1)
    • Erlang, the language for network programming Issue 2: binary pattern matching
    • An Erlang MIDI File Reader/Writer
    • Erlang Bit Syntax
    • Comprehending endianness
    • Playing with Erlang
    • Erlang: Pattern Matching Declarations vs Case Statements/Other
    • A Stream Library using Erlang Binaries
    • Bit-level Binaries and Generalized Comprehensions in Erlang
    • Applications, Implementation and Performance Evaluation of Bit Stream Programming in Erlang
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 144k
  • Answers 144k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Check out Jon McCune's Flicker project at CMU. It let's… May 12, 2026 at 8:38 am
  • Editorial Team
    Editorial Team added an answer See the best answer to this question. To my knowledge,… May 12, 2026 at 8:38 am
  • Editorial Team
    Editorial Team added an answer Here's how I select a single configuration file using the… May 12, 2026 at 8:38 am

Related Questions

I have an application, written in Python, which is used by a fairly technical
I am looking for a way to extract / scrape data from Word files
I'm sorry for opening a new question, I had to - as I wrote
I am looking for a complete, precise and accurate documentation about Birt Chart Engine

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.