[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Archived threads in /g/ - Technology - 3786. page

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

File: programming-languages.jpg (518KB, 2500x1443px) Image search: [Google]
programming-languages.jpg
518KB, 2500x1443px
Javascript is not superior to C. Period.

>>59377395
Ok first of all:

/* str_concat.c */
#include <stddef.h>
#include <stdlib.h>
char* str_concat(char const* s1, char const* s2, char* dest) {
size_t tot_size = 0;
char* siter;
for (siter = s1; *siter; siter++) tot_size++;
for (siter = s2; *siter; siter++) tot_size++;
dest = realloc(dest, tot_size + 1);
tot_size = 0;
for (siter = s1; dest[tot_size] = *siter; siter++) tot_size++;
for (siter = s2; dest[tot_size] = *siter; siter++) tot_size++;
return dest;
}

/* your_program.c */
#include <stdio.h>
#include <stdlib.h>
#include "str_concat.h"
int main() {
char const* h = "Hello ";
char const* w = "world";
char* r = malloc(0); /* this is allowed */
printf(str_concat(h, w, r));
free(r);
return 0;
}

Was that so hard?

Second of all, if you think javascript is doing anything less under the hood, you're wrong.

Thirdly, string concatenation is unnecessary. If you want concatenated output, just use printf with %s. If you want strings concatenated for any other purpose, just use fprintf with %s and direct it to the relevant stream pointer for your purpose.

Fourthly, please, like string concatenation is any easier in raw electrical engineering, as you seem to suggest it is.

Fifthly, engineering is a bad programming language either way, else programming languages would not have been invented.

Sixthly, if your obsession with transistors is meant as a rhetorical device for comparison with the perceived fallacy of saying we should still program in C when javascript is available -- as I suspect it is -- then that's a false analogy. Javascript is useful for cross platform GUI software. C is a better choice for:
>writing platforms themselves
>cross platform CLI software
>native GUI software from cross platform source code
Hard-wiring computational procedures is a better choice for:
>programming embedded machines that won't be programmable after manufacturing, e.g. toy car brains, non-algebraic calculators
>building processors
8 posts and 1 images submitted.
>>
>>59380512
Sure, ECMAScript7 is shit.
>>
>>59380512
kys javascript are better
>>
>>59380512
>tot_size
>dest
>sites
>single letter variables
Ishygiddy

File: download.jpg (11KB, 259x194px) Image search: [Google]
download.jpg
11KB, 259x194px
What LED strips would you guys recommend for lighting inside a tower?
8 posts and 1 images submitted.
>>
>>59380485
are you 14?
why would you want to light up your tower
>>
>>59380485
None
>>
>>59380498
if you arent b8ing, get some 5v led strips and hook to 5v connector on the psu
add a circuit breaker somewhere if you want to control it manually

File: googledontbeevil.jpg (33KB, 1033x774px) Image search: [Google]
googledontbeevil.jpg
33KB, 1033x774px
Their motto is: "Don't be evil" and people seemed to believe them for quite some time.
Now, a lot of people scream that they are evil.
What changed?
11 posts and 3 images submitted.
>>
File: google.jpg (145KB, 960x979px) Image search: [Google]
google.jpg
145KB, 960x979px
>>59380329

Power corrupts.
>>
>>59380329
you have nothing to worry if you have nothing to hide. you aren't a pedophile or pirate, are you?
>>
they make assassin robots for the military now

File: UBUNTUWTFSDLFKSADF.png (12KB, 270x436px) Image search: [Google]
UBUNTUWTFSDLFKSADF.png
12KB, 270x436px
Fuck you Ubuntu.

You fucking trigger me.

REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
15 posts and 1 images submitted.
>>
At least arch is 3rd, right?
>>
>>59380327
*buntu is best. Live with that
>>
why isnt gentoo on the list?

File: 1488805632644.jpg (101KB, 576x1024px) Image search: [Google]
1488805632644.jpg
101KB, 576x1024px
>AMDfags actually giving death threats to reviewers

Holy sperglords!
12 posts and 3 images submitted.
>>
>>59380290
False flag
>>
File: death threats.png (39KB, 622x276px) Image search: [Google]
death threats.png
39KB, 622x276px
>>59380305
>implying
>>
>>59380339
>implying that's not either a) Inteltards falseflagging or b) a complete hoax

File: file.png (325KB, 500x334px) Image search: [Google]
file.png
325KB, 500x334px
In /csg/, we discuss the cheap shit you see on Gearbest, Taobao, AliExpress, Banggood, eBay and similar sites.

>IRC channel
https://qchat.rizon.net/?channels=/csg/
#/csg/ on rizon

>Discord link
https://discord.gg/zP789wR

>Chink Shit Randomiser
http://chinkshit.xyz/random/

>Chink Shit Wiki
https://wiki.installgentoo.com/index.php/Chink_shit_general

>Chink Shit Infographic v1.4
https://my.mixtape.moe/aijpuk.jpg

>Chink Shit Infographic v2.0 "Still Unfinished Edition"
http://chinkshit.xyz/infographic.pdf

* Anons hydrobeads arrived >>59367533
* Anon links a new clive video >>59370218
* Anon is not amused by Gearbest charging for shipping >>59372658
* Anons MP3 player arrved and is very pleased with the product >>59377157
* Anon gets calls and texts from an Ali seller in the middle of the night >>59377950 >>59378036
* Anons Jinhao x750 pen arrived >>59378320 >>59378328
* Anon shills an 8$ bluetooth controller >>59379324

Previous thread >>59367297
320 posts and 55 images submitted.
>>
Fat sow
>>
Will ebay get pissy if I request too many refunds from chinks? I've had some stuff not arrive and even chinks playing dumb to get me to close disputes.
>>
>>59380226
FUCK YOU LITHU
FUCK ZUK

File: edc as hell.jpg (2MB, 3264x2448px) Image search: [Google]
edc as hell.jpg
2MB, 3264x2448px
Hey,
EDC thread.
10 posts and 4 images submitted.
>>
desktop threads are not allowed
>>
>>59380187
I just farted into my hands and then smelled my hands.
>>
>3330
>Radiolinja

well that's something

File: Laughing-Man.gif (501KB, 500x262px) Image search: [Google]
Laughing-Man.gif
501KB, 500x262px
>not using dtach
>not using dvtm
>not using vi
>not using gforth
>what is this world coming to where we allow ourselves to be such slaves?
5 posts and 1 images submitted.
>>
>>59379947
>using garbage tools
>using the laughing man logo
>>
>>59379947
>not using dtach
tmux is installed by base
>not using dvtm
same as above
>not using vi
use vim but switching to my own vi clone when ready
>not using gforth
>GPL
GForth sucks, just write your own.
Jonesforth and pforth are good places to start
>>
>>59379947
>not using dtach
tmux
>not using dvtm
tmux
>not using vi
vim because my vi clone isn't ready
>not using gforth
write your own gforth sucks

File: const.png (748KB, 768x430px) Image search: [Google]
const.png
748KB, 768x430px
I'm in a c++ intensive course and my jabba like teaching assistant alway yells, that it is importent to write const corret.
Is it really such a big deal when I don't make my functions const correct?
5 posts and 1 images submitted.
>>
Yes. Const is very very important. You must get it correct.
>>
>>59379816
Yes, in languages like C theyre extremely difficult to debug afterwards.
>>
>>59379816
Nah, it's not important, is less readable and ruins your API when applied to functions.

Discuss
8 posts and 3 images submitted.
>>
>>59379699
>e-celebs
>ever
>>
File: fixt.jpg (344KB, 1267x1795px) Image search: [Google]
fixt.jpg
344KB, 1267x1795px
>>59379699
fixd that for thou
>>
>>59379699
oh you smart fucker.
you are rootkit studios.

File: Capture.png (1MB, 1665x585px) Image search: [Google]
Capture.png
1MB, 1665x585px
>not using a buckling spring keyboard
>2017
8 posts and 2 images submitted.
>>
But I am using a Spacesaver M
>>
>>59379457
Unless you're an old tech collector/hobbyist on the side you're a retarded virtue signalling hipster if you have one of those things shitting up your bland little IKEA setup.
>>
>>59379776
Not really, they're good keyboards

File: micro.png (4KB, 350x350px) Image search: [Google]
micro.png
4KB, 350x350px
Is it possible to run Windows 7 (well) on a Kaby Lake laptop? I'm Getting conflicting information, some sources say it can't be done, others that it can but that it won't work well, others that it will work fine.
9 posts and 2 images submitted.
>>
>>59379445
No. Microsoft products are malware which will send all your data the the NSA and the CIA.
>>
It's not officially supported by M$, but there's nothing stopping you from doing it.
>>
>>59379503
Ah, thank you. I like windows 7.

File: dfsdfag.png (6KB, 455x90px) Image search: [Google]
dfsdfag.png
6KB, 455x90px
/g/ what the fuck

I can't even play emulators or anything because this shit keeps on popping up. Every 5 minutes the whole screen shuts off and if any of my games are running they fucking crash. I've looked all over google, downloaded a bunch of shit and cleaned out my graphics card.

Does anyone know some 560Ti drivers for windows 7 that actually work?
14 posts and 1 images submitted.
>>
>>59379393
Your card is dead, stop being so fucking retarded.
>>
>>59379492
fpbp
>>
>>59379393
>using windows
>current year
the heck is wrong with you

File: laptop-xps-15-pdp-polaris-05.jpg (42KB, 965x562px) Image search: [Google]
laptop-xps-15-pdp-polaris-05.jpg
42KB, 965x562px
Give me 3 good reasons why I shouldn't buy the new 4K Dell Xps 15 9560 right now

(Pro tip: ya can't)
19 posts and 1 images submitted.
>>
>>59379274
its 15"
13" is much better
>>
>>59379430
Ca n'a pas encore la même taille que les autres 15" laptops.
>>
It's not a macbook pro with retina display.

File: 1488420514820.jpg (116KB, 1200x948px) Image search: [Google]
1488420514820.jpg
116KB, 1200x948px
This week on /g/:

>did the hype slow down or did I finally got the filters for CPU threads right?
>CIA leaks: are they big 4 u?
>It's really time to replace the toe cheese eater on the sticky with a rare Terry
>Jews and Pajeets: who do you hate more and why?
7 posts and 1 images submitted.
>>
>>59379078

>gossip
>blogging
>barely relevant stuff, but presented in a way that's strongly biased towards your opinion
>more shitposting troll crap

Are you just trolling or are you genuinely self centered enough to think that this is a passable meta thread? This is just your personal shitpost if anything, if you're actually retarded look up what meta threads even are. I hope this crap gets deleted.
>>
>>59379078
I hope you die in a fire.
Go back to r/eddit
>>
>>59379114
>>59379118
No u

Pages: [First page] [Previous page] [3776] [3777] [3778] [3779] [3780] [3781] [3782] [3783] [3784] [3785] [3786] [3787] [3788] [3789] [3790] [3791] [3792] [3793] [3794] [3795] [3796] [Next page] [Last page]

[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.