[ home / overboard ] [ soy / qa / mtv / dem ] [ int / pol ] [ a / asp / biz / fit / k / r9k / sude / tech / tv / v / x ] [ q / news / chive / rules / pass / bans ] [ wiki / booru / irc ]

A banner for soyjak.party

/tech/ - Soyence and Technology

Download more RAM for your Mac here
Catalog
Email
Subject
Comment
File
Password (For file deletion.)

File: favicon.png 📥︎ (230 B, 16x16) ImgOps

 â„–5999[Quote]

What stack would you use to rewrite 4chan?

 â„–6034[Quote]

C

 â„–6040[Quote]

>>6034
based exploit enjoyer

 â„–6049[Quote]

linux apache mysql php

 â„–6051[Quote]

File: IMG_2215.jpeg 📥︎ (124 KB, 1206x493) ImgOps

let me guess - you need more

 â„–6062[Quote]

Rust

 â„–6064[Quote]

>>6049
This but also use Nginx as a reverse proxy.

 â„–6100[Quote]

>>5999 (OP)
Flask

 â„–6109[Quote]

File: cover2.jpg 📥︎ (261.12 KB, 1600x900) ImgOps


>>6034
based

 â„–6127[Quote]

File: 1000005680.jpg 📥︎ (119.01 KB, 1284x1268) ImgOps

>>5999 (OP)
Java

 â„–6129[Quote]

File: hq720.jpg 📥︎ (50.64 KB, 686x386) ImgOps

>>6034
>>5999 (OP)
Holy C, running on TempleOS

 â„–6196[Quote]

File: ClipboardImage.png 📥︎ (116.74 KB, 816x785) ImgOps

HTML / Javascript
Golang
Redis

 â„–6197[Quote]

>>5999 (OP)
Windows 7

 â„–6200[Quote]

>>6197
That's the spirit

 â„–6222[Quote]

>>5999 (OP)
brainfuck but unironically

 â„–6289[Quote]

File: 1744924304097w.png 📥︎ (20.27 KB, 256x261) ImgOps

>>5999 (OP)
Svelte
Tailwind
Rust
Postgres

 â„–6297[Quote]

>>5999 (OP)
MERN stack

 â„–6310[Quote]

I wouldn't use any javascript framework or PHP. I think Rust would be overkill and Java is brimstoned.

I personally would use Go and "server render" the pages using Go's templating language and then add a bit of javascript to improve usability (if possible I'd try making the website usable without javascript).

 â„–6319[Quote]

binary

 â„–6322[Quote]

htmx go sqlite because I'm a primagean watcher unemployed nocoder

 â„–6350[Quote]

>>5999 (OP)
Lisp
htmx

 â„–6356[Quote]

react + tailwindcss + electron (you will have to use the desktop app for a full experience)

 â„–6357[Quote]

Would probably use LAMP since it's the only thing I know.

 â„–6373[Quote]

everything's fine except for

>php


you can argue forever about which language should replace it.

 â„–6376[Quote]

>>5999 (OP)
TempleOS/HolyC/BrainFuck

 â„–6378[Quote]

>>6051
I need Ruby to distinguish itself from Python by having unique features or being less annoying to use

 â„–6380[Quote]

File: IMG_7862.png 📥︎ (873.64 KB, 1000x1000) ImgOps

>>6376
This gets one based and 3 long winded True’s

 â„–6389[Quote]

In all seriousness, why not Python and PostGreSQL?

 â„–6391[Quote]

>>5999 (OP)
Real soyteens use JAI as it's the only language made by an IRL soyjak instead of a bunch of random trannies

 â„–6512[Quote]

>>6049
>>6064
dangerously based

 â„–6544[Quote]

>>5999 (OP)
>999
I would use the "download (vichan|tinyboard|meguca|JSChan) from GitHub" tech stack.
This is not novel software.

 â„–6553[Quote]

>>5999 (OP)
C# and put it on Windows server. Something the glowies might be more familiar with.

 â„–6794[Quote]

>>6544
Which of them have an onboard thread tracker?

 â„–6867[Quote]

>What stack would you use to rewrite 4chan?
Backend: Go
Frontend: React, stripped down vanilla js version available for devices too slow.
DB: Postgres

 â„–6868[Quote]

>>6867
i would post a soyjak to respond but it seems sort of redundant on this site

 â„–6887[Quote]

>>6867
React has a fucking stupid render model, I'd pick one that can dynamically load libs instead of downloading the whole framework like react does

 â„–6889[Quote]

Anyways I'd use Postgres and Go for backend and actually pentest raisin, I'd move from physical boxes to a L1 hypervisor setup and a threadripper (Xen or KVM works) and update the UI with sharty features. I'd honestly keep the current FreeBSD but update it to current and remember to keep it updated (The hypervisor system gives me redundancy)
Throw that raisin on a CDN with a backup cluster and source code snapshots and you have something that a site for millions of users should actually run

 â„–6894[Quote]

>>5999 (OP)
Rust for the backend, or GO
svelte for the front end

 â„–6899[Quote]

>>6887
I don't like it either, its just what I am most familiar with
That being said, has anybody here tried out doing raisin with webcomponents and the shadow DOM? It kinda looks like client-side templating.

 â„–6905[Quote]

>>6894
and why Rust exactly?
I remember many people recommended it to me over Java, but I never got the reason why.

 â„–6913[Quote]

>>6905
Because its popular among troons and its community is composed of it. Thats about it.

 â„–6942[Quote]

>>6297
expired meme

 â„–6950[Quote]

>>5999 (OP)
Spring Boot and React

 â„–7217[Quote]

>>5999 (OP)
Laravel + Svelte

 â„–7230[Quote]

Phoenix Framework is the best choice, but none of you would even consider it because functional programming looks so foreign to braindead code monkeys who get their programming knowledge from midwit youtubers

 â„–7238[Quote]

stack exchange

 â„–7242[Quote]

>>6942
alright Next.js + mongodb then
(i made one actually)

 â„–7261[Quote]

File: factpepe.jpg 📥︎ (33.8 KB, 716x719) ImgOps

>>5999 (OP)
Backend Programming Language:
Go

Libraries:
Templ
HTMX
ffmpeg
exiftool
*magick (ImageMagick or GraphicsMagick depending on preference)

Database:
PostegreSQL

Webserver:
OpenResty (nginx fork with lua scripting)

Server:

 â„–7286[Quote]

>>7238
laugh at my joke niggers

 â„–7287[Quote]

>>7286
it was a raisin joke

 â„–7488[Quote]

>>6356
>electron
kill yourself

 â„–7511[Quote]

File: f4d016e3b01724ce.jpeg 📥︎ (81.56 KB, 680x680) ImgOps

>>6310
Go and vanilla JS sounds actually pretty great.
the number of features that would be added is very limited anyway so this could be the perfect stack

 â„–7512[Quote]

>>6373
If you'd like to reinvent the least number of things Laravel is objectively the best solution

 â„–7659[Quote]

>>6378
it has a gem logo
that means it's very gemmy

 â„–7724[Quote]

>>>6034
>>>5999 (OP)
>Holy C, running on TempleOS
and run locally? based
who else do you need to talk to but got right

 â„–7794[Quote]

Any react based is a good choice. You can integrate bunch of 4chanx features much more easily as well

 â„–7798[Quote]

>>5999 (OP)
A brain

 â„–8622[Quote]

>>6034
>>7798
All you need is x86 assembly + nasm

 â„–8655[Quote]

>react

blow your fucking brains out

 â„–8713[Quote]

>>6196
same but Postgres instead of Redis

 â„–9186[Quote]

Windows Server 2025
C#
ASP.Net
MsSQL

 â„–9198[Quote]

The one that doesn't need updates and maintenance.

 â„–9201[Quote]

>>8713
why tho
and why not simply use sqlite?

 â„–9334[Quote]

File: reddevil (20).jpg 📥︎ (61 KB, 719x1280) ImgOps

>>5999 (OP)
HTMX – for Frontend Interactivity

No heavy JS frameworks

Declarative HTML-driven UI

Perfect for thread replies, inline expanding, auto-refreshing content, etc.

Built-in support for:

Polling (hx-get + hx-swap)

WebSockets

CSRF headers

Progressive enhancement






Go (Golang) – for Backend

Compiled, fast, and secure

Static types reduce runtime bugs

Excellent standard lib (no bloated dependencies)

Very easy to write secure code (if you follow the basics)

Great for writing microservices or a monolith


Framework options:

chi (lightweight router with middleware)

fiber (Express-like, high-performance)

echo (easy, batteries-included)





Database

PostgreSQL still recommended

Use sqlc or gorm (if you want an ORM, though raw SQL with sqlx is common and fast)

Prepared statements only





File Storage

Local filesystem (for small-scale), or S3/MinIO for scaling

Serve files through Go or directly via CDN





Security Tips

Use html/template – auto-escapes output

Sanitize inputs on post creation (no raw HTML from users)

Set CSP headers

Rate limit endpoints using middleware (e.g., Go middleware or reverse proxy like Caddy/nginx)

Use Go’s built-in net/http + htmx headers to check request source





Moderation & Abuse Mitigation

HTMX makes it easy to do inline moderation tools (e.g., mod buttons that trigger POSTs via hx-post)

Pair with Go workers for spam checks, rate limiting, auto-bans, etc.

 â„–9346[Quote]

>>9334
thank you chatgpt

 â„–9349[Quote]

one of the c++ server libraries. The content of chans is disposable and ever changing, store it all in memory in binary. Reason: familiarity and there is not much $ to run things, so keep things efficient. Where a db is needed use postgress.

 â„–9356[Quote]

>>9349
dangerously based
this is actually a great idea

 â„–9412[Quote]

Node.js-express backend and Angular frontend :^)

 â„–9424[Quote]

File: 1724353117804450.gif 📥︎ (2.71 MB, 429x592) ImgOps


 â„–9903[Quote]

the bigger question is features. kyc kills the chan space - and a lot of other stuff - by design. I'd be all up for anonymous financing by javascript crypto mining - keep a local counter up that lets you know when you have enough credits to post. Even just a proof-of-work scheme might lay waste to spam. Push the concept far enough, and you need credits to refresh the page itself. It would limit phone posting, unless you can xfer credits to yourself - or its all just your hash. Is anybody already doing this?

I like chan culture, but no, way no how are any of you assholes getting my cc#.

There needs to be much more innovation in the space. Clearly the user base has the technical chops and creativity. Maybe chan sw needs to be developed open source and just picked up and tweaked by sites? 4chan running on such an obsolete stack is sad.

 â„–10093[Quote]

Rust, Axum, HTMX, filesystem for images, keep text of posts in memory (alongside persistence to a write-only log for reloading from if the machine crashes).

 â„–10104[Quote]

React + Spring boot/C++

 â„–10106[Quote]

>>9903
Its not that uncommon even critical business/government servers still run outdated java versions running that log4j vulnerability.

People just let software rot cause meh it still runs.

 â„–10766[Quote]

>>9903
All 4chan has to do is embrace Monero.

 â„–10793[Quote]

i'm still surprised much of the web is developed using the absolute garbage of a language, php

 â„–10866[Quote]

rust



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ soy / qa / mtv / dem ] [ int / pol ] [ a / asp / biz / fit / k / r9k / sude / tech / tv / v / x ] [ q / news / chive / rules / pass / bans ] [ wiki / booru / irc ]