Latest #binary Threads Top

jschaeff
Hello, TL;DR: is it OK in elixir to pass large (MBytes) binary strings through function parameters ? If not, what would be a clean way t...
New
PJUllrich
An in-depth guide on how to pattern match against binary data in Elixir.
New
gus
Hey all, As the title says, what do you think is the most efficient way to fill a binary with all constant values? I usually do the foll...
New
roflbobl
I run a system, where some structs are saved as binary with :erlang.term_to_binary and then deserialized with :erlang.binary_to_term. The...
New
tmbb
I have written an interface to a linear solver in Elixir. To solve the linear program, I just generate an input file, call the solver (wh...
New
Rtransat
Hi, I’m new with Elixir and for learning I try to read id3v2 tags from mp3 files. The stdlib for working with binary seems awesome with p...
New
Ridtt
Hex: bin_struct | Hex Git: GitHub - 4ait/bin_struct Docs: bin_struct v0.2.34 — Documentation BinStruct is a library which main functio...
New
preciz
I’m calling Nx.from_binary(binary, :u8) If the binary_size is above 2147483647 (which is 2^31 - 1) then it raises the below error: iex(...
New
RudolfVonKrugstein
Dear Community, I have a binary of float32 representing audio data with floats in the range of [-1,1]. I want this audio data converted...
New
BradS2S
When I hit tab in iex it doesn’t include bits or bytes on the list: iex(69)> <<a:: big binary bitstring float...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

jschaeff
Hello, TL;DR: is it OK in elixir to pass large (MBytes) binary strings through function parameters ? If not, what would be a clean way t...
New
PJUllrich
An in-depth guide on how to pattern match against binary data in Elixir.
New
gus
Hey all, As the title says, what do you think is the most efficient way to fill a binary with all constant values? I usually do the foll...
New

Last Three Year's Trending Top

ayrdim
What is the Elixir way of decoding/parsing binary data? I’m currently using the pattern matching (E.g. for a float <flt::float> = ...
New
bschmeck
Do binary patterns declared in function heads have to have static sizes? It appears to be the case, but I can’t find documentation one w...
New
elbasti
I’m trying to implement some functionality by pattern matching purely as a learning exercise to familiarize myself with bitstrings/charsl...
New
jnnks
I am reading a video file and want to create an Nx Tensors for each frame: frames = file_contents # list of binaries |> Enum.map(fn...
New
oliveiragahenrique
Klife Protocol link: GitHub - oliveigah/klife_protocol: Elixir implementation of the kafka protocol I’m thrilled to share that I’ve just...
New
Ridtt
Hex: bin_struct | Hex Git: GitHub - 4ait/bin_struct Docs: bin_struct v0.2.34 — Documentation BinStruct is a library which main functio...
New
BradS2S
Looking over how String.valid? implements :fast_ascii option, what’s the significance is pattern matching in groups of 7 bytes? when Bit...
New
Rtransat
Hi, I’m new with Elixir and for learning I try to read id3v2 tags from mp3 files. The stdlib for working with binary seems awesome with p...
New
RudolfVonKrugstein
Dear Community, I have a binary of float32 representing audio data with floats in the range of [-1,1]. I want this audio data converted...
New
H8rs
Hi, I have a pretty basic question, what is the time complexity of code points? In other languages ive used, a lookup table is employed...
New
tmbb
I have written an interface to a linear solver in Elixir. To solve the linear program, I just generate an input file, call the solver (wh...
New
preciz
I’m calling Nx.from_binary(binary, :u8) If the binary_size is above 2147483647 (which is 2^31 - 1) then it raises the below error: iex(...
New
BradS2S
When I hit tab in iex it doesn’t include bits or bytes on the list: iex(69)> <<a:: big binary bitstring float...
New
roflbobl
I run a system, where some structs are saved as binary with :erlang.term_to_binary and then deserialized with :erlang.binary_to_term. The...
New

Trending Over Three Years Top

Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
niku
As you know, Erlang and Elixir have a good specifications/functions for binary. However, I haven’t found it for bitstring. Here is some e...
New
lud
Hi, Is there a function that would convert <<1>> to 1, <<1, 0>> to 256. I do not mean parsing the binary as a st...
New
iamacube
I am trying to send a string of text as a body like this: HTTPoison.post( "https://api.letter.net", '{"text": "{🇺🇸 : Hello #...
New
Ninigi
Story skip this if you are not interested in the Why Today I was working on a rewrite of a feature, heavily relying on a 3rd Party HTTP...
New
mikunn
I’m trying to debug large memory spikes in our production environment. I tried to see if I could create something similar with as minimal...
New
jeramyRR
Hi all, I’m trying to write out a string, in binary, using Elixir’s <<>> syntax, and am having a dumb moment. I have a requ...
New
At7heb
I have time deltas stored in a file in two formats: 0xxxxxxx 1yyyyyyyyyyyyyyy In the first format, the time delta is the unsigned 7 bi...
New
fireproofsocks
I’ve been diving deep into charlists, encodings, code points, etc… thank you to the community who have humored me in the forums and in Sl...
New
stryrckt
Why don’t Binary types implement the Enumerable protocol so that they can be used with the Enum library? It seems like it would be useful...
New
mattbaker
I’m having so much fun working on the “Protohackers” challenges, I never got into Advent of Code much but this has been amazing. The chal...
New
ronson
What would be the functional equivalent of Python’s bytes.fromhex() in Elixir?
New
bwanab
When you read a file with File.read, you get a large binary. I’m reading a file of numeric data that I would like to have in a list of in...
New
Dusty
I am trying to compare the first character in a very long input string (like the text of a book) to some arbitrary character in a shorter...
New
dalhorinek
Hello, I’m having a list of elixir structs and I need to store in into file for later use and I don’t want to serialise it. So I used :...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement