Git Product home page Git Product logo

earl's Introduction

Hi, I'm ccubed.
I'm mainly interested in coding things around networking, communication, data formats, and anything that lives on the console.

    🔭 I’m currently working on a text game in go using Bubbletea
    📫 How to reach me: Email


earl's People

Contributors

ccubed avatar mgardne8 avatar rapptz avatar waisbrot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

earl's Issues

Advanced Structures Redux

In [29]: a = earl.pack({'d':{'_trace':['discord-gateway-prd-1-3'], 'heartbeat_interval': 6500}, 'op':10, 's': 'nil',
    ...: 't': 'nil'})

In [30]: a
Out[30]: b'\x83t\x00\x00\x00\x04v\x00\x01dt\x00\x00\x00\x02v\x00\x06_tracel\x00\x00\x00\x01v\x00\x17discord-gateway-prd-1-3jv\x00\x12heartbeat_intervalb\x00\x00\x19dv\x00\x02opa\nv\x00\x01sv\x00\x03nilv\x00\x01tv\x00\x03nil'

This kind of nested structure fails entirely. Why?

SIGABRT errors with complex structures

In [1]: import earl

In [2]: obb = {"d": {"v": 6, "shard": [0, 1], "compress": False, "token": "", "large_threshold": 250, "properties": {"$os": "linux", "$device": "curious", "$browser": "curious", "$referrer": "", "$referring_domain
   ...: ": ""}}, "op": 2}

In [3]: earl.pack(obb)
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
fish: “ipython” terminated by signal SIGABRT (Abort)```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.