Earlier quoted context omitted.
Do you have a sense of performance in terms of energy use? 2x slower is fine, but is that at the same wattage, or more?
That sounds like a nit / premature optimization. Electricity is cheap. If this is sufficiently or actually important for your org, you should measure it yourself. There are too many variables and factors subject to your org’s hardware.
Magika: AI powered fast and efficient file type identification
81–90 of 262 posts
Re: Magika: AI powered fast and efficient file type identification
#82Is it really common enough for files not to be annotated with a useful/correct file type extension (e.g. .mp3, .txt) that a library like this is needed?
Nothing is ever simple. Even for the most basic .txt files it’s still useful to know what the character encoding is (utf? 8/16? Latin-whatever? etc.) and what the line format is (\n,\cr\lf,\n\lf) as well as determining if some maniac removed all the indentation characters and replaced them with a mystery number of spaces. Then there are all the container formats that have different kinds of formats embedded in them (…
Re: Magika: AI powered fast and efficient file type identification
#83The results of which you'll never be 100% sure are correct...
Re: Magika: AI powered fast and efficient file type identification
#84* https://gitlab.com/DaveJarvis/KeenWrite/-/blob/main/src/main...
There's a much larger list of file signatures at:
* https://github.com/veniware/Space-Maker/blob/master/FileSign...
Re: Magika: AI powered fast and efficient file type identification
#85As someone that has worked in a space that has to deal with uploaded files for the last few years, and someone who maintains a WASM libmagic Node package ( https://github.com/moshen/wasmagic ) , I have to say I really love seeing new entries into the file type detection space. Though I have to say when looking at the Node module, I don't understand why they released it. Their docs say it's slow: https://github.com/go…
Re: Magika: AI powered fast and efficient file type identification
#86Supported file types: https://github.com/google/magika/blob/main/docs/supported-co...
It's surprising that there are so many file types that seem relatively common which are missing from this list. There are no raw image file formats. There's nothing for CAD - either source files or neutral files. There's no MIDI files, or any other music creation types. There's no APL, Pascal, COBOL, assembly source file formats etc.
Re: Magika: AI powered fast and efficient file type identification
#87I don't understand why this needs to exist. Isn't file type detection inherently deterministic by nature? A valid tar archive will always have the same first few magic bytes. An ELF binary has a universal ELF magic and header. If the magic is bad, then the file is corrupted and not a valid XYZ file. What's the value in throwing in "heuristics" and probabilistic inference into a process that is black and white by desi…
And there are also a billion formats that are not uniquely determined by magic bytes. You don't have to go further than text files.
Re: Magika: AI powered fast and efficient file type identification
#88Re: Magika: AI powered fast and efficient file type identification
#89Earlier quoted context omitted.
That sounds like a nit / premature optimization. Electricity is cheap. If this is sufficiently or actually important for your org, you should measure it yourself. There are too many variables and factors subject to your org’s hardware.
Totally disagree. Most end users are on laptops and mobile devices these days, not desktop towers. Thus power efficiency is important for battery life. Performance per watt would be an interesting comparison.
This entire use case seems to be one suited for servers handling user media.
Re: Magika: AI powered fast and efficient file type identification
#90Earlier quoted context omitted.
That sounds like a nit / premature optimization. Electricity is cheap. If this is sufficiently or actually important for your org, you should measure it yourself. There are too many variables and factors subject to your org’s hardware.
Totally disagree. Most end users are on laptops and mobile devices these days, not desktop towers. Thus power efficiency is important for battery life. Performance per watt would be an interesting comparison.