Are there any libraries for defining and generating code for byte- or bit- aligned messaging or packet formats?

i.e. I can pass it a protobuf .proto (or similar) style file and generate code, but I get to define how the raw message will look when encoded, which byte will be where etc.

I understand that it wouldn't be able to have all the features of modern message/rpc frameworks, but it would insanely handy when implementing interfaces to closed source systems.

πŸ‘︎ 18
πŸ’¬︎
πŸ“…︎ Sep 06 2021
🚨︎ report
Here's my ~700 byte library for sliding elements open + closed (now supports animating padding too). github.com/alexmacarthur/…
πŸ‘︎ 102
πŸ’¬︎
πŸ‘€︎ u/alexmacarthur
πŸ“…︎ Nov 14 2021
🚨︎ report
A bit confused. C is made of libraries but what are the keyword and reserved words like int, double, string, etc made of? I get that they are bits and bytes but like if time.h has a source file and they have components them what are the smaller components until we get to assembly code?

Is there code that makes up what a double, int, or string is? Where would I find it?

πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/MakotoTommy
πŸ“…︎ Sep 01 2019
🚨︎ report
Why does the Ncurses library always leaves few unfreed bytes on the heap after terminating the program properly? Is it normal and healthy thing to do??

#test.c

#include <unistd.h>
#include <ncurses.h>

int main()
{	
     initscr();	
     getch();	
     endwin();	
     sleep(1);	
     return 0;
}

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

$ gcc test.c -lncurses -ltinfo
$ valgrind ./a.out
==11846== Memcheck, a memory error detector
==11846== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==11846== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
==11846== Command: ./a.out
==11846==
==11846==
==11846== HEAP SUMMARY:
==11846==     in use at exit: 94,313 bytes in 185 blocks
==11846==   total heap usage: 196 allocs, 11 frees, 103,095 bytes allocated
==11846==
==11846== LEAK SUMMARY:
==11846==    definitely lost: 0 bytes in 0 blocks
==11846==    indirectly lost: 0 bytes in 0 blocks
==11846==      possibly lost: 201 bytes in 3 blocks
==11846==    still reachable: 94,112 bytes in 182 blocks
==11846==         suppressed: 0 bytes in 0 blocks
==11846== Rerun with --leak-check=full to see details of leaked memory
==11846==
==11846== For lists of detected and suppressed errors, rerun with: -s
==11846== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Edit: Fixed the stupid formatting

πŸ‘︎ 56
πŸ’¬︎
πŸ‘€︎ u/yan_kh
πŸ“…︎ Nov 23 2021
🚨︎ report
Any library that can encode/decode numerical values into bytes?

And sortable based on the numerical values?

eg.:

x := Encode(-11.2)

y := Encode(22.2)

x still less than y and Decode(x) should still equal -11.2

Intuitively, I know that it has something to do with endianess. But my knowledge of it is limited.

Edit: I found this article which helps me understand encoding/binary better: https://www.gobeyond.dev/encoding-binary/

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/pinpinbo
πŸ“…︎ Dec 31 2021
🚨︎ report
Here's a < 750 byte JavaScript library for sliding elements open & closed, inspired by jQuery's slide utilities. github.com/alexmacarthur/…
πŸ‘︎ 30
πŸ’¬︎
πŸ‘€︎ u/alexmacarthur
πŸ“…︎ Dec 12 2021
🚨︎ report
Possible fun fact? The bytes on Mechanical Engineering. reddit.com/gallery/pc3sfx
πŸ‘︎ 156
πŸ’¬︎
πŸ‘€︎ u/yihanwu1024
πŸ“…︎ Aug 26 2021
🚨︎ report
construct-js: A library for creating byte level data structures, recently rewritten in TypeScript github.com/francisrstokes…
πŸ‘︎ 50
πŸ’¬︎
πŸ‘€︎ u/FrancisStokes
πŸ“…︎ Sep 28 2021
🚨︎ report
construct-js: A library for creating byte level data structures github.com/francisrstokes…
πŸ‘︎ 51
πŸ’¬︎
πŸ‘€︎ u/FrancisStokes
πŸ“…︎ Sep 28 2021
🚨︎ report
Formatting bytes as human-readable strings – is this good code or over-engineering? github.com/ScriptFUSION/B…
πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/Sniperino
πŸ“…︎ Apr 08 2014
🚨︎ report
Best Haskell library for generating Java byte code

I'm writing a compiler and I would like to generate Java byte code from within Haskell.
My original idea was to generate Java ASM code and execute it on the JVM to generate the files. This seems like a very bad approach.
The alternative is to use a Haskell library for generating byte code. The only one I've found is hs-java although I'm struggling to find any tutorials or documentation of how to use this.
Are there any other libraries that could be used? Otherwise are there any tutorials etc for hs-java?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/michael2109
πŸ“…︎ Mar 21 2018
🚨︎ report
Are there any libraries well suited to the manipulation of bits, bytes and byte arrays used in packet communication?

The context is implementing the packet fragmentation and reassembly scheme used in the ISO_15765-2 communications standard https://en.wikipedia.org/wiki/ISO_15765-2

As a beginner I could be misinterpreting the docs, but the standard Kotlin libraries don't seem to designed for this type of application.

πŸ‘︎ 14
πŸ’¬︎
πŸ‘€︎ u/mjbmikeb2
πŸ“…︎ Oct 03 2021
🚨︎ report
Byte Buddy is a code generation library for creating Java classes during the runtime of a Java application and without the help of a compiler. bytebuddy.net
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/lukaseder
πŸ“…︎ Jun 16 2014
🚨︎ report
construct-js: A library for creating byte level data structures written in TypeScript github.com/francisrstokes…
πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/FrancisStokes
πŸ“…︎ Sep 28 2021
🚨︎ report
I made a 600 byte library for sliding elements w/ variable heights open & closed. github.com/alexmacarthur/…
πŸ‘︎ 137
πŸ’¬︎
πŸ‘€︎ u/alexmacarthur
πŸ“…︎ Jun 11 2021
🚨︎ report
CppSerdes - A minimalistic memcpy-like library for bitlevel serialization with no dependencies, suitable for embedded devices, and not restricted to byte arrays github.com/DarrenLevine/c…
πŸ‘︎ 100
πŸ’¬︎
πŸ‘€︎ u/CrakeMusic
πŸ“…︎ Jul 04 2021
🚨︎ report
Cymatic Form Holiday Offer - "Acousmatic Engine" library of conceptual samples and multi-dimensional synthesis from the creator of Kinetic Metal and Kinetic Toys for Kontakt Player ($59.40) with code: winter40 cymaticform.com/acousmati…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Batwaffel
πŸ“…︎ Dec 09 2021
🚨︎ report
Nice Asynchronous Module Definition (AMD) library in just 470 bytes of minified code github.com/inikulin/mods
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/inikulin
πŸ“…︎ Dec 09 2013
🚨︎ report
a curated list of docker-compose files prepared for testing data engineering tools, databases, and open-source libraries. github.com/irbigdata/data…
πŸ‘︎ 92
πŸ’¬︎
πŸ‘€︎ u/smbanaie
πŸ“…︎ Jan 07 2022
🚨︎ report
Library for Byte Manipulation!

Hey guys! I recently had quite a bit of frustration with manipulating hardware level bytes in MicroPython, so I made my own library, β€œPyBytes”, to help with it! If any of you have any suggestions or want to help me further develop it, let me know!

GitHub Repository:

https://github.com/dgrantpete/PyBytes

Also us been published to PyPi, so can be installed with β€œpip install pybytes”

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/McSlayR01
πŸ“…︎ Aug 31 2021
🚨︎ report
Vintage Byte Magazine Library vintageapple.org/byte/
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/PatientModBot
πŸ“…︎ Sep 28 2021
🚨︎ report
Animated eye inspired by Kurzgesagt, reimplemented with Shopify/react-native-skia library by Shopify Engineering, William Candillon, Christian Falch: [See comments for links] v.redd.it/mdduncir7w681
πŸ‘︎ 96
πŸ’¬︎
πŸ‘€︎ u/4twiggers
πŸ“…︎ Dec 21 2021
🚨︎ report
TypeError: eval() arg 1 must be a string, bytes or code object

I am new to python, trying to execute below code. I am using python 3.8 Version. Here, i am receiving following error:

Here is my code:

```

import subprocess

import os

import sys

def SCACheck(VeracodeId, VeracodeSecret, AppName, projectName, severity, version, WrapperVersion):

curl_command = ("curl -O https://repo1.maven.org/maven2/com/veracode/vosp/api/wrappers/vosp-api-wrappers-java/{}/vosp-api-wrappers-java-{}-dist.zip".format(WrapperVersion, WrapperVersion)).split(" ")

unzip = ("unzip vosp-api-wrappers-java-{}-dist.zip VeracodeJavaAPI.jar".format(WrapperVersion)).split(" ")

JavaCommand = ("java -jar VeracodeJavaAPI.jar -action uploadandscan -vid {} -vkey {} -appname {} -createprofile true -criticality {} -filepath scan.zip -version {}".format(VeracodeId, VeracodeSecret, projectName, severity, version)).split(" ")

process = subprocess.run(curl_command, stdout=subprocess.PIPE, universal_newlines=True, shell=False)

ErrorHandler("curl command:", process)

process = subprocess.run(unzip, stdout=subprocess.PIPE, universal_newlines=True, shell=False)

ErrorHandler("unzip command:", process)

process = subprocess.run(JavaCommand, stdout=subprocess.PIPE, universal_newlines=True, shell=False)

ErrorHandler("java command:", process)

#################################### main

SCA = sys.argv[1]

print(SCA)

eval(SCA)

```

while running the py script with argument, i have received below error. Not sure what's the problem with the code:

```

C:\Users\xxx\SCACheck>python SCA-Action.py SCACheck("1234567", "1111111", "AppName", "AST-Project", "VeryHigh", "dag_migration_dev1", "18.9.5.4")

['SCACheck(1234567,', '1111111,', 'AppName,', 'Project,', 'VeryHigh,', 'dev1,', '18.9.5.4)']

Traceback (most recent call last):

File "C:\Users\xxx\SCACheck\SCA-Action.py", line 38, in <module>

eval(SCA)

TypeError: eval() arg 1 must be a string, bytes or code object

πŸ‘︎ 17
πŸ’¬︎
πŸ‘€︎ u/No_Soil8475
πŸ“…︎ Nov 25 2021
🚨︎ report
A Tiny Byte Code VM

Over the holidays I wrote a small byte code VM along with a custom byte code and byte code text format. The byte code is stack based and is designed to feel pretty low level. I made a ton of mistakes along the way and had to do a couple of painful refactors, but I'm pretty happy with how it turned out. There are more things I'd like to add to it eventually, but I'm shelving it for now. Check it out and let me know what you think.

Byte Code VM

πŸ‘︎ 26
πŸ’¬︎
πŸ‘€︎ u/Aanval
πŸ“…︎ Jan 03 2022
🚨︎ report
Hi everyone, I'm considering a career change. Love to know what types of libraries you work in, what makes you tick at work, hours, what you get taught in Diploma or Master degree, etc. For context I'm located in Sydney, Australia and have an engineering degree but looking for a new career. Thanks!
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/NoHope6377
πŸ“…︎ Jan 13 2022
🚨︎ report
What is byte-code and nativecomp?

Hey there! I'm using Emacs 28.6.0 from flatwhatson pgtk repository. I compiled every elisp code while compilation using make NATIVE_FULL_AOT=1. My Emacs sometimes lag and on idle both of Emacs and Emacs Daemon uses 4-5% CPU. However, while profiler stats shows byte-code is 70% responsible for this load. What is this, can anyone please elaborate.

πŸ‘︎ 22
πŸ’¬︎
πŸ‘€︎ u/basicfn
πŸ“…︎ Nov 15 2021
🚨︎ report
Netflix Open Sources β€œResilience Engineering” Code Library blog.programmableweb.com/…
πŸ‘︎ 550
πŸ’¬︎
πŸ‘€︎ u/yogthos
πŸ“…︎ Dec 01 2012
🚨︎ report
Library vs. Engineering Building / FAB for studying?

For Winter 2022, I'm taking an in person class in the Engineering Building and a remote class through PCC. I often can't focus at home (bad home environment), so I'm planning to participate in the remote class as well as do my other studying as needed somewhere on campus.

I commute to campus and am going to have to choose a parking pass for next term. I usually study in the library (I like the atmosphere of being surrounded by books and other people studying), so I was thinking of getting the Parking Structure 1/2/3 permit like I did last term. I heard that the Engineering Building/FAB has student lounges though, so I was thinking of getting the FAB permit so that I can park close to class.

If I buy the FAB permit though, it would be a lot less practical for me to go to the library because of how far away it is. Whichever permit I get, I will be getting a full time permit.

How do the lounges in the Engineering Building / FAB compare to the library for studying and taking a remote class? Is either option better? Would the EB / FAB be good for studying in the evening and during the day?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Dergo32
πŸ“…︎ Dec 28 2021
🚨︎ report
18th (Terra Byte CafΓ© ) and Thompson library (Berry CafΓ©)

18th (Terra Byte CafΓ© ) and Thompson library (Berry CafΓ©) coffee is underrated. Other campus coffee πŸ˜’

πŸ‘︎ 22
πŸ’¬︎
πŸ‘€︎ u/illustriousstyle
πŸ“…︎ Apr 23 2021
🚨︎ report
Engineering library

Is it normal for guys to avoid girls who are studying at the tables as much as possible? I saw some dudes talk about how there were no seats when there were a bunch at a table but some were occupied with 3 girls. Same thing at another table, the guys just turn around and leave the library. Idk just curious πŸ€•

πŸ‘︎ 37
πŸ’¬︎
πŸ‘€︎ u/hanjisungwrld
πŸ“…︎ Dec 02 2021
🚨︎ report
Is the Science and Engineering Library open during normal hours right now?
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/hispanicbuyer
πŸ“…︎ Jan 14 2022
🚨︎ report
Amazing 31 years old piece of engineering. Zooming an integrated circuit with electron microscope. It's 512 bytes of EEPROM memory. [OC] youtu.be/-_H7imEdTNs
πŸ‘︎ 500
πŸ’¬︎
πŸ‘€︎ u/stylishpirate
πŸ“…︎ Oct 12 2020
🚨︎ report
FinRL-Library: started by Columbia university engineering students and designed as an end to end deep reinforcement learning library for automated trading platform. Implementation of DQN DDQN DDPG etc using PyTorch and [gym](https://gym.openai.com/) github.com/AI4Finance-LLC…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Peerism1
πŸ“…︎ Jan 15 2022
🚨︎ report
FinRL-Library: started by Columbia university engineering students and designed as an end to end deep reinforcement learning library for automated trading platform. Implementation of DQN DDQN DDPG etc using PyTorch and [gym](https://gym.openai.com/) github.com/AI4Finance-LLC…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Peerism1
πŸ“…︎ Jan 14 2022
🚨︎ report
A Byte Code VM

Over the holidays I wrote a small byte code VM along with a custom byte code and byte code text format. I used Ebiten to give the byte code a way to draw graphics to the screen. The byte code is stack based and is designed to feel pretty low level. I made a ton of mistakes along the way and had to do a couple of painful refactors, but I'm pretty happy with how it turned out. There are more things I'd like to add to it eventually, but I'm shelving it for now. It's not really a game but it was a cool experiment to see how Ebiten can be used for applications other than game development. Check it out and let me know what you think.

Byte Code VM

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/Aanval
πŸ“…︎ Jan 03 2022
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.