Post A5qrAas2ACT1qiPWU4 by gunt@freespeechextremist.com
(DIR) More posts by gunt@freespeechextremist.com
(DIR) Post #A5qr6eWIeY6M0eMijQ by yellowbeard@queenlainsrevenge.xyz
2021-04-02T23:44:52.018069Z
0 likes, 0 repeats
Is there a reason that there couldn't be a fediverse software written in C?
(DIR) Post #A5qrAas2ACT1qiPWU4 by gunt@freespeechextremist.com
2021-04-02T23:44:02.954382Z
0 likes, 0 repeats
@yellowbeard String handling is cancer in C.
(DIR) Post #A5qrJmMApNfM4xt7xY by yellowbeard@queenlainsrevenge.xyz
2021-04-02T23:47:14.255040Z
1 likes, 0 repeats
@gunt In what way? Genuinely just asking. I don't know enough about this to be argumentative.
(DIR) Post #A5qrWekYQ9KGFfQrke by gunt@freespeechextremist.com
2021-04-02T23:48:02.191748Z
1 likes, 0 repeats
@yellowbeard Happy to answer. There is no automatic memory management in C, so you'll be managing strings (which are just NUL-terminated character arrays btw) by yourself all the time. The standard library is very anemic with regards to C "strings", and it is extremely easy to overrun a buffer which is a really easy way for an attacker to take control of your program. Even C++ would be heaps better for the job, but I wouldn't recommend it (Go is pretty good for web stuff however).
(DIR) Post #A5quPGDpW37u11I6CW by yellowbeard@queenlainsrevenge.xyz
2021-04-03T00:21:50.619064Z
1 likes, 0 repeats
@gunt so how does something like suckless software deal with this?
(DIR) Post #A5quRXQoVEI9y7RxVw by gunt@freespeechextremist.com
2021-04-03T00:20:43.596644Z
1 likes, 0 repeats
@yellowbeard By being feature-free.
(DIR) Post #A5qv6whvQqFKEYCN4i by yellowbeard@queenlainsrevenge.xyz
2021-04-03T00:29:44.654884Z
0 likes, 0 repeats
@gunt they have a web browser though. Is it inherently insecure?
(DIR) Post #A5qv7o7cq1INtbd8zY by ew@social.ancreport.com
2021-04-03T00:29:53.568064Z
1 likes, 0 repeats
@gunt @yellowbeard they segfault all the time due to bad code
(DIR) Post #A5qvQfVT5ty0g4mBxA by gunt@freespeechextremist.com
2021-04-03T00:31:46.463813Z
1 likes, 0 repeats
@yellowbeard >surf is a simple web browser based on WebKit2/GTK+.It is a thin layer of code on top of a whole pile of existing code. It's not lightweight and _definitely_ not minimalist.
(DIR) Post #A5qwzZnyNscL5Hdnuq by yellowbeard@queenlainsrevenge.xyz
2021-04-03T00:50:49.083875Z
0 likes, 0 repeats
@gunt oh, I see. That makes sense.Wait, isn't Linux written in C? I'm not trying to be a dick or do a gotcha or something like that. I am really curious. Is the answer just "lots of code and custom written overflow checks" or something like that?I've just heard so much about how much faster C is than other languages, which is the most important factor for me, I want to be able to run stuff on the lightest hardware without having to go full assembly mode.
(DIR) Post #A5qxAjEnebelWaVUAK by yellowbeard@queenlainsrevenge.xyz
2021-04-03T00:52:50.016086Z
0 likes, 0 repeats
@ew @gunt I've never actually used surf, I've just heard of it. I use st and dwm as my daily drivers though (via https://larbs.xyz because I don't know enough C to customize it myself)
(DIR) Post #A61ka7Km2WmupfdVZI by PawelK@noagendasocial.com
2021-04-08T05:53:40Z
1 likes, 0 repeats
@yellowbeardNope. Except for the scriptkiddies write much of current one.