scerruti,
@scerruti@csed.social avatar

@treyhunner are you aware of any way to deal with IEEE 745 Single Precision floats in Python on a bit level? I'm trying to do something stupid as a demo for class and it works but it's slow.

https://github.com/e3-cerruti/jupyter-calculus/blob/main/Applicatons%20of%20Newton's%20Method.ipynb

treyhunner,
@treyhunner@mastodon.social avatar

@scerruti working with bytes instead of strings should be faster. Anything implement in Python itself will be slower, but working with the actual bytes instead of strings should remove some overhead.

struct may or may not be useful (I haven't implemented this myself, at least not in many years).

I'd ask Claude, MS Copilot/GPT 4, and Gemini for a better solution that's lower level and see what they come up with. Could be a start or might not work, but might have some time.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • rosin
  • thenastyranch
  • osvaldo12
  • cubers
  • InstantRegret
  • DreamBathrooms
  • cisconetworking
  • magazineikmin
  • Youngstown
  • Durango
  • mdbf
  • slotface
  • ngwrru68w68
  • kavyap
  • JUstTest
  • tacticalgear
  • modclub
  • khanakhh
  • anitta
  • ethstaker
  • tester
  • everett
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • provamag3
  • lostlight
  • All magazines