Box2D
requests
Our great sponsors
Box2D | requests | |
---|---|---|
31 | 86 | |
7,216 | 51,205 | |
- | 0.6% | |
0.0 | 8.5 | |
8 days ago | 7 days ago | |
C++ | Python | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Box2D
- Nebula is an open-source and free-to-use modern C++ game engine
-
Linear code is more readable
Why is 600 lines too long? How are you able to make that judgment call without first knowing what the algorithm is even doing? People setting arbitrary limits like this is what leads to convoluted spaghetti, instead of just taking things on a case by case basis. Here’s a function from the Box2D code running a particularly complex algorithm for solving contact velocities https://github.com/erincatto/box2d/blob/411acc32eb6d4f2e96fc... .
It’s 310 lines long. It reads very well, and it looks very maintainable. It has very clear comments explaining the reasoning behind the harder parts of the code. Would you reject this code because it’s pretty long? I wouldn’t.
There is no such thing as too long or too short. There’s overengineered and there’s underengineered and there’s a sweet spot in the middle that has the perfect amount of engineering with the least amount of complexity (preferably no additional complexity than the original problem warranted). Sometimes, the problem at hand is inherently a large algorithm and requires many lines of code. Don’t split it up! It just makes it harder for future maintainers who now have to figure out if the additional functions are actually being used elsewhere or if they’re just there to make the code “pretty”.
-
C++23: The Next C++ Standard
TIL Box2D must not be serious code because it doesn't use copious amounts of explicit temporaries[0].
And just for the record, I'm very glad Erin Catto decided to use operator overloading in his code. It made it much easier for me to read and understand what the code was doing as opposed to it being overly verbose and noisy.
[0]: https://github.com/erincatto/box2d/blob/main/src/collision/b...
-
Make a game engine in C++
For Physics Box2d can be used as a simple starting point.
-
Does anyone know any good open source project to optimize?
I suspect most C++ physics libraries like Box2D (https://github.com/erincatto/box2d) or Bullet3 (https://github.com/bulletphysics/bullet3) could really benefit a lot from SIMD.
-
what to start learning
for 2D physics have a look at Box2D it's amazing https://box2d.org/
- Where and how can I learn to make simulation programs? I like to be a simulation developer!
-
What would be the best library to build 2D simulations in python?
Do you mean drawing it or just the positions at each time step? Box2D has python bindings and would be ideal. https://box2d.org/
-
How can I create a physics simulation?
I mean... there is also Box2d... (https://box2d.org/) for 2d stuff as /u/Disembleergon mentioned.
requests
-
Ask HN: Is Python async/await some kind of joke?
- Ubiquitous “requests” library used in most docs examples, no async support https://github.com/psf/requests
-
10 Github repositories to achieve Python mastery
Explore here.
-
urllib3 v2.0.0 is now generally available!
It's Lukasa (his name is Cory, there's Łukasz in PSF though, but that's a different person). Looking at him, he made significant contributions to the requests repo: https://github.com/psf/requests/graphs/contributors
- I built a chatbot that lets you talk to any Github repository
-
I Could Rewrite Curl
> I'd love to see the look on some of these people's faces when they find out that tool/software/whatever they use is actually using libcurl under the hood.
Python dependencies (does not include curl)
https://devguide.python.org/getting-started/setup-building/i...
The "requests" module in Python (does not use curl)
-
Trying to install autoscan from https://github.com/NiNiyas/autoscan and stuck with no idea what the problem is.
Looking around for similar errors I found this issue where they recommended trying to use a newer version of the urllib3 library.
-
Pain when going back to other languages
but I appreciate the fact that there is an issue about it, it's acknowledged and .. unfixable, it would now break too many things https://github.com/psf/requests/issues/2002
-
How do you decide when to keep a project in a single python file vs break it up into multiple files?
The requests package has been the golden standard for package structure for as long as I can remember.
-
Python projects with best practices on Github?
Requests: Simple HTTP library for Python.
-
Why Type Hinting Sucks!
Another example is the third party library requests: https://github.com/psf/requests
What are some alternatives?
urllib3 - urllib3 is a user-friendly HTTP client library for Python
httplib2 - Small, fast HTTP client library for Python. Features persistent connections, cache, and Google App Engine support. Originally written by Joe Gregorio, now supported by community.
Bullet - Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
grequests - Requests + Gevent = <3
AIOHTTP - Asynchronous HTTP client/server framework for asyncio and Python
Chipmunk - A fast and lightweight 2D game physics library.
treq - Python requests like API built on top of Twisted's HTTP client.
raylib - A simple and easy-to-use library to enjoy videogames programming
Uplink - A Declarative HTTP Client for Python
LiquidFun - 2D physics engine for games
PhysX - NVIDIA PhysX SDK
requests-futures - Asynchronous Python HTTP Requests for Humans using Futures