[ / / / / / / / / / / / / / ] [ dir / animu / asatru / asmr / bl / cafechan / htg / leftpol / vg ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): abfb2997c2fbc15⋯.png (23.97 KB, 1212x314, 606:157, postingonline.png) (h) (u)

[–]

 No.887864>>887873 >>887980 [Watch Thread][Show All Posts]

First of all, I can program but never did any web developing.

I am trying to set up a small site with functions like a forum or a textboard. Images dont have to be in it.

Has to be without registration. Security is not an issue as it will be used by a small number of people I can trust.

What would the easiest way to implement user generated "threads" (optional) and text (obligatory) be?

Sorry for having no clue at all

 No.887865

Get out.

Get lost.


 No.887866>>887867


 No.887867>>887869

>>887866

I know I can create something like that here.

But I want to learn something new and in this case Id have an actual goal while learning something if I made the things by myself as much as possible.


 No.887869>>887875

>>887867

You'll want to use a server-side framework like node.js or django. Just look up a simple chat client in one of those to get an idea of how web requests work.


 No.887873>>887875 >>887879 >>887963

File (hide): c76db1c59ab13eb⋯.jpg (384.3 KB, 1400x933, 1400:933, steve klabnik.jpg) (h) (u)

>>887864 (OP)

Write it in Rust using tokio.

Look at the website here: https://tokio.rs/

Look at some example here: https://github.com/tokio-rs/tokio/tree/master/examples

Also think about incorporating a blockchain somehow. Shit will be cash.


 No.887875>>887879

>>887873

looks really interesting, I didnt know that one.

>>887869

Looking at these atm and it remembers me of my tries at network games.


 No.887879>>887880 >>887882 >>887883

>>887875

ignore this faggot

>>887873


 No.887880>>887882 >>887883

>>887879

well he is being a faggot what with the rust/blockchain memes but tokio isn't a bad choice tbqh


 No.887882

>>887879

ignore this anti Rust shill

>>887880

shit thread, shit answers tbqh


 No.887883>>887886

>>887879

>>887880

Not goint to try anything blockchainy but tokio really doesnt seem too bad at first glance.


 No.887886>>887887

>>887883

if you get sucked into the rust poz your going to end up regretting it. if you just want an image board just use one that already exists. 8ch is open source.

-You can do it in C with a template library for performance.

-You can do it in python/django if you want to get into that whole ecosystem, but performance will suffer

-PHP is higher performance but the code isn't going to be useful outside of the website.

-Rust on the other hand is a meme language that exists for no other reason than mozilla trying to push their poz where it doesn't belong.


 No.887887>>887889

>>887886

>if you get sucked into the rust poz your going to end up regretting it

>goes on and recomends C for webdev

nice try anti Rust shill


 No.887889>>887890

>>887887

>recommending rust for literally anything

kill yourself rustkike


 No.887890>>887891 >>887951

>>887889

>no arguments

the anti Rust shill cries out in pain as he strikes you


 No.887891>>887892 >>887897

>>887890

reminder the rust website doesn't even use rust

https://github.com/rust-lang/rust-www

it use's jekyll which is written in ruby


 No.887892>>887893

>>887891

rust-lang.org is just a static site. why should they use Rust?

crates.io is written in Rust. https://github.com/rust-lang/crates.io

dumb anti Rust shill


 No.887893>>887894

>>887892

if it's a static site why should they use a site generator written in ruby instead of rust?

stupid rust kike.


 No.887894

>>887893

because they have better things to do than writing a static site generator in Rust. what would the benefits of a rust rewrite be over the ruby version???

also why did you ignore that crates.io is written in Rust?

learn to argument retarded anti Rust shill


 No.887897>>887899

>>887891

>Rust is a replacement for Ruby

wrong


 No.887898

>what would the benefits of a rust rewrite be over the ruby version?

that's a good question, one anyone should ask themselves before ever considering rust.

>also why did you ignore that crates.io is written in Rust?

why are you trying to change the point? the rust flagship site is written in ruby.


 No.887899

>>887897

>Rust is a replacement for anything

wrong


 No.887900>>887901 >>887902

>that's a good question, one anyone should ask themselves before ever considering rust.

memory safety, thread safety

>why are you trying to change the point? the rust flagship site is written in ruby.

>flagship site

it's a fucking blog, m8

nice damage control btw, anti Rust shill


 No.887901

>>887900

forgot to sage fuggggg :DDDDDD


 No.887902>>887903

>>887900

>sjw faggots are too stupid to write C in a memory safe way so they created rust.


 No.887903>>887907 >>887924

>>887902

>muh SJW

look here: https://github.com/rust-lang/book

written in Rust: https://github.com/rust-lang-nursery/mdBook

kill yourself, anti Rust shill


 No.887904>>887906

File (hide): 2c7f985fc144046⋯.gif (701.93 KB, 320x240, 4:3, toad.gif) (h) (u)

>tfw you started an argument again by asking simple questions


 No.887905

also written in Rust: https://github.com/rust-lang/rust-playpen

single braincell anti Rust shill


 No.887906

>>887904

fucking anti Rust shills

also kill yourself OP. your thread sucks

go back to /g/


 No.887907>>887909

>>887903

>look at this random shit that isn't the first thing someone lands on when checking out rust as an excuse for why they can't write their static blog using rust tools and instead use ruby

>oy vey it's a waste of time

that doesn't stop the 3 mozilla paid kike's the claim everything should be rewritten in rust, except their homepage site generator i guess, that has to be somewhat reliable.


 No.887909>>887910

>>887907

>3 mozilla paid kike's the claim everything should be rewritten in rust

proof?

>muh static site generator

look here: https://github.com/rust-lang/cargo/tree/master/src/doc

the documentation is also generated by Rust code

it's time to stop, anto Rust shill


 No.887910>>887911

>>887909

>continues linking to irrelevant garbage

>rust homepage remains written in ruby


 No.887911>>887912

>>887910

>irrelevant garbage

>play.rust-lang.org, doc.rust-lang.org and crates.io are all irrelevant because I say so

ok anti Rust shill


 No.887912>>887913

>>887911

>claims website in OP should be written in rust

>rust homepage written in ruby


 No.887913>>887915

>>887912

>someone mentioned Rust?

>better shit the thread up with anti Rust garbage

good job, anti Rust shill


 No.887915>>887917

>>887913

>suggest rust be used for a website backend of all things

>continue shitting up thread with further rust shilling

reminder the rust compiler was written in ocaml which was written in C.


 No.887917>>887920

>>887915

>hurr durr muh Rust sucks

great argument, anti Rust shill

reminder the rust compiler was rewritten in Rust


 No.887920>>887921

>>887917

>hurr muh Rust is great for everything you should all use rust

great argument rust kike

reminder if they loose the rust compiler they're going to have to rewrite it in C again.


 No.887921>>887922

>>887920

>loose


 No.887922>>887923

>>887921

spelling in C is less relevant because the vast majority of the code text isn't for the bloated standard library or the disgusting language itself.


 No.887923

>>887922

>standard library

LOL


 No.887924>>887927

>>887903

>mdBook

https://github.com/rust-lang-nursery/mdBook/blob/master/src/renderer/html_handlebars/hbs_renderer.rs


let mut data = serde_json::Map::new();
data.insert("language".to_owned(), json!("en"));
data.insert("book_title".to_owned(), json!(config.book.title.clone().unwrap_or_default()));
data.insert("description".to_owned(), json!(config.book.description.clone().unwrap_or_default()));
data.insert("favicon".to_owned(), json!("favicon.png"));
if let Some(ref livereload) = html_config.livereload_url {
data.insert("livereload".to_owned(), json!(livereload));
}

what a beautiful language this is


 No.887927>>887929 >>887945

>>887924

>muh syntax

can't you anti Rust shills come up with some new shit? this meme is at least a year old now.


 No.887929>>887930

>>887927

>muh bloat

<oy vey stop talking about how bloated my language is


 No.887930>>887931

>>887929

explain how Rust is bloated

>imby dynamically linked hello world in C is smaller than statically linked hello world in Rust

ebin


 No.887931>>887933 >>887949

>>887930

explain how it's not bloated when your compiler is 1000% slower compiling rust code than the equivalent C code with gcc

https://users.rust-lang.org/t/slow-compile-times/14056


 No.887933>>887936 >>887943

>>887931

>says rust is bloated

>muh compile times

>Nov '17

???


 No.887936>>887942


 No.887942>>887949

>>887936

wow who would have thought that incremental compilation adds a little overhead to a clean compile in favor of massive speedups for non-clean compiles?

also most of these issues use the nightly compiler.


 No.887943>>887947

File (hide): 5119991a6590b4f⋯.png (204.6 KB, 2038x810, 1019:405, performance.png) (h) (u)


 No.887945>>887947

>>887927

>.to_owned()

>.to_owned()

>.to_owned()

>.to_owned()

>.to_owned()

>.unwrap_or_default()


 No.887947>>887948

>>887943

firefox quantum v60.0b5: 19s

microsoft edge: 32s

>>887945

EBIN!


 No.887948>>887950

>>887947

>compares quantum to edge performance to counter terrible quantum to chromium performance


 No.887949>>887950

>>887942


I have a ~8,000 line Rust project that, on my little laptop, takes about a minute to compile on 1.22.1, and 3-4 minutes to compile on nightly. Incremental compilation may take that down 10% or so.

If I compile a C project of similar functionality and ~14,000 lines of code, it compiles in 6 seconds. And, most significantly, if I just touch a single file and recompile the project, it compiles in less than half a second.
...
Which C compiler are you using?
...
That was with gcc. I actually just tried with clang, and its about twice as fast at 3 seconds.

>>887931

>massive speedups


 No.887950>>887952 >>887953

>>887948

firefox quantum v60.0b5: 19s

microsoft edge: 32s

google chrome v65.0.3325.181: 22s

>>887949

>pre incremental compilation

>c doesn't have generics

hmmmmmmmmmmmmmmm...


 No.887951

>>887890

Just going off of heuristics, it seems that The Rust shill, Mr. No argument and the guy who shit up the Hawking thread are the same person. Interesting.


 No.887952>>887954

>>887950

you lie


 No.887953>>887955

>>887950

>c doesn't have bloat

hmmmmmmmmmmmmmmm...


 No.887954>>887956

>>887952

no. the benchmark is just shit.


 No.887955

>>887953

>everything except the bare minimum is bloat

you didn't mention botnet. 2/10


 No.887956>>887957

>>887954

link to a single benchmark that shows pozjew is faster than chromium


 No.887957>>887962

>>887956

why though? i'm a Rust shill. not a firefox shill.


 No.887962>>887964

>>887957

>quantum is fast because of (((rust)))

>what notable projects use rust? Quantum! isn't it awesome how fast it is now!

<oy vey I don't want to talk about browser performance anymore


 No.887963>>887964

>>887873

>We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic.

>On IRC, please avoid using overtly sexual nicknames or other nicknames that might detract from a friendly, safe and welcoming environment for all.

>Please be kind and courteous. There’s no need to be mean or rude.

>Respect that people have differences of opinion and that every design or implementation choice carries a trade-off and numerous costs. There is seldom a right answer.

>Please keep unstructured critique to a minimum. If you have solid ideas you want to experiment with, make a fork and see how it works.

>We will exclude you from interaction if you insult, demean or harass anyone. That is not welcome behavior. We interpret the term “harassment” as including the definition in the Citizen Code of Conduct; if you have any lack of clarity about what might be included in that concept, please read their definition. In particular, we don’t tolerate behavior that excludes people in socially marginalized groups.

>Private harassment is also unacceptable. No matter who you are, if you feel you have been or are being harassed or made uncomfortable by a community member, please contact one of the channel ops or any of the Rust moderation team immediately. Whether you’re a regular contributor or a newcomer, we care about making this community a safe place for you and we’ve got your back.

>Likewise any spamming, trolling, flaming, baiting or other attention-stealing behavior is not welcome.

http://citizencodeofconduct.org/

>The following behaviors are considered harassment and are unacceptable within our community:

>Violence, threats of violence or violent language directed against another person.

>Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.

>Posting or displaying sexually explicit or violent material.

>Posting or threatening to post other people’s personally identifying information ("doxing").

>Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.

>Inappropriate photography or recording.

>Inappropriate physical contact. You should have someone’s consent before touching them.

>Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.

>Deliberate intimidation, stalking or following (online or in person).

>Advocating for, or encouraging, any of the above behavior.

>Sustained disruption of community events, including talks and presentations.

Forbidden hugs when ?


 No.887964>>887965


 No.887965>>887968

>>887964

>what notable projects use rust?

<literally nothing of note except pozjew


 No.887968

>>887965

>lying

anti Rust shill detected


 No.887980>>887981 >>887985

>>887864 (OP)

literally just learn PHP. its a good skill to have (unfortunately)


 No.887981>>887983


 No.887983>>887986

>>887981

a cool and useful feature for anyone who has ever grokked data-oriented programming


 No.887985>>887989

>>887980

php has always seemed like a useless middleground, like perl or ruby. either do it in python or do it in C.


 No.887986>>887989

>>887983

>a cool and useful feature

fucking LOL


 No.887989>>887991 >>888023

>>887986

the feature nears the idea of macros.

>>887985

php is *the* web development language. yeah its horribly designed but there are some good things about it.


 No.887991

>>887989

i know php is way faster than python but if you want to be lazy python has the massive standard library and even more massive selection of 3rd party libraries due to being used in everything. i guess you could always call something else from php. really don't like using django, it's a bloated mess.


 No.888023>>888033 >>888659

>>887989

>php is *the* web development language

Javascript fucked PHP's mother and then made PHP clean it's dick.


 No.888033>>888038

>>888023

That's because PHP runs on your web server and puts all load onto it (apart from rendering the prepared page), while with Javascript you can offload all kinds of shit away from your server to the user's computer where the scripts run. That's indirecltly why web 1.0 era computers are too slow for today's JS-infested web.


 No.888038>>888095 >>888659

>>888033

>PHP runs on your web server

Lol no it doesn't node.js does.


 No.888095>>888103

>>888038

There is no way someone this dumb can survive long enough to learn how to use a computer. This has to be bait.


 No.888103>>888659

>>888095

PHP isn't webscale. Node.js is. GTFO retarded refu/g/.

btw this thread is fucking autistic. Goob job pro/anti rust fags.


 No.888659

File (hide): 4d71c8e7a875cee⋯.jpg (3.21 KB, 200x200, 1:1, lq.jpg) (h) (u)

>>888103 >>888095 >>888038 >>888033 >>888023

>wanting to use PHP or nodejs for websites

this better be bait




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
79 replies | 5 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / asatru / asmr / bl / cafechan / htg / leftpol / vg ][ watchlist ]