File processing in Erlang -


is erlang option file processing of different types? example- reading pdf,word document,excel sheet , transforming them? know can use apache poi/tika java based , integrate using jerlang. not familiar erlang's bit syntax wanted check if erlang suited such kind of application without using apache poi?

erlang has great binary support makes great language parsing different kind of binaries.

i.e. decode tcp segment using binary syntax in erlang can like

decode(segment) ->     case segment of      << sourceport:16, destinationport:16,        sequencenumber:32,        acknumber:32,        dataoffset:4, _reserved:4, flags:8, windowsize:16,        checksum:16, urgentpointer:16,        payload/binary>> when dataoffset>4     ->         optsize = (dataoffset - 5)*32,         << options:optsize, message/binary >> = payload,         <> = <>,         %% can process message according         %% options (if any) , flags cwr, ..., fin.          binary_to_list(message)     end. 

which compared other languages super easy way use pattern matching , binary support decode/encode binaries.

nevertheless, erlang more concurrent processing , message passing between processes, wouldn't use transform/parse binaries, instead use erlang manage web server/api , handle concurrent connections, , delegate job of transforming documents raw c/c++ performance, plus on c/c++ or either on java have richer libraries work pdf/excel/word documents


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -