Explore tweets tagged as #ByteArray
@bernoussama
Oussama
1 year
example of custom encoding in #Python using bytearray() to encode domain name into DNS wire format
0
0
1
@LehmannLorenz
Lorenz Lehmann
2 years
Found out about this neat little Dune runtime trick by @j__dude: c̵a̵s̵t̵(̵d̵a̵t̵a̵ ̵a̵s̵ ̵v̵a̵r̵c̵h̵a̵r̵)̵ ̵L̵I̵K̵E̵ ̵'̵0̵x̵7̵7̵5̵5̵2̵6̵4̵1̵%̵'̵ bytearray_substring(data, 1, 4) = 0x77552641 Reduces cpu runtime by about 50%!
1
0
15
@0xdeadlift
Sam
2 years
wtf are "bytearray" people? another weird llama3 quirk is it sneaks in shit like this every once in a while
2
0
7
@0xChqrles
chqrles 🇵🇸
1 year
Imagine there's a new type to represent strings in Cairo (ByteArray) But one year later, explorers still don't support it and you have to deserialize your input manually 😹 (At least it works on Voyager. On Starkscan, you can't send raw calldata)
6
0
16
@oja_bitterlife
おじゃ
1 year
Pyxelで描画バッファにPythonでチクチクピクセル打ちしてたらウインドウ描画に10ms以上もってかれてた_(:3」∠)_ bytearrayを使うとmemset/memcopyと似た挙動になるらしいので……6倍速☺️ 塗りつぶしを止めたら倍速になるんだけど、まぁそこまではいっかなって。 満足したのでHoudini始めよう。
0
0
1
@DiRueG
디루그 주니어 5세📷
2 years
서명 데이터를 bytearray로 받았더니 너무 길어서 logcat에서 짤렷어 이걸 로컬에 저장해서 서명 이미지로 저장하는 게 맞나??? 한 달에 600건 정도 받는건데 이래도 되나? 600개면 적나?
1
0
0
@marty_suzuki
𝚖𝚊𝚛𝚝𝚢-𝚜𝚞𝚣𝚞𝚔𝚒🔔🌲
3 years
ByteArrayにできれば、ObjCでも良しなに扱えそう
0
0
2
@driscollis
Mike Driscoll
3 years
#Python has a `bytes()` built-in that is closely related to its `bytearray()` built-in. 🐍🔥 The difference is that `bytes()` as immutable! `bytes()` has the same non-mutating methods and indexing and slicing behavior. #python_builtins_by_driscollis
1
5
26
@realpython
Real Python
11 months
🐍📰 Python's Bytearray: A Mutable Sequence of Bytes In this tutorial, you'll learn about Python's bytearray, a mutable sequence of bytes for efficient binary data manipulation. You'll explore how it differs from bytes, how to create and modify bytearray objects, and when to use
1
8
22
@_prestwich
James Prestwich
2 years
In the case of a bytearray, the data is inlined as a routine that copies to memory, either from the stack (<=32B) or from a code region (>32B) Neither --via-ir nor the optimizer correctly dedup the pointer here but using bytes will always be more expensive than the stack
@peter_szilagyi
Péter Szilágyi
2 years
My Solidity adventures continue. Whyyyy oh why is the first variant 30% cheaper than the second?
0
1
18
@alumi_02
あるみ@競プロ
2 years
bytearrayの初期化、1番下の方法がいちばん早いことに気づいた 色んなものがちょっと早くなるぞ
0
0
7
@lorenpmc
Loren
11 months
< https://t.co/25IojHIMIa uvx --with tiktoken,pipetools --from pypyp pyp '(lambda A,f:open(f,"wb").write(A))((lambda B:bytearray(flat ten([divmod(p,256) for p in B])))((lambda t:(tiktoken.registry.get_encoding("p50k_base").encode(text=t)))( https://t.co/L3FjaVGUT3())),"a.bin")'
1
0
2
@gomafreeeeeedom
Takahiro Matsuyama@LIKELIHOODのCTO
2 months
Pythonのbytearray()関数の全引数・戻り値・具体的な使用例を解説! 「整数・文字列・リストなどのデータをバイト列として表現するためbytearray関数」について、全ての引数と戻り値、具体的な使用例で解説しています! #Python #プログラミング初心者 https://t.co/vlJyVqTO00
0
3
44
@dergnz
Anthropy ([email protected])
3 years
RT @0xC01DC0FFEE@bytearray.eu So, I built this fun little system to define the fur direction of a 3d model based on a vector field defined by control vectors. The data is baked into the mesh and can then be used by a furshader https://t.co/52d5PhDy4r
1
1
6
@habr_com
Хабр
1 year
«Меня зовут Никита Соболев, я core-разработчик языка программирования CPython, а также автор серии видео про его устройство. Сегодня я хочу рассказать, как bytearray устроен внутри» Как работает bytearray в Python? Смотрим реализацию на C: https://t.co/tVi92srzRQ
0
0
0
@Nadai02010
Nadai
1 year
Hello, STARKnianos Bitcoiners! What can we do in 4 hours with @ScaffoldStark + AI? -Inscription/Runes on Starknet (using an old repo from @abdelstark) -ByteArray events: balance, transfer, mint and burn. -Controlled by @cartridge_gg Crazy ideas with Bitcoin on @Starknet
4
4
38
@realpython
Real Python
11 months
🐍📩 Pycoders Weekly (Issue 676) — Bytearray, Underground Scripts, DjangoCon, and More https://t.co/lUKF57qqm8
0
5
13
@kitakkun_pb
kitakkun💆‍♂️
2 months
RemoteComposeContext で構築する UI は単純な ByteArray 構築用のものにすぎず、LaunchedEffect とかは使えないので、拡張プラグインには使えない
0
0
1
@dergnz
Anthropy ([email protected])
3 years
RT @0xC01DC0FFEE@bytearray.eu The furshader is still a WIP and could use some improvement but as a proof of concept this works pretty well https://t.co/ILJxv0D8DJ
0
0
0