baseplate.go
baseplate.go | ||
---|---|---|
7 | 421 | |
89 | 15,552 | |
- | - | |
6.6 | 0.0 | |
13 days ago | over 6 years ago | |
Go | Python | |
BSD 3-clause "New" or "Revised" License | - |
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.
baseplate.go
-
Just In Time Image Optimization at Reddit Scale
We chose to use govips which is a cgo wrapper around the libvips image manipulation library. The majority of new development for services in our backend is written using baseplate.go. But Go is not an ideal choice for media processing as it cannot keep up with the performance of native code. The most widely used image-processing libraries like libmagick are primarily written in C or C++. Speed was a major factor in selecting libvips in order to keep latency low on CDN cache misses for images. In our tests, libvips was 3–4 times faster than libmagick on basic image processing operations. Content-aware smart cropping was implemented by porting smartcrop.js to Go. This is the only operation implemented in pure Go.
-
Python use by SWEs
Even Reddit has python backends https://github.com/reddit/baseplate.py based on Pyramid. They also have a go one. https://github.com/reddit/baseplate.go
-
Reddit System Design/Architecture
there's a multitude of services in reddit's architecture. as far as i can tell, they mostly using reddit's baseplate framework (which has implementations in both python and go).
-
3 of the top 5 fastest web frameworks are written in Rust! (#1, #3 and #5)
FWIW, I believe Reddit has rewritten some Python into Go because of scaling issues. I don't know of any public write ups to confirm it, but at the least there's a public repo that contains their base template.
- How do you maintain quality of code in a Go project?
-
Evolving Reddit’s ML Model Deployment and Serving Architecture
Gazette Inference Service is a baseplate.go (Reddit’s golang web services framework) thrift service whose single responsibility is serving ML inference requests to it’s clients. It is deployed with Reddit’s modern kubernetes infrastructure.
-
Deadline Budget Propagation for Baseplate.py
Baseplate is implemented in Python and Go, and although they share the same main functionality, smaller features differ between the two. One such feature that was previously on the Go implementation but not Python was deadline budget propagation, which passes on the remaining timeout available from the initial client request all the way through the server and any other requests that may follow. The lack of this feature in Baseplate.py meant that many resources were being wasted by servers doing unnecessary work, despite clients no longer awaiting their response due to timeout.
-
Ask HN: Why isn't HN libre/FOSS?
Slashdot, reddit, and HN are similar in that the source code was available. For HN, as part of arc under the Artistic license. All 3 abandoned public source code releases.
https://sourceforge.net/projects/slashcode/
https://github.com/arclanguage/anarki
https://github.com/reddit-archive/reddit
- The boiling frog of digital freedom
-
Karma, votes, and diminishing returns
While it would likely have zero overlap with the code in use today if you look at the old code Reddit used to publish for voting the model at that point used to have flags/checks for :
-
[reddit self-host] Thrift issues?
I've been trying to host my own instance of Reddit from archived source code on GitHub. Even though I am aware that's probably not a good idea since many dependencies are broken and there's practically no documentation on anything (and it's really old legacy code), but I still decided to give it a shot.
-
Does anyone else just feel sad about all of this?
Shh, don't tell spez, the code is already available on the github https://github.com/reddit-archive/reddit/
-
Delv guy here: Sharing the mockup
Automod to act based on keywords/domains/etc., ideally using the same language/flags/regex/etc. of the original automod (old code) so that it's possible to use existing code. (For detecting off-topic posts, enforcing a title format, reminding the users to add missing details to post, filtering profanity, shadowbanning spammers, etc.)
- Users in r/harrypotter lashing out as mods ignore community vote
-
Rings.social – Reddit-API compatible and Open Source content-voting platform
Reddit pre enshittification is actually open source so spinning up your own Reddit instance should be trivially easy. I’m very surprised no one did this after the API protests started
https://github.com/reddit-archive/reddit
-
Keep the clients, make a new backend?
There are already 1:1 reddit clones based on older versions of their software that was open source: https://github.com/reddit-archive/reddit
- Was ist aus diesem Sub eigentlich geworden?
What are some alternatives?
Apache Thrift - Apache Thrift
Vanilla Forums - Vanilla is a powerfully simple discussion forum you can easily customize to make as unique as your community.
markup.rs - A blazing fast, type-safe template engine for Rust.
Mastodon - Your self-hosted, globally interconnected microblogging community
bypass-paywalls-chrome - Bypass Paywalls web browser extension for Chrome and Firefox.
lenny - ( ͡° ͜ʖ ͡°) A more user-respectful fork of Lemmy. Created for https://derpy.email.
Lemmy - 🐀 A link aggregator and forum for the fediverse
Discourse - A platform for community discussion. Free, open, simple.
Flarum - Simple forum software for building great communities.
OpenBBTerminal - Investment Research for Everyone, Everywhere.
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
diaspora* - A privacy-aware, distributed, open source social network.